File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes maven copy of application.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven copy of application.xml" Watch "maven copy of application.xml" New topic
Author

maven copy of application.xml

manu chaox
Ranch Hand

Joined: Apr 10, 2006
Posts: 110
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

Joined: May 14, 2008
Posts: 5823
    
    7

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.


JBoss In Action
 
Consider Paul's rocket mass heater.
 
subject: maven copy of application.xml