Hi all,
I'm a Maven Newbie, so please forgive me if you find my question stupid.
In my project I use libraries such as Apache commons-collections and many
more. When I create an executable .JAR file of my project using the
org.apache.maven.plugins:maven-jar-plugin:2.2:jar
Goal, which I configured like this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>path.to.my.MainClass</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
It creates a .JAR file in the target folder containing only the source of my
project. Additionally it creates a subfolder "dependencies" containing all
dependent JARs.
What I really want is
first: the sources and the dependencies should be contained in a single JAR
second: is it possible not to include the whole dependent JARs but only
those classes within my dependencies that I really use in my code? Because
now my dependencies folder is about 11MB large, however I use only a tiny
portion of my dependencies.
Thanks a lot for any help!
--
View this message in context:
http://old.nabble.com/Creating-a-JAR-with-dependencies-tp26195103p26195103.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]