We are planning to add direct support for PDE/OSGi development to
m2eclipse (see and vote for
http://jira.codehaus.org/browse/MNGECLIPSE-619).
In the mean time, you probably want to ask for advice on
maven-eclipse-plugin user list, as this appears to be a bug or
misconfiguration of that maven plugin. I think this is the homepage of
maven-eclipse-plugin
http://maven.apache.org/plugins/maven-eclipse-plugin/index.html and it
should provide further directions. (I am sorry that I can't give a
better advice, but I do not use maven-eclipse-plugin myself).
jian wrote:
Dear all,
I used eclipse PDE + m2eclipse to develop spring osgi bundle. My
steps are:
1. Create a project throght m2eclpse wizard, I selected the
archettype is spring-osgi-bundle-archetype;
2. Add the dependencies in POM.xml file, m2eclipse downloaded the
jar files and added them into Maven library list in eclipse.
3. Create a directory named "osgi runtime" to use it as a target
platform by eclipse, and configurated in eclipse through menu
"Preference"-"Plugin-developmen
t";
3. Run mvn eclipse:install-plugins to copy all dependencies from
maven repository into the target platform mentioned above.
However, the error occured, it showed:
Exception in thread "main" java.lang.NullPointerException
at
org.apache.maven.plugin.eclipse.InstallPluginsMojo.install(InstallPluginsMojo.java:279)
at
org.apache.maven.plugin.eclipse.InstallPluginsMojo.execute(InstallPluginsMojo.java:216)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
Anybody knows it?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email