Re: Maven phase that runs before dependency resolution

2015-03-11 Thread Manfred Moser
You can do that with a LifecycleParticipant.. the Android Maven Plugin has an example that works with the dependencies and deals with resolving transitive dependencies of AAR and APKLIB artifacts. Check it out at

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Dan
Thanks again for the help. I understand that what I'm doing is not standard, but I still have to implement. So I know if i run dependency:tree on a simple pom with no deps, I still get well over 200 artifacts downloaded. So I am also under the assumption that the majority are requirements of

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Ron Wheeler
+1 Ron On 11/03/2015 11:49 AM, Curtis Rueden wrote: Hi Dan, What I really need is a way to determine only the deps (and sub deps) for the application itself. Maven makes this really easy. As others have said, the dependency plugin has several helpful goals. If all you need is to _list_ the

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Ron Wheeler
1) Why not just let maven build you a jar with everything that is needed to run the jar? That is the normal case. Having people processing dozens of RPMs to run your code seems like a lot of work. 2) Are you using an IDE to develop? Eclipse/STS includes m2e which gives you a very clear window

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Curtis Rueden
Hi Dan, What I really need is a way to determine only the deps (and sub deps) for the application itself. Maven makes this really easy. As others have said, the dependency plugin has several helpful goals. If all you need is to _list_ the dependencies, then you already found dependency:tree.

Re: Help with warning: 'Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo'

2015-03-11 Thread Charles Chan
Hi Karl, I changed the job configuration to 'Local to Workspace' and rebuild the job -- however, the only warning in the log was the one and only: [WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo You mention in your reply to check the log file carefully for

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Manfred Moser
I recently released a first version of my Maven Repository Provisioner tool. It can download and subsequently upload all dependencies of any artifact. So you should be able to use it or at least code snippets of it to achieve what you need.

Re: What does my application actually require?

2015-03-11 Thread Francois MAROT
Hi Dan, I suggest you simply run this command: mvn dependency:copy-dependencies it will copy all dependencies of your project into ./target/dependencies (or something similar, I don't exactly remember). Then, after running mvn package, just start your program by using the wildcard to list all

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Baptiste Mathus
Could you rephrase? You think pom.xml is a dependency of the dependency:tree goal? If so, then the answer is no. Cheers 2015-03-11 6:59 GMT+01:00 Cintia Del Rio miladyarte...@gmail.com: Isn't it a dependency of the dependency plugin itself? On 11 March 2015 at 16:51, Baptiste Mathus

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Cintia Del Rio
Isn't it a dependency of the dependency plugin itself? On 11 March 2015 at 16:51, Baptiste Mathus bmat...@batmat.net wrote: Well, in that case, since you're asking for the dependency:tree I'm even surprised there's any jar downloaded. Maven would only need pom to compute that. Downloading

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Cintia Del Rio
When you invoke the dependency:tree, maven will download the dependency tree plugin and all the dependencies it needs to run that plugin. So I'd expect that every jar you now have in your local repository (~/.m2) is a dependency of the dependency:tree plugin. On 11 March 2015 at 17:02, Baptiste

Re: Help with warning: 'Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo'

2015-03-11 Thread Baptiste Mathus
[Don't talk tool loud about the Jenkins Maven Project Plugin, you're gonna draw Stephen here ;-).] IMO, this is not a Maven issue, it should be discussed on the jenkinsci lists since as you say yourself in your last mail, this does only happen in Jenkins not in CLI or in your IDE. Beware that

Re: Help with warning: 'Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo'

2015-03-11 Thread Karl Heinz Marbaise
Hi, On 3/11/15 7:00 AM, Baptiste Mathus wrote: [Don't talk tool loud about the Jenkins Maven Project Plugin, you're gonna draw Stephen here ;-).] IMO, this is not a Maven issue, it should be discussed on the jenkinsci lists since as you say yourself in your last mail, this does only happen in

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Baptiste Mathus
Oh right, I didn't get your meaning. You're right, could be that, indeed. Should check the plugin sources to be sure. 2015-03-11 7:06 GMT+01:00 Cintia Del Rio miladyarte...@gmail.com: When you invoke the dependency:tree, maven will download the dependency tree plugin and all the dependencies

Re: Help with warning: 'Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo'

2015-03-11 Thread Alexander Kriegisch
Hi Karl Heinz. I assume you are using a single local repository on your slave for all your jenkins jobs? If so change the job configuration to use a repository localy to the workspace of Jenkins... As I am facing the very same problem, I would like to know how to configure that in the

Re: Help with warning: 'Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo'

2015-03-11 Thread Karl Heinz Marbaise
Hi, On 3/11/15 11:19 AM, Alexander Kriegisch wrote: Hi Karl Heinz. I assume you are using a single local repository on your slave for all your jenkins jobs? If so change the job configuration to use a repository localy to the workspace of Jenkins... As I am facing the very same problem, I

Re: Maven phase that runs before dependency resolution

2015-03-11 Thread Karl Heinz Marbaise
Hi, On 3/10/15 5:37 PM, Karl Heinz Marbaise wrote: Hi, On 3/10/15 5:03 PM, richard_senior wrote: There is currently no phase in which you can run a plugin that is before dependency resolution. I missed a thing completely... Starting with Maven 3.0.3 there exists the possibility to use an