aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes maven-jar-plugin doesn't add Class-Path with archiver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven-jar-plugin doesn Watch "maven-jar-plugin doesn New topic
Author

maven-jar-plugin doesn't add Class-Path with archiver

Sverre Moe
Ranch Hand

Joined: Jul 10, 2007
Posts: 110
I am using maven-jar-plugin and maven archiver to specify manifest entries.
However it will not add neither classpath nor implementation entries.


In order for the jar file to have Class-Path within its manifest file I had to override it. Would hate to do the same with implementation entries.Seems waste to add extra configuration when archiver could do it.


Edit: The problem with the missing classpath has to do with the fact that I am using system scope dependencies.
When it comes to adding default implementation entries. This doesn't work , but this does .
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

I'm confused, did you still have a question?


JBoss In Action
Sverre Moe
Ranch Hand

Joined: Jul 10, 2007
Posts: 110
Peter Johnson wrote:I'm confused, did you still have a question?


Not any more. I provided an edit section explaining what I found out.

Also, I click the Resolved button. I was not aware of it before now.
 
wood burning stoves
 
subject: maven-jar-plugin doesn't add Class-Path with archiver
 
Similar Threads
Problems in making an executable jar file thru Maven
Creating manifest.mf file with class-path entry without version info. (am using mvn jar:jar)
Is there a tool to get source file list?
Why the failure to download a plugin? And why is it looking for a beta?
Maven jar plugin: Include 3rdparty packages