-
1. Re: Add all AS7 libs to a Maven project
gonne Aug 22, 2011 5:15 AM (in response to jaabax)Hi,
do you want to add all libs from JBoss7 or do you only want the same versions of some libs used by JBoss7 added to your maven project?
Regards,
Gonne
-
2. Re: Add all AS7 libs to a Maven project
jaabax Aug 26, 2011 10:29 AM (in response to gonne)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...
thanks
-
3. Re: Add all AS7 libs to a Maven project
fissy101 Aug 27, 2011 2:45 PM (in response to jaabax)Does this help?
{code:xml}
<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>
{code}
-
4. Re: Add all AS7 libs to a Maven project
jaabax Oct 5, 2011 9:59 AM (in response to fissy101)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
-
5. Re: Add all AS7 libs to a Maven project
fissy101 Oct 6, 2011 5:43 AM (in response to jaabax)I haven't tested that, but I assume so. You can search for artifacts at: https://repository.jboss.org/nexus/index.html#nexus-search;quick~jboss-javaee
Dave
-
6. Re: Add all AS7 libs to a Maven project
frankthetank Oct 17, 2011 5:48 AM (in response to jaabax)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.