Sorted out a way to get Maven to reference a local jar file without rendering
the pom file hosed for transitive dependencies.
This commit is contained in:
+13
-1
@@ -34,7 +34,7 @@
|
||||
<taskdef resource="proguard/ant/task.properties" classpath="${proguard}"/>
|
||||
<proguard>
|
||||
<injar path="target/getdown-${maven.version}.jar"/>
|
||||
<injar path="lib/jRegistryKey.jar" filter="!META-INF/**"/>
|
||||
<injar path="lib/jregistrykey/jregistrykey/1.0/jregistrykey-1.0..jar" filter="!META-INF/**"/>
|
||||
<injar path="${samskivert}" filter="!META-INF/**,!**/Log4JLogger*,
|
||||
!**/*.java,com/samskivert/Log.class,**/samskivert/io/**,**/samskivert/swing/**,
|
||||
**/samskivert/text/**,**/samskivert/util/**"/>
|
||||
@@ -48,6 +48,18 @@
|
||||
<keep name="com.threerings.getdown.launcher.GetdownApp">
|
||||
<method access="static" name="main"/>
|
||||
</keep>
|
||||
<keep name="com.threerings.getdown.data.Resource">
|
||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||
</keep>
|
||||
<keep name="com.threerings.getdown.net.Downloader">
|
||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||
</keep>
|
||||
<keep name="com.threerings.getdown.net.Downloader$Observer">
|
||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||
</keep>
|
||||
<keep name="com.threerings.getdown.net.HTTPDownloader">
|
||||
<constructor/><method name="*"/><field access="public" name="*"/>
|
||||
</keep>
|
||||
<keep name="com.threerings.getdown.tools.Differ">
|
||||
<method access="static" name="main"/>
|
||||
</keep>
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
-basedirectory ../
|
||||
|
||||
-injars dist/getdown.jar(!**/tools/DigesterTask*)
|
||||
-injars dist/lib/jRegistryKey.jar(!META-INF/*)
|
||||
-injars dist/lib/jregistrykey/jregistrykey/1.0/jregistrykey-1.0.jar(!META-INF/*)
|
||||
-injars dist/lib/samskivert.jar(
|
||||
com/samskivert/Log.class,**/io/**,**/swing/**,**/net/**,**/text/**,**/util/**)
|
||||
-injars dist/lib/commons-codec.jar(!META-INF/*)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>jregistrykey</groupId>
|
||||
<artifactId>jregistrykey</artifactId>
|
||||
<version>1.0</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>jregistrykey</groupId>
|
||||
<artifactId>jregistrykey</artifactId>
|
||||
<version>1.0</version>
|
||||
<versioning>
|
||||
<versions>
|
||||
<version>1.0</version>
|
||||
</versions>
|
||||
<lastUpdated>20101118155146</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
@@ -40,6 +40,13 @@
|
||||
<url>http://getdown.googlecode.com/svn/trunk/</url>
|
||||
</scm>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>lib-repo</id>
|
||||
<url>file://${basedir}/lib</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.sf.proguard</groupId>
|
||||
@@ -62,19 +69,19 @@
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jregistrykey</groupId>
|
||||
<artifactId>jregistrykey</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>compile</scope>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.7.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jregistrykey</groupId>
|
||||
<artifactId>jregistrykey</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/jRegistryKey.jar</systemPath>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
@@ -88,7 +95,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
@@ -102,7 +109,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.4.3</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
@@ -110,12 +117,12 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.6</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.7</version>
|
||||
<configuration>
|
||||
<quiet>true</quiet>
|
||||
<show>public</show>
|
||||
@@ -124,7 +131,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>package</id>
|
||||
@@ -146,7 +153,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.3.1</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
@@ -155,20 +162,15 @@
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.3.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>2.5</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
@@ -184,7 +186,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>RELEASE</version>
|
||||
<version>1.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
|
||||
Reference in New Issue
Block a user