Skip to content

Instantly share code, notes, and snippets.

@owenthereal
Created July 30, 2010 02:05
Show Gist options
  • Save owenthereal/499731 to your computer and use it in GitHub Desktop.
Save owenthereal/499731 to your computer and use it in GitHub Desktop.
java -cp patch.jar ootb.jar -jar main.jar
<dependency>
<groupId>HelloWorld</groupId>
<artifactId>HelloWorldProxy</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependencies>
<dependency>
<groupId>HelloWorld</groupId>
<artifactId>HelloWorldPatch</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>HelloWorld</groupId>
<artifactId>HelloWorld</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment