• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven building ear file from war

 
Cemil Ozdemir
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can someone help me building an ear file. I am using Maven 2.x

Untill now i have been building a war file using the maven command:
maven compile war:war

I want to auto generate a application.xml file. So i add the ear plugin
to the pom.xml file.

Here is what i added to my pom.xml file:


When i run this command:
mvn ear:generate-application-xml

It complaints with this error:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Artifact[Conversion-1.0-SNAPSHOT.war:generate-application-xml:war] is not a dependency of the project.


Anyone knows what the problem migth be ?

Or has a suggestion...

I think the problem is the groupId and artifactId of the webModule.

But i am not sure what the groupId and artifactId should contain for my webapplication.

Best Regards
Cemil
[ December 07, 2006: Message edited by: Cemil OZdemir ]
 
Cemil Ozdemir
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I solved this problem by creating an additional pom file that depends on the other project i have.

If anyone is interested i can attach the files i have.

If anyone has a better solution please let me know.

Best Regards
Cemil
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cemil",

Welcome to the JavaRanch. We especially appreciate people who know Maven. Not many of us are very good at Maven.

But would you please change your display name? We try to maintain a professional environment here, so we ask that people display a "real" name, with first and last names, not something obviously fictitious. For more info, check here: http://www.javaranch.com/name.jsp

Thanks!
 
Cemil Ozdemir
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim,

Thanks for the reminder.

I changed it as you said.

Best Regards
Cemil
 
Arvind K Singal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the same requirement. Can you please attach your pom files and your directory structure.

Thanks in advance
Arvind
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic