maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Porter (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-3040) Failure to construct build plan fatal error on trunk r545155
Date Sun, 10 Jun 2007 01:00:58 GMT

    [ http://jira.codehaus.org/browse/MNG-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98982
] 

Brett Porter commented on MNG-3040:
-----------------------------------

sorry John, you're right.

So in 2.0.6, 'binding' something without a phase causes it to be ignored.

I'd suggest you change this to fail fast with a clearer error message ("Can't bind an execution
without a phase if the mojo doesn't have a default phase").

Thanks.

> Failure to construct build plan fatal error on trunk r545155
> ------------------------------------------------------------
>
>                 Key: MNG-3040
>                 URL: http://jira.codehaus.org/browse/MNG-3040
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.1-alpha-1
>            Reporter: Brett Porter
>            Assignee: John Casey
>         Attachments: pom.xml
>
>
> see attached pom which causes this: 
> mcbrett:~/scm/maven/sandbox/continuum/continuum-data-upgrade brett$ mvn clean install
-e 
> + Error stacktraces are turned on. 
> [INFO] Scanning for projects... 
> [INFO] ---------------------------------------------------------------------------- 
> [INFO] Building Unnamed - org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT

> [INFO] task-segment: [clean, install] 
> [INFO] ---------------------------------------------------------------------------- 
> [INFO] ------------------------------------------------------------------------ 
> [ERROR] BUILD ERROR 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] Failed to construct build plan for: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT
( task-segment: [clean, install] ). Reason: No phase specified for goal: exec in plugin: org.codehaus.mojo:exec-maven-plugin
from POM: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] Trace 
> org.apache.maven.BuildFailureException: Failed to construct build plan for: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT
( task-segment: [clean, install] ). Reason: No phase specified for goal: exec in plugin: org.codehaus.mojo:exec-maven-plugin
from POM: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT 
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:296) 
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:112) 
> at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:906) 
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:367) 
> 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:289)

> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)

> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351) 
> Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to construct
build plan for: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT ( task-segment:
[clean, install] ). Reason: No phase specified for goal: exec in plugin: org.codehaus.mojo:exec-maven-plugin
from POM: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT 
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getLifecycleBindings(DefaultLifecycleExecutor.java:305)

> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:246)

> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:141)

> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292) 
> ... 11 more 
> Caused by: org.apache.maven.lifecycle.LifecycleSpecificationException: No phase specified
for goal: exec in plugin: org.codehaus.mojo:exec-maven-plugin from POM: org.apache.maven.continuum:continuum-data-upgrade:jar:1.1-SNAPSHOT

> at org.apache.maven.lifecycle.binding.DefaultLifecycleBindingManager.getProjectCustomBindings(DefaultLifecycleBindingManager.java:295)

> at org.apache.maven.lifecycle.plan.DefaultBuildPlanner.constructBuildPlan(DefaultBuildPlanner.java:54)

> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getLifecycleBindings(DefaultLifecycleExecutor.java:294)

> ... 14 more 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] Total time: < 1 second 
> [INFO] Finished at: Thu Jun 07 22:40:57 EST 2007 
> [INFO] Final Memory: 2M/5M 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] BUILD SUCCESSFUL 
> [INFO] ------------------------------------------------------------------------ 
> [INFO] Total time: < 1 second 
> [INFO] Finished at: Thu Jun 07 22:40:57 EST 2007 
> [INFO] Final Memory: 2M/5M 
> [INFO] ------------------------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message