diff options
author | Carlos Sanchez <carlos@apache.org> | 2014-11-21 20:12:53 +0100 |
---|---|---|
committer | Carlos Sanchez <carlos@apache.org> | 2014-11-21 20:25:26 +0100 |
commit | b1838d2e3ce5cc3ac5406b6432192ce0200306af (patch) | |
tree | 4a6dd189cd90d863843212a8221c4d25af42db5a /archiva-modules/plugins | |
parent | 5d29c9ff1d5985db1a8b293ae7a4fb29452041f7 (diff) | |
download | archiva-b1838d2e3ce5cc3ac5406b6432192ce0200306af.tar.gz archiva-b1838d2e3ce5cc3ac5406b6432192ce0200306af.zip |
Add pom properties to ProjectVersionMetadata
Diffstat (limited to 'archiva-modules/plugins')
2 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java index 44d294742..a75d007e4 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryStorage.java @@ -372,6 +372,7 @@ public class Maven2RepositoryStorage metadata.setOrganization( convertOrganization( model.getOrganization() ) ); metadata.setScm( convertScm( model.getScm() ) ); metadata.setUrl( model.getUrl() ); + metadata.setProperties( model.getProperties() ); MavenProjectFacet facet = new MavenProjectFacet(); facet.setGroupId( model.getGroupId() != null ? model.getGroupId() : model.getParent().getGroupId() ); diff --git a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java index f23e2d62a..3f3b8e2dc 100644 --- a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java +++ b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java @@ -209,6 +209,9 @@ public class Maven2RepositoryMetadataResolverTest assertDependency( dependencies.get( 7 ), "junit", "junit", "3.8.1", "test" ); assertDependency( dependencies.get( 8 ), "easymock", "easymock", "1.2_Java1.3", "test" ); assertDependency( dependencies.get( 9 ), "easymock", "easymockclassextension", "1.2", "test" ); + + assertEquals( 8, metadata.getProperties().size() ); + assertEquals( "http://www.apache.org/images/asf_logo_wide.gif", metadata.getProperties().get("organization.logo") ); } @Test |