From: James William Dumay Date: Thu, 12 Feb 2009 06:47:36 +0000 (+0000) Subject: MRM-1084 - Upgrade modello maven plugin to 1.0 to support Java 5 generics X-Git-Tag: archiva-1.2~132 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=77481fb93c9cef2b1da5b6891bf18f27554a2707;p=archiva.git MRM-1084 - Upgrade modello maven plugin to 1.0 to support Java 5 generics git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@743630 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-configuration/pom.xml b/archiva-modules/archiva-base/archiva-configuration/pom.xml index 2999766b9..51c1b54fc 100644 --- a/archiva-modules/archiva-base/archiva-configuration/pom.xml +++ b/archiva-modules/archiva-base/archiva-configuration/pom.xml @@ -64,19 +64,36 @@ org.codehaus.modello modello-maven-plugin - 1.0-alpha-15 java - registry-reader - registry-writer + + + archiva-jpox-registry-reader + + generate + + + registry-reader + + + + archiva-jpox-registry-writer + + generate + + + registry-writer + 1.2.0 - src/main/mdo/configuration.mdo + + src/main/mdo/configuration.mdo + diff --git a/archiva-modules/archiva-base/archiva-model/pom.xml b/archiva-modules/archiva-base/archiva-model/pom.xml index fae3ca346..e6f34f00f 100755 --- a/archiva-modules/archiva-base/archiva-model/pom.xml +++ b/archiva-modules/archiva-base/archiva-model/pom.xml @@ -59,11 +59,12 @@ org.codehaus.modello modello-maven-plugin - 1.0-alpha-17 1.0.0 false - src/main/mdo/archiva-base.xml + + src/main/mdo/archiva-base.xml + @@ -71,14 +72,26 @@ java xsd - jpox-jdo-mapping - jpox-metadata-class - + + archiva-jpox-jdo-mapping + + generate + + + jpox-jdo-mapping + + + + archiva-jpox-metadata-class + + generate + + + jpox-metadata-class + + @@ -138,6 +151,24 @@ + + + + org.apache.maven.plugins + maven-antrun-plugin + + + process-sources + + run + + + + + + + + org.codehaus.mojo diff --git a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml index 19884d5ec..2ef7fc625 100644 --- a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml +++ b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml @@ -96,8 +96,7 @@ --> ProjectReference A reference to another (unversioned) Project @@ -919,7 +912,6 @@ VersionedReference A reference to another Versioned Project @@ -995,7 +987,6 @@ ArtifactReference 1.0.0+ @@ -1215,7 +1206,6 @@ @@ -1532,7 +1522,6 @@ MailingList A Mailing List @@ -1590,7 +1579,6 @@ Organization Specifies the organization that produces this project. @@ -1634,7 +1622,6 @@ License IssueManagement @@ -1717,7 +1703,7 @@ - + CiManagement 1.0.0+ @@ -1748,8 +1734,7 @@ - + Individual Description of a person who has contributed to the project. @@ -1853,7 +1838,6 @@ Dependency 1.0.0+ @@ -2043,7 +2027,6 @@ Exclusion 1.0.0+ @@ -2074,7 +2057,6 @@ Scm 1.0.0+ @@ -2119,9 +2101,7 @@ - + ProjectRepository 1.0.0+ @@ -2204,7 +2184,6 @@ --> RepositoryProblem 1.0.0+ @@ -2307,7 +2286,6 @@ --> RepositoryContentStatistics 1.0.0+ diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MetadataTransferTest.java b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MetadataTransferTest.java index 84ce3e130..70e2ab540 100644 --- a/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MetadataTransferTest.java +++ b/archiva-modules/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MetadataTransferTest.java @@ -1112,7 +1112,6 @@ public class MetadataTransferTest m.getPlugins().add( p ); } - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. @@ -1148,7 +1147,6 @@ public class MetadataTransferTest m.getAvailableVersions().addAll( Arrays.asList( expectedVersions ) ); } - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. @@ -1176,7 +1174,6 @@ public class MetadataTransferTest m.setGroupId( metadata.getGroupId() ); m.setArtifactId( metadata.getArtifactId() ); m.setVersion( metadata.getVersion() ); - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. @@ -1254,7 +1251,6 @@ public class MetadataTransferTest m.setLastUpdated( expectedDate + expectedTime ); - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. @@ -1290,7 +1286,6 @@ public class MetadataTransferTest m.getAvailableVersions().addAll( Arrays.asList( expectedProxyVersions ) ); } - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. @@ -1320,7 +1315,6 @@ public class MetadataTransferTest m.setGroupId( metadata.getGroupId() ); m.setArtifactId( metadata.getArtifactId() ); m.setVersion( metadata.getVersion() ); - m.setModelEncoding( null ); RepositoryMetadataWriter.write( m, expectedMetadataXml ); // Compare the file to the actual contents. diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataMerge.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataMerge.java index e19dc8fd0..47d4fadd3 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataMerge.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataMerge.java @@ -219,7 +219,6 @@ public class RepositoryMetadataMerge { Plugin clonedPlugin = new Plugin(); clonedPlugin.setArtifactId(plugin.getArtifactId()); - clonedPlugin.setModelEncoding(plugin.getModelEncoding()); clonedPlugin.setName(plugin.getName()); clonedPlugin.setPrefix(plugin.getPrefix()); result.add(plugin); diff --git a/pom.xml b/pom.xml index 283de7dc0..d930bc7a9 100644 --- a/pom.xml +++ b/pom.xml @@ -110,7 +110,22 @@ org.codehaus.modello modello-maven-plugin - 1.0-alpha-15 + 1.0 + + true + + + + org.codehaus.modello + modello-plugin-plexus-registry + 1.0-alpha-21 + + + org.codehaus.modello + modello-plugin-jpox + 1.0-alpha-21 + + org.apache.maven.plugins