anonymous error using maven plugin

123 views
Skip to first unread message

Salvatore Romeo

unread,
Jan 30, 2014, 11:59:30 AM1/30/14
to xtend...@googlegroups.com
I'm trying to use the xtend maven plugin. I cleaned everything, leaving only the src folder and the pom, deleting the xtend-gen files too. 
While executing 

mvn compile -X 

I always get this error:

[ERROR] Failed to execute goal org.eclipse.xtend:xtend-maven-plugin:2.5.0:compil
e (default) on project scratch: Error compiling xtend sources in 'P:\dev\test\sc
\src\main\java'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.eclipse.xtend:xtend-maven-plugin:2.5.0:compile (default) on project scratch:
Error compiling xtend sources in 'P:\dev\test\sc\src\main\java'.
        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: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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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: Error compiling xtend
 sources in 'P:\dev\test\sc\src\main\java'.
        at org.eclipse.xtend.maven.AbstractXtendCompilerMojo.compile(AbstractXte
ndCompilerMojo.java:110)
        at org.eclipse.xtend.maven.XtendCompile.compileSources(XtendCompile.java
:66)
        at org.eclipse.xtend.maven.XtendCompile.internalExecute(XtendCompile.jav
a:59)
        at org.eclipse.xtend.maven.AbstractXtendMojo.execute(AbstractXtendMojo.j
ava:39)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
xception
P:\dev\test\sc>

and no other information about which class is causing the problem.

Using eclipse everything works very well.

Any suggestion?
Thanks


Sven Efftinge

unread,
Jan 31, 2014, 2:53:39 AM1/31/14
to xtend...@googlegroups.com
Hi,

from looking at the code I see there might be ways through the code that can cause this situations.
Could you provide a minimal reproducing example and attach it to a bugzilla?
We will look into it.

Thank you!
Sven

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

signature.asc

Salvatore Romeo

unread,
Jan 31, 2014, 9:32:43 AM1/31/14
to xtend...@googlegroups.com
I found the source of the problem was an active annotation: it didn't work on a class. 
Removing the class made the build work again.

Thanks you anyway
Reply all
Reply to author
Forward
0 new messages