Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven repository for Google Code project
    text
    copied!<p>I'm hosting a small open source project on Google Code, and I have been asked to submit the jar to a publicly accessible Maven repository. I have almost no practical knowledge of Maven. What would be the best way to do this?</p> <p>Is there some central repository that I can submit to, or can I host my own? What would I need to do when I want to release a new version of the jar?</p> <p>I've been Googling and found <a href="http://www.thewebsemantic.com/2009/04/11/your-very-own-google-code-maven-repo/" rel="noreferrer">this</a>, which looks nice and simple, but it seems a bit ... contrary to the spirit of Maven, to commit jar files to SVN :).</p> <p>Also, would there be a way to still keep track of the download count, as Google Code does?</p> <p><strong>EDIT</strong></p> <p>I've been getting some answers, some of which containing hints on what to add to my <code>pom.xml</code>. Thanks guys! But obviously I forgot to mention one important thing: my build script is in ANT, and to put it bluntly, I intend to keep it that way :). I just want to make it easier for Maven users to include my jar in their projects.</p> <p><br> <strong>The solution I went with in the end</strong></p> <p>In the end, I did use the solution I <a href="http://www.thewebsemantic.com/2009/04/11/your-very-own-google-code-maven-repo/" rel="noreferrer">referenced</a> before, where I simply commit a Maven repo to SVN. I have the ANT script call Maven to set up the local repo, and then call SVN to commit it to Google Code. For those interested: look at my build script <a href="http://code.google.com/p/equalsverifier/source/browse/trunk/build.xml" rel="noreferrer">here</a>, in the <code>publish-maven</code> target.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload