This is probably because it can't download the files..
I would double check your networking, but because you're emailing us
I'll assume it's working.
Someone I know also had issue like this, and the cause for him was he
installed it as root on his laptop, so when he tried to build it as his
user he didn't have permissions to actually modify the repository. So
it could not successfully fetch any dependencies.
Though I don't recommend it, he runs all maven with sudo.
Not sure what the best way to install it is, but I installed maven on my
laptop simply by extracting it into a directory as my user, then adding
the bin directory to my user's path..
tapestryphoto wrote:
Quoting Olle Hallin <[EMAIL PROTECTED]>:
Does it work from the command line?
Olle
I tried mvn war:war from the project directory.
Bizarrely it gives even more problems. I find Maven very frustrating...
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.maven:maven-archiver:jar:2.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven
-DartifactId=maven-arc
hiver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.maven
-DartifactId=maven-archi
ver -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryI
d=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.apache.maven:maven-archiver:jar:2.2
2) org.codehaus.plexus:plexus-utils:jar:1.4.7
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus
-utils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-u
tils -Dversion=1.4.7 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) org.codehaus.plexus:plexus-utils:jar:1.4.7
3) com.thoughtworks.xstream:xstream:jar:1.2.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.thoughtworks.xstream
-DartifactId=x
stream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream
-DartifactId=xst
ream -Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]
Path to dependency:
1)
org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1-alpha-1
2) com.thoughtworks.xstream:xstream:jar:1.2.2
----------
3 required artifacts are missing.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]