Archive

Posts Tagged ‘How to’

[How to] Add jar to mvn dependency without installing

October 23, 2011 Leave a comment

 <dependency>
      <groupId>groupId here</groupId>
      <artifactId>artifactId here</artifactId>
      <version>version here</version>
      <scope>system</scope>
      <systemPath>${project.basedir}/lib/my_lib-1.0-SNAPSHOT.jar</systemPath>
    </dependency>

Categories: DEV, MVN Tags: , , , , , , ,

[MVN] How do I add resources to my JAR?

October 18, 2011 Leave a comment

How do I add resources to my JAR?

${basedir}/src/main/resources directory are packaged in your JAR with the exact same structure starting at the base of the JAR.

Categories: DEV, MVN Tags: , , , , , ,

[How to] make run maven proguard plug-in on OS X

October 15, 2011 Leave a comment
...
<plugin>
<executions>
<execution>
<configuration>
<libs>
<lib>${java.home}/lib/rt.jar</lib>
</libs>
</configuration>
</execution>
</executions>
</plugin>
...

Windows platform.

...
<plugin>
<executions>
<execution>
<configuration>
<libs>
<lib>${java.home}/bundle/Classes/classes.jar</lib>
</libs>
</configuration>
</execution>
</executions>
</plugin>
...

Mac OS X platform.

Categories: DEV, MVN Tags: , , , , , , , , , ,

[How to] Revert to a previous reversion.

October 6, 2011 Leave a comment

$ svn update -r [REVERSION NUMBER] .

$ svn update -r [REVERSION NUMBER] [FILENAME]

Exactly, It’s “UPDATE to older revision”.


$ svn merge -r [REVERSION NUMBER] .

$ svn merge -r [REVERSION NUMBER] [FILENAME]

Categories: Tip Tags: , ,
Design a site like this with WordPress.com
Get started