• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven sync and plugin

 
venkataramana raju
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure on the first question, the second question... typically no - why do you want to do this?
 
venkataramana raju
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic