Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 56572 invoked from network); 27 Jul 2006 06:13:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2006 06:13:00 -0000 Received: (qmail 81684 invoked by uid 500); 27 Jul 2006 06:13:00 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 81472 invoked by uid 500); 27 Jul 2006 06:12:59 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 81461 invoked by uid 99); 27 Jul 2006 06:12:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 23:12:58 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=RCVD_IN_WHOIS_BOGONS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [194.126.144.2] (HELO netcetera.ch) (194.126.144.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 23:12:57 -0700 Received: from [172.17.0.18] (gypsy [172.17.0.18]) by fusion.netcetera.ch (8.11.7p1+Sun/8.7.3) with ESMTP id k6R6CS709651 for ; Thu, 27 Jul 2006 08:12:35 +0200 (MEST) Message-ID: <44C8594D.6010602@daniel.schaedler.name> Date: Thu, 27 Jul 2006 08:12:29 +0200 From: Daniel Schaedler Organization: netcetera User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: continuum-users@maven.apache.org Subject: Re: Nullpointerexception when executing project containing a profile References: <44C76FE5.7010906@daniel.schaedler.name> <4479b0f70607261406o6c0f5e08q4dbe74867a4e4af@mail.gmail.com> In-Reply-To: <4479b0f70607261406o6c0f5e08q4dbe74867a4e4af@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi John thanks for the reply John Casey wrote: > I've looked around in the current SVN for Maven (this chunk of code hasn't > changed much, I don't think), and I'm not seeing any way that your NPE > could > arise. > > Can you tell me which Maven version your instance of Continuum is using? > That way, I can checkout the code from that release, and see whether I can > replicate the problem. You mentioned that this problem doesn't occur when > you build using Maven 2.0.4 from the command line...are you certain that > Continuum is using this version? All I can see is, that Continuum uses maven_XXX-2.0.4.jars (found in .../continuum-1.0.3/apps/continuum/lib/ ) I installed Continuum (1.0.3) again today -> same result (just to be sure that nothing has changed since March). Daniel > Thanks, > > -john > > On 7/26/06, Daniel Schaedler wrote: >> >> 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 >> --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 --batch-mode --non-recursive clean package" >> >> what could be the problem >> >> the profile looks like: >> *** >> >> >> aaa >> >> >> env >> aaa >> >> >> >> >> ${basedir}/rsrc/env_pan.properties >> >> >> >> >> bbb >> >> >> env >> bbb >> >> >> >> >> ${basedir}/rsrc/env_nca.properties >> >> >> >> >> *** >> >> 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... >> >