I had the same issue and changed from "mvn" to "mvn.bat". It worked. However, now I am getting the following error:
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Building HornetQ REST Interface Implementation
[java] [INFO] task-segment: [install]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] [resources:resources {execution: default-resources}]
[java] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[java] [INFO] skip non existing resourceDirectory C:\dev\hornetq\hornetq-rest\hornetq-rest\src\main\resources
[java] [INFO] ------------------------------------------------------------------------
[java] [ERROR] BUILD ERROR
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Failed to resolve artifact.
[java]
[java] Missing:
[java] ----------
[java] 1) org.hornetq:hornetq-core:jar:2.2.0.CR1
[java]
[java] Try downloading the file manually from the project website.
[java]
[java] Then, install it using the command:
[java] mvn install:install-file -DgroupId=org.hornetq -DartifactId=hornetq-core -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file
[java]
[java] Alternatively, if you host your own repository you can deploy the file there:
[java] mvn deploy:deploy-file -DgroupId=org.hornetq -DartifactId=hornetq-core -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[java]
[java] Path to dependency:
[java] 1) org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java] 2) org.hornetq:hornetq-core:jar:2.2.0.CR1
[java]
[java] 2) org.hornetq:hornetq-jms:jar:2.2.0.CR1
[java]
[java] Try downloading the file manually from the project website.
[java]
[java] Then, install it using the command:
[java] mvn install:install-file -DgroupId=org.hornetq -DartifactId=hornetq-jms -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file
[java]
[java] Alternatively, if you host your own repository you can deploy the file there:
[java] mvn deploy:deploy-file -DgroupId=org.hornetq -DartifactId=hornetq-jms -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[java]
[java] Path to dependency:
[java] 1) org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java] 2) org.hornetq:hornetq-jms:jar:2.2.0.CR1
[java]
[java] ----------
[java] 2 required artifacts are missing.
[java]
[java] for artifact:
[java] org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java]
[java] from the specified remote repositories:
[java]
[java]
[java]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] For more information, run Maven with the -e switch
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Total time: 9 seconds
[java] [INFO] Finished at: Sun Dec 12 18:23:57 CET 2010
[java] [INFO] Final Memory: 14M/34M
[java] [INFO] ------------------------------------------------------------------------
Done
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Building HornetQ REST Interface Implementation
[java] [INFO] task-segment: [install]
[java] [INFO] ------------------------------------------------------------------------
...
(http://repository.jboss.org/nexus/content/groups/public/)
[java] Downloading: http://repo1.maven.org/maven2/org/hornetq/hornetq-core/2.2.0.CR1/hornetq-core-2.2.0.CR1.jar
[java] [INFO] Unable to find resource 'org.hornetq:hornetq-core:jar:2.2.0.CR1' in repository central (http://repo1.maven.org/maven2)
[java] Downloading: http://repository.jboss.org/nexus/content/groups/public//org/hornetq/hornetq-jms/2.2.0.CR1/hornetq-jms-2.2.0.CR1.jar
[java] [INFO] Unable to find resource 'org.hornetq:hornetq-jms:jar:2.2.0.CR1' in repository jboss (http://repository.jboss.org/nexus/content/groups/public/)
[java] Downloading: http://repo1.maven.org/maven2/org/hornetq/hornetq-jms/2.2.0.CR1/hornetq-jms-2.2.0.CR1.jar
[java] [INFO] Unable to find resource 'org.hornetq:hornetq-jms:jar:2.2.0.CR1' in repository central (http://repo1.maven.org/maven2)
[java] [INFO] ------------------------------------------------------------------------
[java] [ERROR] BUILD ERROR
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Failed to resolve artifact.
[java]
[java] Missing:
[java] ----------
[java] 1) org.hornetq:hornetq-core:jar:2.2.0.CR1
[java]
[java] Try downloading the file manually from the project website.
[java]
[java] Then, install it using the command:
[java] mvn install:install-file -DgroupId=org.hornetq -DartifactId=hornetq-core -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file
[java]
[java] Alternatively, if you host your own repository you can deploy the file there:
[java] mvn deploy:deploy-file -DgroupId=org.hornetq -DartifactId=hornetq-core -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[java]
[java] Path to dependency:
[java] 1) org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java] 2) org.hornetq:hornetq-core:jar:2.2.0.CR1
[java]
[java] 2) org.hornetq:hornetq-jms:jar:2.2.0.CR1
[java]
[java] Try downloading the file manually from the project website.
[java]
[java] Then, install it using the command:
[java] mvn install:install-file -DgroupId=org.hornetq -DartifactId=hornetq-jms -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file
[java]
[java] Alternatively, if you host your own repository you can deploy the file there:
[java] mvn deploy:deploy-file -DgroupId=org.hornetq -DartifactId=hornetq-jms -Dversion=2.2.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[java]
[java] Path to dependency:
[java] 1) org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java] 2) org.hornetq:hornetq-jms:jar:2.2.0.CR1
[java]
[java] ----------
[java] 2 required artifacts are missing.
[java]
[java] for artifact:
[java] org.hornetq.rest:hornetq-rest:jar:2.2.0.CR1
[java]
[java] from the specified remote repositories:
[java] central (http://repo1.maven.org/maven2),
[java] jboss (http://repository.jboss.org/nexus/content/groups/public/)
[java]
[java]
[java]
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] For more information, run Maven with the -e switch
[java] [INFO] ------------------------------------------------------------------------
[java] [INFO] Total time: 9 seconds
[java] [INFO] Finished at: Sun Dec 12 18:23:57 CET 2010
[java] [INFO] Final Memory: 14M/34M
[java] [INFO] ------------------------------------------------------------------------
Done
Can anyone help out?
/Romney