Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Maven Central #1

Closed
drewnoakes opened this issue Nov 19, 2014 · 12 comments
Closed

Deploy to Maven Central #1

drewnoakes opened this issue Nov 19, 2014 · 12 comments

Comments

@drewnoakes
Copy link
Owner

Maven is the defacto dependency management system.

Either get builds into Maven Central, or use an alternative repository such as Sonatype.

Some old versions are already in Maven central.

(migrated from Google Code)

@drewnoakes drewnoakes added this to the 2.7.0 milestone Nov 19, 2014
@felixscheffer
Copy link

I think you have to deploy to Sonatype to actually get the build into Maven Central. As far as I know you can't directly deploy to Maven Central.

Check out (if you haven't already ;) )
http://central.sonatype.org/pages/apache-maven.html

I would really love to see the latest version of metadata-extractor on Maven Central.

@rgauss
Copy link

rgauss commented Nov 20, 2014

The Sonatype project for metadata-extractor was setup a while ago.

@felixscheffer
Copy link

Thanks Ray, I should have checked that before commenting (my bad)

Maybe this is a dumb question, but why is version 2.6.4 not on Maven Central if everything is set up?

@drewnoakes
Copy link
Owner Author

Part of this task is me learning how to use Maven :) I stopped programming Java professionally in 2003 and didn't use Maven until recently when I started using Clojure at work, though only as a consumer. Ray and others were good enough to help with this in the past, and I want to get on top of this for 2.6.4 and newer releases.

My original reservation was related to using Maven to build the project -- the Ant build worked just fine for my liking. I hoped I could just make existing JARs available.

Keen to learn others' thoughts and experiences on this topic.

@felixscheffer
Copy link

Thanks Drew for clarifying.

@drewnoakes
Copy link
Owner Author

I spent today learning how Maven works and going through the steps required to get a library published on Maven Central. Thankfully this is finally done! A huge thanks to @rgauss and @farrukhnajmi for their work in producing a pom.xml project file and for setting up the Sonatype OSS accounts.

Please check that you can access version 2.7.0 via Maven now.

Please open an issue in the tracker if you encounter any problems and we'll get a 2.7.1 out. Fingers crossed that the next release is 2.8.0 though :)

@felixscheffer
Copy link

Thanks a lot, Drew!

@drewnoakes
Copy link
Owner Author

@jvdb
Copy link

jvdb commented Jan 7, 2015

Could you release 2.6.4 to Maven Central? I noticed that 2.6.2 and 2.7.0 are there, but not 2.6.4. I'm trying to build a project that depends on 2.6.4 and there seem to be compatibility issues with 2.7.0 (checked exceptions).

@RicardoBochnia
Copy link
Contributor

Could you explain what compatibility issues you've encountered?

@jvdb
Copy link

jvdb commented Jan 13, 2015

Sorry for my late response. I simply substituted 2.6.4 with 2.7.0 and got compiler errors about at least one checked exception on at least one public method in 2.7.0 that wasn't there on 2.6.4. I'll see if I can reproduce the exact error(s) shortly.

@drewnoakes
Copy link
Owner Author

2.7 is not 100% API compatible with earlier releases. It should be
straightforward to migrate. Please ping the mailing list if you have any
questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants