+host=127.0.0.1\r
#cspace\r
-cspace.release=0.2\r
+cspace.release=0.4\r
cspace.services.release=cspace-services-${cspace.release}\r
cspace.services.war=cspace-services.war\r
domain.cspace=cspace\r
\r
#jboss cspace domain\r
jboss.domain.cspace=${domain.cspace}\r
+jboss.domain.cspace.port=8180\r
jboss.server.cspace=${jboss.home}/server/${jboss.domain.cspace}\r
jboss.deploy.cspace=${jboss.server.cspace}/deploy\r
jboss.lib.cspace=${jboss.server.cspace}/lib\r
\r
#jboss nuxeo domain\r
jboss.domain.nuxeo=${domain.nuxeo}\r
+jboss.domain.nuxeo.port=8080\r
jboss.server.nuxeo=${jboss.home}/server/${jboss.domain.nuxeo}\r
jboss.deploy.nuxeo=${jboss.server.nuxeo}/deploy\r
jboss.lib.nuxeo=${jboss.server.nuxeo}/lib\r
</target>\r
\r
\r
+ <target name="hotdeploy" depends="install"\r
+ description="deploy services in running ${jboss.server.cspace}">\r
+ <ant antfile="services/build.xml" target="hotdeploy" inheritAll="false"/>\r
+ </target>\r
+\r
<target name="eclipse" depends="eclipse-unix,eclipse-windows" description="Generate Eclipse files" />\r
<target name="eclipse-unix" if="osfamily-unix">\r
<exec executable="mvn" failonerror="true">\r
<name>libs-snapshots-local</name>\r
<url>http://source.collectionspace.org:8081/artifactory/libs-snapshots-local</url>\r
</snapshotRepository>\r
- </distributionManagement> \r
+ </distributionManagement>\r
\r
<modules>\r
<module>3rdparty</module>\r
<repository>\r
<id>collectionspace-releases</id>\r
<name>collectionspace-releases</name>\r
- <url>http://source.collectionspace.org:8081/artifactory/public-nuxeo</url> \r
+ <url>http://source.collectionspace.org:8081/artifactory/public-nuxeo</url>\r
<releases>\r
<enabled>true</enabled>\r
</releases>\r
<snapshots>\r
<enabled>false</enabled>\r
- </snapshots> \r
+ </snapshots>\r
</repository>\r
<repository>\r
<id>collectionspace-snapshots</id>\r
<url>http://repo1.maven.org/maven2</url>\r
<snapshots>\r
<enabled>false</enabled>\r
- </snapshots> \r
+ </snapshots>\r
</repository>\r
<repository>\r
<id>maven-restlet</id>\r
<url>http://maven.restlet.org</url>\r
<snapshots>\r
<enabled>false</enabled>\r
- </snapshots> \r
- </repository> \r
+ </snapshots>\r
+ </repository>\r
<repository>\r
<id>java.net</id>\r
<name>java.net Maven Repository</name>\r
<layout>legacy</layout>\r
<snapshots>\r
<enabled>false</enabled>\r
- </snapshots> \r
+ </snapshots>\r
</repository>\r
\r
<!-- \r
<url>http://repository.jboss.org/maven2</url>\r
<snapshots>\r
<enabled>false</enabled>\r
- </snapshots> \r
+ </snapshots>\r
</repository>\r
<repository>\r
<id>mojo</id>\r
<name>mojo repo</name>\r
- <url>http://svn.codehaus.org/mojo/trunk/mojo/jboss-maven-plugin</url>\r
+ <url>http://repository.codehaus.org</url>\r
<snapshots>\r
- <enabled>false</enabled>\r
- </snapshots> \r
+ <enabled>true</enabled>\r
+ </snapshots>\r
</repository>\r
- \r
+\r
</repositories>\r
\r
<pluginRepositories>\r
<url>http://download.java.net/maven/1</url>\r
<layout>legacy</layout>\r
</pluginRepository>\r
- \r
+\r
+ <!-- use snapshort codehaus for cargo plugin -->\r
<pluginRepository>\r
<id>codehaus snapshot repository</id>\r
<url>http://snapshots.repository.codehaus.org/</url>\r
<enabled>true</enabled>\r
</releases>\r
</pluginRepository>\r
- \r
+\r
</pluginRepositories>\r
\r
<build>\r
</exec>
</target>
+ <target name="hotdeploy" depends="install,hotdeploy-unix,hotdeploy-windows"
+ description="Hot deploy" />
+ <target name="hotdeploy-unix" if="osfamily-unix">
+ <exec executable="mvn" failonerror="true">
+ <arg value="properties:read-project-properties" />
+ <arg value="cargo:undeploy" />
+ <arg value="cargo:deploy" />
+ <arg value="-Dmaven.test.skip=true" />
+ <arg value="-f" />
+ <arg value="${basedir}/pom.xml" />
+ <arg value="-N" />
+ <arg value="${mvn.opts}" />
+ </exec>
+ </target>
+ <target name="hotdeploy-windows" if="osfamily-windows">
+ <exec executable="cmd" failonerror="true">
+ <arg value="/c" />
+ <arg value="mvn.bat" />
+ <arg value="properties:read-project-properties" />
+ <arg value="cargo:undeploy" />
+ <arg value="cargo:deploy" />
+ <arg value="-Dmaven.test.skip=true" />
+ <arg value="-f" />
+ <arg value="${basedir}/pom.xml" />
+ <arg value="-N" />
+ <arg value="${mvn.opts}" />
+ </exec>
+ </target>
+
<target name="deploy" depends="install"
description="deploy cspace services in ${jboss.server.cspace}">
<copy file="${basedir}/target/${cspace-services.war}" todir="${jboss.server.cspace}/deploy"/>
-<?xml version="1.0" encoding="UTF-8"?>\r
-<actions>\r
- <action>\r
- <actionName>test</actionName>\r
- <packagings>\r
- <packaging>*</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>test</goal>\r
- </goals>\r
- </action>\r
- <action>\r
- <actionName>build</actionName>\r
- <packagings>\r
- <packaging>*</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>install</goal>\r
- </goals>\r
- </action>\r
- <action>\r
- <actionName>clean</actionName>\r
- <packagings>\r
- <packaging>*</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>clean</goal>\r
- </goals>\r
- </action>\r
- <action>\r
- <actionName>rebuild</actionName>\r
- <packagings>\r
- <packaging>*</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>clean</goal>\r
- <goal>install</goal>\r
- </goals>\r
- <properties>\r
- <maven.test.skip>true</maven.test.skip>\r
- </properties>\r
- </action>\r
- <action>\r
- <actionName>run</actionName>\r
- <packagings>\r
- <packaging>war</packaging>\r
- <packaging>ear</packaging>\r
- <packaging>ejb</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>package</goal>\r
- </goals>\r
- <properties>\r
- \r
- <netbeans.deploy>true</netbeans.deploy>\r
- </properties>\r
- </action>\r
- <action>\r
- <actionName>debug</actionName>\r
- <packagings>\r
- <packaging>war</packaging>\r
- <packaging>ear</packaging>\r
- <packaging>ejb</packaging>\r
- </packagings>\r
- <goals>\r
- <goal>package</goal>\r
- </goals>\r
- <properties>\r
- \r
- <netbeans.deploy>true</netbeans.deploy>\r
- <netbeans.deploy.debugmode>true</netbeans.deploy.debugmode>\r
- </properties>\r
- </action>\r
- </actions>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<actions>
+ <action>
+ <actionName>test</actionName>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </action>
+ <action>
+ <actionName>build</actionName>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ </action>
+ <action>
+ <actionName>clean</actionName>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ </action>
+ <action>
+ <actionName>rebuild</actionName>
+ <goals>
+ <goal>clean</goal>
+ <goal>install</goal>
+ </goals>
+ <properties>
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+ </action>
+ <action>
+ <actionName>run</actionName>
+ <goals>
+ <goal>package</goal>
+ </goals>
+ <properties>
+
+ <netbeans.deploy>true</netbeans.deploy>
+ </properties>
+ </action>
+ <action>
+ <actionName>debug</actionName>
+ <goals>
+ <goal>package</goal>
+ </goals>
+ <properties>
+
+ <netbeans.deploy>true</netbeans.deploy>
+ <netbeans.deploy.debugmode>true</netbeans.deploy.debugmode>
+ </properties>
+ </action>
+ <action>
+ <actionName>CUSTOM-redeploy</actionName>
+ <displayName>redeploy</displayName>
+ <goals>
+ <goal>cargo:undeploy</goal>
+ <goal>cargo:deploy</goal>
+ </goals>
+ </action>
+ </actions>
<finalName>cspace-services</finalName>\r
<defaultGoal>package</defaultGoal>\r
<plugins>\r
- <!--plugin>\r
+ <plugin>\r
<groupId>org.codehaus.mojo</groupId>\r
- <artifactId>jboss-maven-plugin</artifactId>\r
- <configuration>\r
- <serverName>cspace</serverName>\r
- <jbossHome>${jboss.dir}</jbossHome>\r
- <port>8180</port>\r
- </configuration>\r
- <executions> \r
+ <artifactId>properties-maven-plugin</artifactId>\r
+ <version>1.0-alpha-2</version>\r
+ <executions>\r
<execution>\r
- <id>jboss-undeploy</id>\r
- <phase>pre-integration-test</phase>\r
+ <phase>initialize</phase>\r
<goals>\r
- <goal>undeploy</goal>\r
+ <goal>read-project-properties</goal>\r
</goals>\r
- <configuration>\r
- <fileNames>\r
- <param>${project.build.directory}/${project.build.finalName}.war</param>\r
- </fileNames>\r
- </configuration>\r
</execution>\r
- <execution>\r
- <id>jboss-deploy</id>\r
- <phase>pre-integration-test</phase>\r
- <goals>\r
- <goal>deploy</goal>\r
- </goals>\r
- <configuration>\r
- <fileNames>\r
- <param>${project.build.directory}/${project.build.finalName}.war</param>\r
- </fileNames>\r
- </configuration>\r
- </execution> \r
</executions>\r
- </plugin-->\r
+ <configuration>\r
+ <files>\r
+ <file>../../build.properties</file>\r
+ </files>\r
+ </configuration>\r
+ </plugin>\r
<plugin>\r
<groupId>org.codehaus.cargo</groupId>\r
<artifactId>cargo-maven2-plugin</artifactId>\r
<configuration>\r
<type>runtime</type>\r
<properties>\r
- <cargo.servlet.port>8180</cargo.servlet.port>\r
+ <cargo.servlet.port>${jboss.domain.cspace.port}</cargo.servlet.port>\r
<cargo.jboss.configuration>cspace</cargo.jboss.configuration>\r
</properties>\r
</configuration>\r
<groupId>org.collectionspace.services</groupId>\r
<artifactId>org.collectionspace.services.jaxrs.provider</artifactId>\r
<type>war</type>\r
- <pingURL>http://127.0.0.1:8180</pingURL>\r
+ <pingURL>http://${host}:${jboss.domain.cspace.port}</pingURL>\r
</deployable>\r
</deployables>\r
</deployer>\r
<ant antfile="common/build.xml" target="undeploy" inheritAll="false"/>\r
</target>\r
\r
+ <target name="hotdeploy" depends="install"\r
+ description="deploy services in running ${jboss.server.cspace}">\r
+ <ant antfile="JaxRsServiceProvider/build.xml" target="hotdeploy" inheritAll="false"/>\r
+ </target>\r
+\r
<!-- this target is called in order based on the dependencies between the services -->\r
<target name="dist" depends="package"\r
description="create distribution for services">\r