Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven copy of application.xml

 
manu chaox
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am new in maven and I am using
archetype: org.codehaus.mojo.archtypes ear-jee5
for creating ear. But there is something wrong because it generates only one application.xml and others in target/<project> and target/<project>/META-INF are not generated.

So I make a workaround about it with shell script.
But there must be a better solution direct from maven.
Could you help maven beginner. (I am not set anything about build target in pom.xml yet.)




Thanks lot
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one in the target/<project>/META-INF directory should appear only after you build the project. In general, the target directory is empty (or does not exist) before the build. Also, a "mvn clean" will remove the target directory. Thus everything you need to build the project should appear somewhere under src, and the stuff that gets built will appear under target.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic