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 | 9f058a5a5193fb2b05113a092e4e83025dba05ea (patch) | |
tree | 82b4ddfa5482564471d0ddc9602493042f7d9580 /java/common | |
parent | f77c9657bb44466c5e78709d0484f6ab7e2b0522 (diff) | |
download | qpid-python-9f058a5a5193fb2b05113a092e4e83025dba05ea.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/qpid@506401 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common')
-rw-r--r-- | java/common/pom.xml | 69 |
1 files changed, 65 insertions, 4 deletions
diff --git a/java/common/pom.xml b/java/common/pom.xml index 7472b5ef7d..c8168c34bb 100644 --- a/java/common/pom.xml +++ b/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> |