You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "W. Sean Hennessy" <sh...@goldenhourdata.com> on 2003/09/30 22:20:21 UTC
RC1 genapp NPE?!
ant -f build-bootstrap.xml just fine from CVS today.
however genapp results using new directory are different than previous beta 9.
steps to recreate using WinXP , j2sdk1.4.1_02, ant-1.5.3.1
1. Given ${user.home}/build.properties
[snip]
# ----------------------
# build.properties
# ----------------------
prj.doc.dir.nm=1.doc
src.dir.nm=2.java.src
csci.dir.nm=3.CSCI
bin.dir.nm=4.bin
lib.dir.nm=5.lib
tst.dir.nm=6.test
sql.dir.nm=7.1.sql
conf.dir.nm=7.2.conf
web.dir.nm=8.web
xdoc.dir.nm=9.xdoc
dist.dir.nm=dist
build.dir.nm=build
# ----------------------
#maven.repo.local=
maven.junit.fork=true
# controll encoding of generated javadocs
maven.javadoc.additionalparam=-charset UTF-8
maven.src.dir=${basedir}/${src.dir.nm}
maven.conf.dir=${basedir}/${conf.dir.nm}
maven.build.dir=${basedir}/${build.dir.nm}
maven.build.src=${maven.build.dir}/${src.dir.nm}
#EOF
[snip]
2. Use Beta 9 to genapp into virgin directory.
C:\RND>mkdir Testbeta9
C:\RND>cd Testbeta9
C:\RND\Testbeta9>%MAVEN_HOME%\bin\maven -Dpackage=com.ghds.ims -X genapp
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-9-SNAPSHOT
[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
[mkdir] Created dir: C:\RND\Testbeta9\2.java.src\com\ghds\ims
[copy] Copying 1 file to C:\RND\Testbeta9\2.java.src\com\ghds\ims
[mkdir] Created dir: C:\RND\Testbeta9\6.test\com\ghds\ims
[copy] Copying 3 files to C:\RND\Testbeta9\6.test\com\ghds\ims
[copy] Copying 2 files to C:\RND\Testbeta9
[copy] Copying 1 file to C:\RND\Testbeta9\7.2.conf
BUILD SUCCESSFUL
Total time: 1 seconds
C:\RND\Testbeta9>
3. Now use RC1 to genapp into virgin directory.
C:\RND>set MAVEN_HOME=C:\Tools\maven-1.0-RC1
C:\RND>mkdir TestRC1
C:\RND>cd TestRC1
C:\RND\TestRC1>%MAVEN_HOME%\bin\maven -Dpackage=com.ghds.ims -X genapp
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
java.lang.NullPointerException
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
430)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
at org.apache.maven.cli.App.doMain(App.java:543)
at org.apache.maven.cli.App.main(App.java:1109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Total time: 0 seconds
Finished at: Tue Sep 30 12:41:57 PDT 2003
C:\RND\TestRC1>