Skip to content

Commit 0ce2f00

Browse files
Pass verbose flag to rubygems command launching
It makes it much easier to troubleshoot errors.
1 parent d2ba2a5 commit 0ce2f00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gem-maven-plugin/src/main/java/de/saumya/mojo/gem/PackageMojo.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public void executeJRuby() throws MojoExecutionException,
181181
this.factory.newScriptFromJRubyJar("gem")
182182
.addArg("build", this.gemspec)
183183
.addArg("--backtrace")
184+
.addArg("--verbose")
184185
.executeIn(launchDirectory());
185186

186187
File newPom = new File( this.gemspec.getParentFile(), "pom." + this.gemspec.getName() + ".xml");
@@ -391,6 +392,7 @@ else if ((Artifact.SCOPE_PROVIDED + Artifact.SCOPE_TEST).contains(dependency.get
391392
this.factory.newScriptFromJRubyJar("gem")
392393
.addArg("build", gemSpec)
393394
.addArg("--backtrace")
395+
.addArg("--verbose")
394396
.executeIn(gemDir);
395397

396398
if ((!localGemspec.exists() || !FileUtils.contentEquals(localGemspec,

0 commit comments

Comments
 (0)