Sunday, January 30, 2011

Re: Is there a way to copy all maven referenced jars to the war/WEB-INF/lib

i search the net and found http://stackoverflow.com/questions/97640/force-maven2-to-copy-dependencies-into-target-lib 

i type the below 
<project>
...
   
<profiles>
       
<profile>
           
<id>qa</id>
           
<build>
               
<plugins>
                   
<plugin>
                       
<artifactId>maven-dependency-plugin</artifactId>
                           
<executions>
                               
<execution>
                                   
<phase>install</phase>
                                   
<goals>
                                       
<goal>copy-dependencies</goal>
                                   
</goals>
                                   
<configuration>
                                       
<outputDirectory>${project.build.directory}/lib</outputDirectory>
                                   
</configuration>
                               
</execution>
                           
</executions>
                   
</plugin>
               
</plugins>
           
</build>
       
</profile>
   
</profiles>
</project>

but seems does not work, i don't know where is the mistake.
by the way, i use m2eclipse

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment