diff options
| author | Robert Greig <rgreig@apache.org> | 2007-02-12 10:10:27 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-02-12 10:10:27 +0000 |
| commit | d78b09fada8a2af8c1b704021b68d53a1335daef (patch) | |
| tree | fced4222b9df893a73ae867df4e3799bd16c9869 /qpid/java/common | |
| parent | 86512fa894d576c81e0689d487338ec0e741091c (diff) | |
| download | qpid-python-d78b09fada8a2af8c1b704021b68d53a1335daef.tar.gz | |
(Path Qpid-337 submitted by Rupert Smith)
Does 1.4 retrotranslation as part of the maven build.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@506401 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common')
| -rw-r--r-- | qpid/java/common/pom.xml | 69 |
1 files changed, 65 insertions, 4 deletions
diff --git a/qpid/java/common/pom.xml b/qpid/java/common/pom.xml index 7472b5ef7d..c8168c34bb 100644 --- a/qpid/java/common/pom.xml +++ b/qpid/java/common/pom.xml @@ -64,6 +64,61 @@ </execution> </executions> </plugin> + + <!-- Backports the module to Java 1.4. This is done during the packaging phase as a transformation of the Jar. --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>retrotranslator-maven-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>translate</goal> + </goals> + <configuration> + <destjar>${project.build.directory}/${project.build.finalName}-java1.4.jar</destjar> + <verify>${retrotranslator.verify}</verify> + <verifyClasspath> + <element>${retrotranslator.1.4-rt-path}</element> + <element>${retrotranslator.1.4-jce-path}</element> + <element>${retrotranslator.1.4-jsse-path}</element> + </verifyClasspath> + <includes> + <include> + <directory>${project.build.directory}</directory> + <pattern>${project.build.finalName}.jar</pattern> + </include> + </includes> + </configuration> + </execution> + + </executions> + </plugin> + + <!-- This identifies the backported java 1.4 jar and attaches it as a jar (classified as java1.4) build artifact. --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${project.build.directory}/${project.build.finalName}-java1.4.jar</file> + <type>jar</type> + <classifier>java1.4</classifier> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> + </plugins> </build> @@ -74,12 +129,11 @@ <artifactId>log4j</artifactId> </dependency> - -<!-- This is a mina dependency but it isn't being picked up--> - <dependency> + <!-- This is a mina dependency but it isn't being picked up--> + <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> - </dependency> + </dependency> <dependency> <groupId>org.apache.mina</groupId> @@ -102,5 +156,12 @@ <scope>test</scope> </dependency> + <!-- This needs to be included at compile time, for the retrotranslator verification to find it. --> + <dependency> + <groupId>net.sf.retrotranslator</groupId> + <artifactId>retrotranslator-runtime</artifactId> + <scope>provided</scope> + </dependency> + </dependencies> </project> |
