Menu

jml-1.0b3-full.jar setup with Maven(POM.xml)

2009-07-16
2013-04-29
  • Krishna Manchikalapudi

    Can you pls publish the dependency details for jar.... Am unable to find jml-1.0b3-full.jar in maven repository (http://repo1.maven.org/maven2 or http://download.java.net/maven/2/\)

    I appreciate if you can publish the maven dependency details......

    Thanks
    krishna

     
    • Daniel Henninger

      I looked into that at one point and no one from the maven chatrooms and such was willing to help me with anything.  I don't really have the time to investigate it so if you are willing to investigate this, I'd  be more than happy to include it with the distribution and maintain it.

       
      • Krishna Manchikalapudi

        If you are admin for Java-JML project, I can help you to setup maven repository. Pls let me know your interest...

         
        • Daniel Henninger

          I am the admin  =)  Heres' the problem I ran into -- from the guidelines it says I must "own" the domain that matches the class path of the library.  In other words, since JML is net.sf.jml, I should 'own' jml.sf.net.  Problem is I don't, the actual project is java-jml.sf.net and I'm not about to change the class path.  =)  (by own I mean, my project must be "at" that site)  I tried and tried to get someone to talk with me about what I should do about it and I got no help what-so-ever.  =(  If you know of the proper way to deal with that, let me know please!

           
          • Krishna Manchikalapudi

            You can host your own repo with artifactory & you can provide repo url to user's. Users can add your repo URL in maven settings.xml or pom.xml

            Feel free to visit or browse my repository, which is deployed at http://artifactory.localentity.com & browse the JML jar  (Click on BROWSE tab, Click on left link SIMPLE BROWSER, & click on REPO link) at jml/jml/jml-1.0b3.jar. My Repo url is http://repo.localentity.com/repo

            MAVEN_HOME/conf/Settings.xml
            <profile>
                        <id>localentity</id>
                        <repositories>
                            <repository>
                                <id>central</id>
                                <url>http://repo.localentity.com/repo</url>
                                <snapshots>
                                    <enabled>false</enabled>
                                </snapshots>
                            </repository>
                            <repository>
                                <id>snapshots</id>
                                <url>http://repo.localentity.com/repo</url>
                                <releases>
                                    <enabled>false</enabled>
                                </releases>
                            </repository>
                        </repositories>
                        <pluginRepositories>
                            <pluginRepository>
                                <id>central</id>
                                <url>http://repo.localentity.com/plugins-releases</url>
                                <snapshots>
                                    <enabled>false</enabled>
                                </snapshots>
                            </pluginRepository>
                            <pluginRepository>
                                <id>snapshots</id>
                                <url>http://repo.localentity.com/plugins-snapshots</url>
                                <releases>
                                    <enabled>false</enabled>
                                </releases>
                            </pluginRepository>
                        </pluginRepositories>
                    </profile>

             
            • Daniel Henninger

              Hrm.  I'm not hosting it on my own site.  It gets enough traffic already and I'd like to reserve you know.. some of it for things -I- want to do.  lol  (my own sites are hosted in my house over a cable modem)

              I don't see any indicators that sourceforge offers maven hosting services -- does it and I'm just missing it?  Any other ideas?

               
              • Krishna Manchikalapudi

                I host my java application (cruise control @ http://ci.localentity.com, artifactory @ http://artifactory.localentity.com, services @ http://webservices.localentity.com, svn, task management, etc) at my home (Comcast connection).

                If you give me permission, I can host jml jars for public and I will provide you the artifactory access. Therefore, you can upload new version jars.

                Pls let me know if are ok with the proposal....

                Thanks
                   Krishna

                 
    • Krishna Manchikalapudi

      I uploaded in my artifactory and solved the problem within my network

       
    • Krishna Manchikalapudi

      Missed a point...

      I renamed the jar name from jml-1.0b3-full.jar to jml-1.0b3.jar

      Am sorry if I violated your file naming rules.

      Thanks
         Krishna

       
    • Daniel Henninger

      Hrm.  Very cool site.  Ok, so I thought about this a bit and I think that in an ideal world, it would be nice if I hosted this off my site to keep things "together".  However --- can you give me some ballparks on how much traffic you expect a maven site might get?  How much in terms of resources does this artifactory thing take?  I have my own cruisecontrol setup that I don't currently have publically facing.  There's a good chance I'll turn around and say "ok nevermind, would you indeed not mind hosting it?" but wanted to at least give hosting it myself a chance.  =)  Unless you really don't think it matters.  If you don't think it matters at all if it's hosted at my site or not, I'd be happy to thumbs up you hosting it.  hehe

       
  • The light in the dark

    Hmmm…
    Can't you use 'jml.blathersource.org'?
    I do not think the requirement is for the package in the project jars, rather the maven group.

    Meaning:
    1. You continue using net.sf.jml as package
    2. Declare the Maven POM to be in the org.blathersource.jml group.
    3. Declare the Maven artefact to be named jml.

    I believe this will make it easier to be included in the public repositories.

     
  • Daniel Henninger

    If that is true I would be happy to - but I'm 95% sure that the docs for using the central maven stuff was that the class structure had to equal the domain.  And I wasn't able to rename the class structure to net.sf.java-jml  =)   If you can find me some docs that say that's ok then I'll set it up.

    Keep in mind that I don't know maven well.  Last time I had to use it I noticed that to use another repository I had to shift entirely - in other words I couldn't say "look at both of these repositories"

    I also tried a c ouple of times to hit their irc channel and not a single person bothered to answer me.  =(  Didn't even acknowledge me.  Just kept talking amongst themselves.

     
  • The light in the dark

    Yes, and no. This would be pretty much sufficient, but…

    The URL is wrong. There are two items that need to be defined: groupID (dot-notation) and artefactID(simple name). The URL should be: http://…/…/-dot-/-notation-/-group-/-artefact-/-version-/-artefact-version-.jar

    So if we assume the group to be 'net.sourceforge.java-jml' and the artefact to be 'jml' the URL should be:

    http://java-jml.sourceforge.net/maven2/net/sourceforge/java-jml/jml/1.0b3/jml-1.0b3.jar

    Rather than the one you posted (with the artefact name wrong).

    http://java-jml.sourceforge.net/maven2/net/sourceforge/java-jml/java-jml/1.0b3/jml-1.0b3.jar

    Maaaan… The SF formatter is brain damaged :( So much wasted space!

    Of course in order to fully harvest the Maven dependency resolution a .pom file should be uploaded too.
    I checked out the project locally and took the liberty to create a .pom file for me. It works quite well. If you want I'll be happy to mail it over to you.

     
  • The light in the dark

    Daniel was good enough to provide some space on the web-site for a maven repository.

    I built the project from SVN to avoid the dependency on cindy (to be removed as I understand).

    Guide on how to use the repository can be found on the site: http://jml.blathersource.org/node/5

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.