You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jörg Schaible <Jo...@Elsag-Solutions.com> on 2003/11/27 14:39:13 UTC
maven cli & build trouble
Hello Maven developers,
I have currently trouble with the cli of Maven and the Maven build itself:
=========== snip ============
$ maven -Dmaven.genapp.template.repository=C:/Work/buildsystem/templates -Dmaven.genapp.template.name="Elsag-Solutions Application" -Dmaven.genapp.template.package=com.elsagsolutions.app -Dmaven.genapp.template.id=esapp genapp
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
BUILD FAILED
Goal "Application" does not exist in this project.
Total time: 2 seconds
Finished at: Thu Nov 27 13:51:16 CET 2003
=========== snap ============
Does anybody have a clue (I tried any thinkable combination of setting the quotation)? Originally I thought it is a bug in CLIManager.java (http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1058), but if I run this comannd-line in the debugger with the sources from MAVEN-1_0-BRANCH and commons-cli-1.0-beta-2 it works.
Unfortunately I cannot create and work with a Maven snapshot (checked out MAVEN-1_0-BRANCH), since its build fails.
============= snip ==========
$ ant -f build-bootstrap.xml
Buildfile: build-bootstrap.xml
check-maven-home:
check-maven-home-local-1:
check-maven-home-local-2:
check-maven-repo-local:
check-properties:
check-env:
[echo] maven.home = c:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT
env:
[echo] maven.home = c:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT
[echo] maven.home.local = C:\Dokumente und Einstellungen\jos\.maven
[echo] maven.repo.local = C:\Dokumente und Einstellungen\jos\.maven\repository
[echo]
[echo] +----------------------------------------------------------
[echo] | WARNING WARNING WARNING WARNING WARNING WARNING WARNING
[echo] |
[echo] | Maven bootstrap now creates a repository in
[echo] | ${user.home}/.maven/repository
[echo] | if you do not have the maven.repo.local property set
[echo] | before bootstrapping.
[echo] |
[echo] | Maven bootstrap also expands plugins to
[echo] | ${user.home}/.maven/plugins
[echo] | if you do not have the MAVEN_HOME_LOCAL environment
[echo] | variable or
[echo] | maven.home.local property set before bootstrapping.
[echo] |
[echo] | This feature is to accomodate the new ability of Maven
[echo] | to work from a read only install to MAVEN_HOME.
[echo] |
[echo] | WARNING WARNING WARNING WARNING WARNING WARNING WARNING
[echo] +----------------------------------------------------------
bootstrap-compile:
[delete] Deleting directory C:\Work\Apps\Maven\maven\bootstrap
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\bootstrap-classes
[javac] Compiling 4 source files to C:\Work\Apps\Maven\maven\bootstrap\bootstrap-classes
bootstrap:
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | L O A D I N G B O O T S T R A P T A S K D E F |
[echo] | |
[echo] +------------------------------------------------------------------+
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | R U N N I N G B O O T S T R A P T A S K |
[echo] | |
[echo] +------------------------------------------------------------------+
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\bin
[bootstrap] Using the following for your maven.repo.local: C:\Dokumente und Einstellungen\jos\.maven\repository
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\dom4j\jars\dom4j-1.4-dev-8.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\ant\jars\ant-1.5.3-1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\ant\jars\ant-optional-1.5.3-1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-betwixt\jars\commons-betwixt-1.0-beta-1.20030111.103454.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-digester\jars\commons-digester-1.4.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-jelly\jars\commons-jelly-tags-ant-20030625.032346.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-jelly\jars\commons-jelly-tags-define-20030211.142932.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-jelly\jars\commons-jelly-tags-util-20030211.141939.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-graph\jars\commons-graph-0.8.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-jexl\jars\commons-jexl-1.0-beta-1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-logging\jars\commons-logging-1.0.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\werkz\jars\werkz-1.0-beta-10.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-beanutils\jars\commons-beanutils-1.6.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-cli\jars\commons-cli-1.0-beta-2.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-collections\jars\commons-collections-2.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-grant\jars\commons-grant-1.0-beta-4.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-io\jars\commons-io-20030203.000550.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\commons-lang\jars\commons-lang-1.0-b1.1.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\forehead\jars\forehead-1.0-beta-5.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\log4j\jars\log4j-1.2.8.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\which\jars\which-1.0.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\xml-apis\jars\xml-apis-1.0.b2.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\xerces\jars\xerces-2.4.0.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\xpp3\jars\xpp3-1.1.2a.jar exists. Not dowloading.
[bootstrap] Destination file C:\Dokumente und Einstellungen\jos\.maven\repository\plexus\jars\plexus-0.6.jar exists. Not dowloading.
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | C O M P I L I N G M A V E N S O U R C E S U S I N G A N T |
[echo] | |
[echo] +------------------------------------------------------------------+
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\phase1-classes
[javac] Compiling 96 source files to C:\Work\Apps\Maven\maven\bootstrap\phase1-classes
[copy] Copying 4 files to C:\Work\Apps\Maven\maven\bootstrap\phase1-classes
[copy] Copying 10 files to C:\Work\Apps\Maven\maven\bootstrap\phase1-classes\org\apache\maven\messages
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | C R E A T I N G M A V E N J A R W I T H A N T |
[echo] | |
[echo] +------------------------------------------------------------------+
[jar] Building jar: C:\Work\Apps\Maven\maven\bootstrap\maven.jar
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | C R E A T I N G P H A S E 1 I N S T A L L |
[echo] | |
[echo] +------------------------------------------------------------------+
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1\bin
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1\lib
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1\plugins
[copy] Copying 5 files to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\bin
[copy] Copying 26 files to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\lib
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1\lib\endorsed
[move] Moving 2 files to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\lib\endorsed
[copy] Copying 1 file to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\lib
[copy] Copying 1 file to C:\Dokumente und Einstellungen\jos\.maven\repository\maven\jars
[copy] Copying 1 file to C:\Dokumente und Einstellungen\jos\.maven\repository\maven\jars
[copy] Copying 1 file to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\plugins
clean-maven-home:
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\bin
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\bin
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\lib
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\lib
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\plugins
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\plugins
[copy] Copying 32 files to C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT
[copy] Copying 1 file to C:\Dokumente und Einstellungen\jos\.maven
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | B U I L D I N G T H E P L U G I N S |
[echo] | |
[echo] +------------------------------------------------------------------+
[echo]
[exec] __ __
[exec] | \/ |__ _Apache__ ___
[exec] | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
[exec] |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2-SNAPSHOT
[exec] Tag library requested that is not present: 'deploy'
[exec] Starting the reactor...
[exec] Our processing order:
[exec] Maven Eclipse Plug-in
[exec] Maven Genapp Plugin
[exec] Maven JBuilder Plug-in
[exec] +----------------------------------------
[exec] | Building Maven Eclipse Plug-in
[exec] | Memory: 2M/2M
[exec] +----------------------------------------
[exec] BUILD FAILED
[exec] com.werken.werkz.NoSuchGoalException: No goal [clean]
[exec] at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:609)
[exec] at org.apache.maven.MavenSession.attainGoals(MavenSession.java:275)
[exec] at org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:312)
[exec] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
[exec] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
[exec] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
[exec] at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
[exec] at com.werken.werkz.Goal.fire(Goal.java:639)
[exec] at com.werken.werkz.Goal.attain(Goal.java:575)
[exec] at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:611)
[exec] at org.apache.maven.MavenSession.attainGoals(MavenSession.java:275)
[exec] at org.apache.maven.cli.App.doMain(App.java:545)
[exec] at org.apache.maven.cli.App.main(App.java:1112)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] Total time: 2 seconds
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] Finished at: Thu Nov 27 14:32:36 CET 2003
[exec] at java.lang.reflect.Method.invoke(Method.java:324)
[exec] at com.werken.forehead.Forehead.run(Forehead.java:551)
[exec] at com.werken.forehead.Forehead.main(Forehead.java:581)
[exec] No goal [clean]
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | I N S T A L L I N G T H E P L U G I N S |
[echo] | |
[echo] +------------------------------------------------------------------+
[echo]
[delete] Deleting directory C:\Work\Apps\Maven\maven\bootstrap\install-phase1\plugins
[mkdir] Created dir: C:\Work\Apps\Maven\maven\bootstrap\install-phase1\plugins
[copy] Copying 1 file to C:\Work\Apps\Maven\maven\bootstrap\install-phase1\plugins
[echo]
[echo] +------------------------------------------------------------------+
[echo] | |
[echo] | B U I L D I N G M A V E N W I T H I T S E L F |
[echo] | |
[echo] +------------------------------------------------------------------+
[echo]
[exec] __ __
[exec] | \/ |__ _Apache__ ___
[exec] | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
[exec] |_| |_\__,_|\_/\___|_||_| v. 1.0-rc2-SNAPSHOT
[exec] Tag library requested that is not present: 'deploy'
[exec] com.werken.werkz.NoSuchGoalException: No goal [clean]
[exec] at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:609)
[exec] at org.apache.maven.MavenSession.attainGoals(MavenSession.java:275)
[exec] at org.apache.maven.cli.App.doMain(App.java:545)
[exec] at org.apache.maven.cli.App.main(App.java:1112)
[exec] Total time: 2 seconds
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] Finished at: Thu Nov 27 14:32:38 CET 2003
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:324)
[exec] at com.werken.forehead.Forehead.run(Forehead.java:551)
[exec] at com.werken.forehead.Forehead.main(Forehead.java:581)
clean-maven-home:
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\bin
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\bin
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\lib
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\lib
[delete] Deleting directory C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\plugins
[mkdir] Created dir: C:\Programme\Apache Software Foundation\Maven 1.0-SNAPSHOT\plugins
[delete] Deleting directory C:\Dokumente und Einstellungen\jos\.maven\plugins
BUILD FAILED
file:C:/Work/Apps/Maven/maven/build-bootstrap.xml:321: Warning: Could not find file C:\Work\Apps\Maven\maven\target\maven.jar to copy.
Total time: 14 seconds
============= snap ==========
Regards,
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: maven cli & build trouble
Posted by di...@multitask.com.au.
Jörg Schaible <Jo...@Elsag-Solutions.com> wrote on 28/11/2003
12:39:13 AM:
> Hello Maven developers,
>
> I have currently trouble with the cli of Maven and the Maven build
itself:
>
> =========== snip ============
> $ maven -Dmaven.genapp.template.repository=C:/Work/buildsystem/templates
-
> Dmaven.genapp.template.name="Elsag-Solutions Application"
-Dmaven.genapp.
> template.package=com.elsagsolutions.app -Dmaven.genapp.template.id=esapp
genapp
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT
>
> BUILD FAILED
> Goal "Application" does not exist in this project.
> Total time: 2 seconds
> Finished at: Thu Nov 27 13:51:16 CET 2003
> =========== snap ============
>
> Does anybody have a clue (I tried any thinkable combination of setting
the
> quotation)? Originally I thought it is a bug in CLIManager.java (http:
> //jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1058), but if I run
this
> comannd-line in the debugger with the sources from MAVEN-1_0-BRANCH and
> commons-cli-1.0-beta-2 it works.
is this windows or linux.
If it's windows, it's easy. just put the quotes around the entire
argument, including the -D=
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org