Re: Plugin insantiation: once per execution? Once per build?

2011-09-08 Thread Baptiste MATHUS
Hi, I suppose that you ask that.because you're writing a mojo yourself. I don't know the answer but it seems to me it would quite simple to check it by code: just add a log in your constructor and see if displays once or many times. By the way, also think abt thread-safing your code to prevent

Re: -gs does not apply to the forked maven execution in release:prepare

2011-09-08 Thread Baptiste MATHUS
Hi, I don't know if it was the original motivation, but at least this gives us kind of a feature. Releasing is a particular milestone in a project lifecycle. So having to think twice abt it is not totally bad imo. For example, passing -DskipTests during a release would be plain nonsense to me.

Re: Site plugin in maven 3.

2011-09-08 Thread Lukas Theussl
Hi, See comments in-line... Michael Haefele wrote: The question on using site with aggregated projects got me to trying out the maven 3 version of the site plugin.. Thought I'd post a little list of the steps required and a report card. My use case is I want to generate a site in some

Unable to load the mojo

2011-09-08 Thread MikeOliverAZ
I am using Maven on a Spring Roo generated project and have pushed in all the aspects and am adding some new behaviors that have new dependencies centered on the Spring Portlet MVC Framework. I am using Eclipse with maven-2.2.1 on mvn package I am getting the following. [ERROR] BUILD ERROR

Problem in context loading

2011-09-08 Thread anamika gupta
Hi, I am building my applications using maven, but a strange thing happens. In one of my java class , i have the code app = new Application(); String[] paths = {applicationContext.xml}; appContext = new ClassPathXmlApplicationContext(paths); So, as per my knowledge, it should search for

Resources tag info required

2011-09-08 Thread anamika gupta
if i put resources tag in my pom.xml, then it includes only those files and folders which i described in the resources tag and leave all the files and folders which are in the src/main/resources folders. Can you please tell me the reason. Any help is greatly appreciated. -- View this message in

Re: Problem in context loading

2011-09-08 Thread Jörg Schaible
Hi Anamika, anamika gupta wrote: Hi, I am building my applications using maven, but a strange thing happens. In one of my java class , i have the code app = new Application(); String[] paths = {applicationContext.xml}; appContext = new ClassPathXmlApplicationContext(paths); So,

Re: Resources tag info required

2011-09-08 Thread Daniele De Francesco
Hi, I've found this behaviour too, quite obviously I resolved by specifing /src/main/resources into resource tag, on the other hand this behaviour it's comprehensible, if you want specify another resource path generally it's because you don't want/need the default path which has to be a priori

Re: Resources tag info required

2011-09-08 Thread Jörg Schaible
Hi Anamika, anamika gupta wrote: if i put resources tag in my pom.xml, then it includes only those files and folders which i described in the resources tag and leave all the files and folders which are in the src/main/resources folders. Can you please tell me the reason. Any help is

Re: Problem in context loading

2011-09-08 Thread Daniele De Francesco
Hi, this sounds a little bit OT but you can try this: app = new Application(); String[] paths = {*classpath:*applicationContext.xml}; appContext = new ClassPathXmlApplicationContext(paths); however, this is a webapp I assume...you don't have to go through this code with Spring in a webapp...

Re: Resources tag info required

2011-09-08 Thread anamika gupta
Can you please tell me which tag is that *(for default folder inclusion, which in turn exists )* -- View this message in context: http://maven.40175.n5.nabble.com/Resources-tag-info-required-tp4781659p4781860.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Resources tag info required

2011-09-08 Thread Daniele De Francesco
otherwise Maven dudes would have to contemplate some boolean tag for default folder inclusion, which in turn exists (and it's really useful) for the files in a resource folder. can u read the comma beetwen default folder inclusion and which in turn exists ? The only thing that you can do ,

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Thomas Chang
Hi, How do you mean Move the dependency there? I run the mvn -X and get followings: ... [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time:

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Thomas Chang
Hi, You are right. After I move the dependency into the plugin section, it works. Many thanks! Thomas --- Wayne Fay wayne...@gmail.com schrieb am Mi, 7.9.2011: Von: Wayne Fay wayne...@gmail.com Betreff: Re: Get java.lang.NoClassDefFoundError though the class is in the classpath An: Maven

Re: Plugin insantiation: once per execution? Once per build?

2011-09-08 Thread Laird Nelson
On Thu, Sep 8, 2011 at 2:27 AM, Baptiste MATHUS m...@batmat.net wrote: Hi, I suppose that you ask that.because you're writing a mojo yourself. I don't know the answer but it seems to me it would quite simple to check it by code: just add a log in your constructor and see if displays once or

Re: Site plugin in maven 3.

2011-09-08 Thread Michael Haefele
Third time trying to send this... I keep getting spam blocked. Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The

Re: Site plugin in maven 3.

2011-09-08 Thread Lukas Theussl
Michael Haefele wrote: Third time trying to send this... I keep getting spam blocked. Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about

Re: Site plugin in maven 3.

2011-09-08 Thread Michael Haefele
Ah! http://jira.codehaus.org/**browse/MSITE-600http://jira.codehaus.org/browse/MSITE-600 http://maven.apache.org/**plugins/maven-site-plugin/faq.**html#Use_of_urlhttp://maven.apache.org/plugins/maven-site-plugin/faq.html#Use_of_url http://maven.apache.org/**plugins/maven-site-plugin/faq.**

Trouble getting antrun plugin to run

2011-09-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3. I have the below in the buildplugins section of my pom. However, when I run mvn clean deploy the echo message is never printed out. Does anyone know why my antrun plugin isn't running? plugin

Re: Forbiden? http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar

2011-09-08 Thread Brian Fox
Maybe you're behind a firewall that hasn't adjusted to the new ips? http://www.sonatype.com/people/2011/07/the-central-repository-is-getting-faster-are-you-ready-for-the-new-ips/ On Wed, Aug 31, 2011 at 5:49 PM, Jason Pyeron jpye...@pdinc.us wrote: Not sure if this is the right place to ask,

Re: Trouble getting antrun plugin to run

2011-09-08 Thread Guillaume Polet
I think you need to attach it to a phase: execution phasepackage/phase !-- for example here package-- ... /execution Cheers, Guillaume Le 8/09/2011 19:01, laredotornado-3 a écrit : Hi, I'm using Maven 3.0.3. I have the below in thebuildplugins

RE: [maven] Re: Forbiden? http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar

2011-09-08 Thread Jason Pyeron
-Original Message- From: Brian Fox [mailto:bri...@infinity.nu] Sent: Thursday, September 08, 2011 13:04 To: Maven Users List Subject: [maven] Re: Forbiden? http://repo1.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar Maybe you're behind a firewall that hasn't adjusted

Re: Site plugin in maven 3.

2011-09-08 Thread Michael Haefele
One more followup. It does look like the source of at least some of my problems was the projecturl tag. We had a few poms that had been cut/pasted and had identical url's. Once I commented all of those out, everything looks like it is in the right place and it looks like all the links work so

Re: Get java.lang.NoClassDefFoundError though the class is in the classpath

2011-09-08 Thread Wayne Fay
You are right. After I move the dependency into the plugin section, it works. For future use, the -X is a parameter that turns on debug mode. So instead of mvn compile you run mvn -X compile. The error message you got said basically you didn't tell me what to do with this project so I will quit

Re: Resources tag info required

2011-09-08 Thread Wayne Fay
Can you please tell me which tag is that *(for default folder inclusion, which in turn exists )* This tag/feature does not currently exist. I think Daniele was theorizing about a possible future feature to handle such a need. Until then, simply add the folder directly as a resource along with