You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Matias Gonzalo Tito (JIRA)" <ji...@apache.org> on 2014/12/19 18:06:14 UTC

[jira] [Commented] (DIRMINA-936) NullPointerException at org.apache.maven.plugin.eclipse.EclipsePlugin.isAvailableAsAWorkspaceProject(EclipsePlugin.java:2121)

    [ https://issues.apache.org/jira/browse/DIRMINA-936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14253657#comment-14253657 ] 

Matias Gonzalo Tito commented on DIRMINA-936:
---------------------------------------------

That is becouse some project on wour eclipse workspace does not have groupiId.
You could see that at: EclipsePlugin.java:2121
2121            if ( workspaceArtefact.getGroupId().equals( artifact.getGroupId() )


> NullPointerException at org.apache.maven.plugin.eclipse.EclipsePlugin.isAvailableAsAWorkspaceProject(EclipsePlugin.java:2121)
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-936
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-936
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>         Environment: WXP SP3 Sun JDK 1.6.0_35, Eclipse Juno Version: 4.2.1
> Build id: M20120914-1800
>            Reporter: Francis ANDRE
>
> Hi
> I am building Mina 2.0.7 from the svn repository and got this exception when running mvn -Pserial eclipse:eclipse -e
> Z:\OSI\ASF Mina 2.0.7>mvn -Pserial eclipse:eclipse -e
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Apache MINA
> [INFO] Apache MINA Legal
> [INFO] Apache MINA Core
> [INFO] Apache MINA APR Transport
> [INFO] Apache MINA Compression Filter
> [INFO] Apache MINA State Machine
> [INFO] Apache MINA JavaBeans Integration
> [INFO] Apache MINA XBean Integration
> [INFO] Apache MINA OGNL Integration
> [INFO] Apache MINA JMX Integration
> [INFO] Apache MINA Examples
> [INFO] Apache MINA HTTP client and server codec
> [INFO] Apache MINA Serial Communication support
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache MINA 2.0.7
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-parent >>>
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ mina-parent ---
> [INFO]
> [INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-parent <<<
> [INFO]
> [INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-parent ---
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using Eclipse Workspace: Z:\OSI
> [INFO] no substring wtp server match.
> [INFO] Using as WTP server : Apache Tomcat v6.0
> [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Standa
> rdVMType/J2SE-1.5
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache MINA Legal 2.0.7
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-legal >>>
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ mina-legal ---
> [INFO]
> [INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-legal <<<
> [INFO]
> [INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ mina-legal ---
> [INFO] Using Eclipse Workspace: Z:\OSI
> [INFO] no substring wtp server match.
> [INFO] Using as WTP server : Apache Tomcat v6.0
> [INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Standa
> rdVMType/J2SE-1.5
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache MINA ....................................... SUCCESS [0.921s]
> [INFO] Apache MINA Legal ................................. FAILURE [0.938s]
> [INFO] Apache MINA Core .................................. SKIPPED
> [INFO] Apache MINA APR Transport ......................... SKIPPED
> [INFO] Apache MINA Compression Filter .................... SKIPPED
> [INFO] Apache MINA State Machine ......................... SKIPPED
> [INFO] Apache MINA JavaBeans Integration ................. SKIPPED
> [INFO] Apache MINA XBean Integration ..................... SKIPPED
> [INFO] Apache MINA OGNL Integration ...................... SKIPPED
> [INFO] Apache MINA JMX Integration ....................... SKIPPED
> [INFO] Apache MINA Examples .............................. SKIPPED
> [INFO] Apache MINA HTTP client and server codec .......... SKIPPED
> [INFO] Apache MINA Serial Communication support .......... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.641s
> [INFO] Finished at: Sun Feb 24 09:32:31 CET 2013
> [INFO] Final Memory: 12M/29M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse (default-cli) on project mina-legal: Execut
> ion default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:ecl
> ipse (default-cli) on project mina-legal: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-plugin:2.9:eclipse fa
> iled.
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         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:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.apache.maven.plugins:maven-eclipse-pl
> ugin:2.9:eclipse failed.
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 19 more
> Caused by: java.lang.NullPointerException
>         at org.apache.maven.plugin.eclipse.EclipsePlugin.isAvailableAsAWorkspaceProject(EclipsePlugin.java:2121)
>         at org.apache.maven.plugin.eclipse.EclipsePlugin.useProjectReference(EclipsePlugin.java:2164)
>         at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolution(AbstractIdeSupportMojo.java:685)
>         at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:507)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         ... 20 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :mina-legal
> Z:\OSI\ASF Mina 2.0.7>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)