Issue Type: Bug Bug
Affects Versions: 1.0.1
Assignee: Unassigned
Created: 06/Jul/12 10:31 AM
Description:

Hello,

I'm not sure if this is really bug, it might just be that I have the plugin misconfigured. But I thought I'd raise it just in case.

Previously, I had my thin-client as a stand-alone pom and all worked well. Then after creating several stand-alone poms, I decided to switch to a hierarchical pom structure to take advantage of inheritance that maven allows. This is when my problem showed up.

My structure looks like...

parent-pom
thin-client-pom web-services-pom
more-poms-under-here

then I set up two jobs on hudson to build and deploy the thin-client and web-services. The thin-client build breaks and throws a null pointer exception at org.codehaus.mojo.jsimport.LocalRepositoryCollector.<init>(LocalRepositoryCollector.java:63)

After looking at the code, it seems (maybe rightly) to be trying to get the directory path from the parent-pom. However my parent pom has nothing to do with java-script. And it doesn't have a src/main/js directory.

This all works fine on my development machine since my thin-client-pom lives under the parent-pom. But on the build machine, that's not the case.

I plan to see if I can modify my thin-client-pom so it will work on both the build and development environments. If not, maybe I'll just forget about including the thin-client-pom in the hierarchy.

Thanks,
John

[INFO] — js-import-maven-plugin:1.0.1:import-js (default-import-js) @ ucs-thinclient —
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.633s
[INFO] Finished at: Thu Jul 05 16:18:30 EDT 2012
[INFO] Final Memory: 9M/110M
[INFO] ------------------------------------------------------------------------
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js (default-import-js) on project ucs-thinclient: Execution default-import-js of goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js failed.
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js (default-import-js) on project ucs-thinclient: Execution default-import-js of goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js (default-import-js) on project ucs-thinclient: Execution default-import-js of goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js failed.
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:320)
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-import-js of goal org.codehaus.mojo:js-import-maven-plugin:1.0.1:import-js 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.codehaus.mojo.jsimport.LocalRepositoryCollector.<init>(LocalRepositoryCollector.java:63)
at org.codehaus.mojo.jsimport.AbstractImportMojo.buildDependencyGraphForDependencies(AbstractImportMojo.java:458)
at org.codehaus.mojo.jsimport.AbstractImportMojo.doExecute(AbstractImportMojo.java:668)
at org.codehaus.mojo.jsimport.ImportMojo.execute(ImportMojo.java:68)
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.

Project: Mojo _javascript_ Import Maven Plugin
Priority: Minor Minor
Reporter: John Standard
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to