I just checked out the source from svn repository, trying to change
something with the defaultIndicator.
After I made my changes I ran mvn install but the build failed with
the error message:
[ERROR] Failed to execute goal org.apache.myfaces.tobago:maven-apt-
plugin:1.0.15:execute (default) on project struts2-jquery-plugin:
Error starting apt compiler: com.sun.tools.apt.Main -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.myfaces.tobago:maven-apt-plugin:1.0.15:execute
(default) on project struts2-jquery-plugin: Error starting apt
compiler
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
585)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
324)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
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:585)
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.MojoExecutionException: Error
starting apt compiler
at
org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
461)
at org.apache.myfaces.maven.plugin.AptMojo.execute(AptMojo.java:113)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
105)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
577)
... 14 more
Caused by: java.lang.ClassNotFoundException: com.sun.tools.apt.Main
at
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:
50)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:
244)
at
org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:
230)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
432)
... 17 more
Anyone any idea how to resolve that issue?
Thanks in advance
Jan
Best Regards
Johannes Geppert
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
On 23 Mrz., 14:10, Jan <jf.1...@googlemail.com> wrote:
> Hi all,
>
> I just checked out the source from svn repository, trying to change
> something with the defaultIndicator.
>
> After I made my changes I ran mvn install but the build failed with
> the error message:
>
> [ERROR] Failed to execute goal org.apache.myfaces.tobago:maven-apt-
> plugin:1.0.15:execute (default) on project struts2-jquery-plugin:
> Error starting apt compiler: com.sun.tools.apt.Main -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.myfaces.tobago:maven-apt-plugin:1.0.15:execute
> (default) on project struts2-jquery-plugin: Error starting apt
> compiler
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> 585)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> 324)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
> 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:585)
> 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.MojoExecutionException: Error
> starting apt compiler
> at
> org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
> 461)
> at org.apache.myfaces.maven.plugin.AptMojo.execute(AptMojo.java:113)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
> 105)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
> 577)
> ... 14 more
> Caused by: java.lang.ClassNotFoundException: com.sun.tools.apt.Main
> at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:
> 50)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:
> 244)
> at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:
> 230)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:164)
> at
> org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
The new message tells me something about the displayName flag - but I
can't resolve the issue on my own.
Here's the log starting with the some lines before the first error.
[DEBUG] Error quoting argument.
Invoking apt with cmd cmd.exe /X /C
[ERROR] apt: invalid flag: '-AdisplayName=Struts
Usage: apt <apt and javac options> <source files>
where apt options include:
-classpath <path> Specify where to find user class files
and annotation processor factories
-cp <path> Specify where to find user class files
and annotation processor factories
-d <path> Specify where to place processor and
javac generated class files
-s <path> Specify where to place processor
generated source files
-source <release> Provide source compatibility with
specified release
-version Version information
-help Print a synopsis of standard options; use
javac -help for more options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime
system
-A[key[=value]] Options to pass to annotation processors
-nocompile Do not compile source files to class
files
-print Print out textual representation of
specified types
-factorypath <path> Specify where to find annotation
processor factories
-factory <class> Name of AnnotationProcessorFactory to
use; bypasses default discovery process
See javac -help for information on javac options.
[DEBUG] Apt finished.
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Struts 2 jQuery Plugin Parent Module .............. SUCCESS
[0.860s]
[INFO] Struts 2 jQuery Plugin ............................ FAILURE
[7.249s]
[INFO] Struts 2 jQuery Showcase .......................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8.249s
[INFO] Finished at: Tue Mar 23 16:44:08 CET 2010
[INFO] Final Memory: 3M/14M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.myfaces.tobago:maven-apt-
plugin:1.0.15:execute (default) on project struts2-jquery-plugin:
Error starting apt compiler: Exit code: 2 - apt: invalid flag: '-
AdisplayName=Struts
Usage: apt <apt and javac options> <source files>
where apt options include:
-classpath <path> Specify where to find user class files
and annotation processor factories
-cp <path> Specify where to find user class files
and annotation processor factories
-d <path> Specify where to place processor and
javac generated class files
-s <path> Specify where to place processor
generated source files
-source <release> Provide source compatibility with
specified release
-version Version information
-help Print a synopsis of standard options; use
javac -help for more options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime
system
-A[key[=value]] Options to pass to annotation processors
-nocompile Do not compile source files to class
files
-print Print out textual representation of
specified types
-factorypath <path> Specify where to find annotation
processor factories
-factory <class> Name of AnnotationProcessorFactory to
use; bypasses default discovery process
See javac -help for information on javac options.
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.myfaces.tobago:maven-apt-plugin:1.0.15:execute
(default) on project struts2-jquery-plugin: Error starting apt
compiler
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
585)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
324)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
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:585)
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.MojoExecutionException: Error
starting apt compiler
at
org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
461)
at org.apache.myfaces.maven.plugin.AptMojo.execute(AptMojo.java:113)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
105)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
577)
... 14 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Exit code:
2 - apt: invalid flag: '-AdisplayName=Struts
Usage: apt <apt and javac options> <source files>
where apt options include:
-classpath <path> Specify where to find user class files
and annotation processor factories
-cp <path> Specify where to find user class files
and annotation processor factories
-d <path> Specify where to place processor and
javac generated class files
-s <path> Specify where to place processor
generated source files
-source <release> Provide source compatibility with
specified release
-version Version information
-help Print a synopsis of standard options; use
javac -help for more options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime
system
-A[key[=value]] Options to pass to annotation processors
-nocompile Do not compile source files to class
files
-print Print out textual representation of
specified types
-factorypath <path> Specify where to find annotation
processor factories
-factory <class> Name of AnnotationProcessorFactory to
use; bypasses default discovery process
See javac -help for information on javac options.
at
org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
408)
... 17 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :struts2-jquery-plugin
> > Jan- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
I wrote a note to an issue already trying to overwrite the default
indicator with a tag specific indicator.
After looking through the code, I found some lines, where I think that
tiny changes could help me achieve my goal.
I changed the js functions hideIndicator(indi) and showIndicator(indi)
just adding an "else if" so they look like
function hideIndicator(indi) {
if (indi) {
$(escId(indi)).hide();
} else if ($.struts2_jquery.defaultIndicator != '') {
$(escId($.struts2_jquery.defaultIndicator)).hide();
}
}
function showIndicator(indi) {
if (indi) {
$(escId(indi)).show();
} else if ($.struts2_jquery.defaultIndicator != '') {
$(escId($.struts2_jquery.defaultIndicator)).show();
}
}
But honestly I am not very certain that those changes would be enough
to "overwrite" the defaultIndicator.
Anyways, thanks for your work!
Jan
> org.apache.myfaces.maven.plugin.AbstractAPTMojo.execute(AbstractAPTMojo.java:
> > > Caused- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -...
>
> Erfahren Sie mehr »
What Maven Version did you use?
Best Regards
Johannes Geppert
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep
> > > > something with- Zitierten Text ausblenden -
Do you think its worth a try using a standalone maven installation
with current m2 release?
> > > at- Zitierten Text ausblenden -
it would be great if you could give it a try with Maven standalone,
best would be to try both 2.2.1 and 3.0-alpha-7. Btw, what is the
m2eclipse version you are using?
Regards,
- Rene
> > > > -J<flag> ...
>
> read more »