2 Replies Latest reply on May 31, 2007 10:33 AM by mlaporta

    Use of m2 jboss repository

    mlaporta

      Hi all,

      I'm evaluating m2 porting for https://mobicents.dev.java.net.
      It use several jboss 3.x libs with different versionId
      http://mobicents-public.googlegroups.com/web/pom.xml
      and I would like to use jboss m2 repository to make them omogeneus.

      My questions are :

      Is jboss m2 build going to cover Jboss3x also or should I upgrade?

      Is the artifact layout different from the one I found for example on http://mvnrepository.com/artifact/jboss/jboss-common
      I mean can I use a dependency in the same way like

      <dependency>
       <groupId>jboss</groupId>
       <artifactId>jboss-common</artifactId>
       <version>3.2.3</version>
      </dependency>
      


      What is the difference from
      http://repository.jboss.com/
      and
      http://repository.jboss.com/maven2/
      Which one should I use?

      I found different versioning for artifacts.For example on http://repository.jboss.com/jboss/common/
      I cannot find Jboss3x neither Jboss4x artifacts style.
      Which is the version correspondence between artifacts like jboss-common 4.0.2 and the one I find on
      http://repository.jboss.com/maven2/?

      any advice/tips would appreciated

      Thanks

      Michele

        • 1. Re: Use of m2 jboss repository
          pgier

           

          "mlaporta" wrote:
          Hi all,

          My questions are :

          Is jboss m2 build going to cover Jboss3x also or should I upgrade?


          There is no plan to build Jboss3x with maven, but you can use the artifacts that are in the central repository (http://repo1.maven.org/maven2), like you are doing now.

          "mlaporta" wrote:

          Is the artifact layout different from the one I found for example on http://mvnrepository.com/artifact/jboss/jboss-common
          I mean can I use a dependency in the same way like
          <dependency>
           <groupId>jboss</groupId>
           <artifactId>jboss-common</artifactId>
           <version>3.2.3</version>
          </dependency>
          


          Looks like the layout is the same. I believe mvnrepository.com is just a front end for the central maven repo (http://repo1.maven.org). So you can use mvnrepository.com for browsing, but you don't need to point your build scripts to use that repo because they will automatically pull stuff from central.

          "mlaporta" wrote:

          What is the difference from
          http://repository.jboss.com/
          and
          http://repository.jboss.com/maven2/
          Which one should I use?

          You should use the second one (with the /maven2). The root folder is our ant repository, and it will eventually become legacy.

          "mlaporta" wrote:

          I found different versioning for artifacts.For example on http://repository.jboss.com/jboss/common/
          I cannot find Jboss3x neither Jboss4x artifacts style.
          Which is the version correspondence between artifacts like jboss-common 4.0.2 and the one I find on
          http://repository.jboss.com/maven2/?


          Yes, this is a problem because currently there is no automated synchronization between the jboss repository and the central maven repo. We're currently working on getting these two in sync, so that you will be able to find everything in either one. Hopefully this will be set up by the end of the month.


          • 2. Re: Use of m2 jboss repository
            mlaporta

            Thanks a lot for fast reply!

            Michele