can I have both =)
but... let me understand...
when you say "do you want to add all libs from JBoss7", you want to say that there is a public repository that maintains the updated versions of all JBoss 7 libs?
for my project, I simply need all libs that ships with JBoss 7 server (libs inside the "JBOSS_HOME/modules" directory)
hibernate, jpa, logger and etc...
Does this help?
<repositories> <repository> <id>repository.jboss.org</id> <name>JBoss Repository</name> <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>2.0.0.Final</version> <type>pom</type> <scope>provided</scope> </dependency> </dependencies>
hi David Beaumont
you posted an artifactId called "jboss-javaee-6.0"
this artifactId refer to the "Everything (NOT Java EE6 Certified)" JBoss version?
if I want the libs of "Web Profile Only (Java EE6 Certified)" JBoss version, should I use the artifactId called "jboss-javaee-web-6.0"?
thanks in advance
While I cannot help you directly, here are some tips:
Why do you need all the libs? You usually only need the libs you use in your mvn project. If a dependency needs another lib, it will automatically resolve this as well.
Also, many of the libs in as7 are also built with mvn, so you can simply open up the artefact and go to META-INF/maven and get the artefactId & groupId from there.
Oh, and if you are unsure what you need (and this is not pretty) you can simply grep for the class and see what jar pops up, then include that in the dependencies. Though you might have multiple hits, then you have to find the correct one.