Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-672


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-672
    Summary: NPE when using a different effective working directory
       Type: Bug

     Status: Unassigned
   Priority: Minor

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0-beta-10
             1.0-rc1

   Assignee: 
   Reporter: Jeff French

    Created: Mon, 11 Aug 2003 11:28 PM
    Updated: Mon, 11 Aug 2003 11:28 PM
Environment: Mandrake Linux 7.2
JDK 1.4.0

Description:
I get an NPE when running Maven with the -d option to specify a
different effective working directory, but if I cd to the directory
and run the exact same command, it works. I tried with both b10 binaries and rc1stable 
from source. I blew away my plugins directory before each test.

Details
-------
When I run Maven this way:

  cd /tmp
  maven -e -X -d /tmp/work/subdir/projectA my:debug

I get:

java.lang.NullPointerException
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:416)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
        at org.apache.maven.cli.App.doMain(App.java:525)
        at org.apache.maven.cli.App.main(App.java:1088)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:543)
        at com.werken.forehead.Forehead.main(Forehead.java:573)

But this works:

  cd /tmp/work/subdir/projectA
  maven -e -X -d /tmp/work/subdir/projectA my:debug

my:debug:
    [echo] 
      basedir=/tmp/work/subdir/projectA
      maven.home=/usr/local/maven/current
      maven.build.dir=/tmp/work/subdir/projectA/target
      maven.build.dest=/tmp/work/subdir/projectA/target/classes
      maven.test.dest=/tmp/work/subdir/projectA/target/test/classes
      user.dir=/tmp/work/subdir/projectA



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to