Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ under the License.
<javaVersion>17</javaVersion>
<mavenVersion>4.0.0-rc-7</mavenVersion>

<guiceVersion>7.0.0</guiceVersion>
<mavenPluginTestingVersion>4.0.0-beta-4</mavenPluginTestingVersion>
<mavenResolverVersion>2.0.24</mavenResolverVersion>
<mockitoVersion>5.24.0</mockitoVersion>
<slf4jVersion>2.0.20</slf4jVersion>
Expand All @@ -95,19 +93,6 @@ under the License.
<artifactId>guava</artifactId>
<version>33.7.2-jre</version>
</dependency>
<!--
maven-plugin-testing-harness 4.0.0-beta-4 transitively pins maven-xml to 4.0.0-rc-3
and pulls in maven-xml-impl 4.0.0-alpha-9 (an artifact ID that no longer exists
from rc-4 onward; the XmlService implementation moved into maven-xml itself).
Pin maven-xml to ${mavenVersion} so the right XmlService provider is on the
test classpath; otherwise Holder.<clinit> fails with
"No XmlService implementation found" and every unit test errors out.
-->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-xml</artifactId>
<version>${mavenVersion}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -139,9 +124,9 @@ under the License.

<!-- Test -->
<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>${mavenPluginTestingVersion}</version>
<groupId>org.apache.maven</groupId>
<artifactId>maven-testing</artifactId>
<version>${mavenVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -162,12 +147,6 @@ under the License.
<version>${mavenVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guiceVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
import org.apache.maven.api.plugin.testing.InjectMojo;
import org.apache.maven.api.plugin.testing.MojoParameter;
import org.apache.maven.api.plugin.testing.MojoTest;
import org.apache.maven.api.plugin.testing.stubs.ArtifactStub;
import org.apache.maven.api.plugin.testing.stubs.SessionMock;
import org.apache.maven.api.services.ArtifactDeployer;
import org.apache.maven.api.services.ArtifactDeployerRequest;
import org.apache.maven.api.services.ArtifactManager;
import org.apache.maven.impl.InternalSession;
import org.apache.maven.testing.plugin.stubs.ArtifactStub;
import org.junit.jupiter.api.Test;

import static org.apache.maven.api.plugin.testing.MojoExtension.getBasedir;

Check warning on line 48 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 48 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 48 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 48 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 48 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
import static org.apache.maven.api.plugin.testing.MojoExtension.getVariableValueFromObject;

Check warning on line 49 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 49 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 49 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 49 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 49 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoExtension in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand All @@ -57,7 +57,7 @@
/**
* @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
*/
@MojoTest

Check warning on line 60 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoTest in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 60 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoTest in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 60 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoTest in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 60 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoTest in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 60 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoTest in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
class DeployFileMojoTest {
private static final String LOCAL_REPO = "target/local-repo";

Expand All @@ -74,14 +74,14 @@
private ArtifactManager artifactManager;

@Test
@InjectMojo(goal = "deploy-file")

Check warning on line 77 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 77 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 77 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 77 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 77 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
void deployTestEnvironment(DeployFileMojo mojo) {
assertNotNull(mojo);
}

@Test
@InjectMojo(goal = "deploy-file")

Check warning on line 83 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 83 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 83 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 83 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 83 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.InjectMojo in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
@MojoParameter(name = "groupId", value = "org.apache.maven.test")

Check warning on line 84 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-17-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoParameter in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 84 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoParameter in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 84 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / macos-latest jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoParameter in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 84 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-21-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoParameter in org.apache.maven.api.plugin.testing has been deprecated and marked for removal

Check warning on line 84 in src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java

View workflow job for this annotation

GitHub Actions / Verify / ubuntu-26.04 jdk-25-zulu 4.0.0-rc-7

org.apache.maven.api.plugin.testing.MojoParameter in org.apache.maven.api.plugin.testing has been deprecated and marked for removal
@MojoParameter(name = "artifactId", value = "maven-deploy-file-test")
@MojoParameter(name = "version", value = "1.0")
@MojoParameter(name = "packaging", value = "jar")
Expand Down
Loading