|
View:
New views
13 Messages
—
Rating Filter:
Alert me
|
|
|
BUILD FAILUREHello,
I have a problem of BUILD FAILURE. I used the following command: mvn \ archetype:create \ -DarchetypeGroupId=org.trailsframework \ -DarchetypeArtifactId=trails-archetype \ -DarchetypeVersion=1.1.1 \ -DgroupId=it.inogs.nodc.test \ -DartifactId=TestTrails And the result is the following message: [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 [INFO] Final Memory: 1M/3M [INFO] ------------------------------------------------------------------------ Can you help me please to understand what's wrong? Thank you Margherita ________________________________________________________________________ Margherita Bresco Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National Oceanographic Data Centre/IOC - NODC Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) Phone: +39 040 2140276 E-mail: mbresco@... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILURECiao Margherita,
Weird, that's definitively the right command. What's you system configuration? Can you run it again using the "-e" switch so we can get debug info?. Alejandro. -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Jan 15, 2008 10:13 AM, Margherita Bresco <mbresco@...> wrote: > Hello, > I have a problem of BUILD FAILURE. > I used the following command: > > mvn \ > archetype:create \ > -DarchetypeGroupId=org.trailsframework \ > -DarchetypeArtifactId=trails-archetype \ > -DarchetypeVersion=1.1.1 \ > -DgroupId=it.inogs.nodc.test \ > -DartifactId=TestTrails > > > And the result is the following message: > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > specify a valid lifecycle phase, or a goal in the format plugin:goal or > pluginGroupId:pluginArtifactId:pluginVersion:goal > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > [INFO] Final Memory: 1M/3M > [INFO] > ------------------------------------------------------------------------ > > > Can you help me please to understand what's wrong? > Thank you > > Margherita > > > ________________________________________________________________________ > > Margherita Bresco > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > Dipartimento di Oceanografia - OGA > National Oceanographic Data Centre/IOC - NODC > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > Phone: +39 040 2140276 > E-mail: mbresco@... > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILURECiao Alejandro,
the same command, last week, worked perfectly. I thought that maybe can be a problem with the maven repository.... This is the message with -e option: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: Invalid task 'archetypeArtifactId=trails-archetype': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 [INFO] Final Memory: 1M/3M [INFO] ------------------------------------------------------------------------ Thank you for helping me! Margherita Alejandro Scandroli wrote: > Ciao Margherita, > > Weird, that's definitively the right command. > What's you system configuration? > Can you run it again using the "-e" switch so we can get debug info?. > > Alejandro. > > -- > Alejandro Scandroli > Amneris: We build process-driven web applications. > http://www.amneris.es > > > On Jan 15, 2008 10:13 AM, Margherita Bresco <mbresco@...> wrote: > >> Hello, >> I have a problem of BUILD FAILURE. >> I used the following command: >> >> mvn \ >> archetype:create \ >> -DarchetypeGroupId=org.trailsframework \ >> -DarchetypeArtifactId=trails-archetype \ >> -DarchetypeVersion=1.1.1 \ >> -DgroupId=it.inogs.nodc.test \ >> -DartifactId=TestTrails >> >> >> And the result is the following message: >> >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must >> specify a valid lifecycle phase, or a goal in the format plugin:goal or >> pluginGroupId:pluginArtifactId:pluginVersion:goal >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: < 1 second >> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 >> [INFO] Final Memory: 1M/3M >> [INFO] >> ------------------------------------------------------------------------ >> >> >> Can you help me please to understand what's wrong? >> Thank you >> >> Margherita >> >> >> ________________________________________________________________________ >> >> Margherita Bresco >> >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS >> Dipartimento di Oceanografia - OGA >> National Oceanographic Data Centre/IOC - NODC >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >> Phone: +39 040 2140276 >> E-mail: mbresco@... >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > -- ________________________________________________________________________ Margherita Bresco Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National Oceanographic Data Centre/IOC - NODC Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) Phone: +39 040 2140276 E-mail: mbresco@... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILUREhmmm, the debug information is not helpful at all.
I have no clue what's going on. If it was working last week, maybe you can try deleting your .m2 repository cache, or at least the Maven and Trails files. I can't think of anything else. Alejandro. On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@...> wrote: > Ciao Alejandro, > > the same command, last week, worked perfectly. > > I thought that maybe can be a problem with the maven repository.... > > This is the message with -e option: > > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > specify a valid lifecycle phase, or a goal in the format plugin:goal or > pluginGroupId:pluginArtifactId:pluginVersion:goal > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.BuildFailureException: Invalid task > 'archetypeArtifactId=trails-archetype': you must specify a valid > lifecycle phase, or a goal in the format plugin:goal or > pluginGroupId:pluginArtifactId:pluginVersion:goal > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 > [INFO] Final Memory: 1M/3M > [INFO] > ------------------------------------------------------------------------ > > > Thank you for helping me! > > Margherita > > > > > > > Alejandro Scandroli wrote: > > Ciao Margherita, > > > > Weird, that's definitively the right command. > > What's you system configuration? > > Can you run it again using the "-e" switch so we can get debug info?. > > > > Alejandro. > > > > -- > > Alejandro Scandroli > > Amneris: We build process-driven web applications. > > http://www.amneris.es > > > > > > On Jan 15, 2008 10:13 AM, Margherita Bresco <mbresco@...> wrote: > > > >> Hello, > >> I have a problem of BUILD FAILURE. > >> I used the following command: > >> > >> mvn \ > >> archetype:create \ > >> -DarchetypeGroupId=org.trailsframework \ > >> -DarchetypeArtifactId=trails-archetype \ > >> -DarchetypeVersion=1.1.1 \ > >> -DgroupId=it.inogs.nodc.test \ > >> -DartifactId=TestTrails > >> > >> > >> And the result is the following message: > >> > >> [INFO] Scanning for projects... > >> [INFO] Searching repository for plugin with prefix: 'archetype'. > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD FAILURE > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > >> specify a valid lifecycle phase, or a goal in the format plugin:goal or > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] For more information, run Maven with the -e switch > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: < 1 second > >> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > >> [INFO] Final Memory: 1M/3M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> > >> Can you help me please to understand what's wrong? > >> Thank you > >> > >> Margherita > >> > >> > >> ________________________________________________________________________ > >> > >> Margherita Bresco > >> > >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > >> Dipartimento di Oceanografia - OGA > >> National Oceanographic Data Centre/IOC - NODC > >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >> Phone: +39 040 2140276 > >> E-mail: mbresco@... > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > -- > > ________________________________________________________________________ > > Margherita Bresco > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > Dipartimento di Oceanografia - OGA > National Oceanographic Data Centre/IOC - NODC > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > Phone: +39 040 2140276 > E-mail: mbresco@... > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILUREHi,
I already deleted the .m2 and even the Maven and Trails files. I also tried on two different computers each one on a different network and the error is the same. Did you try to launch the command on your computer? Does it work? Anyway, thank you so much for attention. Margherita Alejandro Scandroli wrote: > hmmm, the debug information is not helpful at all. > I have no clue what's going on. > If it was working last week, maybe you can try deleting your .m2 > repository cache, or at least the Maven and Trails files. > I can't think of anything else. > > Alejandro. > > > On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@...> wrote: > >> Ciao Alejandro, >> >> the same command, last week, worked perfectly. >> >> I thought that maybe can be a problem with the maven repository.... >> >> This is the message with -e option: >> >> + Error stacktraces are turned on. >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must >> specify a valid lifecycle phase, or a goal in the format plugin:goal or >> pluginGroupId:pluginArtifactId:pluginVersion:goal >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Trace >> org.apache.maven.BuildFailureException: Invalid task >> 'archetypeArtifactId=trails-archetype': you must specify a valid >> lifecycle phase, or a goal in the format plugin:goal or >> pluginGroupId:pluginArtifactId:pluginVersion:goal >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) >> at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) >> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: < 1 second >> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 >> [INFO] Final Memory: 1M/3M >> [INFO] >> ------------------------------------------------------------------------ >> >> >> Thank you for helping me! >> >> Margherita >> >> >> >> >> >> >> Alejandro Scandroli wrote: >> >>> Ciao Margherita, >>> >>> Weird, that's definitively the right command. >>> What's you system configuration? >>> Can you run it again using the "-e" switch so we can get debug info?. >>> >>> Alejandro. >>> >>> -- >>> Alejandro Scandroli >>> Amneris: We build process-driven web applications. >>> http://www.amneris.es >>> >>> >>> On Jan 15, 2008 10:13 AM, Margherita Bresco <mbresco@...> wrote: >>> >>> >>>> Hello, >>>> I have a problem of BUILD FAILURE. >>>> I used the following command: >>>> >>>> mvn \ >>>> archetype:create \ >>>> -DarchetypeGroupId=org.trailsframework \ >>>> -DarchetypeArtifactId=trails-archetype \ >>>> -DarchetypeVersion=1.1.1 \ >>>> -DgroupId=it.inogs.nodc.test \ >>>> -DartifactId=TestTrails >>>> >>>> >>>> And the result is the following message: >>>> >>>> [INFO] Scanning for projects... >>>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] BUILD FAILURE >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must >>>> specify a valid lifecycle phase, or a goal in the format plugin:goal or >>>> pluginGroupId:pluginArtifactId:pluginVersion:goal >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] For more information, run Maven with the -e switch >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: < 1 second >>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 >>>> [INFO] Final Memory: 1M/3M >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> Can you help me please to understand what's wrong? >>>> Thank you >>>> >>>> Margherita >>>> >>>> >>>> ________________________________________________________________________ >>>> >>>> Margherita Bresco >>>> >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS >>>> Dipartimento di Oceanografia - OGA >>>> National Oceanographic Data Centre/IOC - NODC >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >>>> Phone: +39 040 2140276 >>>> E-mail: mbresco@... >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> -- >> >> ________________________________________________________________________ >> >> Margherita Bresco >> >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS >> Dipartimento di Oceanografia - OGA >> National Oceanographic Data Centre/IOC - NODC >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >> Phone: +39 040 2140276 >> E-mail: mbresco@... >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > -- ________________________________________________________________________ Margherita Bresco Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National Oceanographic Data Centre/IOC - NODC Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) Phone: +39 040 2140276 E-mail: mbresco@... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILUREHi
yes I've tried it in Windows (I'm at work) and it works. At lunch time I will try to log on a linux box to try it on linux. I'm using java 1.6.0_03 and Maven 2.0.8 on Window, btw. You are welcome. -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Jan 15, 2008 1:45 PM, Margherita Bresco <mbresco@...> wrote: > Hi, > > I already deleted the .m2 and even the Maven and Trails files. > > I also tried on two different computers each one on a different network > and the error is the same. > > Did you try to launch the command on your computer? Does it work? > > Anyway, thank you so much for attention. > > Margherita > > > > Alejandro Scandroli wrote: > > hmmm, the debug information is not helpful at all. > > I have no clue what's going on. > > If it was working last week, maybe you can try deleting your .m2 > > repository cache, or at least the Maven and Trails files. > > I can't think of anything else. > > > > Alejandro. > > > > > > On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@...> wrote: > > > >> Ciao Alejandro, > >> > >> the same command, last week, worked perfectly. > >> > >> I thought that maybe can be a problem with the maven repository.... > >> > >> This is the message with -e option: > >> > >> + Error stacktraces are turned on. > >> [INFO] Scanning for projects... > >> [INFO] Searching repository for plugin with prefix: 'archetype'. > >> [INFO] > >> ------------------------------------------------------------------------ > >> [ERROR] BUILD FAILURE > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > >> specify a valid lifecycle phase, or a goal in the format plugin:goal or > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Trace > >> org.apache.maven.BuildFailureException: Invalid task > >> 'archetypeArtifactId=trails-archetype': you must specify a valid > >> lifecycle phase, or a goal in the format plugin:goal or > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1515) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) > >> at > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > >> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) > >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > >> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: < 1 second > >> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 > >> [INFO] Final Memory: 1M/3M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> > >> Thank you for helping me! > >> > >> Margherita > >> > >> > >> > >> > >> > >> > >> Alejandro Scandroli wrote: > >> > >>> Ciao Margherita, > >>> > >>> Weird, that's definitively the right command. > >>> What's you system configuration? > >>> Can you run it again using the "-e" switch so we can get debug info?. > >>> > >>> Alejandro. > >>> > >>> -- > >>> Alejandro Scandroli > >>> Amneris: We build process-driven web applications. > >>> http://www.amneris.es > >>> > >>> > >>> On Jan 15, 2008 10:13 AM, Margherita Bresco <mbresco@...> wrote: > >>> > >>> > >>>> Hello, > >>>> I have a problem of BUILD FAILURE. > >>>> I used the following command: > >>>> > >>>> mvn \ > >>>> archetype:create \ > >>>> -DarchetypeGroupId=org.trailsframework \ > >>>> -DarchetypeArtifactId=trails-archetype \ > >>>> -DarchetypeVersion=1.1.1 \ > >>>> -DgroupId=it.inogs.nodc.test \ > >>>> -DartifactId=TestTrails > >>>> > >>>> > >>>> And the result is the following message: > >>>> > >>>> [INFO] Scanning for projects... > >>>> [INFO] Searching repository for plugin with prefix: 'archetype'. > >>>> [INFO] > >>>> ------------------------------------------------------------------------ > >>>> [ERROR] BUILD FAILURE > >>>> [INFO] > >>>> ------------------------------------------------------------------------ > >>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > >>>> specify a valid lifecycle phase, or a goal in the format plugin:goal or > >>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > >>>> [INFO] > >>>> ------------------------------------------------------------------------ > >>>> [INFO] For more information, run Maven with the -e switch > >>>> [INFO] > >>>> ------------------------------------------------------------------------ > >>>> [INFO] Total time: < 1 second > >>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > >>>> [INFO] Final Memory: 1M/3M > >>>> [INFO] > >>>> ------------------------------------------------------------------------ > >>>> > >>>> > >>>> Can you help me please to understand what's wrong? > >>>> Thank you > >>>> > >>>> Margherita > >>>> > >>>> > >>>> ________________________________________________________________________ > >>>> > >>>> Margherita Bresco > >>>> > >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > >>>> Dipartimento di Oceanografia - OGA > >>>> National Oceanographic Data Centre/IOC - NODC > >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >>>> Phone: +39 040 2140276 > >>>> E-mail: mbresco@... > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe from this list please visit: > >>>> > >>>> http://xircles.codehaus.org/manage_email > >>>> > >>>> > >>>> > >>>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe from this list please visit: > >>> > >>> http://xircles.codehaus.org/manage_email > >>> > >>> > >> -- > >> > >> ________________________________________________________________________ > >> > >> Margherita Bresco > >> > >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > >> Dipartimento di Oceanografia - OGA > >> National Oceanographic Data Centre/IOC - NODC > >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >> Phone: +39 040 2140276 > >> E-mail: mbresco@... > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe from this list please visit: > >> > >> http://xircles.codehaus.org/manage_email > >> > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > -- > ________________________________________________________________________ > > Margherita Bresco > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > Dipartimento di Oceanografia - OGA > National Oceanographic Data Centre/IOC - NODC > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > Phone: +39 040 2140276 > E-mail: mbresco@... > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILUREI tried it here and it worked fine:
~/.local/tmp/trails$ mvn archetype:create -DarchetypeGroupId=org.trailsframework -DarchetypeArtifactId=trails-archetype -DarchetypeVersion=1.1.1 -DgroupId=it.inogs.nodc.test -DartifactId=TestTrails [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom 4K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar 12K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [archetype:create] (aggregator-style) [INFO] ---------------------------------------------------------------------------- Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.pom 7K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-7/plexus-container-default-1.0-alpha-7.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/plexus/plexus-containers/1.0.2/plexus-containers-1.0.2.pom 471b downloaded Downloading: http://repo1.maven.org/maven2/plexus/plexus-root/1.0.3/plexus-root-1.0.3.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.pom 740b downloaded Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom 168b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.pom 439b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.jar 18K downloaded Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar 25K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar 129K downloaded Downloading: http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar 156K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.jar 23K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar 7K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar 24K downloaded [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: it.inogs.nodc.test Downloading: http://repo1.maven.org/maven2/org/trailsframework/trails-archetype/1.1.1/trails-archetype-1.1.1.jar 48K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating Archetype: trails-archetype: 1.1.1 [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: it.inogs.nodc.test [INFO] Parameter: packageName, Value: it.inogs.nodc.test [INFO] Parameter: package, Value: it.inogs.nodc.test [INFO] Parameter: artifactId, Value: TestTrails [INFO] Parameter: basedir, Value: /home/hernan/.local/tmp/trails [INFO] Parameter: version, Value: 1.0-SNAPSHOT [WARNING] org.apache.velocity.runtime.exception.ReferenceException : reference : template = archetype-resources/pom.xml [line 24,column 42] : ${hsqldb.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 142,column 66] : ${ log4j.version} is not a valid reference. [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 191,column 34] : ${hsqldb.version} is not a valid reference. [INFO] ********************* End of debug info from resources from generated POM *********************** [INFO] Archetype created in dir: /home/hernan/.local/tmp/trails/TestTrails [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30 seconds [INFO] Finished at: Tue Jan 15 10:28:26 GMT-03:00 2008 [INFO] Final Memory: 5M/9M [INFO] ------------------------------------------------------------------------ On Jan 15, 2008 11:10 AM, Alejandro Scandroli <alejandroscandroli@...> wrote: Hi -- My definition of an expert in any field is a person who knows enough about what's really going to be scared. - PJ Plauger |
|
|
Re: BUILD FAILUREHi
Thanks Hernán for testing it. I'm sorry Margherita but it worked OK on my linux box too, using Debian, java 1.5.0_10 and Maven 2.0.7 :( Alejandro. On Jan 15, 2008 2:33 PM, Hernán Soulages <acuariano@...> wrote: > I tried it here and it worked fine: > > ~/.local/tmp/trails$ mvn archetype:create > -DarchetypeGroupId=org.trailsframework > -DarchetypeArtifactId=trails-archetype -DarchetypeVersion=1.1.1 > -DgroupId=it.inogs.nodc.test -DartifactId=TestTrails > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'archetype'. > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking > for updates from central > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom > 4K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom > 3K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom > 2K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar > 12K downloaded > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Maven Default Project > [INFO] task-segment: [archetype:create] (aggregator-style) > [INFO] > ---------------------------------------------------------------------------- > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.pom > 7K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-7/plexus-container-default-1.0-alpha-7.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/plexus/plexus-containers/1.0.2/plexus-containers-1.0.2.pom > 471b downloaded > Downloading: > http://repo1.maven.org/maven2/plexus/plexus-root/1.0.3/plexus-root-1.0.3.pom > 5K downloaded > Downloading: > http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.pom > 740b downloaded > Downloading: > http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom > 168b downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.pom > 439b downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.jar > 18K downloaded > Downloading: > http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar > 25K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar > 129K downloaded > Downloading: > http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar > 156K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.jar > 23K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar > 7K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar > 6K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar > 24K downloaded > [INFO] Setting property: classpath.resource.loader.class => > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > [INFO] Setting property: velocimacro.messages.on => 'false'. > [INFO] Setting property: resource.loader => 'classpath'. > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > [INFO] ************************************************************** > [INFO] Starting Jakarta Velocity v1.4 > [INFO] RuntimeInstance initializing. > [INFO] Default Properties File: > org/apache/velocity/runtime/defaults/velocity.properties > [INFO] Default ResourceManager initializing. (class > org.apache.velocity.runtime.resource.ResourceManagerImpl) > [INFO] Resource Loader Instantiated: > org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > [INFO] ClasspathResourceLoader : initialization starting. > [INFO] ClasspathResourceLoader : initialization complete. > [INFO] ResourceCache : initialized. (class > org.apache.velocity.runtime.resource.ResourceCacheImpl) > [INFO] Default ResourceManager initialization complete. > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Literal > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Include > [INFO] Loaded System Directive: > org.apache.velocity.runtime.directive.Foreach > [INFO] Created: 20 parsers. > [INFO] Velocimacro : initialization starting. > [INFO] Velocimacro : adding VMs from VM library template : > VM_global_library.vm > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in > any resource loader. > [INFO] Velocimacro : error using VM library template VM_global_library.vm : > org.apache.velocity.exception.ResourceNotFoundException: Unable to find > resource 'VM_global_library.vm' > [INFO] Velocimacro : VM library template macro registration complete. > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > templates > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may > NOT replace previous VM definitions > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > global in scope if allowed. > [INFO] Velocimacro : initialization complete. > [INFO] Velocity successfully started. > [INFO] [archetype:create] > [INFO] Defaulting package to group ID: it.inogs.nodc.test > Downloading: > http://repo1.maven.org/maven2/org/trailsframework/trails-archetype/1.1.1/trails-archetype-1.1.1.jar > 48K downloaded > [INFO] > ---------------------------------------------------------------------------- > [INFO] Using following parameters for creating Archetype: trails-archetype: > 1.1.1 > [INFO] > ---------------------------------------------------------------------------- > [INFO] Parameter: groupId, Value: it.inogs.nodc.test > [INFO] Parameter: packageName, Value: it.inogs.nodc.test > [INFO] Parameter: package, Value: it.inogs.nodc.test > [INFO] Parameter: artifactId, Value: TestTrails > [INFO] Parameter: basedir, Value: /home/hernan/.local/tmp/trails > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > [WARNING] org.apache.velocity.runtime.exception.ReferenceException : > reference : template = archetype-resources/pom.xml [line 24,column 42] : > ${hsqldb.version} is not a valid reference. > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 142,column 66] : ${ > log4j.version} is not a valid reference. > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > reference : template = archetype-resources/pom.xml [line 191,column 34] : > ${hsqldb.version} is not a valid reference. > [INFO] ********************* End of debug info from resources from generated > POM *********************** > [INFO] Archetype created in dir: /home/hernan/.local/tmp/trails/TestTrails > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 30 seconds > [INFO] Finished at: Tue Jan 15 10:28:26 GMT-03:00 2008 > [INFO] Final Memory: 5M/9M > [INFO] > ------------------------------------------------------------------------ > > > > > On Jan 15, 2008 11:10 AM, Alejandro Scandroli <alejandroscandroli@... > > wrote: > > Hi > > > > yes I've tried it in Windows (I'm at work) and it works. > > At lunch time I will try to log on a linux box to try it on linux. > > I'm using java 1.6.0_03 and Maven 2.0.8 on Window, btw. > > > > You are welcome. > > > > > > -- > > Alejandro Scandroli > > Amneris: We build process-driven web applications. > > http://www.amneris.es > > > > > > > > > > > > On Jan 15, 2008 1:45 PM, Margherita Bresco <mbresco@... > > wrote: > > > Hi, > > > > > > I already deleted the .m2 and even the Maven and Trails files. > > > > > > I also tried on two different computers each one on a different network > > > and the error is the same. > > > > > > Did you try to launch the command on your computer? Does it work? > > > > > > Anyway, thank you so much for attention. > > > > > > Margherita > > > > > > > > > > > > Alejandro Scandroli wrote: > > > > hmmm, the debug information is not helpful at all. > > > > I have no clue what's going on. > > > > If it was working last week, maybe you can try deleting your .m2 > > > > repository cache, or at least the Maven and Trails files. > > > > I can't think of anything else. > > > > > > > > Alejandro. > > > > > > > > > > > > On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@... > > wrote: > > > > > > > >> Ciao Alejandro, > > > >> > > > >> the same command, last week, worked perfectly. > > > >> > > > >> I thought that maybe can be a problem with the maven repository.... > > > >> > > > >> This is the message with -e option: > > > >> > > > >> + Error stacktraces are turned on. > > > >> [INFO] Scanning for projects... > > > >> [INFO] Searching repository for plugin with prefix: 'archetype'. > > > >> [INFO] > > > >> > ------------------------------------------------------------------------ > > > >> [ERROR] BUILD FAILURE > > > >> [INFO] > > > >> > ------------------------------------------------------------------------ > > > >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > > > >> specify a valid lifecycle phase, or a goal in the format plugin:goal > or > > > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > >> [INFO] > > > >> > ------------------------------------------------------------------------ > > > >> [INFO] Trace > > > >> org.apache.maven.BuildFailureException: Invalid task > > > >> 'archetypeArtifactId=trails-archetype': you must specify a valid > > > >> lifecycle phase, or a goal in the format plugin:goal or > > > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > >> at > > > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor > (DefaultLifecycleExecutor.java:1515) > > > >> at > > > >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) > > > >> at > > > >> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) > > > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > > > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > > > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > > > >> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > > >> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) > > > >> at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > > >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > >> [INFO] > > > >> > ------------------------------------------------------------------------ > > > >> [INFO] Total time: < 1 second > > > >> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 > > > >> [INFO] Final Memory: 1M/3M > > > >> [INFO] > > > >> > ------------------------------------------------------------------------ > > > >> > > > >> > > > >> Thank you for helping me! > > > >> > > > >> Margherita > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> Alejandro Scandroli wrote: > > > >> > > > >>> Ciao Margherita, > > > >>> > > > >>> Weird, that's definitively the right command. > > > >>> What's you system configuration? > > > >>> Can you run it again using the "-e" switch so we can get debug > info?. > > > >>> > > > >>> Alejandro. > > > >>> > > > >>> -- > > > >>> Alejandro Scandroli > > > >>> Amneris: We build process-driven web applications. > > > >>> http://www.amneris.es > > > >>> > > > >>> > > > >>> On Jan 15, 2008 10:13 AM, Margherita Bresco < > mbresco@...> wrote: > > > >>> > > > >>> > > > >>>> Hello, > > > >>>> I have a problem of BUILD FAILURE. > > > >>>> I used the following command: > > > >>>> > > > >>>> mvn \ > > > >>>> archetype:create \ > > > >>>> -DarchetypeGroupId=org.trailsframework \ > > > >>>> -DarchetypeArtifactId=trails-archetype \ > > > >>>> -DarchetypeVersion=1.1.1 \ > > > >>>> -DgroupId=it.inogs.nodc.test \ > > > >>>> -DartifactId=TestTrails > > > >>>> > > > >>>> > > > >>>> And the result is the following message: > > > >>>> > > > >>>> [INFO] Scanning for projects... > > > >>>> [INFO] Searching repository for plugin with prefix: 'archetype'. > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [ERROR] BUILD FAILURE > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you > must > > > >>>> specify a valid lifecycle phase, or a goal in the format > plugin:goal or > > > >>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [INFO] For more information, run Maven with the -e switch > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> [INFO] Total time: < 1 second > > > >>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > > > >>>> [INFO] Final Memory: 1M/3M > > > >>>> [INFO] > > > >>>> > ------------------------------------------------------------------------ > > > >>>> > > > >>>> > > > >>>> Can you help me please to understand what's wrong? > > > >>>> Thank you > > > >>>> > > > >>>> Margherita > > > >>>> > > > >>>> > > > >>>> > ________________________________________________________________________ > > > >>>> > > > >>>> Margherita Bresco > > > >>>> > > > >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - > OGS > > > >>>> Dipartimento di Oceanografia - OGA > > > >>>> National Oceanographic Data Centre/IOC - NODC > > > >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > >>>> Phone: +39 040 2140276 > > > >>>> E-mail: mbresco@... > > > >>>> > > > >>>> > > > >>>> > --------------------------------------------------------------------- > > > >>>> To unsubscribe from this list please visit: > > > >>>> > > > >>>> http://xircles.codehaus.org/manage_email > > > >>>> > > > >>>> > > > >>>> > > > >>>> > > > >>> > --------------------------------------------------------------------- > > > >>> To unsubscribe from this list please visit: > > > >>> > > > >>> http://xircles.codehaus.org/manage_email > > > >>> > > > >>> > > > >> -- > > > >> > > > >> > ________________________________________________________________________ > > > >> > > > >> Margherita Bresco > > > >> > > > >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > > > >> Dipartimento di Oceanografia - OGA > > > >> National Oceanographic Data Centre/IOC - NODC > > > >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > >> Phone: +39 040 2140276 > > > >> E-mail: mbresco@... > > > >> > > > >> > > > >> > > > >> --------------------------------------------------------------------- > > > >> To unsubscribe from this list please visit: > > > >> > > > >> http://xircles.codehaus.org/manage_email > > > >> > > > >> > > > >> > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe from this list please visit: > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > -- > > > ________________________________________________________________________ > > > > > > Margherita Bresco > > > > > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > > > Dipartimento di Oceanografia - OGA > > > National Oceanographic Data Centre/IOC - NODC > > > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > Phone: +39 040 2140276 > > > E-mail: mbresco@... > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > -- > My definition of an expert in any field is a person who knows enough about > what's really going to be scared. > - PJ Plauger > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
RE: BUILD FAILURE
Hi Margherita,
Until I get some time to provide additional up to sync feedback... feel free to copy one of the example projects in the mean time. Roster example has both document/imaging support and security already built into it. These examples can be hand copied and their configurations hand edited. But thats cumbersome. It does help alot if the project creation mechanism works. It might be worth logging a jira with all your configuration details so someone could get to reproducing that eventually, as I believe what your seeing exists but do not know why. Also, there is a maven revision configuration in the top level trails parent pom. I recently upgraded to jre-1.5.0_14 but due to my own private unrelated runtime problems and impact ... I backed down to jre-1.5.0_06 which has been reliable for me. Alejandro seems to be on the forefront of revisions and I have yet to qualify my runtime with what he has. Best regards Ken in nashua > Date: Tue, 15 Jan 2008 16:44:41 +0100 > From: alejandroscandroli@... > To: users@... > Subject: Re: [trails-users] BUILD FAILURE > > Hi > > Thanks Hernán for testing it. > I'm sorry Margherita but it worked OK on my linux box too, using > Debian, java 1.5.0_10 and Maven 2.0.7 > > :( > > Alejandro. > > On Jan 15, 2008 2:33 PM, Hernán Soulages <acuariano@...> wrote: > > I tried it here and it worked fine: > > > > ~/.local/tmp/trails$ mvn archetype:create > > -DarchetypeGroupId=org.trailsframework > > -DarchetypeArtifactId=trails-archetype -DarchetypeVersion=1.1.1 > > -DgroupId=it.inogs.nodc.test -DartifactId=TestTrails > > > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'archetype'. > > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking > > for updates from central > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom > > 4K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom > > 3K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom > > 2K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar > > 12K downloaded > > [INFO] > > ---------------------------------------------------------------------------- > > [INFO] Building Maven Default Project > > [INFO] task-segment: [archetype:create] (aggregator-style) > > [INFO] > > ---------------------------------------------------------------------------- > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom > > 1K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.pom > > 7K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-7/plexus-container-default-1.0-alpha-7.pom > > 1K downloaded > > Downloading: > > http://repo1.maven.org/maven2/plexus/plexus-containers/1.0.2/plexus-containers-1.0.2.pom > > 471b downloaded > > Downloading: > > http://repo1.maven.org/maven2/plexus/plexus-root/1.0.3/plexus-root-1.0.3.pom > > 5K downloaded > > Downloading: > > http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.pom > > 740b downloaded > > Downloading: > > http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom > > 168b downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.pom > > 1K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom > > 1K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom > > 1K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.pom > > 439b downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.jar > > 18K downloaded > > Downloading: > > http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar > > 25K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar > > 129K downloaded > > Downloading: > > http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar > > 156K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.jar > > 23K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar > > 7K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar > > 6K downloaded > > Downloading: > > http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar > > 24K downloaded > > [INFO] Setting property: classpath.resource.loader.class => > > 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > > [INFO] Setting property: velocimacro.messages.on => 'false'. > > [INFO] Setting property: resource.loader => 'classpath'. > > [INFO] Setting property: resource.manager.logwhenfound => 'false'. > > [INFO] ************************************************************** > > [INFO] Starting Jakarta Velocity v1.4 > > [INFO] RuntimeInstance initializing. > > [INFO] Default Properties File: > > org/apache/velocity/runtime/defaults/velocity.properties > > [INFO] Default ResourceManager initializing. (class > > org.apache.velocity.runtime.resource.ResourceManagerImpl) > > [INFO] Resource Loader Instantiated: > > org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > > [INFO] ClasspathResourceLoader : initialization starting. > > [INFO] ClasspathResourceLoader : initialization complete. > > [INFO] ResourceCache : initialized. (class > > org.apache.velocity.runtime.resource.ResourceCacheImpl) > > [INFO] Default ResourceManager initialization complete. > > [INFO] Loaded System Directive: > > org.apache.velocity.runtime.directive.Literal > > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro > > [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse > > [INFO] Loaded System Directive: > > org.apache.velocity.runtime.directive.Include > > [INFO] Loaded System Directive: > > org.apache.velocity.runtime.directive.Foreach > > [INFO] Created: 20 parsers. > > [INFO] Velocimacro : initialization starting. > > [INFO] Velocimacro : adding VMs from VM library template : > > VM_global_library.vm > > [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in > > any resource loader. > > [INFO] Velocimacro : error using VM library template VM_global_library.vm : > > org.apache.velocity.exception.ResourceNotFoundException: Unable to find > > resource 'VM_global_library.vm' > > [INFO] Velocimacro : VM library template macro registration complete. > > [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > > templates > > [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may > > NOT replace previous VM definitions > > [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > > global in scope if allowed. > > [INFO] Velocimacro : initialization complete. > > [INFO] Velocity successfully started. > > [INFO] [archetype:create] > > [INFO] Defaulting package to group ID: it.inogs.nodc.test > > Downloading: > > http://repo1.maven.org/maven2/org/trailsframework/trails-archetype/1.1.1/trails-archetype-1.1.1.jar > > 48K downloaded > > [INFO] > > ---------------------------------------------------------------------------- > > [INFO] Using following parameters for creating Archetype: trails-archetype: > > 1.1.1 > > [INFO] > > ---------------------------------------------------------------------------- > > [INFO] Parameter: groupId, Value: it.inogs.nodc.test > > [INFO] Parameter: packageName, Value: it.inogs.nodc.test > > [INFO] Parameter: package, Value: it.inogs.nodc.test > > [INFO] Parameter: artifactId, Value: TestTrails > > [INFO] Parameter: basedir, Value: /home/hernan/.local/tmp/trails > > [INFO] Parameter: version, Value: 1.0-SNAPSHOT > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException : > > reference : template = archetype-resources/pom.xml [line 24,column 42] : > > ${hsqldb.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > > reference : template = archetype-resources/pom.xml [line 142,column 66] : ${ > > log4j.version} is not a valid reference. > > [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > > reference : template = archetype-resources/pom.xml [line 191,column 34] : > > ${hsqldb.version} is not a valid reference. > > [INFO] ********************* End of debug info from resources from generated > > POM *********************** > > [INFO] Archetype created in dir: /home/hernan/.local/tmp/trails/TestTrails > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD SUCCESSFUL > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 30 seconds > > [INFO] Finished at: Tue Jan 15 10:28:26 GMT-03:00 2008 > > [INFO] Final Memory: 5M/9M > > [INFO] > > ------------------------------------------------------------------------ > > > > > > > > > > On Jan 15, 2008 11:10 AM, Alejandro Scandroli <alejandroscandroli@... > > > wrote: > > > Hi > > > > > > yes I've tried it in Windows (I'm at work) and it works. > > > At lunch time I will try to log on a linux box to try it on linux. > > > I'm using java 1.6.0_03 and Maven 2.0.8 on Window, btw. > > > > > > You are welcome. > > > > > > > > > -- > > > Alejandro Scandroli > > > Amneris: We build process-driven web applications. > > > http://www.amneris.es > > > > > > > > > > > > > > > > > > On Jan 15, 2008 1:45 PM, Margherita Bresco <mbresco@... > > > wrote: > > > > Hi, > > > > > > > > I already deleted the .m2 and even the Maven and Trails files. > > > > > > > > I also tried on two different computers each one on a different network > > > > and the error is the same. > > > > > > > > Did you try to launch the command on your computer? Does it work? > > > > > > > > Anyway, thank you so much for attention. > > > > > > > > Margherita > > > > > > > > > > > > > > > > Alejandro Scandroli wrote: > > > > > hmmm, the debug information is not helpful at all. > > > > > I have no clue what's going on. > > > > > If it was working last week, maybe you can try deleting your .m2 > > > > > repository cache, or at least the Maven and Trails files. > > > > > I can't think of anything else. > > > > > > > > > > Alejandro. > > > > > > > > > > > > > > > On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@... > > > wrote: > > > > > > > > > >> Ciao Alejandro, > > > > >> > > > > >> the same command, last week, worked perfectly. > > > > >> > > > > >> I thought that maybe can be a problem with the maven repository.... > > > > >> > > > > >> This is the message with -e option: > > > > >> > > > > >> + Error stacktraces are turned on. > > > > >> [INFO] Scanning for projects... > > > > >> [INFO] Searching repository for plugin with prefix: 'archetype'. > > > > >> [INFO] > > > > >> > > ------------------------------------------------------------------------ > > > > >> [ERROR] BUILD FAILURE > > > > >> [INFO] > > > > >> > > ------------------------------------------------------------------------ > > > > >> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > > > > >> specify a valid lifecycle phase, or a goal in the format plugin:goal > > or > > > > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > > >> [INFO] > > > > >> > > ------------------------------------------------------------------------ > > > > >> [INFO] Trace > > > > >> org.apache.maven.BuildFailureException: Invalid task > > > > >> 'archetypeArtifactId=trails-archetype': you must specify a valid > > > > >> lifecycle phase, or a goal in the format plugin:goal or > > > > >> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > > >> at > > > > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor > > (DefaultLifecycleExecutor.java:1515) > > > > >> at > > > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) > > > > >> at > > > > >> > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) > > > > >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > > > > >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > > > > >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > > > > >> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > > > >> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) > > > > >> at > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > > > >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > >> [INFO] > > > > >> > > ------------------------------------------------------------------------ > > > > >> [INFO] Total time: < 1 second > > > > >> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 > > > > >> [INFO] Final Memory: 1M/3M > > > > >> [INFO] > > > > >> > > ------------------------------------------------------------------------ > > > > >> > > > > >> > > > > >> Thank you for helping me! > > > > >> > > > > >> Margherita > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> Alejandro Scandroli wrote: > > > > >> > > > > >>> Ciao Margherita, > > > > >>> > > > > >>> Weird, that's definitively the right command. > > > > >>> What's you system configuration? > > > > >>> Can you run it again using the "-e" switch so we can get debug > > info?. > > > > >>> > > > > >>> Alejandro. > > > > >>> > > > > >>> -- > > > > >>> Alejandro Scandroli > > > > >>> Amneris: We build process-driven web applications. > > > > >>> http://www.amneris.es > > > > >>> > > > > >>> > > > > >>> On Jan 15, 2008 10:13 AM, Margherita Bresco < > > mbresco@...> wrote: > > > > >>> > > > > >>> > > > > >>>> Hello, > > > > >>>> I have a problem of BUILD FAILURE. > > > > >>>> I used the following command: > > > > >>>> > > > > >>>> mvn \ > > > > >>>> archetype:create \ > > > > >>>> -DarchetypeGroupId=org.trailsframework \ > > > > >>>> -DarchetypeArtifactId=trails-archetype \ > > > > >>>> -DarchetypeVersion=1.1.1 \ > > > > >>>> -DgroupId=it.inogs.nodc.test \ > > > > >>>> -DartifactId=TestTrails > > > > >>>> > > > > >>>> > > > > >>>> And the result is the following message: > > > > >>>> > > > > >>>> [INFO] Scanning for projects... > > > > >>>> [INFO] Searching repository for plugin with prefix: 'archetype'. > > > > >>>> [INFO] > > > > >>>> > > ------------------------------------------------------------------------ > > > > >>>> [ERROR] BUILD FAILURE > > > > >>>> [INFO] > > > > >>>> > > ------------------------------------------------------------------------ > > > > >>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you > > must > > > > >>>> specify a valid lifecycle phase, or a goal in the format > > plugin:goal or > > > > >>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > > > > >>>> [INFO] > > > > >>>> > > ------------------------------------------------------------------------ > > > > >>>> [INFO] For more information, run Maven with the -e switch > > > > >>>> [INFO] > > > > >>>> > > ------------------------------------------------------------------------ > > > > >>>> [INFO] Total time: < 1 second > > > > >>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > > > > >>>> [INFO] Final Memory: 1M/3M > > > > >>>> [INFO] > > > > >>>> > > ------------------------------------------------------------------------ > > > > >>>> > > > > >>>> > > > > >>>> Can you help me please to understand what's wrong? > > > > >>>> Thank you > > > > >>>> > > > > >>>> Margherita > > > > >>>> > > > > >>>> > > > > >>>> > > ________________________________________________________________________ > > > > >>>> > > > > >>>> Margherita Bresco > > > > >>>> > > > > >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - > > OGS > > > > >>>> Dipartimento di Oceanografia - OGA > > > > >>>> National Oceanographic Data Centre/IOC - NODC > > > > >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > > >>>> Phone: +39 040 2140276 > > > > >>>> E-mail: mbresco@... > > > > >>>> > > > > >>>> > > > > >>>> > > --------------------------------------------------------------------- > > > > >>>> To unsubscribe from this list please visit: > > > > >>>> > > > > >>>> http://xircles.codehaus.org/manage_email > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>> > > --------------------------------------------------------------------- > > > > >>> To unsubscribe from this list please visit: > > > > >>> > > > > >>> http://xircles.codehaus.org/manage_email > > > > >>> > > > > >>> > > > > >> -- > > > > >> > > > > >> > > ________________________________________________________________________ > > > > >> > > > > >> Margherita Bresco > > > > >> > > > > >> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > > > > >> Dipartimento di Oceanografia - OGA > > > > >> National Oceanographic Data Centre/IOC - NODC > > > > >> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > > >> Phone: +39 040 2140276 > > > > >> E-mail: mbresco@... > > > > >> > > > > >> > > > > >> > > > > >> --------------------------------------------------------------------- > > > > >> To unsubscribe from this list please visit: > > > > >> > > > > >> http://xircles.codehaus.org/manage_email > > > > >> > > > > >> > > > > >> > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe from this list please visit: > > > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > > > > > -- > > > > ________________________________________________________________________ > > > > > > > > Margherita Bresco > > > > > > > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > > > > Dipartimento di Oceanografia - OGA > > > > National Oceanographic Data Centre/IOC - NODC > > > > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > > > > Phone: +39 040 2140276 > > > > E-mail: mbresco@... > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe from this list please visit: > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > > -- > > My definition of an expert in any field is a person who knows enough about > > what's really going to be scared. > > - PJ Plauger > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > Watch “Cause Effect,” a show about real people making a real difference. Learn more Best regards
Ken in nashua |
|
|
Re: BUILD FAILUREHi,
thanks everyone for helping me. I threw away the maven package under Debian and I installed the one downloaded from the apache maven website (version 2.0.8). Now the compilation works (except for this error: [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.) Anyway the building ends with the message "BUILD SUCCESSFUL". but I have another problem with the command mvn jetty:run and the result was [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for updates from central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Jan 16 10:28:40 GMT+01:00 2008 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ and with the command mvn tomcat:run the result [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'tomcat'. [INFO] artifact org.codehaus.mojo:tomcat-maven-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/1.0-alpha-1/tomcat-maven-plugin-1.0-alpha-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/13/mojo-13.pom 8K downloaded Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/1.0-alpha-1/tomcat-maven-plugin-1.0-alpha-1.jar 39K downloaded [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [tomcat:run] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing tomcat:run [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar 13K downloaded [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom 2K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom 5K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar 17K downloaded [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12 seconds [INFO] Finished at: Wed Jan 16 10:29:26 GMT+01:00 2008 [INFO] Final Memory: 2M/4M [INFO] ------------------------------------------------------------------------ So I tried on Windows XP but nothing changed. I also tried to install maven version 2.0.7 but the result is the same and it doesn't matter which version of java I use (1.5 or 1.6). I hope someone has any hint about which test can I do for understanding the problem. Thank you Margherita Alejandro Scandroli wrote: > Hi > > Thanks Hernán for testing it. > I'm sorry Margherita but it worked OK on my linux box too, using > Debian, java 1.5.0_10 and Maven 2.0.7 > > :( > > Alejandro. > > On Jan 15, 2008 2:33 PM, Hernán Soulages <acuariano@...> wrote: > >> I tried it here and it worked fine: >> >> ~/.local/tmp/trails$ mvn archetype:create >> -DarchetypeGroupId=org.trailsframework >> -DarchetypeArtifactId=trails-archetype -DarchetypeVersion=1.1.1 >> -DgroupId=it.inogs.nodc.test -DartifactId=TestTrails >> >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'archetype'. >> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking >> for updates from central >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom >> 4K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom >> 3K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom >> 2K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar >> 12K downloaded >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Building Maven Default Project >> [INFO] task-segment: [archetype:create] (aggregator-style) >> [INFO] >> ---------------------------------------------------------------------------- >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom >> 1K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.pom >> 7K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-7/plexus-container-default-1.0-alpha-7.pom >> 1K downloaded >> Downloading: >> http://repo1.maven.org/maven2/plexus/plexus-containers/1.0.2/plexus-containers-1.0.2.pom >> 471b downloaded >> Downloading: >> http://repo1.maven.org/maven2/plexus/plexus-root/1.0.3/plexus-root-1.0.3.pom >> 5K downloaded >> Downloading: >> http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.pom >> 740b downloaded >> Downloading: >> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom >> 168b downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.pom >> 1K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom >> 1K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom >> 1K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.pom >> 439b downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.jar >> 18K downloaded >> Downloading: >> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar >> 25K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar >> 129K downloaded >> Downloading: >> http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar >> 156K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.jar >> 23K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar >> 7K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar >> 6K downloaded >> Downloading: >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar >> 24K downloaded >> [INFO] Setting property: classpath.resource.loader.class => >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. >> [INFO] Setting property: velocimacro.messages.on => 'false'. >> [INFO] Setting property: resource.loader => 'classpath'. >> [INFO] Setting property: resource.manager.logwhenfound => 'false'. >> [INFO] ************************************************************** >> [INFO] Starting Jakarta Velocity v1.4 >> [INFO] RuntimeInstance initializing. >> [INFO] Default Properties File: >> org/apache/velocity/runtime/defaults/velocity.properties >> [INFO] Default ResourceManager initializing. (class >> org.apache.velocity.runtime.resource.ResourceManagerImpl) >> [INFO] Resource Loader Instantiated: >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader >> [INFO] ClasspathResourceLoader : initialization starting. >> [INFO] ClasspathResourceLoader : initialization complete. >> [INFO] ResourceCache : initialized. (class >> org.apache.velocity.runtime.resource.ResourceCacheImpl) >> [INFO] Default ResourceManager initialization complete. >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Literal >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Include >> [INFO] Loaded System Directive: >> org.apache.velocity.runtime.directive.Foreach >> [INFO] Created: 20 parsers. >> [INFO] Velocimacro : initialization starting. >> [INFO] Velocimacro : adding VMs from VM library template : >> VM_global_library.vm >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in >> any resource loader. >> [INFO] Velocimacro : error using VM library template VM_global_library.vm : >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find >> resource 'VM_global_library.vm' >> [INFO] Velocimacro : VM library template macro registration complete. >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in >> templates >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may >> NOT replace previous VM definitions >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be >> global in scope if allowed. >> [INFO] Velocimacro : initialization complete. >> [INFO] Velocity successfully started. >> [INFO] [archetype:create] >> [INFO] Defaulting package to group ID: it.inogs.nodc.test >> Downloading: >> http://repo1.maven.org/maven2/org/trailsframework/trails-archetype/1.1.1/trails-archetype-1.1.1.jar >> 48K downloaded >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Using following parameters for creating Archetype: trails-archetype: >> 1.1.1 >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Parameter: groupId, Value: it.inogs.nodc.test >> [INFO] Parameter: packageName, Value: it.inogs.nodc.test >> [INFO] Parameter: package, Value: it.inogs.nodc.test >> [INFO] Parameter: artifactId, Value: TestTrails >> [INFO] Parameter: basedir, Value: /home/hernan/.local/tmp/trails >> [INFO] Parameter: version, Value: 1.0-SNAPSHOT >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException : >> reference : template = archetype-resources/pom.xml [line 24,column 42] : >> ${hsqldb.version} is not a valid reference. >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: >> reference : template = archetype-resources/pom.xml [line 142,column 66] : ${ >> log4j.version} is not a valid reference. >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: >> reference : template = archetype-resources/pom.xml [line 191,column 34] : >> ${hsqldb.version} is not a valid reference. >> [INFO] ********************* End of debug info from resources from generated >> POM *********************** >> [INFO] Archetype created in dir: /home/hernan/.local/tmp/trails/TestTrails >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESSFUL >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 30 seconds >> [INFO] Finished at: Tue Jan 15 10:28:26 GMT-03:00 2008 >> [INFO] Final Memory: 5M/9M >> [INFO] >> ------------------------------------------------------------------------ >> >> >> >> >> On Jan 15, 2008 11:10 AM, Alejandro Scandroli <alejandroscandroli@... >> >>> wrote: >>> Hi >>> >>> yes I've tried it in Windows (I'm at work) and it works. >>> At lunch time I will try to log on a linux box to try it on linux. >>> I'm using java 1.6.0_03 and Maven 2.0.8 on Window, btw. >>> >>> You are welcome. >>> >>> >>> -- >>> Alejandro Scandroli >>> Amneris: We build process-driven web applications. >>> http://www.amneris.es >>> >>> >>> >>> >>> >>> On Jan 15, 2008 1:45 PM, Margherita Bresco <mbresco@... > >>> >> wrote: >> >>>> Hi, >>>> >>>> I already deleted the .m2 and even the Maven and Trails files. >>>> >>>> I also tried on two different computers each one on a different network >>>> and the error is the same. >>>> >>>> Did you try to launch the command on your computer? Does it work? >>>> >>>> Anyway, thank you so much for attention. >>>> >>>> Margherita >>>> >>>> >>>> >>>> Alejandro Scandroli wrote: >>>> >>>>> hmmm, the debug information is not helpful at all. >>>>> I have no clue what's going on. >>>>> If it was working last week, maybe you can try deleting your .m2 >>>>> repository cache, or at least the Maven and Trails files. >>>>> I can't think of anything else. >>>>> >>>>> Alejandro. >>>>> >>>>> >>>>> On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@... > >>>>> >> wrote: >> >>>>>> Ciao Alejandro, >>>>>> >>>>>> the same command, last week, worked perfectly. >>>>>> >>>>>> I thought that maybe can be a problem with the maven repository.... >>>>>> >>>>>> This is the message with -e option: >>>>>> >>>>>> + Error stacktraces are turned on. >>>>>> [INFO] Scanning for projects... >>>>>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>>>>> [INFO] >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> [ERROR] BUILD FAILURE >>>>>> [INFO] >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must >>>>>> specify a valid lifecycle phase, or a goal in the format plugin:goal >>>>>> >> or >> >>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal >>>>>> [INFO] >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> [INFO] Trace >>>>>> org.apache.maven.BuildFailureException: Invalid task >>>>>> 'archetypeArtifactId=trails-archetype': you must specify a valid >>>>>> lifecycle phase, or a goal in the format plugin:goal or >>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal >>>>>> at >>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor >>>>>> >> (DefaultLifecycleExecutor.java:1515) >> >>>>>> at >>>>>> >>>>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) >> >>>>>> at >>>>>> >>>>>> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) >> >>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) >>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) >>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) >>>>>> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> >>>>>> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) >>>>>> at >>>>>> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>>>>> [INFO] >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> [INFO] Total time: < 1 second >>>>>> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 >>>>>> [INFO] Final Memory: 1M/3M >>>>>> [INFO] >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> Thank you for helping me! >>>>>> >>>>>> Margherita >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Alejandro Scandroli wrote: >>>>>> >>>>>> >>>>>>> Ciao Margherita, >>>>>>> >>>>>>> Weird, that's definitively the right command. >>>>>>> What's you system configuration? >>>>>>> Can you run it again using the "-e" switch so we can get debug >>>>>>> >> info?. >> >>>>>>> Alejandro. >>>>>>> >>>>>>> -- >>>>>>> Alejandro Scandroli >>>>>>> Amneris: We build process-driven web applications. >>>>>>> http://www.amneris.es >>>>>>> >>>>>>> >>>>>>> On Jan 15, 2008 10:13 AM, Margherita Bresco < >>>>>>> >> mbresco@...> wrote: >> >>>>>>> >>>>>>>> Hello, >>>>>>>> I have a problem of BUILD FAILURE. >>>>>>>> I used the following command: >>>>>>>> >>>>>>>> mvn \ >>>>>>>> archetype:create \ >>>>>>>> -DarchetypeGroupId=org.trailsframework \ >>>>>>>> -DarchetypeArtifactId=trails-archetype \ >>>>>>>> -DarchetypeVersion=1.1.1 \ >>>>>>>> -DgroupId=it.inogs.nodc.test \ >>>>>>>> -DartifactId=TestTrails >>>>>>>> >>>>>>>> >>>>>>>> And the result is the following message: >>>>>>>> >>>>>>>> [INFO] Scanning for projects... >>>>>>>> [INFO] Searching repository for plugin with prefix: 'archetype'. >>>>>>>> [INFO] >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------ >> >>>>>>>> [ERROR] BUILD FAILURE >>>>>>>> [INFO] >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------ >> >>>>>>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you >>>>>>>> >> must >> >>>>>>>> specify a valid lifecycle phase, or a goal in the format >>>>>>>> >> plugin:goal or >> >>>>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal >>>>>>>> [INFO] >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------ >> >>>>>>>> [INFO] For more information, run Maven with the -e switch >>>>>>>> [INFO] >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------ >> >>>>>>>> [INFO] Total time: < 1 second >>>>>>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 >>>>>>>> [INFO] Final Memory: 1M/3M >>>>>>>> [INFO] >>>>>>>> >>>>>>>> >> ------------------------------------------------------------------------ >> >>>>>>>> Can you help me please to understand what's wrong? >>>>>>>> Thank you >>>>>>>> >>>>>>>> Margherita >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >> ________________________________________________________________________ >> >>>>>>>> Margherita Bresco >>>>>>>> >>>>>>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - >>>>>>>> >> OGS >> >>>>>>>> Dipartimento di Oceanografia - OGA >>>>>>>> National Oceanographic Data Centre/IOC - NODC >>>>>>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >>>>>>>> Phone: +39 040 2140276 >>>>>>>> E-mail: mbresco@... >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >> --------------------------------------------------------------------- >> >>>>>>>> To unsubscribe from this list please visit: >>>>>>>> >>>>>>>> http://xircles.codehaus.org/manage_email >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >> --------------------------------------------------------------------- >> >>>>>>> To unsubscribe from this list please visit: >>>>>>> >>>>>>> http://xircles.codehaus.org/manage_email >>>>>>> >>>>>>> >>>>>>> >>>>>> -- >>>>>> >>>>>> >>>>>> >> ________________________________________________________________________ >> >>>>>> Margherita Bresco >>>>>> >>>>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS >>>>>> Dipartimento di Oceanografia - OGA >>>>>> National Oceanographic Data Centre/IOC - NODC >>>>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >>>>>> Phone: +39 040 2140276 >>>>>> E-mail: mbresco@... >>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe from this list please visit: >>>>>> >>>>>> http://xircles.codehaus.org/manage_email >>>>>> >>>>>> >>>>>> >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe from this list please visit: >>>>> >>>>> http://xircles.codehaus.org/manage_email >>>>> >>>>> >>>> -- >>>> ________________________________________________________________________ >>>> >>>> Margherita Bresco >>>> >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS >>>> Dipartimento di Oceanografia - OGA >>>> National Oceanographic Data Centre/IOC - NODC >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) >>>> Phone: +39 040 2140276 >>>> E-mail: mbresco@... >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> -- >> My definition of an expert in any field is a person who knows enough about >> what's really going to be scared. >> - PJ Plauger >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > -- ________________________________________________________________________ Margherita Bresco Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS Dipartimento di Oceanografia - OGA National Oceanographic Data Centre/IOC - NODC Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) Phone: +39 040 2140276 E-mail: mbresco@... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD FAILUREHi Margherita,
I'm glad you managed to workaround it. I've checked tomcat and jetty versions for the Trails 1.1.1 archetype and their are both correct and available in public repos. http://repo1.maven.org/maven2/org/mortbay/jetty/maven-jetty-plugin/6.1.1/ http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/1.0-alpha-1/ So, I'm guessing you didn't run the command from the correct directory. Which in your case should be TestTrails. I'm basing my guess on this line: [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. Please, let me know if I'm wrong. -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Jan 16, 2008 11:37 AM, Margherita Bresco <mbresco@...> wrote: > Hi, > thanks everyone for helping me. > I threw away the maven package under Debian and I installed the one > downloaded from the apache maven website (version 2.0.8). > Now the compilation works (except for this error: [ERROR] > ResourceManager : unable to find resource 'VM_global_library.vm' in any > resource loader.) Anyway the building ends with the message "BUILD > SUCCESSFUL". > > but I have another problem with the command > mvn jetty:run > > and the result was > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'jetty'. > [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: > checking for updates from central > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does > not exist or no valid version could be found > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Jan 16 10:28:40 GMT+01:00 2008 > [INFO] Final Memory: 1M/2M > [INFO] > ------------------------------------------------------------------------ > > and with the command > mvn tomcat:run > > the result > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'tomcat'. > [INFO] artifact org.codehaus.mojo:tomcat-maven-plugin: checking for > updates from central > Downloading: > http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/1.0-alpha-1/tomcat-maven-plugin-1.0-alpha-1.pom > 3K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/13/mojo-13.pom > 8K downloaded > Downloading: > http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/1.0-alpha-1/tomcat-maven-plugin-1.0-alpha-1.jar > 39K downloaded > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Maven Default Project > [INFO] task-segment: [tomcat:run] > [INFO] > ---------------------------------------------------------------------------- > [INFO] Preparing tomcat:run > [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: > checking for updates from central > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom > 1K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom > 3K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom > 6K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom > 3K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar > 13K downloaded > [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: > checking for updates from central > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom > 2K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom > 5K downloaded > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar > 17K downloaded > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Cannot execute mojo: resources. It requires a project with an > existing pom.xml, but the build is not using one. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 12 seconds > [INFO] Finished at: Wed Jan 16 10:29:26 GMT+01:00 2008 > [INFO] Final Memory: 2M/4M > [INFO] > ------------------------------------------------------------------------ > > > So I tried on Windows XP but nothing changed. > I also tried to install maven version 2.0.7 but the result is the same > and it doesn't matter which version of java I use (1.5 or 1.6). > > I hope someone has any hint about which test can I do for understanding > the problem. > > Thank you > > Margherita > > > > > > > Alejandro Scandroli wrote: > > Hi > > > > Thanks Hernán for testing it. > > I'm sorry Margherita but it worked OK on my linux box too, using > > Debian, java 1.5.0_10 and Maven 2.0.7 > > > > :( > > > > Alejandro. > > > > On Jan 15, 2008 2:33 PM, Hernán Soulages <acuariano@...> wrote: > > > >> I tried it here and it worked fine: > >> > >> ~/.local/tmp/trails$ mvn archetype:create > >> -DarchetypeGroupId=org.trailsframework > >> -DarchetypeArtifactId=trails-archetype -DarchetypeVersion=1.1.1 > >> -DgroupId=it.inogs.nodc.test -DartifactId=TestTrails > >> > >> [INFO] Scanning for projects... > >> [INFO] Searching repository for plugin with prefix: 'archetype'. > >> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking > >> for updates from central > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom > >> 4K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom > >> 3K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-parent/2/maven-archetype-parent-2.pom > >> 2K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar > >> 12K downloaded > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] Building Maven Default Project > >> [INFO] task-segment: [archetype:create] (aggregator-style) > >> [INFO] > >> ---------------------------------------------------------------------------- > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom > >> 1K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.pom > >> 7K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-7/plexus-container-default-1.0-alpha-7.pom > >> 1K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/plexus/plexus-containers/1.0.2/plexus-containers-1.0.2.pom > >> 471b downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/plexus/plexus-root/1.0.3/plexus-root-1.0.3.pom > >> 5K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.pom > >> 740b downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.pom > >> 168b downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.pom > >> 1K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom > >> 1K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom > >> 1K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.pom > >> 439b downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-model/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.jar > >> 18K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar > >> 25K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-5/plexus-archiver-1.0-alpha-5.jar > >> 129K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.jar > >> 156K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.jar > >> 23K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plexus-velocity-1.1.2.jar > >> 7K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/maven-downloader-1.0.jar > >> 6K downloaded > >> Downloading: > >> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-core/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar > >> 24K downloaded > >> [INFO] Setting property: classpath.resource.loader.class => > >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. > >> [INFO] Setting property: velocimacro.messages.on => 'false'. > >> [INFO] Setting property: resource.loader => 'classpath'. > >> [INFO] Setting property: resource.manager.logwhenfound => 'false'. > >> [INFO] ************************************************************** > >> [INFO] Starting Jakarta Velocity v1.4 > >> [INFO] RuntimeInstance initializing. > >> [INFO] Default Properties File: > >> org/apache/velocity/runtime/defaults/velocity.properties > >> [INFO] Default ResourceManager initializing. (class > >> org.apache.velocity.runtime.resource.ResourceManagerImpl) > >> [INFO] Resource Loader Instantiated: > >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader > >> [INFO] ClasspathResourceLoader : initialization starting. > >> [INFO] ClasspathResourceLoader : initialization complete. > >> [INFO] ResourceCache : initialized. (class > >> org.apache.velocity.runtime.resource.ResourceCacheImpl) > >> [INFO] Default ResourceManager initialization complete. > >> [INFO] Loaded System Directive: > >> org.apache.velocity.runtime.directive.Literal > >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro > >> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse > >> [INFO] Loaded System Directive: > >> org.apache.velocity.runtime.directive.Include > >> [INFO] Loaded System Directive: > >> org.apache.velocity.runtime.directive.Foreach > >> [INFO] Created: 20 parsers. > >> [INFO] Velocimacro : initialization starting. > >> [INFO] Velocimacro : adding VMs from VM library template : > >> VM_global_library.vm > >> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in > >> any resource loader. > >> [INFO] Velocimacro : error using VM library template VM_global_library.vm : > >> org.apache.velocity.exception.ResourceNotFoundException: Unable to find > >> resource 'VM_global_library.vm' > >> [INFO] Velocimacro : VM library template macro registration complete. > >> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in > >> templates > >> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may > >> NOT replace previous VM definitions > >> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be > >> global in scope if allowed. > >> [INFO] Velocimacro : initialization complete. > >> [INFO] Velocity successfully started. > >> [INFO] [archetype:create] > >> [INFO] Defaulting package to group ID: it.inogs.nodc.test > >> Downloading: > >> http://repo1.maven.org/maven2/org/trailsframework/trails-archetype/1.1.1/trails-archetype-1.1.1.jar > >> 48K downloaded > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] Using following parameters for creating Archetype: trails-archetype: > >> 1.1.1 > >> [INFO] > >> ---------------------------------------------------------------------------- > >> [INFO] Parameter: groupId, Value: it.inogs.nodc.test > >> [INFO] Parameter: packageName, Value: it.inogs.nodc.test > >> [INFO] Parameter: package, Value: it.inogs.nodc.test > >> [INFO] Parameter: artifactId, Value: TestTrails > >> [INFO] Parameter: basedir, Value: /home/hernan/.local/tmp/trails > >> [INFO] Parameter: version, Value: 1.0-SNAPSHOT > >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException : > >> reference : template = archetype-resources/pom.xml [line 24,column 42] : > >> ${hsqldb.version} is not a valid reference. > >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > >> reference : template = archetype-resources/pom.xml [line 142,column 66] : ${ > >> log4j.version} is not a valid reference. > >> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: > >> reference : template = archetype-resources/pom.xml [line 191,column 34] : > >> ${hsqldb.version} is not a valid reference. > >> [INFO] ********************* End of debug info from resources from generated > >> POM *********************** > >> [INFO] Archetype created in dir: /home/hernan/.local/tmp/trails/TestTrails > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] BUILD SUCCESSFUL > >> [INFO] > >> ------------------------------------------------------------------------ > >> [INFO] Total time: 30 seconds > >> [INFO] Finished at: Tue Jan 15 10:28:26 GMT-03:00 2008 > >> [INFO] Final Memory: 5M/9M > >> [INFO] > >> ------------------------------------------------------------------------ > >> > >> > >> > >> > >> On Jan 15, 2008 11:10 AM, Alejandro Scandroli <alejandroscandroli@... > >> > >>> wrote: > >>> Hi > >>> > >>> yes I've tried it in Windows (I'm at work) and it works. > >>> At lunch time I will try to log on a linux box to try it on linux. > >>> I'm using java 1.6.0_03 and Maven 2.0.8 on Window, btw. > >>> > >>> You are welcome. > >>> > >>> > >>> -- > >>> Alejandro Scandroli > >>> Amneris: We build process-driven web applications. > >>> http://www.amneris.es > >>> > >>> > >>> > >>> > >>> > >>> On Jan 15, 2008 1:45 PM, Margherita Bresco <mbresco@... > > >>> > >> wrote: > >> > >>>> Hi, > >>>> > >>>> I already deleted the .m2 and even the Maven and Trails files. > >>>> > >>>> I also tried on two different computers each one on a different network > >>>> and the error is the same. > >>>> > >>>> Did you try to launch the command on your computer? Does it work? > >>>> > >>>> Anyway, thank you so much for attention. > >>>> > >>>> Margherita > >>>> > >>>> > >>>> > >>>> Alejandro Scandroli wrote: > >>>> > >>>>> hmmm, the debug information is not helpful at all. > >>>>> I have no clue what's going on. > >>>>> If it was working last week, maybe you can try deleting your .m2 > >>>>> repository cache, or at least the Maven and Trails files. > >>>>> I can't think of anything else. > >>>>> > >>>>> Alejandro. > >>>>> > >>>>> > >>>>> On Jan 15, 2008 11:17 AM, Margherita Bresco <mbresco@... > > >>>>> > >> wrote: > >> > >>>>>> Ciao Alejandro, > >>>>>> > >>>>>> the same command, last week, worked perfectly. > >>>>>> > >>>>>> I thought that maybe can be a problem with the maven repository.... > >>>>>> > >>>>>> This is the message with -e option: > >>>>>> > >>>>>> + Error stacktraces are turned on. > >>>>>> [INFO] Scanning for projects... > >>>>>> [INFO] Searching repository for plugin with prefix: 'archetype'. > >>>>>> [INFO] > >>>>>> > >>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>> [ERROR] BUILD FAILURE > >>>>>> [INFO] > >>>>>> > >>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you must > >>>>>> specify a valid lifecycle phase, or a goal in the format plugin:goal > >>>>>> > >> or > >> > >>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > >>>>>> [INFO] > >>>>>> > >>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>> [INFO] Trace > >>>>>> org.apache.maven.BuildFailureException: Invalid task > >>>>>> 'archetypeArtifactId=trails-archetype': you must specify a valid > >>>>>> lifecycle phase, or a goal in the format plugin:goal or > >>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > >>>>>> at > >>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor > >>>>>> > >> (DefaultLifecycleExecutor.java:1515) > >> > >>>>>> at > >>>>>> > >>>>>> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:386) > >> > >>>>>> at > >>>>>> > >>>>>> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138) > >> > >>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > >>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > >>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > >>>>>> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315) > >> > >>>>>> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255) > >>>>>> at > >>>>>> > >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > >> > >>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > >>>>>> [INFO] > >>>>>> > >>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>> [INFO] Total time: < 1 second > >>>>>> [INFO] Finished at: Tue Jan 15 11:07:49 GMT+01:00 2008 > >>>>>> [INFO] Final Memory: 1M/3M > >>>>>> [INFO] > >>>>>> > >>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>> Thank you for helping me! > >>>>>> > >>>>>> Margherita > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> Alejandro Scandroli wrote: > >>>>>> > >>>>>> > >>>>>>> Ciao Margherita, > >>>>>>> > >>>>>>> Weird, that's definitively the right command. > >>>>>>> What's you system configuration? > >>>>>>> Can you run it again using the "-e" switch so we can get debug > >>>>>>> > >> info?. > >> > >>>>>>> Alejandro. > >>>>>>> > >>>>>>> -- > >>>>>>> Alejandro Scandroli > >>>>>>> Amneris: We build process-driven web applications. > >>>>>>> http://www.amneris.es > >>>>>>> > >>>>>>> > >>>>>>> On Jan 15, 2008 10:13 AM, Margherita Bresco < > >>>>>>> > >> mbresco@...> wrote: > >> > >>>>>>> > >>>>>>>> Hello, > >>>>>>>> I have a problem of BUILD FAILURE. > >>>>>>>> I used the following command: > >>>>>>>> > >>>>>>>> mvn \ > >>>>>>>> archetype:create \ > >>>>>>>> -DarchetypeGroupId=org.trailsframework \ > >>>>>>>> -DarchetypeArtifactId=trails-archetype \ > >>>>>>>> -DarchetypeVersion=1.1.1 \ > >>>>>>>> -DgroupId=it.inogs.nodc.test \ > >>>>>>>> -DartifactId=TestTrails > >>>>>>>> > >>>>>>>> > >>>>>>>> And the result is the following message: > >>>>>>>> > >>>>>>>> [INFO] Scanning for projects... > >>>>>>>> [INFO] Searching repository for plugin with prefix: 'archetype'. > >>>>>>>> [INFO] > >>>>>>>> > >>>>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>>>> [ERROR] BUILD FAILURE > >>>>>>>> [INFO] > >>>>>>>> > >>>>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>>>> [INFO] Invalid task 'archetypeArtifactId=trails-archetype': you > >>>>>>>> > >> must > >> > >>>>>>>> specify a valid lifecycle phase, or a goal in the format > >>>>>>>> > >> plugin:goal or > >> > >>>>>>>> pluginGroupId:pluginArtifactId:pluginVersion:goal > >>>>>>>> [INFO] > >>>>>>>> > >>>>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>>>> [INFO] For more information, run Maven with the -e switch > >>>>>>>> [INFO] > >>>>>>>> > >>>>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>>>> [INFO] Total time: < 1 second > >>>>>>>> [INFO] Finished at: Tue Jan 15 09:56:16 GMT+01:00 2008 > >>>>>>>> [INFO] Final Memory: 1M/3M > >>>>>>>> [INFO] > >>>>>>>> > >>>>>>>> > >> ------------------------------------------------------------------------ > >> > >>>>>>>> Can you help me please to understand what's wrong? > >>>>>>>> Thank you > >>>>>>>> > >>>>>>>> Margherita > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >> ________________________________________________________________________ > >> > >>>>>>>> Margherita Bresco > >>>>>>>> > >>>>>>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - > >>>>>>>> > >> OGS > >> > >>>>>>>> Dipartimento di Oceanografia - OGA > >>>>>>>> National Oceanographic Data Centre/IOC - NODC > >>>>>>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >>>>>>>> Phone: +39 040 2140276 > >>>>>>>> E-mail: mbresco@... > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >> --------------------------------------------------------------------- > >> > >>>>>>>> To unsubscribe from this list please visit: > >>>>>>>> > >>>>>>>> http://xircles.codehaus.org/manage_email > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >> --------------------------------------------------------------------- > >> > >>>>>>> To unsubscribe from this list please visit: > >>>>>>> > >>>>>>> http://xircles.codehaus.org/manage_email > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> -- > >>>>>> > >>>>>> > >>>>>> > >> ________________________________________________________________________ > >> > >>>>>> Margherita Bresco > >>>>>> > >>>>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > >>>>>> Dipartimento di Oceanografia - OGA > >>>>>> National Oceanographic Data Centre/IOC - NODC > >>>>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >>>>>> Phone: +39 040 2140276 > >>>>>> E-mail: mbresco@... > >>>>>> > >>>>>> > >>>>>> > >>>>>> --------------------------------------------------------------------- > >>>>>> To unsubscribe from this list please visit: > >>>>>> > >>>>>> http://xircles.codehaus.org/manage_email > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> --------------------------------------------------------------------- > >>>>> To unsubscribe from this list please visit: > >>>>> > >>>>> http://xircles.codehaus.org/manage_email > >>>>> > >>>>> > >>>> -- > >>>> ________________________________________________________________________ > >>>> > >>>> Margherita Bresco > >>>> > >>>> Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > >>>> Dipartimento di Oceanografia - OGA > >>>> National Oceanographic Data Centre/IOC - NODC > >>>> Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > >>>> Phone: +39 040 2140276 > >>>> E-mail: mbresco@... > >>>> > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe from this list please visit: > >>>> > >>>> http://xircles.codehaus.org/manage_email > >>>> > >>>> > >>>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe from this list please visit: > >>> > >>> http://xircles.codehaus.org/manage_email > >>> > >>> > >>> > >> > >> -- > >> My definition of an expert in any field is a person who knows enough about > >> what's really going to be scared. > >> - PJ Plauger > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > -- > ________________________________________________________________________ > > Margherita Bresco > > Istituto Nazionale di Oceanografia e di Geofisica Sperimentale - OGS > Dipartimento di Oceanografia - OGA > National Oceanographic Data Centre/IOC - NODC > Borgo Grotta Gigante 42/c, 34010 Sgonico, Trieste (ITALY) > Phone: +39 040 2140276 > E-mail: mbresco@... > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD SUCCESSFULThank you Alejandro,
you were right. Everything works now. Margherita --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: BUILD SUCCESSFULI'm glad.
Happy Trails! :D -- Alejandro Scandroli Amneris: We build process-driven web applications. http://www.amneris.es On Jan 16, 2008 1:33 PM, Margherita Bresco <mbresco@...> wrote: > Thank you Alejandro, > > you were right. Everything works now. > > Margherita > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |