Recent activity
Subscribe to this feed
Agt reported a problem in Sonatype on December 12, 2008 17:16:
"mvn hibernate3:hbm2ddl" in "7.7. Running the Web Application" doesn't work.Book version: Beta 0.20 (HTML). To reproduce:
$ mvn -version
Maven version: 2.0.9
Java version: 1.5.0_16
OS name: "linux" version: "2.6.18-92.1.1.el5" arch: "i386" Family: "unix"
$ rm -rf ~/.m2/ # just to be sure...
$ cd ~/src/tmp/
$ wget http://www.sonatype.com/book/mvn-exam...
$ md5sum mvn-examples-1.0.tar.gz
da7d196392cf76d626b49c3e7bf7e877 mvn-examples-1.0.tar.gz
$ tar xzf mvn-examples-1.0.tar.gz
$ cd mavenbook-examples-1-SNAPSHOT/ch07-multi-spring/simple-parent/simple-webapp/
$ mvn hibernate3:hbm2ddl 2>&1 | tee output.txt
[...]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.sonatype.mavenbook.ch07:simple-weather:jar:1-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactId=simple-weather -Dversion=1-SNAPSHOT -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.sonatype.mavenbook.ch07 -DartifactId=simple-weather -Dversion=1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.sonatype.mavenbook.ch07:simple-webapp:war:1-SNAPSHOT
2) org.sonatype.mavenbook.ch07:simple-weather:jar:1-SNAPSHOT
2) org.sonatype.mavenbook.ch07:simple-persist:jar:1-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.sonatype.mavenbook.ch07 -DartifactId=simple-persist -Dversion=1-SNAPSHOT -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.sonatype.mavenbook.ch07 -DartifactId=simple-persist -Dversion=1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.sonatype.mavenbook.ch07:simple-webapp:war:1-SNAPSHOT
2) org.sonatype.mavenbook.ch07:simple-persist:jar:1-SNAPSHOT
----------
2 required artifacts are missing.
for artifact:
org.sonatype.mavenbook.ch07:simple-webapp:war:1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
sonatype-forge (http://repository.sonatype.org/conten...),
Central (http://repo1.maven.org/maven2),
Codehaus Snapshots (http://snapshots.repository.codehaus.org)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39 seconds
[INFO] Finished at: Fri Dec 12 17:54:30 CET 2008
[INFO] Final Memory: 6M/73M
[INFO] ------------------------------------------------------------------------
More details upon request.
Loading Profile...
