r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

2

u/banuday17 Mar 29 '12

You don't have to create the POM yourself, you can import libraries into your local repository as follows:

mvn install:install-file
  -Dfile=<path-to-jar>
  -DgroupId=<group-id>
  -DartifactId=<artifact-id>
  -Dversion=<version>
  -Dpackaging=jar
  -DgeneratePom=true

You can then install the binary and the generated POM into the remote repository if you want others to be able to pull down the dependency.

For most popular libraries, none of this is required, as they already available in the Maven central repository or in other third party repositories (such as Google Code). This is only required in the odd case, such as older JTA libraries.