diff options
Diffstat (limited to 'sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb')
-rw-r--r-- | sca-java-1.x/branches/sca-java-travelsample-1.0/launchers/notification-ejb/pom.xml | 30 |
1 files changed, 29 insertions, 1 deletions
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>
|