Re: Problem in delpoying an external jar to the local repo

2011-11-03 Thread sanjeevkansal
Hi Wayne, I am facing some what same problem, I installed some jars in my repository and put the dependency in the pom.xml. It worked fine on my machine. But if i am copying the same directory structure( created on my machine by installing the jar files using install-file) to some other machine th

Re: Common build jobs for sub modules should not be executed in parent

2011-11-03 Thread motes motes
Thanks! On Thu, Nov 3, 2011 at 3:03 AM, Wayne Fay wrote: >> Is it possible to put a build task/plugin in the parent which is >> common for childA and childB but should not be applied to the parent? > > Sounds like you are looking for a way to MANAGE your PLUGINS, right? > > http://maven.apache.or

Re: Release plugin when POM is not in root directory

2011-11-03 Thread Mirko Friedenhagen
You could try to add -Darguments="-DpomFile= as these are those used by release:perform AFAIK. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Nov 2, 2011 7:46 PM, "Jim Cook" wrote: > I ha

Re: Common build jobs for sub modules should not be executed in parent

2011-11-03 Thread Barrie Treloar
On Thu, Nov 3, 2011 at 8:29 PM, motes motes wrote: > Thanks! Can I recommend you read the freely available books at http://maven.apache.org/articles.html You will save yourself a lot of time. - To unsubscribe, e-mail: users-unsu

NPE executing archetype:generate

2011-11-03 Thread jeromeblouin
Hi, I've created an archetype and now I'm testing it by executing the archetype:generate goal. Everything seems fine while executing it until the end, which produces this NPE: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.1:generate (default-cli) on project stan

Re: NPE executing archetype:generate

2011-11-03 Thread Anders Hammar
The error message says: "Directory my-new-portlet already exists - please run from a clean directory" Is that the problem? /Anders On Thu, Nov 3, 2011 at 14:20, jeromeblouin wrote: > Hi, > > I've created an archetype and now I'm testing it by executing the > archetype:generate goal. Everything s

Re: NPE executing archetype:generate

2011-11-03 Thread jeromeblouin
Yes, I changed the stack trace because I noticed that too. I re-run the test and I still have that NPE. The NPE has been there for long. Thanks -- View this message in context: http://maven.40175.n5.nabble.com/NPE-executing-archetype-generate-tp4961022p4961108.html Sent from the Maven - Users ma

Unpack specific folder from artifact - maven-dependency-plugin

2011-11-03 Thread motes motes
During build I would like to unpack a specific folder from a dependency to my project. The structure of the project/artifact containing the folder is: com.resources |-> root | -> subfolder | -> test.txt |-> some-other-folder |-> pom.xml and its pom:

Re: Release plugin when POM is not in root directory

2011-11-03 Thread Jim Cook
I resolved the problem when I updated to the 2.2.1 version of the plugin. By default, it looks like Maven 3 defaults to use the 2.0 version which apparently has some issues. On Thu, Nov 3, 2011 at 7:42 AM, Mirko Friedenhagen-2 [via Maven] < ml-node+s40175n496083...@n5.nabble.com> wrote: > You cou

Re: Unpack specific folder from artifact - maven-dependency-plugin

2011-11-03 Thread motes motes
changing to: ${basedir} works. But when I unpack the folder I only wants its content. I have tried: root **/root/** root/** what are the n

Re: NPE executing archetype:generate

2011-11-03 Thread Wayne Fay
> Yes, I changed the stack trace because I noticed that too. I re-run the test > and I still have that NPE. The NPE has been there for long. You are using Nabble which a lot of us dislike since it gives a messageboard look to what is actually an email list. So you think you can edit a post, but yo

Re: NPE executing archetype:generate

2011-11-03 Thread jeromeblouin
OK, here is the stack trace: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.1:generate (default-cli) on project standalone-pom: null: MojoFailureException: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
This issue has become a productivity loss nightmare for me. Debugger shows that System.err is set to: org.apache.maven.surefirereport.ConsoleOutputCapture$ForwardingPrintStream Using useFile plugin config param with value false has no effect and System.err is still redirected. What magic do I n

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
Note that I have tried this with both maven-surefire-plugin 2.9 and 2.10 and there is no difference. -- View this message in context: http://maven.40175.n5.nabble.com/maven-surefire-plugin-redirecting-System-err-and-showing-delayed-output-from-junit-tests-tp4873335p4961409.html Sent from the Mav

Re: NPE executing archetype:generate

2011-11-03 Thread Wayne Fay
> [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-archetype-plugin:2.1:generate (default-cli) > on project standalone-pom: null: MojoFailureException: NullPointerException > -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.mav

exploring maven repository

2011-11-03 Thread Ognjen Bubalo
Hello! I would like to create an application which is able to explore a user specified maven repository ( to see what is on that repo, get artifacts, poms). I think I should use the Maven API but maybe there is a maven plugin for this already. Do you have any idea how could I do this? The online

Re: NPE executing archetype:generate

2011-11-03 Thread jeromeblouin
I'd like to but I no longer have time so I'll provide all necessary data when I have time. Thanks a lot. Jerome -- View this message in context: http://maven.40175.n5.nabble.com/NPE-executing-archetype-generate-tp4961022p4961665.html Sent from the Maven - Users mailing list archive at Nabble.co

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread Kristian Rosenvold
You would have to try version 2.8.1; I will take a look at this for 2.11. Kristian to., 03.11.2011 kl. 08.38 -0700, skrev farrukh_najmi: > Note that I have tried this with both maven-surefire-plugin 2.9 and 2.10 and > there is no difference. > > -- > View this message in context: > http://mav

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread Kristian Rosenvold
System.err will always be redirected in the forked VM, there is no setting to avoid that. But the output should be piped through to the surefire-plugin and output from there instead, which should be identical (but quite obviously isn't totally the same ATM.) If you want this fixed you should proba

Re: maven-surefire-plugin redirecting System.err and showing delayed output from junit tests

2011-11-03 Thread farrukh_najmi
@Kristian, thank you for your kind help. More below... I have finally solved my immediate problem. The problem was introduced when I made a change to a spring configuration file that caused an exception during the spring context creation by spring due to the *@org.springframework.test.context.Cont

Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. NullPointerException

2011-11-03 Thread Pankaj Pai
Hi Everyone, I am receiving the below error when I try to use the maven plugin for eclipse. Could you please take a look and let me know what is that I am doing wrong. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on project chapter6: Execu

Re: mvn release is failing with git

2011-11-03 Thread Andreas Weise
Hi Erwin, Did you (or anyone else) solve the issue in the meanwhile? I am facing exactly the same behavior when doing a release:prepare. Somehow the plugin cuts the git URL at the end. Thanks in advance for your answer. Andreas -- Hello, do you think it's a bug in th

Re: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse failed. NullPointerException

2011-11-03 Thread Barrie Treloar
On Fri, Nov 4, 2011 at 7:13 AM, Pankaj Pai <84.pan...@gmail.com> wrote: > Hi Everyone, > > I am receiving the below error when I try to use the maven plugin for > eclipse. Could you please take a look and let me know what is that I am > doing wrong. [del] Are you able to boil this down into a sma

SureFire Report Plugin

2011-11-03 Thread muaazster
Guys , i am using maven 2.2.1 version recently i configured the surefire report plugin , the problem is that after generating the reports , reports doesnt contain any images , seems some of the dependencies are not there , when i run report in help mode it appears as 'surefire-report:report' doe

Re: SureFire Report Plugin

2011-11-03 Thread Barrie Treloar
On Fri, Nov 4, 2011 at 2:57 PM, muaazster wrote: > Guys , i am using maven 2.2.1 version recently i configured the surefire > report plugin , > the problem is that after generating the reports , reports doesnt contain > any images , seems some of the dependencies are not there ,   when i run > rep

Re: SureFire Report Plugin

2011-11-03 Thread muaazster
Exactly that is the issue , Barrie , Relevant CSS are missing , when i run MVN SITE relevant failsafe-report HTML is generating without any content , even true or false . other wise when i run with normal command (mvn surefire-report:report) appearing the HTML report without any CSS images .

Re: SureFire Report Plugin

2011-11-03 Thread Barrie Treloar
On Fri, Nov 4, 2011 at 3:24 PM, muaazster wrote: > Exactly that is the issue , Barrie , > > Relevant CSS are missing , when i run MVN SITE relevant failsafe-report HTML > is generating without any content , even true or false . > > other wise when i run with normal command (mvn surefire-report:re