How can we avoid "checking for updates" for jars we already have?

2011-08-05 Thread Trent Larson
Our Maven builds suddenly started failing a few days ago, apparently because our chosen mirror (for repo1.maven.org/maven2) is no longer accessible. Here is the output: [INFO] artifact org.springframework:spring-core: checking for updates from central [WARNING] repository metadata for: 'artifact

Re: Multimodule distribution

2011-08-05 Thread glenh
Have you tried using filesets? You can include/exclude files/directories in your assembly descriptor. -- View this message in context: http://maven.40175.n5.nabble.com/Multimodule-distribution-tp4574067p4670472.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: How can a plugin become aware of its environment (e.g. properties)?

2011-08-05 Thread Mark H. Wood
On Thu, Aug 04, 2011 at 04:05:10PM -0400, Mark H. Wood wrote: > Back to topic: I'm writing a plugin that needs access to the > project's properties. Nothing environmental is passed to a mojo, and > fishing through the Javadocs for static methods that look promising > has turned up nothing so far.

Re: Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Anders Hammar
> > I guess [1] could give you some help. You would then do this in the > > aggregator project. > > Right, which is what I think you were saying was to be discouraged. But > that page says that it is common practice. From the cited link: > > It is common practice to create an assembly using the p

Re: Maven 3 and cargo plugin

2011-08-05 Thread bluewhale
Hi Benjamin, mvn carg2:help works. I got some successful maven downloads with this command. Now I run into the next problem, where cargo tells me that it find no glassfish plugin, as im trying to deploy to a locally installed glassfish: [ERROR] No plugin found for prefix 'glassfish' in the curre

Re: Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Laird Nelson
On Fri, Aug 5, 2011 at 4:11 PM, Anders Hammar wrote: > I guess [1] could give you some help. You would then do this in the > aggregator project. > Right, which is what I think you were saying was to be discouraged. But that page says that it is common practice. From the cited link: It is comm

Re: Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Anders Hammar
I guess [1] could give you some help. You would then do this in the aggregator project. If you want it as part of the build you need to bind the plugin goal to the Maven lifecycle. Basic Maven stuff, Google or a Maven book is your friend. Then just execute "mvn deploy" and the source archive will

Re: Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Laird Nelson
On Fri, Aug 5, 2011 at 3:23 PM, Anders Hammar wrote: > > I'd like to set up a plugin declaration to use the maven-assembly-plugin > to > > put together a kind of standalone uber-distribution from the root. > > In my opinion it's much better to put this in a separate module. > I sort of see what

Re: Relation between reporting plugins and build plugins / in Maven 3?

2011-08-05 Thread ziesemer
See also: http://jira.codehaus.org/browse/MSITE-516 and http://jira.codehaus.org/browse/MSITE-523 -- View this message in context: http://maven.40175.n5.nabble.com/Relation-between-reporting-plugins-and-build-plugins-pluginManagment-in-Maven-3-tp4670353p4670622.html Sent from the Maven - Users ma

Re: Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Anders Hammar
> I'd like to set up a plugin declaration to use the maven-assembly-plugin to > put together a kind of standalone uber-distribution from the root. In my opinion it's much better to put this in a separate module. > But I > don't want this plugin--any aspect of it, at all--to be inherited by the

Re: Relation between reporting plugins and build plugins / in Maven 3?

2011-08-05 Thread ziesemer
Somewhat answered my own question. After some additional searching, I found http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Inheritance_of_reports and http://jira.codehaus.org/browse/MSITE-596 . This explains the overridden that I mentioned. What are any recommended workarounds,

Re: Maven build issue

2011-08-05 Thread javafan2011
Hmm, Looks like a good tool to release a lock but I would have loved if some config would have been available in maven -- View this message in context: http://maven.40175.n5.nabble.com/Maven-build-issue-tp4669414p4670423.html Sent from the Maven - Users mailing list archive at Nabble.com. --

xmlbeans-maven-plugin can't find javac

2011-08-05 Thread David Hoffer
When I use the default configuration for xmlbeans-maven-plugin it fails because its looking for javac in the current directory (where the pom is). If I add the configuration below then it works. How can I make this work in a portable way? C:/Program Files (x86)/Java/jdk1.6.0_26/bin/javac.ex

Relation between reporting plugins and build plugins / in Maven 3?

2011-08-05 Thread ziesemer
I have a Maven parent POM that contains org.apache.maven.plugins:maven-javadoc-plugin:2.8 under . Under build/plugins/plugin, I have org.apache.maven.plugins:maven-site-plugin:3.0 , with a configuration/reportPlugins/plugin for org.apache.maven.plugins:maven-javadoc-plugin - along with several ot

Re: Maven build issue

2011-08-05 Thread Baptiste MATHUS
By default clean plugin just deletes target. So excluding something inside is unlikely to work well. If I were you, I'd install and use a small software for Windows called unlocker. If your build fails cleaning, try to "unlock" target directory. You should see what is using the directory and you'l

Plugin stanza: inherited element? What exactly does it do?

2011-08-05 Thread Laird Nelson
I have a common-sense idea (possibly wrong) of what the plugin element's "inherited" child element does, but I was hoping for a very clear explanation. I'm sure I'm just looking in the wrong place, but I didn't see anything in the POM reference that explains what the inherited element does. I am

Re: Maven build issue

2011-08-05 Thread javafan2011
yes I am working on windows machine, but i didnt run even unit test inside this project. As someone else is working on this project. Also my project is dependent on this module but even in my unit test I am not referring to claases from this project, so how come it will keep the handle in windows f

Re: test-classes not used as classpath

2011-08-05 Thread Baptiste MATHUS
Hi, This is expected behaviour. Test-sources see main-sources, not the contrary, and it's a very good thing. Compiled test-sources logically don't get packaged inside the resulting archive (say jar, war...). If you want a resources accessible from main-sources, put them inside src/main/resources

test-classes not used as classpath

2011-08-05 Thread Michel Jung
Hi My test-classes folder is not in the classpath - neither in eclipse, nor when running the application with maven. I created a new sample app, like this: src/main/java/com/example/Main: public static void main(final String[] args) { System.out.println(Main.class.getResourceAsStream

Re: mvn release is failing with git

2011-08-05 Thread Erwin Mueller
Hi, yes, I want to work offline. But I want to automate all as much as possible, that's why I'm using the release plugin. Thank you, Erwin. - "Mark Derricutt" wrote: > It sounds like the main thing you want to do is work offline, usually > with git I favour using the following releas

Re: mvn release is failing with git

2011-08-05 Thread Erwin Mueller
Hi, I tried with repository-root-urls-local repository-proxy-local and it works ony partial. Why is the release plugin only using git push *git://localhost/~devent* rssconjava-parent-2.2? Where is the rest of the URL? In the previous invocation it is using th

Re: Maven build issue

2011-08-05 Thread Jörg Schaible
javafan2011 wrote: > I have multi module project where one project contains excel spreadsheet > and it is being dropped in the target folder when maven build the project. > Now when I do a mvn clean install, sometime maven throws an error that it > can not delete the "abc.xls" file. So I started u

Maven build issue

2011-08-05 Thread javafan2011
I have multi module project where one project contains excel spreadsheet and it is being dropped in the target folder when maven build the project. Now when I do a mvn clean install, sometime maven throws an error that it can not delete the "abc.xls" file. So I started using maven-clean-plugin and

Re: How to Convert Ant Project to MAVEN

2011-08-05 Thread Barrie Treloar
On Fri, Aug 5, 2011 at 9:17 AM, Daivish Shah wrote: > Hi, > > I have some questions for your guys. As i am starting converting projects > from ANT to MAVEN. Your questions are answered by reading the maven books, freely available at http://maven.apache.org/articles.html. Or you could purchase con

Re: mvn release is failing with git

2011-08-05 Thread Mark Derricutt
It sounds like the main thing you want to do is work offline, usually with git I favour using the following release plugin settings: false true This tells the release plugin to NOT push during the release, and to checkout from the local repository