Thursday, December 13, 2012

maven: HOW external resource extract from artefactory.jar

I want to extract some resource form artefactory to used in other proyect, we need 2 plugins maven-dependency-plugin to extract and maven-clean-plugin to clean proyect. call first plugin execute the goal dependency:unpack.

   
    org.apache.maven.plugins
    maven-dependency-plugin
    2.6
    
     
      
       ${project.groupId}
       com.company.artefactory
       ${project.version}
       jar
       true
       directoryInsideJar/**/*.*
       src/main/resources
      
     
     
    
   
   
    maven-clean-plugin
    2.5
    
     
      
       src/main/resources/directoryInsideJar/