[mevenide-user] No lifecycle phase binding can be found for goal: exec

"Putrycz, Erik" <[email protected]> Tue, 11 Mar 2008 11:20:49 -0400
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>
This seems to be something new with maven 2.1... 

[ERROR]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
construct one or more initial build plans. Reason: 

 

No lifecycle phase binding can be found for goal: exec,

specified as a part of the execution: defaultin plugin:
org.codehaus.mojo:exec-maven-plugin

 

This plugin was resolved successfully.

However, the mojo metadata it contains does not specify a default
lifecycle phase binding.

 

Please provide a valid <phase/> specification for execution: default

in plugin: org.codehaus.mojo:exec-maven-plugin

 

[ERROR]           at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)

[ERROR]           at
org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute
(MyLifecycleExecutor.java:72)

[ERROR]           at
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:225)

[ERROR]           at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.ja
va:304)

[ERROR]           at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)

[ERROR]           at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedde
r.java:895)

[ERROR]           at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(Maven
Embedder.java:304)

[ERROR]           at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)

[ERROR]           at
org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaEx
ecutor.java:215)

[ERROR]           at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)

[ERROR]Caused by:
org.apache.maven.lifecycle.LifecycleSpecificationException: 

 

No lifecycle phase binding can be found for goal: exec,

specified as a part of the execution: defaultin plugin:
org.codehaus.mojo:exec-maven-plugin

 

This plugin was resolved successfully.

However, the mojo metadata it contains does not specify a default
lifecycle phase binding.

 

Please provide a valid <phase/> specification for execution: default

in plugin: org.codehaus.mojo:exec-maven-plugin

 

My exec plugin is configured as follows

      <plugin>

        <groupId>org.codehaus.mojo</groupId>

        <artifactId>exec-maven-plugin</artifactId>

        <executions>

          <execution>

            <goals>

              <goal>exec</goal>

            </goals>

          </execution>

        </executions>

        <configuration>

          <executable>java</executable>

          <arguments>

            <argument>-Xmx500m</argument>

            <argument>-classpath</argument>

            <!-- automatically creates the classpath using all project
dependencies, 

                 also adding the project build directory -->

            <classpath></classpath>

            <argument>nrc.brex.nav.Navigator</argument>

          </arguments>

        </configuration>            

      </plugin>       

 

I use this plugin for the netbeans "run" action... Is there any way
around? I don't want the exec to be in any phase.

Btw, the Netbeans GUI is still buggy and forgets any custom setting.

 

Erik