Assuming your code matches what's in SVN, it appears that the problem
is related to a bad jar file.

See line 279 here:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/InstallPluginsMojo.java?annotate=616922

There's already a catch for IOException there, perhaps it should have
another catch for NPE or be a little more defensive when accessing the
Manifest.

Any idea what file caused the error? If you can figure it out, you
should be able to check the JAR and see if it has a Manifest file or
not etc and see if this is actually the problem.

Wayne

On 6/9/08, jian <[EMAIL PROTECTED]> 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-development";
>    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, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to