9 Replies Latest reply on Feb 13, 2007 12:35 PM by ccrouch

    microcontainer jars in the mvn repo?

    ccrouch

      Please see

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101248


      Did I catch this task in mid-progress? If so, whats the timeline for getting the various projects/microcontainer jars into the mvn repo?

      Thanks
      Charles

        • 1. Re: microcontainer jars in the mvn repo?
          pgier

          A 2.0.0-SNAPSHOT version of the microcontainer jars is now in the repository. Yes, this is still a work in progress. I'm working on getting a new share/server to put automated nightly maven builds, but it might take a little more time before the process is automated.

          For now, if you need a new snapshot, you should be able to build the microcontainer using maven. If you just use the command "mvn" it will install the jars into your local repository. If you use "mvn deploy" the jars will be copied to your local checkout of "repository.jboss.com" and you can commit them for others to use.

          If you have any problems building with maven, just let me know.

          • 2. Re: microcontainer jars in the mvn repo?
            ccrouch

             

            "pgier" wrote:
            I'm working on getting a new share/server to put automated nightly maven builds, but it might take a little more time before the process is automated.


            This sounds like a good idea, but how will these snapshots be integrated into the main JBAS5 build? For instance I would want to use these snapshots if the main JBAS5 build (/trunk/build/build most) wasn't using them, i.e. if it was getting its MC dependencies from somewhere other than the maven repo.

            Thanks
            Charles

            • 3. Re: microcontainer jars in the mvn repo?
              ccrouch

               

              "charles.crouch@jboss.com" wrote:
              This sounds like a good idea, but how will these snapshots be integrated into the main JBAS5 build?


              I guess more even more fundamentally, are the MC snapshots that are currently up in the repo being used by the current JBAS5 build?

              Thanks

              • 4. Re: microcontainer jars in the mvn repo?
                pgier

                No, the app server is not yet mavenized. That's my next project :)
                Once we can build the app server with maven, then it will start using the artifacts in the maven repository.
                I have also been looking at some ant tasks that allow you to grab jars from a maven repository:
                http://maven.apache.org/ant-tasks.html
                That could possibly replace the build-thirdparty.xml, but we haven't decided if we should use that, or just wait until the maven builds are in place.

                • 5. Re: microcontainer jars in the mvn repo?
                  jason.dobies

                  I tried including the jboss-managed artifact in a build, but it threw errors when I went to run it. It's looking for:

                  jboss:jboss-microcontainer:pom:2.0.0-SNAPSHOT

                  I took a look around the repository and I don't see the jboss-microcontainer artifact installed. Is this a step I have to take locally or is there a reason it isn't in the repository?

                  • 6. Re: microcontainer jars in the mvn repo?
                    ccrouch

                     

                    "pgier" wrote:
                    Once we can build the app server with maven, then it will start using the artifacts in the maven repository.


                    Ok, until then, since uploading stuff to the mvn repos is currently a manual process, can we just upload to the repo what ever MC artifacts the JBAS5 build is actually using.

                    Or alternatively do an update of the dependencies JBAS5 has on the MC to bring it inline with the whats in the mvn repo.

                    You see where I'm going :-). I want to use the mvn repo but i can't if it doesn't match what JBAS5 is building with. Maybe I'm getting in too early in this process and need to let you flesh it out some more.

                    Cheers

                    • 7. Re: microcontainer jars in the mvn repo?
                      pgier

                       

                      "jason.dobies" wrote:
                      I tried including the jboss-managed artifact in a build, but it threw errors when I went to run it. It's looking for:

                      jboss:jboss-microcontainer:pom:2.0.0-SNAPSHOT

                      I took a look around the repository and I don't see the jboss-microcontainer artifact installed. Is this a step I have to take locally or is there a reason it isn't in the repository?


                      Ah, I should have added the parent project too. It's looking for the parent pom.xml. Can you try again, it should be ok now.

                      • 8. Re: microcontainer jars in the mvn repo?
                        pgier

                         

                        "charles.crouch@jboss.com" wrote:


                        You see where I'm going :-). I want to use the mvn repo but i can't if it doesn't match what JBAS5 is building with. Maybe I'm getting in too early in this process and need to let you flesh it out some more.

                        Cheers


                        Yes, I think it might be a little early. If I can modify the current app server build scripts to grab their dependencies from the maven repository, then you could use the maven repository directly and know that you're getting the same jars as the app server. Unfortunately right now, the regular repository and the maven2 repository are not in sync so you will get slightly different versions of some of the files like the snapshots.

                        • 9. Re: microcontainer jars in the mvn repo?
                          ccrouch

                           

                          "pgier" wrote:
                          If I can modify the current app server build scripts to grab their dependencies from the maven repository, then you could use the maven repository directly and know that you're getting the same jars as the app server.


                          Ok, great. When you get to this milestone, please pop a post on jboss-dev.

                          "pgier" wrote:

                          Unfortunately right now, the regular repository and the maven2 repository are not in sync so you will get slightly different versions of some of the files like the snapshots.


                          Yeah, I want to avoid that :-)