Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-11 Thread Brian Fox
mvn site runs up to the test phase, it doesn't run the package phase, so that's why you get just target/classes On Mon, Apr 11, 2011 at 1:39 AM, Lucas Persson lucas.pers...@oracle.comwrote: But when I do mvn install on the multiprojet then I will get a JAR but when doing mvn site on the

Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-10 Thread Lucas Persson
But when I do mvn install on the multiprojet then I will get a JAR but when doing mvn site on the multiproject I get target/classes. That seems to be the opposite to what you have described? /Lucas On 04/08/2011 07:52 PM, Brian Fox

maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Lucas Persson
Hi I have some issues with the maven-dependency-plugin vers 2.2 under Maven3. In one project I uses the plugin to unpack a sources artifact like this: plugin

Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Anders Hammar
I believe I've run into a similar issue at some time. However, there are a few things you should understand: 1. An reactor build is executed and for that to work, Maven *should* get artifacts from the reactor and not the repo 2. executing mvn pmd:pmd will not install any artifacts to the local

Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Lucas Persson
Thanks Anders I note I get the same issue for mvn site when the reports shall be generated. I can understand that during a reactor build artifacts shall be fetched from the build but it does not make scenes that the plugin tries to use

Re: maven-dependency-plugin uses target dir instead of artifacts from repository

2011-04-08 Thread Brian Fox
It's not a hack, the plugin asks maven core to resolve the artifacts and the objects it gets back have file handles. In reactor builds with sibling dependencies, those handles point to the sibling target folder. If you do a compile reactor build, those handles will point to the /target/classes