Projects
home:vanmeeuwen:lesb
maven-site-plugin
0002-Maven-3-compatibility-functions.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-Maven-3-compatibility-functions.patch of Package maven-site-plugin
From 9fc579f0a193d952d9efd4896a83ad7765d89f94 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky <sochotnicky@redhat.com> Date: Mon, 27 Jun 2011 10:36:03 +0200 Subject: [PATCH 2/2] Maven 3 compatibility functions --- .../site/SiteDescriptorArtifactMetadata.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java b/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java index 2ad6437..8e570d1 100644 --- a/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java +++ b/src/main/java/org/apache/maven/plugins/site/SiteDescriptorArtifactMetadata.java @@ -114,6 +114,15 @@ public class SiteDescriptorArtifactMetadata return "site descriptor " + artifact.getGroupId() + ":" + artifact.getArtifactId() + " " + file.getName(); } + public void merge( org.apache.maven.repository.legacy.metadata.ArtifactMetadata metadata ) + { + SiteDescriptorArtifactMetadata m = (SiteDescriptorArtifactMetadata) metadata; + if ( !m.file.equals( file ) ) + { + throw new IllegalStateException( "Cannot add two different pieces of metadata for: " + getKey() ); + } + } + public void merge( ArtifactMetadata metadata ) { SiteDescriptorArtifactMetadata m = (SiteDescriptorArtifactMetadata) metadata; -- 1.7.5.4
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
.