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

No Maven Central release #12

Closed
pschichtel opened this issue Jul 27, 2014 · 21 comments
Closed

No Maven Central release #12

pschichtel opened this issue Jul 27, 2014 · 21 comments

Comments

@pschichtel
Copy link
Contributor

I have currently the problem, that I can't deploy new versions of a project of mine to the Maven Central Repository, because it recently started using spoon. The problem is, that spoon in its current version is not available in Maven Central, but to be able to deploy an artifact all of its dependencies must be available in Maven Central themselves.
Our workaround will be to deploy a forked version of spoon with a changed pom.xml until the official version is available.

@pschichtel pschichtel changed the title Maven central release No Maven Central release Jul 27, 2014
@pschichtel
Copy link
Contributor Author

I could make a Pull Request with the setup we use for our projects.

@pschichtel
Copy link
Contributor Author

@monperrus
Copy link
Collaborator

Hi Phillip,

Thanks for the issue. Going back to Maven Central is indeed in the roadmap of the project.

How is authorization handled to publish a new version on Maven Central?

--Martin

@pschichtel
Copy link
Contributor Author

They use their JIRA for registration and once you got approved you just put a section in your local maven configuration with your JIRA login information and the ID of your configured central repository in .

More information about the process:

@pschichtel
Copy link
Contributor Author

http://gforge.inria.fr/frs/shownotes.php?release_id=8745

  • pom.xml not updated
  • still no central release

Why did I even make the pull request to fix everything up for a release?

@monperrus
Copy link
Collaborator

Hi Phillip,
Thanks again for the pull request which is now merged. Uploading to
Central is on our todo list.
What else do you mean?

@pschichtel
Copy link
Contributor Author

A new status on this?

@GerardPaligot
Copy link
Contributor

Hello Phillip,

Yes, I push on Maven Central today. :)

@seintur
Copy link
Contributor

seintur commented Oct 6, 2014

Hi @GerardPaligot

Thanks for the deployment in Maven Central.

It seems that the jar http://search.maven.org/remotecontent?filepath=fr/inria/gforge/spoon/spoon-core/2.3/spoon-core-2.3.jar contains a log4j.properties file with the following line 10:

log4j.appender.R.File=/var/folders/yd/kdk6_3wn4fvc71sblyjpgnn80000gn/T//spoon-log.log

I'm a bit confused since the original file as stored in the git repo https://github.com/INRIA/spoon/blob/master/src/main/resources/log4j.properties contains instead:

log4j.appender.R.File=${java.io.tmpdir}/spoon-log.log

Practically, when running Spoon 2.3 fetched from Maven central, I bump into the following exception:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/folders/yd/kdk6_3wn4fvc71sblyjpgnn80000gn/T/spoon-log.log (No such file or directory)

which is obviously evident given the log4j.properties.

Wat do you think?

Lionel.

@pschichtel
Copy link
Contributor Author

Well someone forgot to disable resource filtering...

maven will replace ${...} macros and the velocity context to do this contains all java properties.

@GerardPaligot
Copy link
Contributor

Hi,

I discussed the problem with @monperrus and we modified the log4j.properties in the commit. c7af8e2.

I'm repushing on maven now. You will see it at the end of this morning or in the afternoon.

@pschichtel
Copy link
Contributor Author

You might want to check the commit comments first

@GerardPaligot
Copy link
Contributor

Yes, I saw them after my message.

@GerardPaligot
Copy link
Contributor

Well, I made a PR #55 to improve pom.xml to disable filtering on the log4j.properties file. If it is ok for all, we merge it and I re-push on Maven Central.

@GerardPaligot
Copy link
Contributor

I'm re-pushing on Maven Central now. It should appear on the website in some hours.

@pschichtel
Copy link
Contributor Author

Why didn't you use the release plugin??

@GerardPaligot
Copy link
Contributor

I used maven release plugin.

@pschichtel
Copy link
Contributor Author

Well the release commits in git are missing as well as the tag. This leads to the problem the a) the source code used to build the release in maven central is not actually available and b) the pom.xml in this repo has the wrong version as it should be 2.3.2-SNAPSHOT or 2.4.0-SNAPSHOT

@GerardPaligot
Copy link
Contributor

Ah yes, this is "normal". We don't release on this Git project but on another one. @monperrus must to push commits and tag of the release plugin from the another git projet to this GitHub project (because, I can't myself, I don't have these privileges).

@monperrus
Copy link
Collaborator

Tag is now on Github.

@pschichtel
Copy link
Contributor Author

Just an idea: It might be good to automate the mirroring from the internel repository to github. I once did that with a small post-receive-hook and a deploy key.

Anyway: This issue is now finally closed, I hope this will continue in the future.

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

No branches or pull requests

4 participants