I'm having trouble building Maven. I'm sure I'm doing something stupid but can't figure out what.
Anyway this is what I'm doing...

I use this to check out Maven

svn co https://svn.apache.org/repos/asf/maven/maven-2/branches/maven-2.2.x maven-2.2.x

Then on this page 
http://maven.apache.org/guides/development/guide-building-m2.html

I follow the part that says
Building Maven Without Maven Installed

I do this...

export M2_HOME=/usr/local/maven-2.2-SNAPSHOT
PATH=$M2_HOME/bin:$PATH

and then run

ant

I immediately get this out put and the build fails. Can anyone set me straight?

Thanks.


Buildfile: build.xml

clean-bootstrap:

initTaskDefs:

isMavenHomeSet:
     [echo] Using Maven home at: /usr/local/maven-2.2-SNAPSHOT

initLocalRepo:
     [echo] Using the local repository at: /var/root/.m2/repository

init:
     [echo] maven.home = /usr/local/maven-2.2-SNAPSHOT
[echo] maven.assembly = /opt/maven-2.2.x/apache-maven/target/ apache-maven-2.2.2-RC1-SNAPSHOT-bin.zip

read-poms:
     [copy] Copying 1 file to /opt/maven-2.2.x
[artifact:pom] Error reading settings file '/usr/local/maven-2.2- SNAPSHOT/conf/settings.xml' - ignoring. Error was: /usr/local/ maven-2.2-SNAPSHOT/conf/settings.xml (No such file or directory)
   [delete] Deleting: /opt/maven-2.2.x/dependencies.xml
[artifact:pom] Error reading settings file '/usr/local/maven-2.2- SNAPSHOT/conf/settings.xml' - ignoring. Error was: /usr/local/ maven-2.2-SNAPSHOT/conf/settings.xml (No such file or directory)

pull:
[artifact:dependencies] Error reading settings file '/usr/local/ maven-2.2-SNAPSHOT/conf/settings.xml' - ignoring. Error was: /usr/ local/maven-2.2-SNAPSHOT/conf/settings.xml (No such file or directory) [artifact:dependencies] Error reading settings file '/usr/local/ maven-2.2-SNAPSHOT/conf/settings.xml' - ignoring. Error was: /usr/ local/maven-2.2-SNAPSHOT/conf/settings.xml (No such file or directory)



Patrick Coleman
[email protected]
301-651-9573




Reply via email to