Skip to content

jruby9-exec-maven-plugin can no longer bundle install #5

@cshupp1

Description

@cshupp1

I have the following pom file:

<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>gov.va.api.wss.reference.data.service.prototype</groupId>
  <artifactId>evss_prototype</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>pom</packaging>

  <name>evss jruby prototype</name>

  <description>
    This project wss-reference-data-service api.
  </description>

  <properties>
  </properties>

  <organization>
    <name>Department of Veterans Affairs</name>
    <url>http://www.va.gov/</url>
  </organization>

  <repositories>
    <repository>
      <id>mavengems</id>
      <url>mavengem:https://rubygems.org</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>mavengems</id>
      <url>mavengem:https://rubygems.org</url>
    </pluginRepository>
  </pluginRepositories>

  <dependencies>
    <dependency>
      <groupId>org.jruby</groupId>
      <artifactId>jruby-complete</artifactId>
      <version>9.3.0.0</version>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>rake</artifactId>
      <version>13.0.6</version>
      <type>gem</type>
    </dependency>
    <dependency>
      <groupId>rubygems</groupId>
      <artifactId>bundler</artifactId>
      <version>2.2.24</version>
      <type>gem</type>
    </dependency>
  </dependencies>

  <build>

    <extensions>
      <extension>
        <groupId>org.torquebox.mojo</groupId>
        <artifactId>mavengem-wagon</artifactId>
        <version>1.0.3</version>
      </extension>
    </extensions>

    <plugins>

      <plugin>
        <groupId>org.torquebox.mojo</groupId>
        <artifactId>jruby9-exec-maven-plugin</artifactId>
        <version>0.3.1</version>
        <executions>
          <execution>
            <id>install bundler</id>
            <phase>compile</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <jrubyVerbose>true</jrubyVerbose>
              <jrubyJvmArgs>-Xmx4000m -Djava.awt.headless=true</jrubyJvmArgs>
              <command>gem</command>
              <args>install bundler</args>
            </configuration>
          </execution>
    </plugins>
  </build>
</project>

The following execution fails:

          <execution>
            <id>install bundler</id>
            <phase>compile</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <jrubyVerbose>true</jrubyVerbose>
              <jrubyJvmArgs>-Xmx4000m -Djava.awt.headless=true</jrubyJvmArgs>
              <command>gem</command>
              <args>install bundler</args>
            </configuration>
          </execution>

As follows:

[INFO] Execute:Java13CommandLauncher: Executing '/usr/local/openjdk-8/bin/java' with arguments:
'-cp'
'/root/.m2/repository/org/jruby/jruby-complete/9.3.0.0/jruby-complete-9.3.0.0.jar'
'-Xmx4000m'
'-Djava.awt.headless=true'
'-Xbootclasspath/a:/root/.m2/repository/org/jruby/jruby-complete/9.3.0.0/jruby-complete-9.3.0.0.jar'
'org.jruby.Main'
'-I'
'/srv/wss-reference-data-service/src/lib'
'-e'
'load('jar:file:/root/.m2/repository/org/jruby/jruby-complete/9.3.0.0/jruby-complete-9.3.0.0.jar!/META-INF/jruby.home/bin/gem')'
'--'
'install'
'--ignore-dependencies'
'--no-rdoc'
'--no-ri'
'--no-user-install'
'--no-verbose'
'/root/.m2/repository/rubygems/rake/13.0.6/rake-13.0.6.gem'
'/root/.m2/repository/rubygems/bundler/2.2.24/bundler-2.2.24.gem'
'--bindir'
'/srv/wss-reference-data-service/src/target/rubygems/bin'

The ' characters around the executable and arguments are
not part of the command.
[INFO] ERROR:  While executing gem ... (OptionParser::InvalidOption)
[INFO]     invalid option: --no-rdoc
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.711 s
[INFO] Finished at: 2021-10-01T20:01:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.torquebox.mojo:jruby9-exec-maven-plugin:0.3.1:exec (install bundler) on project evss_prototype: Execution install bundler of goal org.torquebox.
mojo:jruby9-exec-maven-plugin:0.3.1:exec failed: Java returned: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.torquebox.mojo:jruby9-exec-maven-plugin:0.3.1:exec (install bundler) on project evss_prototype:
Execution install bundler of goal org.torquebox.mojo:jruby9-exec-maven-plugin:0.3.1:exec failed: Java returned: 1

We can see here:
puphpet/puphpet#2838

That for newer gems

'--no-rdoc'
'--no-ri'

is no longer supported. I cannot find how to suppress these flags.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions