continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Schaedler <li...@daniel.schaedler.name>
Subject Nullpointerexception when executing project containing a profile
Date Wed, 26 Jul 2006 13:36:37 GMT
Hi

Continuum (1.0.3) was working fine with my project until I introduced 
profiles in the pom.xml.
I updated the Build Definition Arguments to" -P <profilename> 
--batch-mode --non-recursive" and since then I get the following Result 
output from Continuum:
*****
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] null
[INFO] 
----------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
	at 
org.apache.maven.project.injection.DefaultProfileInjector.injectPlugins(DefaultProfileInjector.java:147)
	at 
org.apache.maven.project.injection.DefaultProfileInjector.injectBuild(DefaultProfileInjector.java:134)
	at 
org.apache.maven.project.injection.DefaultProfileInjector.inject(DefaultProfileInjector.java:80)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.injectActiveProfiles(DefaultMavenProjectBuilder.java:998)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:828)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:586)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:298)
	at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:276)
	at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:509)
	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:441)
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:345)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:276)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
*****

With the exact same parameters maven2 (2.0.4) build just fine on the 
commandline:
"mvn -P <profilename> --batch-mode --non-recursive clean package"

what could be the problem

the profile looks like:
***
<profiles>
     <profile>
       <id>aaa</id>
       <activation>
         <property>
           <name>env</name>
           <value>aaa<value>
         </property>
       </activation>
       <build>
         <filters>
           <filter>${basedir}/rsrc/env_pan.properties</filter>
         </filters>
       </build>
     </profile>
     <profile>
       <id>bbb</id>
       <activation>
         <property>
           <name>env</name>
           <value>bbb</value>
         </property>
       </activation>
       <build>
         <filters>
           <filter>${basedir}/rsrc/env_nca.properties</filter>
         </filters>
       </build>
     </profile>
   </profiles>
***

best regards
Daniel

P.S.
I get the exact same Exception when doing a release:prepare on the 
commandline - I guess there is a connection to this issue...

Mime
View raw message