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
JRuby gem inclusion from pom.xml failing #7194
Comments
I tried creating a failing POM, but this works for me when building locally, and only fails in a Docker image we're using in our locally hosted GitLab instance. So, it's got to be some weird environmental issue. But, I'm keeping this open because I think that repo needs to be restored. Feel free to close this issue if you think that's a bad assumption. <?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>foo</groupId>
<artifactId>bar</artifactId>
<name>bar</name>
<version>SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>mavengems</id>
<url>mavengem:https://rubygems.org</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<version>9.3.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/de.saumya.mojo/gem-maven-plugin -->
<dependency>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/de.saumya.mojo/gem-maven-plugin -->
<!-- rubygems -->
<dependency>
<groupId>rubygems</groupId>
<artifactId>json-schema</artifactId>
<version>2.8.1</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>redis</artifactId>
<version>4.0.3</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>sequel</artifactId>
<version>5.15.0</version>
<type>gem</type>
</dependency>
<!-- rubygems -->
</dependencies>
<build>
<extensions>
<extension>
<groupId>org.torquebox.mojo</groupId>
<artifactId>mavengem-wagon</artifactId>
<version>1.0.3</version>
</extension>
</extensions>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>2.0.1</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>initialize</goal>
</goals>
</execution>
</executions>
<configuration>
<jrubyVersion>9.3.4.0</jrubyVersion>
</configuration>
</plugin>
<plugin>
<groupId>de.saumya.mojo</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>2.0.1</version>
<extensions>true</extensions>
<configuration>
<includeRubygemsInResources>true</includeRubygemsInResources>
</configuration>
<executions>
<execution>
<goals>
<goal>initialize</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> |
I believe I've tracked down the issue of failures within our Docker image. Not only is that repo no longer available, but there's an old version of json-schema that is unresolvable via the I can see the 2.8.1 version that we depend on in rubygems.org, but for some reason the Maven plugin is failing to see it. So, upgrading to json-schema:3.0.0 makes our builds pass. |
mavengems.jruby.org -> rubygems-proxy.torquebox.org. It appears torquebox.org is finally gone. We thought everything needed was moved elsewhere but I personally know almost nothing about this infrastructure. If this was moved (which I thought it had been) then this may just be changing the CNAME to whatever that is. |
I am doubly confused: asciidoctor/asciidoctorj#896 So we made a new CNAME which just points back to the source which is going away. Still digging. |
The main fix for this on our end was to remove the repository configuration that pointed to <repository>
<id>mavengems</id>
<url>mavengem:https://rubygems.org</url>
</repository> |
As a note since I am pretty bad on maven things. This more or less now does this without a proxy server and does the creation/resolution on the fly. |
Correct @enebo. I forgot to close before, so closing this ticket now. |
Environment Information
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: