Issue 1 in m2jdee: Failed to run mvn jdee:jdee

16 views
Skip to first unread message

codesite...@google.com

unread,
Apr 1, 2011, 9:35:07 AM4/1/11
to fant...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1 by oleg.fre...@gmail.com: Failed to run mvn jdee:jdee
http://code.google.com/p/m2jdee/issues/detail?id=1

What steps will reproduce the problem?
1. Executed "mvn jdee:jdee -e" from root directory of a Java project

Got the exception in the bottom

Looks like this can be fixed in the following way:
src/main/java/org/apache/maven/plugins/jdee/JdeeMojo.java line 152 to be:

String templateFile = "META-INF/prj.vm";

Note that there is no leading "/" in front of META-INF

Regards,
Oleg.

---------------------------------------------------
Exception:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal o
rg.apache.maven.plugins:maven-jdee-plugin:0.1:jdee (default-cli) on project
SMIC
oreUtils: Unable to find resource '/META-INF/prj.vm'
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
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.buildProje
ct(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to find
resour
ce '/META-INF/prj.vm'
at org.apache.maven.plugins.jdee.JdeeMojo.execute(JdeeMojo.java:177)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable
to fi
nd resource '/META-INF/prj.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource
(ResourceManagerImpl.java:458)
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(
ResourceManagerImpl.java:341)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstan
ce.java:831)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstan
ce.java:813)
at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingl
eton.java:285)
at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:469)
at
org.apache.maven.plugins.jdee.JdeeMojo.generatePrj(JdeeMojo.java:153)

at org.apache.maven.plugins.jdee.JdeeMojo.execute(JdeeMojo.java:174)
... 21 more

2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

codesite...@google.com

unread,
Dec 27, 2011, 7:37:42 PM12/27/11
to fant...@googlegroups.com

Comment #1 on issue 1 by cbsm...@gmail.com: Failed to run mvn jdee:jdee
http://code.google.com/p/m2jdee/issues/detail?id=1

Thanks. This fix was a lifesaver for me. Now it works.

Reply all
Reply to author
Forward
0 new messages