6 Replies Latest reply on Jun 4, 2007 9:37 AM by fredrikj

    Maven and CR2

    fredrikj

      My first feedback on CR2: I can't get CR2 from maven. =)

      This works:

      <dependency groupId="jboss" artifactId="jboss-cache" version="2.0.0.BETA1"/>
      

      This does not work:
      <dependency groupId="jboss" artifactId="jboss-cache" version="2.0.0.CR2"/>


      Error:
      Unable to resolve artifact: Missing:
      ----------
      1) jgroups:jgroups-all:jar:2.5.0-BETA2


      I can always patch the libs manually, but...

        • 1. Re: Maven and CR2
          fredrikj

          Downloading and installing the jgroups 2.5.0 beta 2 manually in jgroups-all locally led to this problem:

          Unable to resolve artifact: Unable to get dependency information: Unable to read the metadata file for artifact 'jgroups:jgroups-all:jar': Cannot find parent: jgroups:jboss-parent for project: null:jgroups:jar:2.5.0-BETA2



          This looks wrong to me: jgroups:jboss-parent
          Shouldn't it be jboss:jboss-parent ?


          • 2. Re: Maven and CR2
            manik

            Fixed. Should work now...

            • 3. Re: Maven and CR2
              fredrikj

              The parent works now, i.e. jgroups:jboss-parent -> jboss:jboss-parent

              Still, it seems that the jgroups dependency is pointing to 'jgroups-all' where in the maven repo only 'jgroups' exists.

              • 4. Re: Maven and CR2
                fredrikj

                I am no maven expert or anything, but I think you want to change this dependency:

                <dependency>
                 <groupId>jgroups</groupId>
                 <artifactId>jgroups-all</artifactId>
                 <version>2.5.0-BETA2</version>
                 <exclusions>
                 <exclusion>
                 <artifactId>bsh</artifactId>
                 <groupId>bsh</groupId>
                 </exclusion>
                 </exclusions>
                 </dependency>



                To:

                <dependency>
                 <groupId>jgroups</groupId>
                 <artifactId>jgroups</artifactId>
                 <version>2.5.0-BETA2</version>
                 <exclusions>
                 <exclusion>
                 <artifactId>bsh</artifactId>
                 <groupId>bsh</groupId>
                 </exclusion>
                 </exclusions>
                 </dependency>


                I.e., change artifactId from 'jgroups-all' to just 'jgroups'.

                • 5. Re: Maven and CR2
                  manik
                  • 6. Re: Maven and CR2
                    fredrikj

                    You're right, the old '-all' was cached on my side.