sonatype / nexus-ruby-support

26 stars 7 forks source link

Build issue with Nexus 2.6.0-05 #31

Closed choih closed 11 years ago

choih commented 11 years ago

[ERROR] Failed to execute goal on project nexus-ruby-plugin-its: Could not resolve dependencies for project org.sonatype.nexus.plugins:nexus-ruby-plugin-its:jar:1.0.0SNAPSHOT: Could not find artifact org.sonatype.nexus:nexus-osswebapp:zip:bundle:2.6.0-05 in nexus

I have contacted Sonatype Nexus about this issue. Here is a reply from Sonatype Nexus. " The nexus-oss bundle was renamed to nexus-bundle-template. This change was made to make it clearer that nexus-oss is a subset of the free version of Nexus available from nexus-bundle-template.

The nexus-bundle-template is otherwise the same as nexus-oss. "

I verified that it 2.6.0-05 bundle does exist in Maven Central as different name. http://search.maven.org/#artifactdetails%7Corg.sonatype.nexus.assemblies%7Cnexus-bundle-template%7C2.6.0-05%7Cpom

You will need to change your code to grab the dependency for nexus version 2.6.0-05 or higher

Thanks,

choih commented 11 years ago

With your latest changes, I no longer get dependency error for nexus-bundle.

However, a new bug has been introduced.

Please take a look at the following dependency settings in pom.xml.

  <dependency>
    <groupId>org.sonatype.nexus.plugins</groupId>
    <artifactId>nexus-ruby-plugin</artifactId>
    <type>${nexus-plugin.type}</type>
    <version>1.0.0-SNAPSHOT</version>
  </dependency>

  <dependency>
    <groupId>org.sonatype.nexus.ruby</groupId>
    <artifactId>nexus-ruby-tools</artifactId>
    <version>1.0.0-SNAPSHOT</version>
  </dependency>

  <dependency>
    <groupId>org.sonatype.nexus.ruby</groupId>
    <artifactId>nexus-ruby-tools</artifactId>
    <classifier>tests</classifier>
    <version>1.0.0-SNAPSHOT</version>
  </dependency>

I believe the correct version should be 1.0.0, NOT 1.0.0-SNAPSHOT, because only version 1.0.0 can be found in https://repository.sonatype.org/content/groups/forge/org/sonatype/nexus/ruby/.

If I change these version numbers to 1.0.0, the build is successful with Nexus version 2.6.0-05.

mkristian commented 11 years ago

OK - I reverted back to version 1.0.0 with commit d9d4ccb

keklabs commented 11 years ago

If I clone and build the repository now, I have the same problem for nexus-oss-webapp renamed to nexus-bundle-template

Following changes makes my build running:

<it.nexus.groupId>org.sonatype.nexus.assemblies</it.nexus.groupId>
<it.nexus.artifactId>nexus-bundle-template</it.nexus.artifactId>
    <it.nexus.version>2.6.2-01</it.nexus.version>

https://support.sonatype.com/entries/25049567-Where-is-nexus-oss-webapp-

It seems like regression problem.