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

Can we publish the latest snapshot to Maven Central? #192

Closed
stevesaliman opened this issue Sep 10, 2014 · 11 comments
Closed

Can we publish the latest snapshot to Maven Central? #192

stevesaliman opened this issue Sep 10, 2014 · 11 comments
Labels

Comments

@stevesaliman
Copy link

I've seen a several issues lately relating to ASM and coverage levels. I've gotten a couple in the Gradle Cobertura plugin that also seems related to ASM. In the case of the Gradle issues, I've noticed that things seem to behave better in version 2.1.

I'm thinking we should upload the latest 2.1 snapshot to the snapshot repository. If we do, we can have people try it out and let us know if things are better with the 2.1 release. I've uploaded the latest snapshot of the Gradle plugin, but I'm not authorized to publish Cobertura artifacts.

I was also wanting to time my next Gradle plugin release around the production release of Cobertura 2.1 It seemed like that was right around the corner a little while ago, but I haven't seen anything lately. Is there a targeted release date?

@dennisl
Copy link

dennisl commented Nov 3, 2014

SNAPSHOTs can't be published to central, only releases can go there. The alternative is to publish SNAPSHOTs to the Sonatype OSS SNAPSHOTs repo that is configured in the Cobertura POMs. I need that as well for the Maven plugin. I guess you need some credentials to be able to deploy there though.

@stevesaliman
Copy link
Author

The OSS SNAPSHOT repo was what I had in mind. We just need a friendly Cobertura admin to upload artifacts for a SNAPSHOT release...

@dennisl
Copy link

dennisl commented Nov 18, 2014

@christ66 Could you please ask for permissions for me to deploy to the Cobertura SNAPSHOT repository at OSSRH? My userid there is "dennisl". As the person who currently owns the Cobertura OSSRH repo (see https://issues.sonatype.org/browse/OSSRH-6317) you should be able to ask for more people to get access to it.

If I am allowed to deploy there, then myself and Steve can start deploying SNAPSHOT versions of the Maven and Gradle plugins we are working on. Without any public place to access Cobertura SNAPSHOT version we cannot get any testing and feedback on our work with the plugins.

@christ66
Copy link
Member

@dennisl I can't deploy to the snapshot repository. https://github.com/cobertura/cobertura/blob/master/pom.xml#L336-L355 is what's preventing me at the moment. I'm looking into it.

@dennisl
Copy link

dennisl commented Nov 18, 2014

@christ66 That's easy to fix, according to the documentation for OSSRH
http://central.sonatype.org/pages/apache-maven.html#distribution-management-and-authentication
The section in the POM should just be uncommented and a corresponding section needs to be added in your local settings.xml file. Note that the <server> section must to have the exact same ids as the <distributionManagement> section.

Let me know if you have more problems - we can solve them together.

@dennisl
Copy link

dennisl commented Nov 19, 2014

I have had a closer look at this. The correct values for <distributionManagement> for release and snapshot repositories are inherited from oss-parent. So we do not need them in any of the Cobertura POMs. I have removed them and committed these changes.

@christ66 You should be able to deploy now. All you need to do is add this snippet to your settings.xml file, which is located here ~/.m2/settings.xml

  <servers>
    <!-- Sonatype OSS Repository Hosting -->
    <server>
      <id>sonatype-nexus-snapshots</id>
      <username>christ66</username>
      <password>yourSonatypeJiraPassword</password>
    </server>
  </servers>

Then you run this command from the current master, using Java 6 or newer:

mvn clean deploy

@christ66
Copy link
Member

Snapshot is deployed! https://oss.sonatype.org/content/repositories/snapshots/net/sourceforge/cobertura/ thanks @dennisl for the help and sorry @stevesaliman for not deploying sooner.

I will see if I can you both access to either the repository, run a deployment to the repository on each build, or at least have a CI job for you to trigger deployments

@dennisl
Copy link

dennisl commented Nov 22, 2014

Great news @christ66 !
I will update the Maven plugin and publish a new SNAPSHOT next week.

@KostyaSha
Copy link

When do you plan release release?

@dennisl
Copy link

dennisl commented Jan 15, 2015

@christ66 Could you please publish another SNAPSHOT to central? I have finished my work on the Maven plugin for Cobertura, and would like for us to release Cobertura in its current state.

@stevesaliman Have you had time to work on the Gradle plugin for Cobertura?

@stevesaliman
Copy link
Author

The Gradle plugin is pretty flexible with respect to the version of Cobertura it uses. Users can use the 2.1 SNAPSHOT now by adding a line to their build.gradle files. Once the 2.1 release of Cobertura is officially released, I'll make it the default version used by the plugin and release the plugin.

@dennisl dennisl closed this as completed Feb 27, 2015
@dennisl dennisl added the Maven label Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants