#8 Maven depository update

closed
Pierre Frisch
None
5
2010-11-16
2006-02-16
Roland Bali
No

I'd like the Ibiblio.org Maven2 repository updated to
the latest version. Current version at
http://www.ibiblio.org/maven2 is version 0.2.

Kind regards,
Roland

Discussion

  • Logged In: NO

    Maybe it would be a good idea to migrate the build system to maven to make repository updates easier.

     
  • Melloware
    Melloware
    2010-08-17

    Agreed. A maven pom.xml and maven build system would be better than Ant. And having this on Maven2 Ibiblio would be great step towards adoption of this project.

     
  • Pierre Frisch
    Pierre Frisch
    2010-08-17

    I have started work on having a dual build ant/maven but this is not yet ready for prime time. You can test it. There is a pom in HEAD it should build the basics and create the project web site. Please let me know what you find.

    I don't know how the version in ibiblio was produced.

     
  • Pierre Frisch
    Pierre Frisch
    2010-08-17

    • assigned_to: nobody --> spearway
     
  • Melloware
    Melloware
    2010-08-17

    Ha! I literally just submitted a patch with my pom.xml which uses net.sourceforge as the groupid and jmdns as the artifact id. It builds a proper manifest in the JAR file as needed including the Main-Class. Let me know what you think.

     
  • Pierre Frisch
    Pierre Frisch
    2010-08-17

    Did you try your pom.xml on top of tree? I have done some work on reorganizing the source code. We need to separate the jmdns code proper and the sample code. There are 2 reasons for this: one technical one is that you probably do not want to include sample code in the final production release, the other one is legal when the jmdns code was relicensed from LGPL to Apache 2 it is unclear if the sample code was included so for clarity it would be better to distribute the sample code in a separate jar from the actual release.

    Pierre

     
  • Melloware
    Melloware
    2010-08-17

    I will pull the top of the tree and fix my pom.xml and resubmit. I did it against 3.2.0 zip file but i see now you have done some rearranging.

    And I agree with you about separating the API itself from any Sample Code. My Maven POM was already excluding the Test classes from the final JAR. I will resubmit tomorrow so you can try again.

     
  • Pierre Frisch
    Pierre Frisch
    2010-08-17

    I have merged both poms to give you a better starting point.

    I am not a maven expert just a bit dangerous with it. I am really not sure that my jar handling is right. I also don't have the distribution information so I will have to search for it.

    Pierre

     
  • Melloware
    Melloware
    2010-08-18

    I will look at it and update it and send it back to you. I have been doing Maven since 2004 and love it. I have never looked back at Ant. :)

     
  • Melloware
    Melloware
    2010-08-18

    OK I updated my Patch post including the updated pom.xml and a JmDNSImpl.java which has a static main method. This is useful for if someone does java -jar at the command line its spits out the API information. I find this very useful in other API's I have built and see on the web. The pom.xml adds the MainClass to the manifest of the JAR as well.

    everything looks pretty good. all tests pass and the build builds successfully!

     
  • Pierre Frisch
    Pierre Frisch
    2010-09-05

    I have just published the 3.2.2 snapshot on the sonotype repository.

     
  • Pierre Frisch
    Pierre Frisch
    2010-11-16

    As of Nov 15 2010 we have a release of JmDNS on the public maven repositories

     
  • Pierre Frisch
    Pierre Frisch
    2010-11-16

    • status: open --> closed