Skip to content

Commit

Permalink
[MGPG-134] Update maven-invoker (#110)
Browse files Browse the repository at this point in the history
Needs a bit tweaking due newer maven-shared-utils needed as well.

---

https://issues.apache.org/jira/browse/MGPG-134
  • Loading branch information
cstamas authored Aug 8, 2024
1 parent 3df5f83 commit 7747063
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions pgp-keys-map.list
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ org.junit.platform:junit-platform-commons = 0xFF6E2C001948C5F2F38B0CC385911F425E
org.opentest4j:opentest4j = 0xFF6E2C001948C5F2F38B0CC385911F425EC61B51
org.apache.maven.resolver = 0x29BEA2A645F2D6CED7FB12E02B172E3E156466E8
org.apache.maven.shared:maven-invoker = 0x84789D24DF77A32433CE1F079EB80E92EB2135B1
org.apache.maven.shared:maven-shared-utils = 0x84789D24DF77A32433CE1F079EB80E92EB2135B1
org.codehaus.plexus:plexus-cipher = 0x6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688
org.codehaus.plexus:plexus-classworlds = 0xB91AB7D2121DC6B0A61AA182D7742D58455ECC7C
org.codehaus.plexus:plexus-component-annotations = 0xFA77DCFEF2EE6EB2DEBEDD2C012579464D01C06A
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ under the License.
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.io.PrintStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Arrays;
import java.util.Properties;

import org.apache.commons.io.input.NullInputStream;
Expand All @@ -48,7 +47,8 @@ public static InvocationRequest createRequest(
request.setDebug(true);
request.setShowErrors(true);
request.setTimeoutInSeconds(60); // safeguard against GPG freezes
request.setGoals(Arrays.asList("clean", "install"));
request.addArg("clean");
request.addArg("install");
request.setPomFile(pomFile);

if (providePassphraseEnv) {
Expand Down

0 comments on commit 7747063

Please sign in to comment.