Commit 3254d779 authored by Jeremie Guillemotte's avatar Jeremie Guillemotte

Adding Maven profiles and filters to build FraSCAti-studio or FraSCAti-studio...

Adding Maven profiles and filters to build FraSCAti-studio or FraSCAti-studio customized for EasySOA. The default profile is FraSCAti-studio for development.
parent 47b3599d
#!/bin/sh
mvn clean install -DEasysoa
mvn clean install -DEasySOA-dev
This diff is collapsed.
......@@ -3,4 +3,5 @@ export MAVEN_OPTS="-XX:MaxPermSize=128m"
#export MAVEN_OPTS="-XX:MaxPermSize=128m -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8484,server=y,suspend=y"
mvn -DEasysoa -Pexplorer,remote-fscript -Dmaven.test.skip=true
#mvn -DEasysoa -Pexplorer,remote-fscript -Dmaven.test.skip=true
mvn -DEasySOA-dev -Pexplorer,remote-fscript -Dmaven.test.skip=true
#Easysoa Frascati studio Database configuration
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.url=jdbc:mysql://localhost:3306/easysoasimplified
hibernate.connection.username=root
hibernate.connection.password=
#Easysoa nuxeo registry login & password
nuxeo.login=Administrator
nuxeo.password=Administrator
#Easysoa composite
easysoa.composite=easysoa
\ No newline at end of file
#Easysoa Frascati studio Database configuration
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.url=jdbc:mysql://localhost:3306/easysoasimplified
hibernate.connection.username=root
hibernate.connection.password=s0a
#Easysoa nuxeo registry login & password
nuxeo.login=Administrator
nuxeo.password=s0a
#Easysoa composite
easysoa.composite=easysoa
\ No newline at end of file
......@@ -37,6 +37,23 @@
<property name="hibernate.connection.password" value="${hibernate.connection.password}"/>
<property name="hibernate.connection.username" value="${hibernate.connection.username}"/>
<property name="hibernate.search.default.directory_provider" value="filesystem"/>
<!--<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/easysoasimplified"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.connection.username" value="root"/>
<property name="hibernate.connection.password" value=""/>
<property name="hibernate.search.default.directory_provider" value="filesystem"/>-->
<!-- Pool configuration -->
<property name="hibernate.c3p0.min_size" value="5"/>
<property name="hibernate.c3p0.max_size" value="20"/>
<property name="hibernate.c3p0.timeout" value="300"/>
<property name="hibernate.c3p0.max_statements" value="50"/>
<property name="hibernate.c3p0.idle_test_period" value="3000"/>
</properties>
</persistence-unit>
</persistence>
......@@ -61,6 +61,12 @@
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
......
......@@ -26,7 +26,66 @@
</dependencies>
<build>
<finalName>frascati-studio</finalName>
<finalName>frascati-studio</finalName>
<resources>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<filtering>true</filtering>
</resource>
</resources>
<!-- env = environment : studio, integration ... -->
<filters>
<filter>src/main/filters/${env}-filter.properties</filter>
</filters>
<!-- A solution to configure the web.xml file with maven war plugin -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<webResource>
<directory>src/main/webapp/WEB-INF</directory>
<includes>
<include>*.xml</include>
</includes>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
</webResource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
<!-- To build FraSCAti studio war without Easysoa integration -->
<profiles>
<profile>
<id>Studio</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<env>studio</env>
</properties>
</profile>
<!-- To build FraSCAti studio war with Easysoa custom integration -->
<profile>
<id>Easysoa-integration</id>
<activation>
<property>
<name>Easysoa-integration</name>
</property>
</activation>
<properties>
<env>integration</env>
</properties>
</profile>
</profiles>
</project>
#Easysoa composite
easysoa.composite=easysoa2
\ No newline at end of file
#Easysoa composite
easysoa.composite=easysoa
\ No newline at end of file
......@@ -11,7 +11,8 @@
<servlet-class>org.ow2.frascati.servlet.FraSCAtiServlet</servlet-class>
<init-param>
<param-name>composite</param-name>
<param-value>easysoa</param-value>
<!--<param-value>easysoa2</param-value>-->
<param-value>${easysoa.composite}</param-value>
</init-param>
<init-param>
<param-name>org.ow2.frascati.bootstrap</param-name>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment