Hi Eric,

Building Nuxeo with Maven 2.1.0 is untested (and currently doesn't work).

I'm going to try to fix that.

In the meantime, you should use Maven 2.0.10 which is the version we officially support.

But I can't reproduce the exact error you have (BTW: thanks for the detailed error report). Can you try building again with 'ant -v' ?

  S.

On Apr 11, 2009, at 8:45 AM, ericdes wrote:

This is a similar problem than the one originally posted by Sa3d on Mar. 21st 2009. I'm not sure it got answered as I'm new to Nuxeo and just subscribed to the list.

My setup is Eclipse 3.4.2 on Vista 32 bits with ant 1.7.1 and maven 2.1.0. There's the obvious question if mvn is in the path: yes, I can run mvn -v from anywhere.

The error occurs at line 69 (vs 107 on the original post):

BUILD FAILED
D:\nuxeo\build.xml:69: exec returned: 1

Any help would be greatly appreciated!


========================================================
<target name="install" depends="clean,install-unix,install-windows" description="Run mvn install" />
 <target name="install-unix" if="osfamily-unix">
   <exec executable="env" />
   <exec executable="mvn" failonerror="true">
     <arg value="install" />
     <arg value="-Dmaven.test.skip=true" />
     <arg value="${mvn.opts}" />
   </exec>
 </target>
 <target name="install-windows" if="osfamily-windows">
This is line 69 <----------- <exec executable="cmd" failonerror="true">
     <arg value="/c" />
     <arg value="mvn.bat" />
     <arg value="install" />
     <arg value="-Dmaven.test.skip=true" />
     <arg value="${mvn.opts}" />
   </exec>
 </target>
========================================================

------------------------------------------------------------------------
    [exec] [ERROR] BUILD FAILURE
[exec] [INFO] ------------------------------------------------------------------------ [exec] [INFO] Invalid task ' ': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [exec] [INFO] ------------------------------------------------------------------------
    [exec] [INFO] Trace
[exec] org.apache.maven.BuildFailureException: Invalid task ' ': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [exec] at org .apache .maven .lifecycle .DefaultLifecycleExecutor .getMojoDescriptor(DefaultLifecycleExecutor.java:1765) [exec] at org .apache .maven .lifecycle .DefaultLifecycleExecutor .segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:446) [exec] at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:176) [exec] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) [exec] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
    [exec]      at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [exec] at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
    [exec]      at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) [exec] at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) [exec] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) [exec] at org.codehaus.classworlds.Launcher.main(Launcher.java: 375) [exec] [INFO] ------------------------------------------------------------------------


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

--
Stefane Fermigier, Founder and Chairman, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
Web: http://www.nuxeo.com/ - Tel: +33 1 40 33 79 87
New: follow me on Twitter: http://twitter.com/sfermigier
New: join the Nuxeo Group on LinkedIn: http://www.linkedin.com/groups?gid=43314

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to