No, only defined the plugin artifactid and group id
  <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-compiler-plugin</artifactId>
     </plugin>
      ....

Brett Porter wrote:

Have you hard coded the 2.0-alpha-1 plugin version for
maven-compiler-plugin in your POM?

- Brett

On 6/5/05, Zachi Hazan <[EMAIL PROTECTED]> wrote:
I have just upgraded mvaen 2 to version alpha 2.
When running compiler:compile plugin the an exception is thrown (see below).
I have checked in maven sources and I saw that the method "compile"
exists only on the new plexus jar, which was upgraded  after alpha 2
realesed.

How can I solve this problem?

[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Fatal error compiling
       at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:137)
       at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
       at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
       at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
       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:324)
       at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
       at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: java.lang.NoSuchMethodException: compile
       at java.lang.Class.getMethod0(Class.java:1742)
       at java.lang.Class.getMethod(Class.java:951)
       at
org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)
       at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:132)
       ... 14 more



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to