Commit de3540e8 authored by Francesco Chicchiricco's avatar Francesco Chicchiricco
Browse files

Optional JRebel profile

parent 23ebd1aa
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath fallback="default">
<dir name="${basedir}/../choremocks/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="${basedir}/../choremocks/src/main/webapp">
</dir>
</link>
</web>
</application>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath fallback="default">
<dir name="${basedir}/../console/target/classes">
</dir>
<dir name="${basedir}/../../ext/choreography/client-console/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="${basedir}/../console/src/main/webapp">
</dir>
</link>
<link target="/">
<dir name="${basedir}/../../ext/choreography/client-console/target/classes">
</dir>
</link>
</web>
</application>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath fallback="default">
<dir name="${basedir}/../core/target/classes">
</dir>
<dir name="${basedir}/../common/target/classes">
</dir>
<dir name="${basedir}/../ext/choreography/common-lib/target/classes">
</dir>
<dir name="${basedir}/../ext/choreography/common-lib/target/classes">
</dir>
<dir name="${basedir}/../ext/choreography/logic/target/classes">
</dir>
<dir name="${basedir}/../ext/choreography/rest-api/target/classes">
</dir>
<dir name="${basedir}/../ext/choreography/rest-cxf/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="${basedir}/../core/src/main/webapp">
</dir>
</link>
</web>
</application>
......@@ -148,6 +148,7 @@ limitations under the License.
<id>embedded</id>
<properties>
<tomcat.version>8.0.37</tomcat.version>
<conf.directory>${project.build.directory}/test-classes</conf.directory>
</properties>
......@@ -257,5 +258,66 @@ limitations under the License.
</plugins>
</build>
</profile>
<profile>
<id>jrebel</id>
<properties>
<tomcat.version>8.0.37</tomcat.version>
</properties>
<build>
<defaultGoal>clean verify cargo:run</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>enableJRebel</id>
<phase>package</phase>
<configuration>
<target>
<copy file="${basedir}/../core/target/test-classes/rebel.xml" tofile="${basedir}/../core/target/syncope/WEB-INF/classes/rebel.xml" overwrite="true" />
<copy file="${basedir}/../choremocks/target/test-classes/rebel.xml" tofile="${basedir}/../choremocks/target/choremocks/WEB-INF/classes/rebel.xml" overwrite="true" />
<copy file="${basedir}/../console/target/test-classes/rebel.xml" tofile="${basedir}/../console/target/syncope-console/WEB-INF/classes/rebel.xml" overwrite="true" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<configuration>
<properties>
<cargo.jvmargs>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
-noverify -javaagent:${env.REBEL_HOME}/jrebel.jar -Drebel.spring_plugin=true
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=512m -Xmx1024m -Xms512m</cargo.jvmargs>
</properties>
</configuration>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>rebel.xml</include>
</includes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2016 The CHOReVOLUTION project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath fallback="default">
<dir name="${basedir}/../enduser/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="${basedir}/../enduser/src/main/webapp">
</dir>
</link>
</web>
</application>
Supports Markdown
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