Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven:- writing in manifest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven:- writing in manifest" Watch "Maven:- writing in manifest" New topic
Author

Maven:- writing in manifest

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 234
Hi all,

I have a requirement where the jar file will not go in the war but will stay rather in ear.
But that jar will be refered by the war manifest file. And that manifest will be generated automatically.So I need to mention in the default made manifest file about that entry.
Can I do that?


Thanks in Advance,
Kousik
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17168
    
  27

That sounds like a classic case of a WAR referencing a JAR full of EJBs. So yes, I think you can do that.


An IDE is no substitute for an Intelligent Developer.
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 234
So how can I do that in Maven?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17168
    
  27

Kousik Majumder wrote:So how can I do that in Maven?

I'm afraid I'll have to refer you to the documentation on the Maven EAR plugin for that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven:- writing in manifest
 
It's not a secret anymore!