About goal analyze-duplicate of maven-dependency-plugin

2016-09-05 Thread Grammer
My bom-project use importing other poms in dependencyManagement section to accumulate dependency versions in one, and it seems that analyze-duplicate goal of maven-dependency-plugin is not detect duplication, if same dependency presence in importing pom and bom pom. For reproduce lets create two pr

Re: If an extension improves the version, it's not deployed

2016-09-05 Thread Benson Margulies
https://github.com/benson-basis/auto-version-example On Mon, Sep 5, 2016 at 2:09 PM, Karl Heinz Marbaise wrote: > Hi Benson, > > On 05/09/16 16:25, Benson Margulies wrote: >> >> I just discovered by experiment that that flatten-maven-plugin helps here. >> > > would you so kind to show the setup y

Re: If an extension improves the version, it's not deployed

2016-09-05 Thread Karl Heinz Marbaise
Hi Benson, On 05/09/16 16:25, Benson Margulies wrote: I just discovered by experiment that that flatten-maven-plugin helps here. would you so kind to show the setup you have used ? Might be helpful for others as well... Thanks for you testing etc. Kind regards Karl Heinz On Thu, Sep 1,

Re: Getting project classes from plugin

2016-09-05 Thread Christopher
Unfortunately, using project.getBuild().getOutputDirectory() doesn't work either. The classloader I created from that still contains other classes, like plexus, and jdk classes. Additionally, because it didn't have the dependencies, some of the annotations I need to process weren't loaded by the cl

Re: Getting project classes from plugin

2016-09-05 Thread Guillaume Boué
Hi, You should be able to get only the project compiled classes with project.getBuild().getOutputDirectory(). Internally, this is what getCompileClasspathElements does. For the test classpath, you have the similar project.getBuild().getTestOutputDirectory(). With those two folders, you can c

Re: Getting project classes from plugin

2016-09-05 Thread Francois-Xavier Bonnet
When I wrote builder-maven-plugin I had to do things with some project classes. What I did was scan the source code and then load the corresponding .class for each .java file found. Maybe you could do the same. The code is here: https://github.com/javabuild/builder-par

Re: If an extension improves the version, it's not deployed

2016-09-05 Thread Benson Margulies
I just discovered by experiment that that flatten-maven-plugin helps here. On Thu, Sep 1, 2016 at 1:35 PM, Dan Tran wrote: > I wonder if Karl's solution facing the same issue > http://blog.soebes.de/blog/2016/08/08/maven-how-to-create-a-release/ > > On Thu, Sep 1, 2016 at 9:20 AM, Benson Marguli