Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sievers2013-09-03 09:40:01 -0400
committerJan Sievers2013-09-03 09:40:01 -0400
commitc900917f72cf5e2f459aab246e532b67801cfcbe (patch)
tree21e582229ffb737a02ffde2a220cfef7c2744bd5
parent2e5c55e705f670ff7b589f1c4f1f63c1e63286c4 (diff)
downloadorg.eclipse.tycho.nexus-c900917f72cf5e2f459aab246e532b67801cfcbe.tar.gz
org.eclipse.tycho.nexus-c900917f72cf5e2f459aab246e532b67801cfcbe.tar.xz
org.eclipse.tycho.nexus-c900917f72cf5e2f459aab246e532b67801cfcbe.zip
415853 add integration tests
- introduce parent and separate modules for the plugin itself and integration tests - use paramaterized integration test harness to test against both the nexus version we compiled against and the highest currently available compatible nexus version Bug: 415853 Signed-off-by: Jan Sievers <jan.sievers@sap.com> Also-by: Stephan Weber <stephan.weber@sap.com> Change-Id: I5841daa69cd080544513cb1192bec6c77b0c87d4
-rw-r--r--.gitignore7
-rw-r--r--pom.xml195
-rw-r--r--unzip-repository-plugin-its/.gitignore7
-rw-r--r--unzip-repository-plugin-its/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--unzip-repository-plugin-its/.settings/org.eclipse.jdt.core.prefs (renamed from .settings/org.eclipse.jdt.core.prefs)9
-rw-r--r--unzip-repository-plugin-its/.settings/org.eclipse.jdt.ui.prefs (renamed from .settings/org.eclipse.jdt.ui.prefs)0
-rw-r--r--unzip-repository-plugin-its/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--unzip-repository-plugin-its/pom.xml118
-rw-r--r--unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.jarbin0 -> 2140 bytes
-rw-r--r--unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.pom10
-rw-r--r--unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/maven-metadata.xml13
-rw-r--r--unzip-repository-plugin-its/src/test/it-resources/preset-nexus/nexus.xml200
-rw-r--r--unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/AbstractUnzipRepositoryPluginITCase.java77
-rw-r--r--unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryPluginITCase.java131
-rw-r--r--unzip-repository-plugin-its/src/test/resources/test.properties4
-rw-r--r--unzip-repository-plugin/.gitignore7
-rw-r--r--unzip-repository-plugin/.settings/org.eclipse.core.resources.prefs6
-rw-r--r--unzip-repository-plugin/.settings/org.eclipse.jdt.core.prefs288
-rw-r--r--unzip-repository-plugin/.settings/org.eclipse.jdt.ui.prefs56
-rw-r--r--unzip-repository-plugin/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--unzip-repository-plugin/nexus_examples.txt (renamed from nexus_examples.txt)0
-rw-r--r--unzip-repository-plugin/pom.xml99
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java)2
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java)0
-rw-r--r--unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java (renamed from src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java)0
-rw-r--r--unzip-repository-plugin/src/main/resources/epl-v10.html (renamed from src/main/resources/epl-v10.html)0
-rw-r--r--unzip-repository-plugin/src/main/resources/resources/js/unzip-repo.js (renamed from src/main/resources/resources/js/unzip-repo.js)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java)78
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java)27
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java)23
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java)0
-rw-r--r--unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java (renamed from src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java)0
-rw-r--r--unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml (renamed from src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~HEAD37
-rw-r--r--unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests37
-rw-r--r--unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml (renamed from src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~HEAD37
-rw-r--r--unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests37
-rw-r--r--unzip-repository-plugin/src/test/resources/emptyArchive.zip (renamed from src/test/resources/emptyArchive.zip)bin118 -> 118 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/emptyArchive.zip~HEADbin0 -> 118 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/emptyArchive.zip~Use NexusRunningITSupport for integration testsbin0 -> 118 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt (renamed from src/test/resources/masterRepo/dir/a.txt)0
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~HEAD1
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~Use NexusRunningITSupport for integration tests1
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip (renamed from src/test/resources/masterRepo/dir/subdir/archive.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~HEAD (renamed from src/test/resources/masterRepo/dir/subdir/archive2.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~Use NexusRunningITSupport for integration tests (renamed from src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip (renamed from src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~HEAD (renamed from src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~Use NexusRunningITSupport for integration tests (renamed from src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip)bin550 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml (renamed from src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~HEAD23
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~Use NexusRunningITSupport for integration tests23
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata.xml (renamed from src/test/resources/maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata.xml~HEAD14
-rw-r--r--unzip-repository-plugin/src/test/resources/maven-metadata.xml~Use NexusRunningITSupport for integration tests14
-rw-r--r--unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml (renamed from src/test/resources/missingSnapshot-maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~HEAD10
-rw-r--r--unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~Use NexusRunningITSupport for integration tests10
-rw-r--r--unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml (renamed from src/test/resources/missingVersioning-maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~HEAD7
-rw-r--r--unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~Use NexusRunningITSupport for integration tests7
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml (renamed from src/test/resources/outer-maven-metadata-without-release.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~HEAD11
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~Use NexusRunningITSupport for integration tests11
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml (renamed from src/test/resources/outer-maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~HEAD24
-rw-r--r--unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~Use NexusRunningITSupport for integration tests24
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zipbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~HEADbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~Use NexusRunningITSupport for integration testsbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zipbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~HEADbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~Use NexusRunningITSupport for integration testsbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zipbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~HEADbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~Use NexusRunningITSupport for integration testsbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zipbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~HEADbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~Use NexusRunningITSupport for integration testsbin0 -> 550 bytes
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml (renamed from src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml)0
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~HEAD26
-rw-r--r--unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests26
112 files changed, 1558 insertions, 190 deletions
diff --git a/.gitignore b/.gitignore
index 5d385ed..936ec28 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
-/target
+target/
+bin/
.project
.classpath
-.settings/*
-!/.settings/org.eclipse.jdt.core.prefs
-!/.settings/org.eclipse.jdt.ui.prefs \ No newline at end of file
+.settings/
diff --git a/pom.xml b/pom.xml
index 36d67f5..830de21 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,8 +14,9 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.tycho.nexus</groupId>
- <artifactId>unzip-repository-plugin</artifactId>
+ <artifactId>unzip-repository-plugin-parent</artifactId>
<version>0.12.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
<inceptionYear>2010</inceptionYear>
<url>http://www.eclipse.org/tycho/</url>
@@ -60,18 +61,23 @@
<url>https://bugs.eclipse.org/bugs/buglist.cgi?product=Tycho&amp;component=Nexus%20Plugins</url>
</issueManagement>
- <packaging>nexus-plugin</packaging>
-
- <name>Unzip Repository Nexus Plugin (Incubation)</name>
+ <name>Nexus Unzip Plugin - Parent (Incubation)</name>
<description>
The Unzip Repository is a Nexus repository type that shadows the build results of a standard
Maven 2 repository and allows to browse into zip and jar artifacts.
The use case for Tycho is to to offer p2 repositories that were build with Tycho and deployed
to Nexus as zip so that other Tycho projects can reference them.
</description>
-
+
<properties>
- <nexus-version>2.6.0-05</nexus-version>
+ <!-- nexus version we compile against -->
+ <nexus.version>2.6.0-01</nexus.version>
+ <!-- minimum nexus version to run ITs against -->
+ <nexus.test.min.version>${nexus.version}</nexus.test.min.version>
+ <!-- maximum nexus version to run ITs against -->
+ <nexus.test.max.version>2.6.2-01</nexus.test.max.version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<repositories>
@@ -87,6 +93,71 @@
</pluginRepository>
</pluginRepositories>
+ <modules>
+ <module>unzip-repository-plugin</module>
+ <module>unzip-repository-plugin-its</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+ <!-- plexus-utils are provided by Nexus -> mark as "provided", otherwise
+ they will be packaged into the plugin archive and this can lead to runtime
+ version mismatches! -->
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-utils</artifactId>
+ <version>2.0.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ <version>3.0.4</version>
+ </dependency>
+ <!-- Main plugin API, pulling in what is needed -->
+ <dependency>
+ <groupId>org.sonatype.nexus</groupId>
+ <artifactId>nexus-plugin-api</artifactId>
+ <version>${nexus.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>org.sonatype.nexus</groupId>
+ <artifactId>nexus-testsuite-support</artifactId>
+ <version>${nexus.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
+ <version>3.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.5.1</version>
+ <configuration>
+ <source>1.7</source>
+ <target>1.7</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<profiles>
<profile>
<id>release</id>
@@ -137,117 +208,5 @@
</build>
</profile>
</profiles>
-
- <dependencyManagement>
- <dependencies>
- <!-- plexus-utils are provided by Nexus -> mark as "provided", otherwise they will be
- packaged into the plugin archive and this can lead to runtime version mismatches! -->
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-utils</artifactId>
- <version>2.0.5</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.maven</groupId>
- <artifactId>maven-artifact</artifactId>
- <version>3.0.4</version>
- </dependency>
- <!-- Main plugin API, pulling in what is needed -->
- <dependency>
- <groupId>org.sonatype.nexus</groupId>
- <artifactId>nexus-plugin-api</artifactId>
- <version>${nexus-version}</version>
- <scope>provided</scope>
- </dependency>
- <!-- This dependency is only needed if you want to include REST Resources -->
- <dependency>
- <groupId>org.sonatype.nexus.plugins</groupId>
- <artifactId>nexus-restlet1x-plugin</artifactId>
- <version>${nexus-version}</version>
- <type>nexus-plugin</type>
- <scope>provided</scope>
- </dependency>
-
- <!-- Basic testing -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.10</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymock</artifactId>
- <version>3.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <!-- Needed for custom packaging -->
- <plugin>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>app-lifecycle-maven-plugin</artifactId>
- <version>1.7</version>
- <extensions>true</extensions>
- <dependencies>
- <dependency>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>app-lifecycle-nexus</artifactId>
- <version>1.7</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.5.1</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Generate components.xml to use Plexus style of dependency injection -->
- <plugin>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-component-metadata</artifactId>
- <version>1.5.5</version>
- <executions>
- <execution>
- <id>process-classes</id>
- <goals>
- <goal>generate-metadata</goal>
- </goals>
- </execution>
- <execution>
- <id>process-test-classes</id>
- <goals>
- <goal>generate-test-metadata</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
-
- </build>
</project>
diff --git a/unzip-repository-plugin-its/.gitignore b/unzip-repository-plugin-its/.gitignore
new file mode 100644
index 0000000..abb9537
--- /dev/null
+++ b/unzip-repository-plugin-its/.gitignore
@@ -0,0 +1,7 @@
+# override global rule
+!/.settings/
+
+# only include specified files
+/.settings/*
+!/.settings/org.eclipse.jdt.core.prefs
+!/.settings/org.eclipse.jdt.ui.prefs
diff --git a/unzip-repository-plugin-its/.settings/org.eclipse.core.resources.prefs b/unzip-repository-plugin-its/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..8dd9b1d
--- /dev/null
+++ b/unzip-repository-plugin-its/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+encoding//src/test/java=UTF-8
+encoding/<project>=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/unzip-repository-plugin-its/.settings/org.eclipse.jdt.core.prefs
index 0a99f09..8261a1e 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/unzip-repository-plugin-its/.settings/org.eclipse.jdt.core.prefs
@@ -1,8 +1,11 @@
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
diff --git a/.settings/org.eclipse.jdt.ui.prefs b/unzip-repository-plugin-its/.settings/org.eclipse.jdt.ui.prefs
index 8a73ade..8a73ade 100644
--- a/.settings/org.eclipse.jdt.ui.prefs
+++ b/unzip-repository-plugin-its/.settings/org.eclipse.jdt.ui.prefs
diff --git a/unzip-repository-plugin-its/.settings/org.eclipse.m2e.core.prefs b/unzip-repository-plugin-its/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/unzip-repository-plugin-its/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/unzip-repository-plugin-its/pom.xml b/unzip-repository-plugin-its/pom.xml
new file mode 100644
index 0000000..8626d39
--- /dev/null
+++ b/unzip-repository-plugin-its/pom.xml
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (c) 2013 SAP AG and others.
+ - All rights reserved. This program and the accompanying materials
+ - are made available under the terms of the Eclipse Public License v1.0
+ - which accompanies this distribution, and is available at
+ - http://www.eclipse.org/legal/epl-v10.html
+ -
+ - Contributors:
+ - SAP AG - initial API and implementation
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.tycho.nexus</groupId>
+ <artifactId>unzip-repository-plugin-parent</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>unzip-repository-plugin-its</artifactId>
+ <name>Nexus Unzip Plugin - Integration Tests (Incubation)</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.sonatype.nexus</groupId>
+ <artifactId>nexus-testsuite-support</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ </dependencies>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.eclipse.tycho.nexus</groupId>
+ <artifactId>unzip-repository-plugin</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ <type>zip</type>
+ <classifier>bundle</classifier>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.nexus.assemblies</groupId>
+ <artifactId>nexus-bundle-template</artifactId>
+ <version>${nexus.version}</version>
+ <type>zip</type>
+ <classifier>bundle</classifier>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/test/resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*.properties</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/test/resources</directory>
+ <filtering>false</filtering>
+ <excludes>
+ <exclude>**/*.properties</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>2.12.4</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- this module contains tests only. The following plugins are switched off -->
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>default-jar</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>default-install</id>
+ <phase>none</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.jar b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.jar
new file mode 100644
index 0000000..ff7a559
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.jar
Binary files differ
diff --git a/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.pom b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.pom
new file mode 100644
index 0000000..ea15212
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/1.0.1/artifact-1.0.1.pom
@@ -0,0 +1,10 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.example</groupId>
+ <artifactId>artifact</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0.1</version>
+
+</project>
diff --git a/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/maven-metadata.xml b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/maven-metadata.xml
new file mode 100644
index 0000000..064638c
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/it-resources/artifacts/org/example/artifact/maven-metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.example</groupId>
+ <artifactId>artifact</artifactId>
+ <versioning>
+ <latest>1.0.1</latest>
+ <release>1.0.1</release>
+ <versions>
+ <version>1.0.1</version>
+ </versions>
+ <lastUpdated>20130516214336</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/unzip-repository-plugin-its/src/test/it-resources/preset-nexus/nexus.xml b/unzip-repository-plugin-its/src/test/it-resources/preset-nexus/nexus.xml
new file mode 100644
index 0000000..20d386f
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/it-resources/preset-nexus/nexus.xml
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<nexusConfiguration>
+ <version>2.5.0</version>
+ <nexusVersion>2.6.0-01</nexusVersion>
+ <globalConnectionSettings>
+ <connectionTimeout>20000</connectionTimeout>
+ <retrievalRetryCount>3</retrievalRetryCount>
+ <queryString></queryString>
+ </globalConnectionSettings>
+ <restApi>
+ <uiTimeout>60000</uiTimeout>
+ </restApi>
+ <httpProxy>
+ <enabled>true</enabled>
+ <port>8082</port>
+ <proxyPolicy>strict</proxyPolicy>
+ </httpProxy>
+ <routing>
+ <resolveLinks>true</resolveLinks>
+ </routing>
+ <repositories>
+ <repository>
+ <id>releases</id>
+ <name>releases</name>
+ <providerRole>org.sonatype.nexus.proxy.repository.Repository</providerRole>
+ <providerHint>maven2</providerHint>
+ <localStatus>IN_SERVICE</localStatus>
+ <notFoundCacheTTL>1440</notFoundCacheTTL>
+ <userManaged>true</userManaged>
+ <exposed>true</exposed>
+ <browseable>true</browseable>
+ <writePolicy>ALLOW_WRITE_ONCE</writePolicy>
+ <indexable>true</indexable>
+ <searchable>true</searchable>
+ <localStorage>
+ <provider>file</provider>
+ </localStorage>
+ <externalConfiguration>
+ <proxyMode>ALLOW</proxyMode>
+ <artifactMaxAge>-1</artifactMaxAge>
+ <itemMaxAge>1440</itemMaxAge>
+ <cleanseRepositoryMetadata>false</cleanseRepositoryMetadata>
+ <downloadRemoteIndex>false</downloadRemoteIndex>
+ <checksumPolicy>WARN</checksumPolicy>
+ <repositoryPolicy>RELEASE</repositoryPolicy>
+ </externalConfiguration>
+ </repository>
+ <repository>
+ <id>releases.unzip</id>
+ <name>releases.unzip</name>
+ <providerRole>org.eclipse.tycho.nexus.internal.plugin.UnzipRepository</providerRole>
+ <providerHint>org.eclipse.tycho.nexus.plugin.DefaultUnzipRepository</providerHint>
+ <localStatus>IN_SERVICE</localStatus>
+ <notFoundCacheTTL>15</notFoundCacheTTL>
+ <userManaged>true</userManaged>
+ <exposed>true</exposed>
+ <browseable>true</browseable>
+ <writePolicy>READ_ONLY</writePolicy>
+ <searchable>true</searchable>
+ <localStorage>
+ <provider>file</provider>
+ </localStorage>
+ <externalConfiguration>
+ <masterRepositoryId>releases</masterRepositoryId>
+ <synchronizeAtStartup>false</synchronizeAtStartup>
+ <useVirtualVersion>true</useVirtualVersion>
+ </externalConfiguration>
+ </repository>
+ <repository>
+ <id>releases.group</id>
+ <name>releases.group</name>
+ <providerRole>org.sonatype.nexus.proxy.repository.GroupRepository</providerRole>
+ <providerHint>maven2</providerHint>
+ <localStatus>IN_SERVICE</localStatus>
+ <notFoundCacheTTL>15</notFoundCacheTTL>
+ <userManaged>true</userManaged>
+ <exposed>true</exposed>
+ <browseable>true</browseable>
+ <writePolicy>READ_ONLY</writePolicy>
+ <indexable>true</indexable>
+ <localStorage>
+ <provider>file</provider>
+ </localStorage>
+ <externalConfiguration>
+ <memberRepositories>
+ <memberRepository>releases</memberRepository>
+ </memberRepositories>
+ </externalConfiguration>
+ </repository>
+ <repository>
+ <id>releases.group.unzip</id>
+ <name>releases.group.unzip</name>
+ <providerRole>org.eclipse.tycho.nexus.internal.plugin.UnzipRepository</providerRole>
+ <providerHint>org.eclipse.tycho.nexus.plugin.DefaultUnzipRepository</providerHint>
+ <localStatus>IN_SERVICE</localStatus>
+ <notFoundCacheTTL>15</notFoundCacheTTL>
+ <userManaged>true</userManaged>
+ <exposed>true</exposed>
+ <browseable>true</browseable>
+ <writePolicy>READ_ONLY</writePolicy>
+ <searchable>true</searchable>
+ <localStorage>
+ <provider>file</provider>
+ </localStorage>
+ <externalConfiguration>
+ <masterRepositoryId>releases.group</masterRepositoryId>
+ <synchronizeAtStartup>true</synchronizeAtStartup>
+ <useVirtualVersion>true</useVirtualVersion>
+ </externalConfiguration>
+ </repository>
+ </repositories>
+ <repositoryGrouping>
+ <pathMappings>
+ <pathMapping>
+ <id>inhouse-stuff</id>
+ <groupId>*</groupId>
+ <routeType>inclusive</routeType>
+ <routePatterns>
+ <routePattern>^/(com|org)/somecompany/.*</routePattern>
+ </routePatterns>
+ <repositories>
+ <repository>releases</repository>
+ </repositories>
+ </pathMapping>
+ <pathMapping>
+ <id>apache-stuff</id>
+ <groupId>*</groupId>
+ <routeType>exclusive</routeType>
+ <routePatterns>
+ <routePattern>^/org/some-oss/.*</routePattern>
+ </routePatterns>
+ <repositories>
+ <repository>releases</repository>
+ </repositories>
+ </pathMapping>
+ </pathMappings>
+ </repositoryGrouping>
+ <repositoryTargets>
+ <repositoryTarget>
+ <id>1</id>
+ <name>All (Maven2)</name>
+ <contentClass>maven2</contentClass>
+ <patterns>
+ <pattern>.*</pattern>
+ </patterns>
+ </repositoryTarget>
+ <repositoryTarget>
+ <id>2</id>
+ <name>All (Maven1)</name>
+ <contentClass>maven1</contentClass>
+ <patterns>
+ <pattern>.*</pattern>
+ </patterns>
+ </repositoryTarget>
+ <repositoryTarget>
+ <id>3</id>
+ <name>All but sources (Maven2)</name>
+ <contentClass>maven2</contentClass>
+ <patterns>
+ <pattern>(?!.*-sources.*).*</pattern>
+ </patterns>
+ </repositoryTarget>
+ <repositoryTarget>
+ <id>4</id>
+ <name>All Metadata (Maven2)</name>
+ <contentClass>maven2</contentClass>
+ <patterns>
+ <pattern>.*maven-metadata\.xml.*</pattern>
+ </patterns>
+ </repositoryTarget>
+ <repositoryTarget>
+ <id>any</id>
+ <name>All (Any Repository)</name>
+ <contentClass>any</contentClass>
+ <patterns>
+ <pattern>.*</pattern>
+ </patterns>
+ </repositoryTarget>
+ <repositoryTarget>
+ <id>simple</id>
+ <name>All (simple)</name>
+ <contentClass>simple</contentClass>
+ <patterns>
+ <pattern>.*</pattern>
+ </patterns>
+ </repositoryTarget>
+ </repositoryTargets>
+ <smtpConfiguration>
+ <hostname>smtp-host</hostname>
+ <port>25</port>
+ <username>smtp-username</username>
+ <password>{WxIwDo6qMzsHoM2gt8vaYMuIfEIGDq/5aZ4ehTE+xvQ=}</password>
+ <systemEmailAddress>system@nexus.org</systemEmailAddress>
+ </smtpConfiguration>
+ <errorReporting>
+ <jiraUrl>https://issues.sonatype.org</jiraUrl>
+ <jiraProject>PR</jiraProject>
+ </errorReporting>
+ <notification />
+</nexusConfiguration>
diff --git a/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/AbstractUnzipRepositoryPluginITCase.java b/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/AbstractUnzipRepositoryPluginITCase.java
new file mode 100644
index 0000000..f65b834
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/AbstractUnzipRepositoryPluginITCase.java
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * Copyright (c) 2013 SAP AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SAP AG - initial implementation
+ *******************************************************************************/
+package org.eclipse.tycho.nexus.internal.plugin;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.notNullValue;
+import static org.junit.Assert.assertTrue;
+import static org.sonatype.nexus.client.core.subsystem.content.Location.repositoryLocation;
+
+import java.io.File;
+import java.io.IOException;
+
+import javax.inject.Inject;
+
+import org.junit.Before;
+import org.sonatype.nexus.bundle.launcher.NexusBundleConfiguration;
+import org.sonatype.nexus.client.core.subsystem.artifact.ArtifactMaven;
+import org.sonatype.nexus.client.core.subsystem.content.Content;
+import org.sonatype.nexus.testsuite.support.NexusRunningParametrizedITSupport;
+import org.sonatype.sisu.filetasks.FileTaskBuilder;
+import org.sonatype.sisu.filetasks.builder.FileRef;
+
+public abstract class AbstractUnzipRepositoryPluginITCase extends NexusRunningParametrizedITSupport {
+
+ // set this to true if you want to debug the startup phase of nexus
+ private static final Boolean SUSPEND_ON_START = false;
+ private static final Integer DEBUG_PORT = 8000;
+ private static final String NEXUS_LOG_LEVEL = "DEBUG";
+
+ @Inject
+ private FileTaskBuilder fileTaskBuilder;
+
+ public AbstractUnzipRepositoryPluginITCase(final String nexusBundleCoordinates) {
+ super(nexusBundleCoordinates);
+ }
+
+ @Before
+ public void setup() {
+ assertTrue(nexus().isRunning());
+ assertThat(client().getNexusStatus().getEditionLong(), notNullValue());
+ }
+
+ @Override
+ protected NexusBundleConfiguration configureNexus(final NexusBundleConfiguration configuration) {
+ final File nexusXmlOverlay = testData().resolveFile("preset-nexus");
+ configuration.addOverlays(fileTaskBuilder.copy().directory(FileRef.file(nexusXmlOverlay)).to()
+ .directory(FileRef.path("sonatype-work/nexus/conf")));
+ configuration.setLogLevel(NEXUS_LOG_LEVEL);
+ configuration.enableDebugging(DEBUG_PORT, SUSPEND_ON_START);
+ final File unzipPlugin = artifactResolver().resolveFromDependencyManagement("org.eclipse.tycho.nexus",
+ "unzip-repository-plugin", null, null, "zip", "bundle");
+ configuration.addPlugins(unzipPlugin).setLogLevel(NEXUS_LOG_LEVEL);
+ return configuration;
+ }
+
+ protected void uploadToReleasesRepository(final String artifactPath) throws IOException {
+ final File resolveFile = testData().resolveFile("artifacts/" + artifactPath);
+ getNexusContentService().upload(repositoryLocation("releases", artifactPath), resolveFile);
+ }
+
+ protected Content getNexusContentService() {
+ return client().getSubsystem(Content.class);
+ }
+
+ protected ArtifactMaven getNexusArtifactMavenService() {
+ return client().getSubsystem(ArtifactMaven.class);
+ }
+
+}
diff --git a/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryPluginITCase.java b/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryPluginITCase.java
new file mode 100644
index 0000000..0839d8f
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryPluginITCase.java
@@ -0,0 +1,131 @@
+/*******************************************************************************
+ * Copyright (c) 2013 SAP AG and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * SAP AG - initial implementation
+ *******************************************************************************/
+package org.eclipse.tycho.nexus.internal.plugin;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.sonatype.nexus.client.core.subsystem.content.Location.repositoryLocation;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Properties;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipFile;
+
+import org.apache.commons.io.IOUtils;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runners.Parameterized.Parameters;
+import org.sonatype.nexus.client.core.exception.NexusClientNotFoundException;
+import org.sonatype.nexus.client.core.subsystem.artifact.ResolveRequest;
+import org.sonatype.nexus.client.core.subsystem.artifact.ResolveResponse;
+import org.sonatype.nexus.client.core.subsystem.content.Location;
+import org.sonatype.nexus.testsuite.support.NexusStartAndStopStrategy;
+import org.sonatype.nexus.testsuite.support.NexusStartAndStopStrategy.Strategy;
+
+@NexusStartAndStopStrategy(Strategy.EACH_TEST)
+public class UnzipRepositoryPluginITCase extends AbstractUnzipRepositoryPluginITCase {
+
+ @Parameters
+ public static Collection<Object[]> data() {
+ // nexus versions to be tested against
+ return Arrays.asList(//
+ new Object[] { getTestProperty("nexus.min.coords") }, //
+ new Object[] { getTestProperty("nexus.max.coords") });
+ }
+
+ private static String getTestProperty(String key) {
+ Properties testProps = new Properties();
+ InputStream stream = UnzipRepositoryPluginITCase.class.getResourceAsStream("/test.properties");
+ try {
+ testProps.load(stream);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ } finally {
+ IOUtils.closeQuietly(stream);
+ }
+ return testProps.getProperty(key);
+ }
+
+ public UnzipRepositoryPluginITCase(String nexusBundleCoordinates) {
+ super(nexusBundleCoordinates);
+ }
+
+ private static final String EXAMPLE_POM = "org/example/artifact/1.0.1/artifact-1.0.1.pom";
+ private static final String EXAMPLE_JAR = "org/example/artifact/1.0.1/artifact-1.0.1.jar";
+ private static final String EXAMPLE_MAVEN_METADATA = "org/example/artifact/maven-metadata.xml";
+
+ @Before
+ public void uploadExampleArtifacts() throws IOException {
+ if (!canResolveExampleArtifact()) {
+ uploadToReleasesRepository(EXAMPLE_POM);
+ uploadToReleasesRepository(EXAMPLE_JAR);
+ uploadToReleasesRepository(EXAMPLE_MAVEN_METADATA);
+ assertTrue(canResolveExampleArtifact());
+ }
+ }
+
+ @Test
+ public void testUnzipRepoWithHostedRepoAsMaster() throws Exception {
+ assertDownloadExampleZipEntryFromUnzipRepository("releases.unzip");
+ }
+
+ @Test
+ public void testUnzipRepoWithGroupRepoAsMaster() throws Exception {
+ assertDownloadExampleZipEntryFromUnzipRepository("releases.group.unzip");
+ }
+
+ private void assertDownloadExampleZipEntryFromUnzipRepository(final String unzipRepositoryId) throws IOException {
+ final String pathInZip = "META-INF/maven/org.example/artifact/pom.properties";
+ String downloadedContent;
+ final File tempFile = File.createTempFile("test", "unzip");
+ try {
+ final Location loc = repositoryLocation(unzipRepositoryId, EXAMPLE_JAR + "-unzip/" + pathInZip);
+ getNexusContentService().download(loc, tempFile);
+ FileInputStream stream = new FileInputStream(tempFile);
+ try {
+ downloadedContent = IOUtils.toString(stream);
+ } finally {
+ stream.close();
+ }
+ } finally {
+ tempFile.delete();
+ }
+ ZipFile zipFile = new ZipFile(testData().resolveFile("artifacts/" + EXAMPLE_JAR));
+ String expectedContent;
+ try {
+ ZipEntry entry = zipFile.getEntry(pathInZip);
+ expectedContent = IOUtils.toString(zipFile.getInputStream(entry));
+ } finally {
+ zipFile.close();
+ }
+ assertEquals(expectedContent, downloadedContent);
+ }
+
+ private boolean canResolveExampleArtifact() {
+ ResolveResponse resolveResponse = null;
+ try {
+ resolveResponse = getNexusArtifactMavenService().resolve(
+ new ResolveRequest("releases", "org.example", "artifact", ResolveRequest.VERSION_RELEASE));
+ } catch (final NexusClientNotFoundException e) {
+ // if it's not there yet... that's o.k.
+ }
+ return resolveResponse != null //
+ && "org.example".equals(resolveResponse.getGroupId()) //
+ && "artifact".equals(resolveResponse.getArtifactId()) //
+ && "jar".equals(resolveResponse.getExtension()) //
+ && !resolveResponse.isSnapshot();
+ }
+}
diff --git a/unzip-repository-plugin-its/src/test/resources/test.properties b/unzip-repository-plugin-its/src/test/resources/test.properties
new file mode 100644
index 0000000..27c54e0
--- /dev/null
+++ b/unzip-repository-plugin-its/src/test/resources/test.properties
@@ -0,0 +1,4 @@
+# minimum nexus version to test against
+nexus.min.coords=org.sonatype.nexus.assemblies:nexus-bundle-template:zip:bundle:${nexus.test.min.version}
+# maximum nexus version to test against
+nexus.max.coords=org.sonatype.nexus.assemblies:nexus-bundle-template:zip:bundle:${nexus.test.max.version} \ No newline at end of file
diff --git a/unzip-repository-plugin/.gitignore b/unzip-repository-plugin/.gitignore
new file mode 100644
index 0000000..abb9537
--- /dev/null
+++ b/unzip-repository-plugin/.gitignore
@@ -0,0 +1,7 @@
+# override global rule
+!/.settings/
+
+# only include specified files
+/.settings/*
+!/.settings/org.eclipse.jdt.core.prefs
+!/.settings/org.eclipse.jdt.ui.prefs
diff --git a/unzip-repository-plugin/.settings/org.eclipse.core.resources.prefs b/unzip-repository-plugin/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..29abf99
--- /dev/null
+++ b/unzip-repository-plugin/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/main/resources=UTF-8
+encoding//src/test/java=UTF-8
+encoding//src/test/resources=UTF-8
+encoding/<project>=UTF-8
diff --git a/unzip-repository-plugin/.settings/org.eclipse.jdt.core.prefs b/unzip-repository-plugin/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..8261a1e
--- /dev/null
+++ b/unzip-repository-plugin/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,288 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=false
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=100
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=true
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/unzip-repository-plugin/.settings/org.eclipse.jdt.ui.prefs b/unzip-repository-plugin/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 0000000..8a73ade
--- /dev/null
+++ b/unzip-repository-plugin/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,56 @@
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_Tycho
+formatter_settings_version=12
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=true
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=false
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=false
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/unzip-repository-plugin/.settings/org.eclipse.m2e.core.prefs b/unzip-repository-plugin/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/unzip-repository-plugin/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/nexus_examples.txt b/unzip-repository-plugin/nexus_examples.txt
index 8bbfa43..8bbfa43 100644
--- a/nexus_examples.txt
+++ b/unzip-repository-plugin/nexus_examples.txt
diff --git a/unzip-repository-plugin/pom.xml b/unzip-repository-plugin/pom.xml
new file mode 100644
index 0000000..ab45a3f
--- /dev/null
+++ b/unzip-repository-plugin/pom.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ - Copyright (c) 2010, 2013 SAP AG and others.
+ - All rights reserved. This program and the accompanying materials
+ - are made available under the terms of the Eclipse Public License v1.0
+ - which accompanies this distribution, and is available at
+ - http://www.eclipse.org/legal/epl-v10.html
+ -
+ - Contributors:
+ - SAP AG - initial API and implementation
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.eclipse.tycho.nexus</groupId>
+ <artifactId>unzip-repository-plugin-parent</artifactId>
+ <version>0.12.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>unzip-repository-plugin</artifactId>
+ <name>Nexus Unzip Plugin (Incubation)</name>
+
+ <packaging>nexus-plugin</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-artifact</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.sonatype.nexus</groupId>
+ <artifactId>nexus-plugin-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymock</artifactId>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- Needed for custom packaging -->
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>app-lifecycle-maven-plugin</artifactId>
+ <version>1.7</version>
+ <extensions>true</extensions>
+ <dependencies>
+ <dependency>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>app-lifecycle-nexus</artifactId>
+ <version>1.7</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.2.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <phase>verify</phase>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- Generate components.xml to use Plexus style of dependency injection -->
+ <plugin>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-component-metadata</artifactId>
+ <version>1.5.5</version>
+ <executions>
+ <execution>
+ <id>process-classes</id>
+ <goals>
+ <goal>generate-metadata</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>process-test-classes</id>
+ <goals>
+ <goal>generate-test-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java
index b416bdf..22af8e4 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepository.java
@@ -190,7 +190,7 @@ public class DefaultUnzipRepository extends AbstractShadowRepository implements
if (!isMasterAvailable) {
String repositoryId = getExternalConfiguration(false).getMasterRepositoryId();
try {
- getLogger().info("setting master repository with id '" + repositoryId + "'");
+ getLogger().debug("setting master repository '" + repositoryId + "' for unzip repository '" + getId() + "'");
setMasterRepositoryId(repositoryId);
} catch (NoSuchRepositoryException e) {
getLogger().error("[" + repositoryId + "] " + "cannot set master repository " + e.getMessage());
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java
index d1afb62..d1afb62 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/RequestTimeTrace.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java
index c03b630..c03b630 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepository.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java
index b9600b7..b9600b7 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfiguration.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java
index 2f83b61..2f83b61 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryConfigurator.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java
index d2ef5a7..d2ef5a7 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryHtmlCustomizer.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java
index 13afda5..13afda5 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryResourceBundle.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java
index 124c9e3..124c9e3 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplate.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java
index b55db53..b55db53 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/UnzipRepositoryTemplateProvider.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java
index d6e3f9b..d6e3f9b 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ConversionResult.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java
index 00d3474..00d3474 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestReleaseRequest.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java
index 452d9b5..452d9b5 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionRequest.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java
index 3a50abd..3a50abd 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/ParsedRequest.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java
index d6a5291..d6a5291 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLock.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java
index 597e950..597e950 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverter.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java
index 7eed7ae..7eed7ae 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/SnapshotRequest.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java
index feb2cf0..feb2cf0 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnchangedRequest.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java
index 87443ff..87443ff 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCache.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java
index 05e3888..05e3888 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/Util.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java
index 898f894..898f894 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItem.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java
index fe60216..fe60216 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItem.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java
index b4ee587..b4ee587 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItem.java
diff --git a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java
index f808ac8..f808ac8 100644
--- a/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java
+++ b/unzip-repository-plugin/src/main/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageFileItem.java
diff --git a/src/main/resources/epl-v10.html b/unzip-repository-plugin/src/main/resources/epl-v10.html
index ed4b196..ed4b196 100644
--- a/src/main/resources/epl-v10.html
+++ b/unzip-repository-plugin/src/main/resources/epl-v10.html
diff --git a/src/main/resources/resources/js/unzip-repo.js b/unzip-repository-plugin/src/main/resources/resources/js/unzip-repo.js
index 77fb7e9..77fb7e9 100644
--- a/src/main/resources/resources/js/unzip-repo.js
+++ b/unzip-repository-plugin/src/main/resources/resources/js/unzip-repo.js
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java
index 2110ac2..2110ac2 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstHostedRepositoryTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java
index 1c1ad57..1c1ad57 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryAgainstProxyRepositoryTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java
index c31e48e..c31e48e 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/DefaultUnzipRepositoryTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java
index dde5e30..1cf9a32 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/LatestVersionConverterTest.java
@@ -10,11 +10,12 @@
*******************************************************************************/
package org.eclipse.tycho.nexus.internal.plugin.cache;
+import static org.junit.Assert.assertEquals;
+
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
-import junit.framework.Assert;
import junit.framework.AssertionFailedError;
import org.easymock.Capture;
@@ -35,23 +36,23 @@ public class LatestVersionConverterTest {
@Test
public void testConvertToLatestVersion() throws Exception {
assertPathIsConvertedTo(
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/SNAPSHOT/org.eclipse.tycho.example.target-SNAPSHOT.zip-unzip",
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.1-SNAPSHOT/org.eclipse.tycho.example.target-0.7.1-20110718.111322-2.zip-unzip");
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/SNAPSHOT/org.eclipse.tycho.example.target-SNAPSHOT.zip-unzip",
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.1-SNAPSHOT/org.eclipse.tycho.example.target-0.7.1-20110718.111322-2.zip-unzip");
}
@Test
public void testConvertToLatestReleaseVersion() throws Exception {
assertPathIsConvertedTo(
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/RELEASE/org.eclipse.tycho.example.target-RELEASE.zip-unzip",
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.0/org.eclipse.tycho.example.target-0.7.0.zip-unzip");
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/RELEASE/org.eclipse.tycho.example.target-RELEASE.zip-unzip",
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.0/org.eclipse.tycho.example.target-0.7.0.zip-unzip");
}
@Test
public void testConvertToLatestVersionNotSnapshot() throws Exception {
outerMetadataXml = "./src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml";
assertPathIsConvertedTo(
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/SNAPSHOT/org.eclipse.tycho.example.target-SNAPSHOT.zip-unzip",
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.0/org.eclipse.tycho.example.target-0.7.0.zip-unzip");
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/SNAPSHOT/org.eclipse.tycho.example.target-SNAPSHOT.zip-unzip",
+ "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.0/org.eclipse.tycho.example.target-0.7.0.zip-unzip");
}
@Test
@@ -116,13 +117,13 @@ public class LatestVersionConverterTest {
private void assertPathConvertion(final ResourceStoreRequest request, final String convertedPath,
final boolean isPathConverted) throws Exception {
- final MavenRepository repositoryMock = createRepositoryMock(
- "org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/",
+ final MavenRepository repositoryMock =
+ createRepositoryMock("org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/",
"org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.7.1-SNAPSHOT/",
"org/eclipse/tycho/nexus/org.eclipse.tycho.example.target/0.6.1-SNAPSHOT/");
final ConversionResult conversionResult = RequestPathConverter.convert(repositoryMock, request, true);
- Assert.assertEquals(isPathConverted, conversionResult.isPathConverted());
- Assert.assertEquals(convertedPath, conversionResult.getConvertedPath());
+ assertEquals(isPathConverted, conversionResult.isPathConverted());
+ assertEquals(convertedPath, conversionResult.getConvertedPath());
}
@SuppressWarnings("unchecked")
@@ -136,35 +137,34 @@ public class LatestVersionConverterTest {
try {
EasyMock.expect(repositoryMock.getId()).andStubReturn("");
EasyMock.expect(repositoryMock.retrieveItem(EasyMock.capture(captures[0])))
- .andAnswer(new IAnswer<StorageFileItem>() {
- @Override
- public StorageFileItem answer() throws Throwable {
- final StorageFileItem mavenMetaDataXml = EasyMock.createMock(StorageFileItem.class);
- EasyMock.expect(mavenMetaDataXml.getInputStream()).andAnswer(new IAnswer<InputStream>() {
-
- @Override
- public InputStream answer() throws Throwable {
- final File metaDataFile;
- final String requestPath = captures[0].getValue().getRequestPath();
- if (pathToInnerMetadataXML.equals(requestPath)) {
- metaDataFile = new File(
- "./src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml");
- } else if (pathToArtifact2MetadataXML.equals(requestPath)) {
- metaDataFile = new File(
- "./src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml");
- } else if (pathToOuterMetadataXML.equals(captures[0].getValue().getRequestPath())) {
- metaDataFile = new File(outerMetadataXml);
- } else {
- throw new AssertionFailedError("wrong request for maven-metadata.xml: "
- + requestPath);
- }
- return new FileInputStream(metaDataFile);
+ .andAnswer(new IAnswer<StorageFileItem>() {
+ @Override
+ public StorageFileItem answer() throws Throwable {
+ final StorageFileItem mavenMetaDataXml = EasyMock.createMock(StorageFileItem.class);
+ EasyMock.expect(mavenMetaDataXml.getInputStream()).andAnswer(new IAnswer<InputStream>() {
+
+ @Override
+ public InputStream answer() throws Throwable {
+ final File metaDataFile;
+ final String requestPath = captures[0].getValue().getRequestPath();
+ if (pathToInnerMetadataXML.equals(requestPath)) {
+ metaDataFile = new File("./src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml");
+ } else if (pathToArtifact2MetadataXML.equals(requestPath)) {
+ metaDataFile = new File("./src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml");
+ } else if (pathToOuterMetadataXML.equals(captures[0].getValue().getRequestPath())) {
+ metaDataFile = new File(outerMetadataXml);
+ } else {
+ throw new AssertionFailedError("wrong request for maven-metadata.xml: "
+ + requestPath);
}
- });
- EasyMock.replay(mavenMetaDataXml);
- return mavenMetaDataXml;
- }
- }).anyTimes();
+ return new FileInputStream(metaDataFile);
+ }
+ });
+ EasyMock.replay(mavenMetaDataXml);
+ return mavenMetaDataXml;
+ }
+ })
+ .anyTimes();
} catch (final Exception e) {
throw new RuntimeException("Unable to create Maven Repo Mock", e);
}
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java
index 91809eb..91809eb 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/PathLockTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java
index af4ec89..af4ec89 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/RequestPathConverterTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java
index 41bf1c5..41bf1c5 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/cache/UnzipCacheTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java
index fdf5720..fdf5720 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZipAwareStorageCollectionItemTest.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java
index 1093cbc..fd3a83a 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedItemTest.java
@@ -30,8 +30,8 @@ import org.sonatype.nexus.util.ItemPathUtils;
public class ZippedItemTest {
private final String pathToArchive = "/dir/subdir/archive.zip";
private final String pathToUnzippedArchive = "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION;
- private final DefaultUnzipRepository unzipReposMock = UnzipRepositoryMock.createUnzipRepository(RepositoryMock
- .createMasterRepo());
+ private final DefaultUnzipRepository unzipReposMock =
+ UnzipRepositoryMock.createUnzipRepository(RepositoryMock.createMasterRepo());
@Test
public void testZippedItemInRoot() throws ItemNotFoundException, IOException {
@@ -87,8 +87,8 @@ public class ZippedItemTest {
Assert.assertEquals(pathToUnzippedArchive, zippedItem.getPath());
Assert.assertNull(zippedItem.getMimeType());
- final DefaultStorageCollectionItem zippedStorageItem = (DefaultStorageCollectionItem) zippedItem
- .getZippedStorageItem();
+ final DefaultStorageCollectionItem zippedStorageItem =
+ (DefaultStorageCollectionItem) zippedItem.getZippedStorageItem();
Assert.assertEquals(pathToUnzippedArchive, zippedStorageItem.getPath());
}
@@ -101,8 +101,8 @@ public class ZippedItemTest {
Assert.assertEquals(pathToUnzippedArchive, zippedItem.getPath());
Assert.assertNull(zippedItem.getMimeType());
- final DefaultStorageCollectionItem zippedStorageItem = (DefaultStorageCollectionItem) zippedItem
- .getZippedStorageItem();
+ final DefaultStorageCollectionItem zippedStorageItem =
+ (DefaultStorageCollectionItem) zippedItem.getZippedStorageItem();
Assert.assertEquals(pathToUnzippedArchive, zippedStorageItem.getPath());
}
@@ -115,8 +115,8 @@ public class ZippedItemTest {
Assert.assertEquals(pathToUnzippedArchive + "/" + pathInZip, zippedItem.getPath());
Assert.assertNull(zippedItem.getMimeType());
- final DefaultStorageCollectionItem zippedStorageItem = (DefaultStorageCollectionItem) zippedItem
- .getZippedStorageItem();
+ final DefaultStorageCollectionItem zippedStorageItem =
+ (DefaultStorageCollectionItem) zippedItem.getZippedStorageItem();
Assert.assertEquals(pathToUnzippedArchive + "/" + pathInZip, zippedStorageItem.getPath());
}
@@ -127,16 +127,15 @@ public class ZippedItemTest {
Assert.assertEquals(ItemPathUtils.cleanUpTrailingSlash(pathInZip), zippedItem.getPathInZip());
Assert.assertEquals(ItemPathUtils.cleanUpTrailingSlash(pathToUnzippedArchive + "/" + pathInZip),
- zippedItem.getPath());
+ zippedItem.getPath());
Assert.assertNull(zippedItem.getMimeType());
- final DefaultStorageCollectionItem zippedStorageItem = (DefaultStorageCollectionItem) zippedItem
- .getZippedStorageItem();
+ final DefaultStorageCollectionItem zippedStorageItem =
+ (DefaultStorageCollectionItem) zippedItem.getZippedStorageItem();
Assert.assertEquals(ItemPathUtils.cleanUpTrailingSlash(pathToUnzippedArchive + "/" + pathInZip),
- zippedStorageItem.getPath());
+ zippedStorageItem.getPath());
}
- @SuppressWarnings("unused")
@Test(expected = LocalStorageException.class)
public void testZipItemNotFound() throws Exception {
final String pathInZip = "test.txt";
@@ -158,7 +157,7 @@ public class ZippedItemTest {
final ZippedItem zippedItem = createZippedItem(pathInZip);
TestUtil.assertMembers(new String[] { pathToUnzippedArchive + "/" + pathInZip + "subdir" },
- new String[] { pathToUnzippedArchive + "/" + pathInZip + "test.txt" }, zippedItem.listMembers());
+ new String[] { pathToUnzippedArchive + "/" + pathInZip + "test.txt" }, zippedItem.listMembers());
}
@Test(expected = LocalStorageException.class)
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java
index bd14435..d08b9c2 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/storage/ZippedStorageCollectionItemTest.java
@@ -10,12 +10,12 @@
*******************************************************************************/
package org.eclipse.tycho.nexus.internal.plugin.storage;
+import static org.junit.Assert.assertEquals;
+
import java.io.File;
import java.io.IOException;
import java.util.Collection;
-import junit.framework.Assert;
-
import org.eclipse.tycho.nexus.internal.plugin.DefaultUnzipRepository;
import org.eclipse.tycho.nexus.internal.plugin.test.RepositoryMock;
import org.eclipse.tycho.nexus.internal.plugin.test.TestUtil;
@@ -45,22 +45,23 @@ public class ZippedStorageCollectionItemTest {
@Test
public void testList() throws ItemNotFoundException, IOException, AccessDeniedException,
NoSuchResourceStoreException, IllegalOperationException {
- final ZippedItem zippedItem = new ZippedItem(unzipRepositoryMock, "/dir/subdir/archive.zip", "dir", 0L,
- testLogger);
+ final ZippedItem zippedItem =
+ new ZippedItem(unzipRepositoryMock, "/dir/subdir/archive.zip", "dir", 0L, testLogger);
final ZippedStorageCollectionItem zippedStorageCollectionItem = new ZippedStorageCollectionItem(zippedItem);
TestUtil.assertMembers(new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/dir/subdir" },
- new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/dir/test.txt" },
- zippedStorageCollectionItem.list());
+ new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/dir/test.txt" },
+ zippedStorageCollectionItem.list());
}
@Test
public void testListInRoot() throws ItemNotFoundException, IOException, AccessDeniedException,
NoSuchResourceStoreException, IllegalOperationException {
- final ZippedItem zippedItem = new ZippedItem(unzipRepositoryMock, "/dir/subdir/archive.zip", "", 0L, testLogger);
+ final ZippedItem zippedItem =
+ new ZippedItem(unzipRepositoryMock, "/dir/subdir/archive.zip", "", 0L, testLogger);
final ZippedStorageCollectionItem zippedStorageCollectionItem = new ZippedStorageCollectionItem(zippedItem);
TestUtil.assertMembers(new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/dir" },
- new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/test.txt" },
- zippedStorageCollectionItem.list());
+ new String[] { "/dir/subdir/archive.zip" + Util.UNZIP_TYPE_EXTENSION + "/test.txt" },
+ zippedStorageCollectionItem.list());
}
@Test
@@ -71,13 +72,13 @@ public class ZippedStorageCollectionItemTest {
final ZippedItem zipItem = new ZippedItem(unzipRepositoryMock, "/dir/subdir/archive.zip", "", time, testLogger);
final ZippedStorageCollectionItem zipStorageCollectionItem = new ZippedStorageCollectionItem(zipItem);
- Assert.assertEquals(time, zipStorageCollectionItem.getModified());
+ assertEquals(time, zipStorageCollectionItem.getModified());
//timestamps of zip entries are not time zone aware, therefore all entries shall inherit
//the timestamp of the zip file itself
final Collection<StorageItem> list = zipStorageCollectionItem.list();
for (final StorageItem storageItem : list) {
- Assert.assertEquals(time, storageItem.getModified());
+ assertEquals(time, storageItem.getModified());
}
}
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java
index e6ce511..e6ce511 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/FSLocalRepositoryStorageMock.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java
index 1c03859..1c03859 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/RepositoryMock.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java
index b90109e..b90109e 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/TestUtil.java
diff --git a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java
index dd435e0..dd435e0 100644
--- a/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java
+++ b/unzip-repository-plugin/src/test/java/org/eclipse/tycho/nexus/internal/plugin/test/UnzipRepositoryMock.java
diff --git a/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml
index 4fe08dd..4fe08dd 100644
--- a/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~HEAD
new file mode 100644
index 0000000..4fe08dd
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~HEAD
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <version>0.6.1-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20110718.111322</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20110718111322</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>jar</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <extension>pom</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2metadata</classifier>
+ <extension>xml</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2artifacts</classifier>
+ <extension>xml</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata>
diff --git a/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..4fe08dd
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/0.6.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <version>0.6.1-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20110718.111322</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20110718111322</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>jar</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <extension>pom</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2metadata</classifier>
+ <extension>xml</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2artifacts</classifier>
+ <extension>xml</extension>
+ <value>0.6.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata>
diff --git a/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml
index 46d34f1..46d34f1 100644
--- a/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~HEAD
new file mode 100644
index 0000000..46d34f1
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~HEAD
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <version>0.7.1-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20110718.111322</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20110718111322</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>jar</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <extension>pom</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2metadata</classifier>
+ <extension>xml</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2artifacts</classifier>
+ <extension>xml</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata>
diff --git a/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..46d34f1
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/0.7.1-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <version>0.7.1-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20110718.111322</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20110718111322</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>jar</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <extension>pom</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2metadata</classifier>
+ <extension>xml</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>p2artifacts</classifier>
+ <extension>xml</extension>
+ <value>0.7.1-20110718.111322-2</value>
+ <updated>20110718111322</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata>
diff --git a/src/test/resources/emptyArchive.zip b/unzip-repository-plugin/src/test/resources/emptyArchive.zip
index 1aec012..1aec012 100644
--- a/src/test/resources/emptyArchive.zip
+++ b/unzip-repository-plugin/src/test/resources/emptyArchive.zip
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/emptyArchive.zip~HEAD b/unzip-repository-plugin/src/test/resources/emptyArchive.zip~HEAD
new file mode 100644
index 0000000..1aec012
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/emptyArchive.zip~HEAD
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/emptyArchive.zip~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/emptyArchive.zip~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..1aec012
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/emptyArchive.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/src/test/resources/masterRepo/dir/a.txt b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt
index bd6be1d..bd6be1d 100644
--- a/src/test/resources/masterRepo/dir/a.txt
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt
diff --git a/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~HEAD b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~HEAD
new file mode 100644
index 0000000..bd6be1d
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~HEAD
@@ -0,0 +1 @@
+content of a.txt \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..bd6be1d
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/a.txt~Use NexusRunningITSupport for integration tests
@@ -0,0 +1 @@
+content of a.txt \ No newline at end of file
diff --git a/src/test/resources/masterRepo/dir/subdir/archive.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip
index 9d97b02..9d97b02 100644
--- a/src/test/resources/masterRepo/dir/subdir/archive.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip
Binary files differ
diff --git a/src/test/resources/masterRepo/dir/subdir/archive2.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~HEAD
index 9d97b02..9d97b02 100644
--- a/src/test/resources/masterRepo/dir/subdir/archive2.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~HEAD
Binary files differ
diff --git a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~Use NexusRunningITSupport for integration tests
index 9d97b02..9d97b02 100644
--- a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip
index 9d97b02..9d97b02 100644
--- a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip
Binary files differ
diff --git a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~HEAD
index 9d97b02..9d97b02 100644
--- a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~HEAD
Binary files differ
diff --git a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~Use NexusRunningITSupport for integration tests
index 9d97b02..9d97b02 100644
--- a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip
+++ b/unzip-repository-plugin/src/test/resources/masterRepo/dir/subdir/archive2.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml
index b756f92..b756f92 100644
--- a/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml
diff --git a/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~HEAD b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~HEAD
new file mode 100644
index 0000000..b756f92
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~HEAD
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <latest>0.7.0</latest>
+ <release>0.7.0</release>
+ <versions>
+ <version>0.2.0</version>
+ <version>0.3.0</version>
+ <version>0.4.0</version>
+ <version>0.4.1</version>
+ <version>0.4.2</version>
+ <version>0.5.0</version>
+ <version>0.5.1-SNAPSHOT</version>
+ <version>0.6.0</version>
+ <version>0.6.1-SNAPSHOT</version>
+ <version>0.7.0-SNAPSHOT</version>
+ <version>0.7.0</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..b756f92
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata-latest-is-not-a-snapshot.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <latest>0.7.0</latest>
+ <release>0.7.0</release>
+ <versions>
+ <version>0.2.0</version>
+ <version>0.3.0</version>
+ <version>0.4.0</version>
+ <version>0.4.1</version>
+ <version>0.4.2</version>
+ <version>0.5.0</version>
+ <version>0.5.1-SNAPSHOT</version>
+ <version>0.6.0</version>
+ <version>0.6.1-SNAPSHOT</version>
+ <version>0.7.0-SNAPSHOT</version>
+ <version>0.7.0</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/src/test/resources/maven-metadata.xml b/unzip-repository-plugin/src/test/resources/maven-metadata.xml
index 7530d49..7530d49 100644
--- a/src/test/resources/maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/maven-metadata.xml~HEAD
new file mode 100644
index 0000000..7530d49
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata.xml~HEAD
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20100505.133931</timestamp>
+ <buildNumber>1</buildNumber>
+ </snapshot>
+ <lastUpdated>20100526153505</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..7530d49
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20100505.133931</timestamp>
+ <buildNumber>1</buildNumber>
+ </snapshot>
+ <lastUpdated>20100526153505</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/src/test/resources/missingSnapshot-maven-metadata.xml b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml
index 6bcc617..6bcc617 100644
--- a/src/test/resources/missingSnapshot-maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~HEAD
new file mode 100644
index 0000000..6bcc617
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~HEAD
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <versioning>
+ <lastUpdated>20100526153505</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..6bcc617
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/missingSnapshot-maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <versioning>
+ <lastUpdated>20100526153505</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/src/test/resources/missingVersioning-maven-metadata.xml b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml
index d0e6af6..d0e6af6 100644
--- a/src/test/resources/missingVersioning-maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~HEAD
new file mode 100644
index 0000000..d0e6af6
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~HEAD
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..d0e6af6
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/missingVersioning-maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata xsi:schemaLocation="http://maven.apache.org/METADATA/1.0.0 http://maven.apache.org/xsd/metadata-1.0.0.xsd" xmlns="http://maven.apache.org/METADATA/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <groupId>org.eclipse.tycho.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.updatesite</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+</metadata> \ No newline at end of file
diff --git a/src/test/resources/outer-maven-metadata-without-release.xml b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml
index 489eb75..489eb75 100644
--- a/src/test/resources/outer-maven-metadata-without-release.xml
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml
diff --git a/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~HEAD b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~HEAD
new file mode 100644
index 0000000..489eb75
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~HEAD
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <versions>
+ <version>0.7.1-SNAPSHOT</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..489eb75
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata-without-release.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <versions>
+ <version>0.7.1-SNAPSHOT</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata>
diff --git a/src/test/resources/outer-maven-metadata.xml b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml
index 0ac5605..0ac5605 100644
--- a/src/test/resources/outer-maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~HEAD
new file mode 100644
index 0000000..0ac5605
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~HEAD
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <latest>0.5.1-SNAPSHOT</latest>
+ <release>0.3.0</release>
+ <versions>
+ <version>0.4.0</version>
+ <version>0.7.1-SNAPSHOT</version>
+ <version>0.4.1</version>
+ <version>0.5.0</version>
+ <version>0.3.0</version>
+ <version>0.5.1-SNAPSHOT</version>
+ <version>0.6.0</version>
+ <version>0.7.0-SNAPSHOT</version>
+ <version>0.7.0</version>
+ <version>0.4.2</version>
+ <version>0.6.1-SNAPSHOT</version>
+ <version>0.2.0</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..0ac5605
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/outer-maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+ <groupId>org.eclipse.tycho.nexus.example</groupId>
+ <artifactId>org.eclipse.tycho.nexus.example.target</artifactId>
+ <versioning>
+ <latest>0.5.1-SNAPSHOT</latest>
+ <release>0.3.0</release>
+ <versions>
+ <version>0.4.0</version>
+ <version>0.7.1-SNAPSHOT</version>
+ <version>0.4.1</version>
+ <version>0.5.0</version>
+ <version>0.3.0</version>
+ <version>0.5.1-SNAPSHOT</version>
+ <version>0.6.0</version>
+ <version>0.7.0-SNAPSHOT</version>
+ <version>0.7.0</version>
+ <version>0.4.2</version>
+ <version>0.6.1-SNAPSHOT</version>
+ <version>0.2.0</version>
+ </versions>
+ <lastUpdated>20110718111322</lastUpdated>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~HEAD b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~HEAD
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~HEAD
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1-juhu.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~HEAD b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~HEAD
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~HEAD
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101012-1.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~HEAD b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~HEAD
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~HEAD
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2-juhu.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~HEAD b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~HEAD
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~HEAD
Binary files differ
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..9d97b02
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/archive-1.0.0-20101013-2.zip~Use NexusRunningITSupport for integration tests
Binary files differ
diff --git a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml
index 3547ae1..3547ae1 100644
--- a/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~HEAD b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~HEAD
new file mode 100644
index 0000000..3547ae1
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~HEAD
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>g</groupId>
+ <artifactId>a</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20101013</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20101013</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>zip</extension>
+ <value>1.0.0-20101013-2</value>
+ <updated>20101013</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>juhu</classifier>
+ <extension>zip</extension>
+ <value>1.0.0-20101013-2</value>
+ <updated>20101013</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata> \ No newline at end of file
diff --git a/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
new file mode 100644
index 0000000..3547ae1
--- /dev/null
+++ b/unzip-repository-plugin/src/test/resources/snapshotRepo/ga/1.0.0-SNAPSHOT/maven-metadata.xml~Use NexusRunningITSupport for integration tests
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata modelVersion="1.1.0">
+ <groupId>g</groupId>
+ <artifactId>a</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <versioning>
+ <snapshot>
+ <timestamp>20101013</timestamp>
+ <buildNumber>2</buildNumber>
+ </snapshot>
+ <lastUpdated>20101013</lastUpdated>
+ <snapshotVersions>
+ <snapshotVersion>
+ <extension>zip</extension>
+ <value>1.0.0-20101013-2</value>
+ <updated>20101013</updated>
+ </snapshotVersion>
+ <snapshotVersion>
+ <classifier>juhu</classifier>
+ <extension>zip</extension>
+ <value>1.0.0-20101013-2</value>
+ <updated>20101013</updated>
+ </snapshotVersion>
+ </snapshotVersions>
+ </versioning>
+</metadata> \ No newline at end of file

Back to the top