juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r818178 - in /webservices/juddi/trunk/juddi-cxf: assembly.xml build.xml pom.xml
Date Wed, 23 Sep 2009 17:55:36 GMT
Author: tcunning
Date: Wed Sep 23 17:55:36 2009
New Revision: 818178

URL: http://svn.apache.org/viewvc?rev=818178&view=rev
Log:
JUDDI-188
Make juddi-cxf inherit from juddiv3-war.

Added:
    webservices/juddi/trunk/juddi-cxf/assembly.xml
    webservices/juddi/trunk/juddi-cxf/build.xml
Modified:
    webservices/juddi/trunk/juddi-cxf/pom.xml

Added: webservices/juddi/trunk/juddi-cxf/assembly.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-cxf/assembly.xml?rev=818178&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-cxf/assembly.xml (added)
+++ webservices/juddi/trunk/juddi-cxf/assembly.xml Wed Sep 23 17:55:36 2009
@@ -0,0 +1,25 @@
+<assembly>
+<id></id>
+<baseDirectory></baseDirectory>
+<formats>
+	<format>war</format>
+</formats>
+<fileSets>
+  <fileSet>
+  	<directory>${project.build.directory}/juddiv3war</directory>
+  	<outputDirectory></outputDirectory>
+  </fileSet>
+</fileSets>
+<dependencySets>
+  <dependencySet>
+    <includes>
+	<include>*:*</include>
+    </includes>
+    <excludes>
+	<exclude>javax.servlet:servlet-api</exclude>
+	<exclude>org.apache.juddi:juddiv3-war</exclude>
+    </excludes>
+    <outputDirectory>WEB-INF/lib</outputDirectory>
+  </dependencySet>
+</dependencySets>
+</assembly>

Added: webservices/juddi/trunk/juddi-cxf/build.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-cxf/build.xml?rev=818178&view=auto
==============================================================================
--- webservices/juddi/trunk/juddi-cxf/build.xml (added)
+++ webservices/juddi/trunk/juddi-cxf/build.xml Wed Sep 23 17:55:36 2009
@@ -0,0 +1,24 @@
+<project name="juddi-tomcat" default="package-war" basedir=".">
+	<property file="package.properties"/>
+	<property name="lib.dir" value="${basedir}/target/tomcat/apache-tomcat-${apache.tomcat.version}/lib"/>
+	<property name="webapps.dir" value="${basedir}/target/tomcat/apache-tomcat-${apache.tomcat.version}/webapps"/>
+
+	<target name="unzip-war">
+		<mkdir dir="${basedir}/target/juddiv3war"/>
+
+		<unzip dest="${basedir}/target/juddiv3war" src="${dependency.juddiv3.war}"/>
+	</target>
+	
+	<target name="copy-resources" depends="unzip-war">
+		<copy todir="${basedir}/target/juddiv3war/WEB-INF"
+			overwrite="true">
+			<fileset dir="${basedir}/src/main/webapp/WEB-INF">
+				<include name="**/*.xml"/>
+				<include name="**/*.properties"/>
+			</fileset>	
+		</copy>	
+	</target>
+	
+	<target name="package-war" depends="copy-resources"/>
+
+</project>

Modified: webservices/juddi/trunk/juddi-cxf/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-cxf/pom.xml?rev=818178&r1=818177&r2=818178&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-cxf/pom.xml (original)
+++ webservices/juddi/trunk/juddi-cxf/pom.xml Wed Sep 23 17:55:36 2009
@@ -26,7 +26,7 @@
   <artifactId>juddi-cxf</artifactId>
   <version>3.0.0.SNAPSHOT</version>
   <name>jUDDI CXF Deployment</name>
-  <packaging>war</packaging>
+  <packaging>pom</packaging>
   <repositories>
     <!-- for jaxb-impl -->
     <repository>
@@ -72,21 +72,18 @@
       <artifactId>cglib-nodep</artifactId>
       <version>2.1_3</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.juddi</groupId>
+      <artifactId>juddiv3-war</artifactId>
+      <version>3.0.0.SNAPSHOT</version>
+      <type>war</type>
+    </dependency>
   </dependencies>
   <build>
+<!--
     <finalName>juddiv3</finalName>
+-->
     <plugins>	
-         <plugin>
-           <groupId>org.apache.maven.plugins</groupId>
-           <artifactId>maven-source-plugin</artifactId>
-           <executions>
-              <execution>
-               	  <goals> 
-  		     <goal>jar</goal>                               		
- 		  </goals>
-              </execution>
-           </executions>
-        </plugin>
         <plugin>
 	    <groupId>org.apache.maven.plugins</groupId>
 	    <artifactId>maven-antrun-plugin</artifactId>
@@ -94,9 +91,14 @@
 		<executions>
 		 <execution>
 			<id>foo</id>
-			<phase>generate-sources</phase>
+			<phase>package</phase>
 			<configuration>
 			<tasks>
+				<property name="dependency.juddiv3.war" value="${maven.dependency.org.apache.juddi.juddiv3-war.war.path}"/>
+				<ant antfile="${basedir}/build.xml">
+				  <target name="package-war"/>
+				</ant>
+
 				<copy file ="${basedir}/persistence/${persistence}-persistence.xml"
 					tofile="${basedir}/src/main/resources/META-INF/persistence.xml"
 					overwrite="true"/>
@@ -108,6 +110,25 @@
 		  </execution>
 		</executions>
       </plugin>
+	  <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+		  <artifactId>maven-assembly-plugin</artifactId>
+		  <version>2.2-beta-3</version>
+		  <executions>
+		    <execution>
+			  <id>make-assembly</id>
+			  <phase>package</phase>
+			  <goals>
+		                <goal>attached</goal>
+			  </goals>
+			  <configuration>
+			    <descriptors>
+			      <descriptor>${basedir}/assembly.xml</descriptor>
+				</descriptors>
+			  </configuration>
+			</execution>
+		 </executions>
+      </plugin>
     </plugins>
   </build>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message