[jboss-user] [EJB 3.0] - Re: Problems with Embedded EJB3.1 from trunk

pete.muir@jboss.org do-not-reply at jboss.com
Fri Dec 5 08:07:36 EST 2008


Another problem with the build - if I include the artifact using:

<dependency>
  |    <groupId>org.jboss.ejb3</groupId>
  |    <artifactId>jboss-ejb3-embedded</artifactId>
  |    <scope>test</scope>
  | </dependency>

Then I get a problem resolving some artifacts:

Downloading: http://snapshots.jboss.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.GA/jboss-kernel-2.0.0.GA.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/microcontainer/jboss-dependency/2.0.0.GA/jboss-dependency-2.0.0.GA.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR5/jboss-deployers-vfs-2.0.0.CR5.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR5/jboss-deployers-structure-spi-2.0.0.CR5.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR5/jboss-deployers-core-spi-2.0.0.CR5.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR5/jboss-deployers-impl-2.0.0.CR5.jar
  | Downloading: http://snapshots.jboss.org/maven2/org/jboss/metadata/jboss-metadata/1.0.0.CR1/jboss-metadata-1.0.0.CR1.jar
  | [INFO] ------------------------------------------------------------------------
  | [ERROR] BUILD ERROR
  | [INFO] ------------------------------------------------------------------------
  | [INFO] Failed to resolve artifact.
  | 
  | Missing:
  | ----------
  | 1) org.jboss.microcontainer:jboss-kernel:jar:2.0.0.GA
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.GA -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.jboss.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.microcontainer:jboss-kernel:jar:2.0.0.GA
  | 
  | 2) org.jboss.microcontainer:jboss-dependency:jar:2.0.0.GA
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-dependency -Dversion=2.0.0.GA -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.jboss.microcontainer -DartifactId=jboss-dependency -Dversion=2.0.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.microcontainer:jboss-dependency:jar:2.0.0.GA
  | 
  | 3) org.jboss.deployers:jboss-deployers-vfs:jar:2.0.0.CR5
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-vfs -Dversion=2.0.0.CR5 -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.jboss.deployers -DartifactId=jboss-deployers-vfs -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.deployers:jboss-deployers-vfs:jar:2.0.0.CR5
  | 
  | 4) org.jboss.deployers:jboss-deployers-structure-spi:jar:2.0.0.CR5
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-structure-spi -Dversion=2.0.0.CR5 -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.jboss.deployers -DartifactId=jboss-deployers-structure-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.deployers:jboss-deployers-structure-spi:jar:2.0.0.CR5
  | 
  | 5) org.jboss.deployers:jboss-deployers-core-spi:jar:2.0.0.CR5
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-core-spi -Dversion=2.0.0.CR5 -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.jboss.deployers -DartifactId=jboss-deployers-core-spi -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.deployers:jboss-deployers-core-spi:jar:2.0.0.CR5
  | 
  | 6) org.jboss.deployers:jboss-deployers-impl:jar:2.0.0.CR5
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.deployers -DartifactId=jboss-deployers-impl -Dversion=2.0.0.CR5 -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.jboss.deployers -DartifactId=jboss-deployers-impl -Dversion=2.0.0.CR5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.deployers:jboss-deployers-impl:jar:2.0.0.CR5
  | 
  | 7) org.jboss.metadata:jboss-metadata:jar:1.0.0.CR1
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command: 
  |       mvn install:install-file -DgroupId=org.jboss.metadata -DartifactId=jboss-metadata -Dversion=1.0.0.CR1 -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.jboss.metadata -DartifactId=jboss-metadata -Dversion=1.0.0.CR1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency: 
  |   	1) org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  |   	2) org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT
  |   	3) org.jboss.metadata:jboss-metadata:jar:1.0.0.CR1
  | 
  | ----------
  | 7 required artifacts are missing.
  | 
  | for artifact: 
  |   org.jboss.webbeans:webbeans-ri:jar:1.0.0-SNAPSHOT
  | 
  | from the specified remote repositories:
  |   central (http://repo1.maven.org/maven2),
  |   google-maven-repository (http://google-maven-repository.googlecode.com/svn/repository/),
  |   repository.jboss.org (http://repository.jboss.org/maven2),
  |   snapshots.jboss.org (http://snapshots.jboss.org/maven2)

As you can see, it's trying to download from snapshots, not the main repo, which is where it goes wrong.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194616#4194616

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194616



More information about the jboss-user mailing list