You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sharma, Jaikumar" <ja...@barco.com> on 2006/08/30 07:06:09 UTC

RE: NullPointerException in maven-eclipse-plugin while executing "mak e-artifacts" goal

Thanks Stephane,
I installed eclipse in a fresh way (only SDK -- no other plugins in IDE),
and run "make-artifacts" and it installed all the required artifacts in
local repository.

I am still not sure why JBoss IDE artifact caused NPE.

Thanks again for your help!

Regards,

-----Original Message-----
From: Sharma, Jaikumar [mailto:jaikumar.sharma@gmail.com] 
Sent: Monday, August 28, 2006 9:37 PM
To: 'Maven Users List'
Subject: RE: NullPointerException in maven-eclipse-plugin while executing
"mak e-artifacts" goal


Thanks Stephane. Yes, I have installed JBoss.
Fine, I would install the eclipse in a fresh way and then I would try.

Thanks again for your findings.

Regards, Jaikumar

-----Original Message-----
From: Stéphane Bouchet [mailto:stephane.bouchet@knowesia.fr] 
Sent: Monday, August 28, 2006 9:29 PM
To: Maven Users List
Subject: Re: NullPointerException in maven-eclipse-plugin while executing
"mak e-artifacts" goal

Sharma, Jaikumar a écrit :
> Thanks Stephane, Please see below.
>
>
> -----Original Message-----
> From: Stéphane Bouchet [mailto:stephane.bouchet@knowesia.fr]
> Sent: Monday, August 28, 2006 6:33 PM
> To: Maven Users List
> Subject: Re: NullPointerException in maven-eclipse-plugin while executing
> "mak e-artifacts" goal
>
> Hi,
>
> this new functionnality is still under dev.
>
> It seems you have installed a plugin (org.jbpm.core ) taht is not
> delivered with the basic eclipse install. the maven plugin tries to 
> create for each eclipse plugin an artifact and install it in our repo.
>
> So there is an error with that particular eclipse plugin....
>
> Do you need this plugin into your App ? if not, try to remove it, then
> try again .
>
> [Sharma, Jaikumar]
> I did not install (org.jbpm.core) into my repository and it does not exist
> in local repository. When I run the "mvn make-artifacts", then a lot of
> plugins from local eclipse installation gets processed and installed into
> local repository based on plugin manifest.
>
> I am not sure, what is the reason, it gets stuck on this plugin, while 
> processing and gives NullPointerException.
>   

That is what i am saying.

You have installed JBOSS IDE and not just Eclipse IDE, and tha 
org.jbpm.core plugin for eclipse gives you the NPE.

i don't know either the reason why it gave you this.

the solution i gave you is that you could install a fresh Eclipse in 
another directory, run "mvn make-artifacts" into, and see if you could 
use the installed artifact with your app and maven..

The make-artifacts goals need to be call just the first time, after 
that, you will have all the necessary artifact in your repo.

Stéphane


>
> Jaikumar
>
>
> Stéphane
>
>
> Sharma, Jaikumar a écrit :
>   
>> Dear Maven users,
>>  
>> Did someone tried maven-eclipse-plugin : version 2.3-SNAPSHOT to 
>> build eclipse plugins ? When I run "mvn clean make-artifacts" it is 
>> coming out with NullPointeException as appended at the end of the 
>> mail.
>>  
>> Plugin configuration in my pom.xml is :
>>  
>> <plugin>
>>
>>           <groupId>org.apache.maven.plugins</groupId>
>>           <artifactId>maven-eclipse-plugin</artifactId>
>>           <version>2.3-SNAPSHOT</version>
>>           
>>            <configuration>                        
>>                <eclipseDir>${ECLIPSE_HOME}</eclipseDir>
>>  
>> <buildOutputDirectory>${basedir}/target</buildOutputDirectory>
>>                <!-- <downloadSources>true</downloadSources> -->
>>                <eclipseProjectDir>${basedir}</eclipseProjectDir> 
>>                <manifest>plugin.xml</manifest>                 
>>                <pde>true</pde>          
>>                
>>                <executions>
>>                  <execution>
>>                     <goals>
>>                        <goal>make-artifacts</goal>                    
>>                     </goals>                     
>>                  </execution>             
>>                </executions>                    
>>           </configuration>
>>                                
>> </plugin>   
>>  
>> Does some has any idea or pointers on this or I am doing something 
>> wrong
?
>>  
>> Thanks for your help!
>>  
>>
>> [INFO] Processing file 
>> C:\Lang\eclipse\plugins\org.eclipse.xsd.edit_2.1.0.jar
>> [WARNING] Missing version for artifact org.eclipse.core.runtime, 
>> skipping [WARNING] Missing version for artifact org.eclipse.emf.edit, 
>> skipping [WARNING] Missing version for artifact org.eclipse.xsd, 
>> skipping [INFO] Installing C:\DOCUME~1\JKS\LOCALS~1\Temp\pom36712.xml 
>> to
>>
>>     
>
C:\Lang\maven-2.0.4\Repository\org\eclipse\org.eclipse.xsd.edit\2.1.0\org.ec
>   
>> lipse.xsd.edit-2.1.0.pom
>> [INFO] Installing 
>> C:\Lang\eclipse\plugins\org.eclipse.xsd.edit_2.1.0.jar
>>     
> to
>   
>
C:\Lang\maven-2.0.4\Repository\org\eclipse\org.eclipse.xsd.edit\2.1.0\org.ec
>   
>> lipse.xsd.edit-2.1.0.jar
>> [INFO] Processing file 
>> C:\Lang\eclipse\plugins\org.eclipse.xsd_2.1.1.jar
>> [WARNING] Missing version for artifact org.eclipse.core.runtime, skipping
>> [WARNING] Missing version for artifact org.eclipse.emf.ecore, skipping
>> [INFO] Installing C:\DOCUME~1\JKS\LOCALS~1\Temp\pom36713.xml to
>>
>>     
>
C:\Lang\maven-2.0.4\Repository\org\eclipse\org.eclipse.xsd\2.1.1\org.eclipse
>   
>> .xsd-2.1.1.pom
>> [INFO] Installing C:\Lang\eclipse\plugins\org.eclipse.xsd_2.1.1.jar 
>> to
>>
>>     
>
C:\Lang\maven-2.0.4\Repository\org\eclipse\org.eclipse.xsd\2.1.1\org.eclipse
>   
>> .xsd-2.1.1.jar
>> [INFO] Processing file 
>> C:\Lang\eclipse\plugins\org.jbpm.core_3.0.9.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] FATAL ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] null
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NullPointerException
>>  at
>>
>>     
>
org.apache.maven.plugin.eclipse.MakeArtifactsMojo.execute(MakeArtifactsMojo.
>   
>> java:166)
>>  at
>>
>>     
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
>   
>> r.java:412)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
>   
>> cycleExecutor.java:534)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
>   
>> faultLifecycleExecutor.java:488)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
>   
>> ycleExecutor.java:458)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
>   
>> ures(DefaultLifecycleExecutor.java:306)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
>   
>> ultLifecycleExecutor.java:273)
>>  at
>>
>>     
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
>   
>> Executor.java:140)
>>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>>  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)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 13 seconds
>> [INFO] Finished at: Mon Aug 28 17:59:03 GMT+05:30 2006
>> [INFO] Final Memory: 8M/14M
>> [INFO]
>> ------------------------------------------------------------------------
>>  
>>  
>>
>> BM__MailAutoSig_________________________________________
>>
>>  
>>
>> Jaikumar Sharma
>>
>> Sr.Software Development Engineer
>>
>>  
>>
>> Barco Control Rooms
>>
>> A-5, Sector - 5,
>>
>> Noida. India 201 301.
>>
>> Tel +91.120.4020.313
>>
>> Fax+91.120.4020.100
>>
>>  <http://www.barco.com/> http://www.barco.com
>>
>>  <ma...@barco.com> 
>> mailto:jaikumar.sharma@barco.com
>>
>> _________________________________________
>>
>>  
>>
>>   
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

RE: NullPointerException in maven-eclipse-plugin while executing "mak e-artifacts" goal

Posted by "Sharma, Jaikumar" <ja...@gmail.com>.
Hi Stephance, 

I have created JIRA Issue for this.

http://jira.codehaus.org/browse/MECLIPSE-153

Regards

-----Original Message-----
From: Stéphane Bouchet [mailto:stephane.bouchet@knowesia.fr] 
Sent: Wednesday, August 30, 2006 8:00 PM
To: Maven Users List
Subject: Re: NullPointerException in maven-eclipse-plugin while executing
"mak e-artifacts" goal

Sharma, Jaikumar a écrit :
> Thanks Stephane,
> I installed eclipse in a fresh way (only SDK -- no other plugins in IDE),
> and run "make-artifacts" and it installed all the required artifacts in
> local repository.
>
> I am still not sure why JBoss IDE artifact caused NPE.
>
> Thanks again for your help!
>
>   

You're Welcome :)

The best thing to do is to fill a new JIRA issue with your stacktrace in 
MECLIPSE ( http://jira.codehaus.org/browse/MECLIPSE ) and we will try to 
track this problem with this particular plugin.

Stéphane.

> Regards,
>
>   
<snip>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: NullPointerException in maven-eclipse-plugin while executing "mak e-artifacts" goal

Posted by Stéphane Bouchet <st...@knowesia.fr>.
Sharma, Jaikumar a écrit :
> Thanks Stephane,
> I installed eclipse in a fresh way (only SDK -- no other plugins in IDE),
> and run "make-artifacts" and it installed all the required artifacts in
> local repository.
>
> I am still not sure why JBoss IDE artifact caused NPE.
>
> Thanks again for your help!
>
>   

You're Welcome :)

The best thing to do is to fill a new JIRA issue with your stacktrace in 
MECLIPSE ( http://jira.codehaus.org/browse/MECLIPSE ) and we will try to 
track this problem with this particular plugin.

Stéphane.

> Regards,
>
>   
<snip>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org