Skip to content

Commit 7747063

Browse files
authored
[MGPG-134] Update maven-invoker (#110)
Needs a bit tweaking due newer maven-shared-utils needed as well. --- https://issues.apache.org/jira/browse/MGPG-134
1 parent 3df5f83 commit 7747063

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

pgp-keys-map.list

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ org.junit.platform:junit-platform-commons = 0xFF6E2C001948C5F2F38B0CC385911F425E
2727
org.opentest4j:opentest4j = 0xFF6E2C001948C5F2F38B0CC385911F425EC61B51
2828
org.apache.maven.resolver = 0x29BEA2A645F2D6CED7FB12E02B172E3E156466E8
2929
org.apache.maven.shared:maven-invoker = 0x84789D24DF77A32433CE1F079EB80E92EB2135B1
30+
org.apache.maven.shared:maven-shared-utils = 0x84789D24DF77A32433CE1F079EB80E92EB2135B1
3031
org.codehaus.plexus:plexus-cipher = 0x6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688
3132
org.codehaus.plexus:plexus-classworlds = 0xB91AB7D2121DC6B0A61AA182D7742D58455ECC7C
3233
org.codehaus.plexus:plexus-component-annotations = 0xFA77DCFEF2EE6EB2DEBEDD2C012579464D01C06A

pom.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,13 @@ under the License.
186186
<dependency>
187187
<groupId>org.apache.maven.shared</groupId>
188188
<artifactId>maven-invoker</artifactId>
189-
<version>3.2.0</version>
189+
<version>3.3.0</version>
190+
<scope>test</scope>
191+
</dependency>
192+
<dependency>
193+
<groupId>org.apache.maven.shared</groupId>
194+
<artifactId>maven-shared-utils</artifactId>
195+
<version>3.4.2</version>
190196
<scope>test</scope>
191197
</dependency>
192198
<dependency>

src/test/java/org/apache/maven/plugins/gpg/it/InvokerTestUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import java.io.PrintStream;
2424
import java.net.URISyntaxException;
2525
import java.net.URL;
26-
import java.util.Arrays;
2726
import java.util.Properties;
2827

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

5454
if (providePassphraseEnv) {

0 commit comments

Comments
 (0)