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 sync and plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven sync and plugin" Watch "Maven sync and plugin" New topic
Author

Maven sync and plugin

venkataramana raju
Greenhorn

Joined: Sep 11, 2005
Posts: 28

Hi,

1) How to achive sync In MAVEN, as in ANT <sync todir="${basedir}" >...
2) Can we use same plugin twice in single pom.xml,
I mean two times "maven-resources-plugin" in same pom.xml

Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I'm not sure on the first question, the second question... typically no - why do you want to do this?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
venkataramana raju
Greenhorn

Joined: Sep 11, 2005
Posts: 28
Hi,

In my project i want to copy some folders to destination folder.

For example:

My folder structure is as shown below
src-
|
- config
- META-INF
- j2ee-apps
- main-
|
-java
-resources

I need to copy config,META-INF,j2ee-apps and some other folder from different location TO build folder.

Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Some of that should go under your resources folder (see the resources plugin docs for details), some can be copied to target locations using the assembly plugin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven sync and plugin