summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-travelsample-1.0
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-29 20:27:51 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-05-29 20:27:51 +0000
commit9a3408f7df9d48acb2f6c49bbd62ef7373f2c547 (patch)
tree49edabd959290b655913ce7613b6a9b71ac1d3a2 /sca-java-1.x/branches/sca-java-travelsample-1.0
parente5a49fff24c79431782da107185431b7835ef492 (diff)
Remove openejb-runtime dependency from notification-ejb launcher when using the default profile, and clean up profile handling in the travel sample poms (TUSCANY-3578)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@949438 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0')
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/binaries/bundle/pom.xml120
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/clients/pom.xml21
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/pom.xml131
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/domainconfig/pom.xml17
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml30
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/pom.xml85
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/services/pom.xml23
-rw-r--r--sca-java-1.x/branches/sca-java-travelsample-1.0/util/pom.xml18
8 files changed, 197 insertions, 248 deletions
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/binaries/bundle/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/binaries/bundle/pom.xml
index 73f28bdab6..56f1f6ca0f 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/binaries/bundle/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/binaries/bundle/pom.xml
@@ -570,6 +570,29 @@
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <!-- The default profile produces a subset distribution which excludes
+ libraries that are present in the Tuscany SCA binary distro. -->
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <config-file>bin.xml</config-file>
+ </properties>
+ </profile>
+
+ <profile>
+ <!-- Use mvn -Pselfcontained to produce a self-contained distribution
+ with all library dependencies included. -->
+ <id>selfcontained</id>
+ <properties>
+ <config-file>bin-selfcontained.xml</config-file>
+ </properties>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<plugin>
@@ -588,80 +611,31 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distribution-package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <descriptors>
+ <descriptor>../src/main/assembly/${config-file}</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ <archiveBaseDirectory>..</archiveBaseDirectory>
+ <outputDirectory>../target</outputDirectory>
+ <finalName>.</finalName>
+ <appendAssemblyId>true</appendAssemblyId>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
- <profiles>
- <profile>
- <!-- The default profile produces a subset binaries package which excludes
- libraries that are present in the Tuscany SCA binary distro. -->
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>distribution-package</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>../src/main/assembly/bin.xml</descriptor>
- </descriptors>
- <tarLongFileMode>gnu</tarLongFileMode>
- <archiveBaseDirectory>..</archiveBaseDirectory>
- <outputDirectory>../target</outputDirectory>
- <finalName>.</finalName>
- <appendAssemblyId>true</appendAssemblyId>
- <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
- <profile>
- <!-- Use mvn -Pselfcontained to produce a self-contained binaries package
- with all library dependencies included. -->
- <id>selfcontained</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <executions>
- <execution>
- <id>distribution-package</id>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- <configuration>
- <descriptors>
- <descriptor>../src/main/assembly/bin-selfcontained.xml</descriptor>
- </descriptors>
- <tarLongFileMode>gnu</tarLongFileMode>
- <archiveBaseDirectory>..</archiveBaseDirectory>
- <outputDirectory>../target</outputDirectory>
- <finalName>.</finalName>
- <appendAssemblyId>true</appendAssemblyId>
- <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/clients/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/clients/pom.xml
index 4b6e990196..ffc4a72ec0 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/clients/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/clients/pom.xml
@@ -29,20 +29,11 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours non-SCA Clients</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>currency-converter-corba</module>
- <module>currency-converter-jms</module>
- <module>currency-converter-rmi</module>
- <module>currency-converter-ws-jaxws</module>
- </modules>
- </profile>
-
- </profiles>
+ <modules>
+ <module>currency-converter-corba</module>
+ <module>currency-converter-jms</module>
+ <module>currency-converter-rmi</module>
+ <module>currency-converter-ws-jaxws</module>
+ </modules>
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/pom.xml
index 3471f56b3f..1c553ff2d2 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/contributions/pom.xml
@@ -29,75 +29,66 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours Contributions</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>blog-feed</module>
- <module>buildingblocks</module>
- <module>buildingblocks-client</module>
- <module>calendar</module>
- <module>car</module>
- <module>common</module>
- <module>creditcard-payment-jaxb</module>
- <module>creditcard-payment-jaxb-policy</module>
- <module>creditcard-payment-sdo</module>
- <module>creditcard-payment-webapp</module>
- <module>currency</module>
- <module>currency-corba</module>
- <module>currency-jms</module>
- <module>currency-jsp</module>
- <module>currency-rmi</module>
- <module>currency-servlet</module>
- <module>currency-ws</module>
- <module>databinding-client</module>
- <module>emailgateway</module>
- <module>feed-logger</module>
- <module>flight</module>
- <module>fullapp-ui</module>
- <module>fullapp-coordination</module>
- <module>fullapp-currency</module>
- <module>fullapp-packagedtrip</module>
- <module>fullapp-bespoketrip</module>
- <module>fullapp-shoppingcart</module>
- <module>help-pages</module>
- <module>hotel</module>
- <module>interaction-client</module>
- <module>interaction-service-remote</module>
- <module>introducing-client</module>
- <module>introducing-tours</module>
- <module>introducing-trips</module>
- <module>notification</module>
- <module>notification-ws</module>
- <module>notification-corba</module>
- <module>notification-ejb</module>
- <module>notification-jms</module>
- <module>notification-rmi</module>
- <module>shoppingcart</module>
- <module>travelcatalog</module>
- <module>tripbooking</module>
- <module>trip</module>
- <module>scatours</module>
- <module>payment-java</module>
- <module>payment-java-callback</module>
- <module>payment-java-policy</module>
- <module>payment-java-reference-pass</module>
- <module>payment-spring</module>
- <module>payment-spring-policy</module>
- <module>payment-spring-scatag</module>
- <module>payment-bpel-process</module>
- <module>payment-bpel</module>
- <module>payment-groovy</module>
- <module>payment-python</module>
- <module>policy-client</module>
- <module>trip-policy</module>
- <module>usingsca</module>
- </modules>
- </profile>
-
- </profiles>
+ <modules>
+ <module>blog-feed</module>
+ <module>buildingblocks</module>
+ <module>buildingblocks-client</module>
+ <module>calendar</module>
+ <module>car</module>
+ <module>common</module>
+ <module>creditcard-payment-jaxb</module>
+ <module>creditcard-payment-jaxb-policy</module>
+ <module>creditcard-payment-sdo</module>
+ <module>creditcard-payment-webapp</module>
+ <module>currency</module>
+ <module>currency-corba</module>
+ <module>currency-jms</module>
+ <module>currency-jsp</module>
+ <module>currency-rmi</module>
+ <module>currency-servlet</module>
+ <module>currency-ws</module>
+ <module>databinding-client</module>
+ <module>emailgateway</module>
+ <module>feed-logger</module>
+ <module>flight</module>
+ <module>fullapp-ui</module>
+ <module>fullapp-coordination</module>
+ <module>fullapp-currency</module>
+ <module>fullapp-packagedtrip</module>
+ <module>fullapp-bespoketrip</module>
+ <module>fullapp-shoppingcart</module>
+ <module>help-pages</module>
+ <module>hotel</module>
+ <module>interaction-client</module>
+ <module>interaction-service-remote</module>
+ <module>introducing-client</module>
+ <module>introducing-tours</module>
+ <module>introducing-trips</module>
+ <module>notification</module>
+ <module>notification-ws</module>
+ <module>notification-corba</module>
+ <module>notification-ejb</module>
+ <module>notification-jms</module>
+ <module>notification-rmi</module>
+ <module>shoppingcart</module>
+ <module>travelcatalog</module>
+ <module>tripbooking</module>
+ <module>trip</module>
+ <module>scatours</module>
+ <module>payment-java</module>
+ <module>payment-java-callback</module>
+ <module>payment-java-policy</module>
+ <module>payment-java-reference-pass</module>
+ <module>payment-spring</module>
+ <module>payment-spring-policy</module>
+ <module>payment-spring-scatag</module>
+ <module>payment-bpel-process</module>
+ <module>payment-bpel</module>
+ <module>payment-groovy</module>
+ <module>payment-python</module>
+ <module>policy-client</module>
+ <module>trip-policy</module>
+ <module>usingsca</module>
+ </modules>
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/domainconfig/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/domainconfig/pom.xml
index 48dba23351..029f6602ea 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/domainconfig/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/domainconfig/pom.xml
@@ -29,18 +29,9 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours Domain Configurations</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>fullapp</module>
- <module>introducing</module>
- </modules>
- </profile>
-
- </profiles>
+ <modules>
+ <module>fullapp</module>
+ <module>introducing</module>
+ </modules>
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml
index a70f7b2556..c1ce939e10 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml
@@ -72,6 +72,34 @@
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <!-- The default profile produces a subset distribution which excludes
+ libraries that are present in the Tuscany SCA binary distro. -->
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <!-- Avoid adding OpenEJB jars because they include the wrong level of JAXB API.
+ The runtime ant script adds OpenEJB jars at the right place in the classpath. -->
+ <openejb-runtime/>
+ </properties>
+ </profile>
+
+ <profile>
+ <!-- Use mvn -Pselfcontained to produce a self-contained distribution
+ with all library dependencies included. -->
+ <id>selfcontained</id>
+ <properties>
+ <!-- Include the OpenEJB jars because there's no ant script to provide them.
+ We get the correct level of JAXB API because the ../lib jars take priority. -->
+ <openejb-runtime>../util/scatours-util-openejb-runtime.jar</openejb-runtime>
+ </properties>
+ </profile>
+ </profiles>
+
+
<build>
<finalName>${artifactId}</finalName>
<plugins>
@@ -82,7 +110,7 @@
<configuration>
<archive>
<manifestEntries>
- <Class-Path>../util/scatours-util-launcher-common.jar ../util/scatours-util-openejb-runtime.jar</Class-Path>
+ <Class-Path>../util/scatours-util-launcher-common.jar ${openejb-runtime}</Class-Path>
</manifestEntries>
<manifest>
<addClasspath>${scatours.selfContained}</addClasspath>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/pom.xml
index 8df7db17cc..1e4e23c717 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/pom.xml
@@ -29,52 +29,43 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours Launchers</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>blog-feed</module>
- <module>buildingblocks</module>
- <module>currency-converter</module>
- <module>currency-converter-corba</module>
- <module>currency-converter-jms</module>
- <module>currency-converter-rmi</module>
- <module>currency-converter-ws</module>
- <module>databinding</module>
- <module>feed-logger</module>
- <module>interaction</module>
- <module>introducing</module>
- <module>introducing-client</module>
- <module>introducing-domain</module>
- <module>introducing-tours</module>
- <module>introducing-trips</module>
- <module>jumpstart</module>
- <module>fullapp</module>
- <module>fullapp-domain</module>
- <module>fullapp-nodes</module>
- <module>help-pages</module>
- <module>notification-ws</module>
- <module>notification-corba</module>
- <module>notification-ejb</module>
- <module>notification-jms</module>
- <module>notification-rmi</module>
- <module>payment-java</module>
- <module>payment-java-callback</module>
- <module>payment-java-policy</module>
- <module>payment-java-reference-pass</module>
- <module>payment-spring</module>
- <module>payment-spring-scatag</module>
- <module>payment-bpel</module>
- <module>payment-groovy</module>
- <module>payment-python</module>
- <module>policy</module>
- <module>usingsca</module>
- </modules>
- </profile>
-
- </profiles>
+ <modules>
+ <module>blog-feed</module>
+ <module>buildingblocks</module>
+ <module>currency-converter</module>
+ <module>currency-converter-corba</module>
+ <module>currency-converter-jms</module>
+ <module>currency-converter-rmi</module>
+ <module>currency-converter-ws</module>
+ <module>databinding</module>
+ <module>feed-logger</module>
+ <module>interaction</module>
+ <module>introducing</module>
+ <module>introducing-client</module>
+ <module>introducing-domain</module>
+ <module>introducing-tours</module>
+ <module>introducing-trips</module>
+ <module>jumpstart</module>
+ <module>fullapp</module>
+ <module>fullapp-domain</module>
+ <module>fullapp-nodes</module>
+ <module>help-pages</module>
+ <module>notification-ws</module>
+ <module>notification-corba</module>
+ <module>notification-ejb</module>
+ <module>notification-jms</module>
+ <module>notification-rmi</module>
+ <module>payment-java</module>
+ <module>payment-java-callback</module>
+ <module>payment-java-policy</module>
+ <module>payment-java-reference-pass</module>
+ <module>payment-spring</module>
+ <module>payment-spring-scatag</module>
+ <module>payment-bpel</module>
+ <module>payment-groovy</module>
+ <module>payment-python</module>
+ <module>policy</module>
+ <module>usingsca</module>
+ </modules>
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/services/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/services/pom.xml
index 99df6669d1..8d711972d3 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/services/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/services/pom.xml
@@ -29,21 +29,12 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours non-SCA Services</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>smsgateway-jaxws</module>
- <module>smsgateway-corba</module>
- <module>smsgateway-ejb</module>
- <module>smsgateway-jms</module>
- <module>smsgateway-rmi</module>
- </modules>
- </profile>
-
- </profiles>
+ <modules>
+ <module>smsgateway-jaxws</module>
+ <module>smsgateway-corba</module>
+ <module>smsgateway-ejb</module>
+ <module>smsgateway-jms</module>
+ <module>smsgateway-rmi</module>
+ </modules>
</project>
diff --git a/sca-java-1.x/branches/sca-java-travelsample-1.0/util/pom.xml b/sca-java-1.x/branches/sca-java-travelsample-1.0/util/pom.xml
index 36bdb3961f..6a6e3ca13f 100644
--- a/sca-java-1.x/branches/sca-java-travelsample-1.0/util/pom.xml
+++ b/sca-java-1.x/branches/sca-java-travelsample-1.0/util/pom.xml
@@ -29,18 +29,10 @@
<packaging>pom</packaging>
<name>Apache Tuscany SCA Tours Utilities</name>
- <profiles>
- <profile>
- <id>default</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <modules>
- <module>jaxws-runtime</module>
- <module>launcher-common</module>
- <module>openejb-runtime</module>
- </modules>
- </profile>
- </profiles>
+ <modules>
+ <module>jaxws-runtime</module>
+ <module>launcher-common</module>
+ <module>openejb-runtime</module>
+ </modules>
</project>