Projects
Eulaceura:Mainline
maven-gpg-plugin
_service:obs_scm:0001-Port-to-Maven-3.3.1.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Port-to-Maven-3.3.1.patch of Package maven-gpg-plugin
From dcf4a6cc7c71ec170acf1d55f1238dd7492d874d Mon Sep 17 00:00:00 2001 From: wang--ge <wang__ge@126.com> Date: Fri, 11 Nov 2022 10:23:20 +0800 Subject: [PATCH] Port to Maven 3.3.1 --- pom.xml | 4 ++-- .../org/apache/maven/plugin/gpg/AscArtifactMetadata.java | 9 +++++++++ .../apache/maven/plugin/gpg/AttachedSignedArtifact.java | 6 ------ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 26bccfd..807a201 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ under the License. </distributionManagement> <properties> - <mavenVersion>2.2.1</mavenVersion> + <mavenVersion>3.3.1</mavenVersion> </properties> <dependencies> @@ -68,7 +68,7 @@ under the License. </dependency> <dependency> <groupId>org.apache.maven</groupId> - <artifactId>maven-project</artifactId> + <artifactId>maven-compat</artifactId> <version>${mavenVersion}</version> </dependency> <dependency> diff --git a/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java b/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java index 5523769..f82b516 100644 --- a/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java +++ b/src/main/java/org/apache/maven/plugin/gpg/AscArtifactMetadata.java @@ -90,6 +90,15 @@ public class AscArtifactMetadata return getFilename(); } + public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) + { + AscArtifactMetadata m = (AscArtifactMetadata) metadata; + if ( !m.file.equals( file ) ) + { + throw new IllegalStateException( "Cannot add two different pieces of metadata for: " + getKey() ); + } + } + public void merge( ArtifactMetadata metadata ) { AscArtifactMetadata m = (AscArtifactMetadata) metadata; diff --git a/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java b/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java index 3a4d431..f2fccda 100644 --- a/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java +++ b/src/main/java/org/apache/maven/plugin/gpg/AttachedSignedArtifact.java @@ -308,10 +308,4 @@ public class AttachedSignedArtifact { return delegate.compareTo( o ); } - - public ArtifactMetadata getMetadata( Class<?> metadataClass ) - { - // TODO Auto-generated method stub - return delegate.getMetadata( metadataClass ); - } } -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2