my dog learned polymorphism
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
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven copy of application.xml" Watch "maven copy of application.xml" New topic

maven copy of application.xml

manu chaox
Ranch Hand

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

Joined: May 14, 2008
Posts: 5852

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
I agree. Here's the link:
subject: maven copy of application.xml
It's not a secret anymore!