]> source.dussan.org Git - archiva.git/commitdiff
Adding additional tests
authorMartin Stockhammer <martin_s@apache.org>
Sun, 9 Feb 2020 21:01:11 +0000 (22:01 +0100)
committerMartin Stockhammer <martin_s@apache.org>
Sun, 9 Feb 2020 21:01:11 +0000 (22:01 +0100)
18 files changed:
archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/content/maven2/AbstractDefaultRepositoryContent.java
archiva-modules/archiva-maven/archiva-maven-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/ManagedDefaultRepositoryContentTest.java
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/KEYS [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.pom [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.war [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1 [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.pom [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.jar [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.pom [new file with mode: 0644]
archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/maven-metadata.xml [new file with mode: 0644]

index d7d87c8b39fe72f499a98d42569f2033a0f292fc..0919fcadbe284ce7e5052eea5ec5b1af38882eb2 100644 (file)
@@ -141,6 +141,7 @@ public abstract class AbstractDefaultRepositoryContent implements RepositoryCont
                        reference.getClassifier(), reference.getType() );
     }
 
+    @Override
     public String toPath( ArtifactReference reference )
     {
         if ( reference == null )
index 0e1a1cecb1d4eb598fceb74fe1244405c577b1ca..c921adf0fbeeaa0e44adfaef4f6b6d8dd4449ee8 100644 (file)
@@ -31,12 +31,15 @@ import org.apache.archiva.repository.EditableManagedRepository;
 import org.apache.archiva.repository.LayoutException;
 import org.apache.archiva.repository.content.maven2.ManagedDefaultRepositoryContent;
 import org.apache.archiva.repository.maven2.MavenManagedRepository;
+import org.apache.commons.io.FileUtils;
 import org.junit.Before;
 import org.junit.Test;
 
 import javax.inject.Inject;
 import javax.inject.Named;
+import java.io.IOException;
 import java.net.URISyntaxException;
+import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.ArrayList;
@@ -45,8 +48,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Set;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
+import static org.junit.Assert.*;
 
 /**
  * ManagedDefaultRepositoryContentTest
@@ -256,4 +258,103 @@ public class ManagedDefaultRepositoryContentTest
     {
         return repoContent.toPath( reference );
     }
+
+    private Path setupRepoCopy( String source, String target) throws IOException
+    {
+        Path defaultRepo = getRepositoryPath( source );
+        Path newRepo = defaultRepo.getParent( ).resolve( target );
+        FileUtils.copyDirectory( defaultRepo.toFile( ), newRepo.toFile( ) );
+
+        MavenManagedRepository repository = createRepository( "testRepo", "Unit Test Repo", newRepo );
+
+        FileType fileType = archivaConfiguration.getConfiguration().getRepositoryScanning().getFileTypes().get( 0 );
+        fileType.addPattern( "**/*.xml" );
+        assertEquals( FileTypes.ARTIFACTS, fileType.getId() );
+
+        fileTypes.afterConfigurationChange( null, "fileType", null );
+
+        repoContent = new ManagedDefaultRepositoryContent(repository, artifactMappingProviders, fileTypes, fileLockManager);
+        return newRepo;
+
+    }
+
+    @Test
+    public void testDeleteArtifactWithType() throws IOException
+    {
+        Path deleteRepo = setupRepoCopy( "delete-repository", "delete-repository-2" );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.pom" ) ) );
+
+        ArtifactReference ref = new ArtifactReference( );
+        ref.setGroupId( "org.apache.maven" );
+        ref.setArtifactId( "samplejar" );
+        ref.setVersion( "1.0" );
+        ref.setType( "jar" );
+
+        repoContent.deleteArtifact( ref );
+
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar" ) ) );
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar" ) ) );
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5" ) ) );
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.pom" ) ) );
+
+
+    }
+
+
+    @Test
+    public void testDeleteArtifactWithClassifier() throws IOException
+    {
+        Path deleteRepo = setupRepoCopy( "default-repository", "default-repository-2" );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.pom" ) ) );
+
+        ArtifactReference ref = new ArtifactReference( );
+        ref.setGroupId( "org.apache.maven" );
+        ref.setArtifactId( "samplejar" );
+        ref.setVersion( "1.0" );
+        ref.setClassifier( "source" );
+        ref.setType( "jar" );
+
+        repoContent.deleteArtifact( ref );
+
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar" ) ) );
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.pom" ) ) );
+
+    }
+
+    @Test
+    public void testDeleteArtifactWithoutType() throws IOException
+    {
+        Path deleteRepo = setupRepoCopy( "default-repository", "default-repository-2" );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0/samplejar-1.0.pom" ) ) );
+
+        ArtifactReference ref = new ArtifactReference( );
+        ref.setGroupId( "org.apache.maven" );
+        ref.setArtifactId( "samplejar" );
+        ref.setVersion( "1.0" );
+
+        repoContent.deleteArtifact( ref );
+
+        assertFalse( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar/1.0" ) ) );
+        assertTrue( Files.exists( deleteRepo.resolve( "org/apache/maven/samplejar" ) ) );
+
+    }
 }
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar
new file mode 100644 (file)
index 0000000..54d190b
--- /dev/null
@@ -0,0 +1 @@
+dummy content. sample file only.\r
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1
new file mode 100644 (file)
index 0000000..a5c1a4c
--- /dev/null
@@ -0,0 +1 @@
+754133cd9c36adef86d35b96c0e96e11a9c6bfc9  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5
new file mode 100644 (file)
index 0000000..a5c2bc9
--- /dev/null
@@ -0,0 +1 @@
+fd4275a6811332d67075ffd879d13d4a  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/default-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1
new file mode 100644 (file)
index 0000000..a5c1a4c
--- /dev/null
@@ -0,0 +1 @@
+754133cd9c36adef86d35b96c0e96e11a9c6bfc9  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/KEYS b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/KEYS
new file mode 100644 (file)
index 0000000..d3b34d5
--- /dev/null
@@ -0,0 +1 @@
+test KEYS file
\ No newline at end of file
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.pom b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.pom
new file mode 100644 (file)
index 0000000..202a0a4
--- /dev/null
@@ -0,0 +1,28 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<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.apache.maven</groupId>
+  <artifactId>A</artifactId>
+  <version>1.0</version>
+  <name>Maven Test Repository Artifact Discovery</name>
+  <packaging>war</packaging>
+</project>
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.war b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/A/1.0/A-1.0.war
new file mode 100644 (file)
index 0000000..54d190b
--- /dev/null
@@ -0,0 +1 @@
+dummy content. sample file only.\r
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar
new file mode 100644 (file)
index 0000000..54d190b
--- /dev/null
@@ -0,0 +1 @@
+dummy content. sample file only.\r
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0-source.jar.sha1
new file mode 100644 (file)
index 0000000..a5c1a4c
--- /dev/null
@@ -0,0 +1 @@
+754133cd9c36adef86d35b96c0e96e11a9c6bfc9  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar
new file mode 100644 (file)
index 0000000..54d190b
--- /dev/null
@@ -0,0 +1 @@
+dummy content. sample file only.\r
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.md5
new file mode 100644 (file)
index 0000000..a5c2bc9
--- /dev/null
@@ -0,0 +1 @@
+fd4275a6811332d67075ffd879d13d4a  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1 b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.jar.sha1
new file mode 100644 (file)
index 0000000..a5c1a4c
--- /dev/null
@@ -0,0 +1 @@
+754133cd9c36adef86d35b96c0e96e11a9c6bfc9  samplejar-1.0.jar
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.pom b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/1.0/samplejar-1.0.pom
new file mode 100644 (file)
index 0000000..6ab57d1
--- /dev/null
@@ -0,0 +1,29 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<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.apache.maven</groupId>
+  <artifactId>C</artifactId>
+  <version>1.0</version>
+  <name>Maven Test Repository Artifact Discovery</name>
+  <!-- default packaging is jar -->
+  <!--packaging>jar</packaging-->
+</project>
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.jar b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.jar
new file mode 100644 (file)
index 0000000..54d190b
--- /dev/null
@@ -0,0 +1 @@
+dummy content. sample file only.\r
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.pom b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/2.0/samplejar-2.0.pom
new file mode 100644 (file)
index 0000000..a959980
--- /dev/null
@@ -0,0 +1,29 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+
+<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.apache.maven</groupId>
+  <artifactId>C</artifactId>
+  <version>1.0</version>
+  <name>Maven Test Repository Artifact Discovery</name>
+  <!-- specified packaging -->
+  <packaging>jar</packaging>
+</project>
diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/maven-metadata.xml b/archiva-modules/archiva-maven/archiva-maven-repository/src/test/resources/repositories/delete-repository/org/apache/maven/samplejar/maven-metadata.xml
new file mode 100644 (file)
index 0000000..89de35f
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<metadata>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>samplejar</artifactId>
+  <version>6.0-SNAPSHOT</version>
+  <versioning>
+    <release>2.0</release>
+    <latest>6.0-SNAPSHOT</latest>
+    <snapshot>
+      <buildNumber>26</buildNumber>
+    </snapshot>
+    <versions>
+      <version>6.0-SNAPSHOT</version>
+      <version>6.0-20060311.093250-41</version>
+      <version>6.0-20060311.183228-42</version>
+      <version>6.0-20060311.183228-40</version>
+      <version>6.0-20060311.183228-37</version>
+      <version>6.0-20060311.183228-30</version>
+      <version>6.0-20060311.183228-29</version>
+      <version>6.0-20060311.183228-6</version>
+      <version>6.0-20060311.183228-9</version>
+      <version>6.0-20060311.183228-10</version>
+      <version>6.0-20060313.001659-43</version>
+      <version>6.0-20060313.001659-41</version>
+      <version>6.0-20060313.001659-38</version>
+      <version>6.0-20060313.001659-31</version>
+      <version>6.0-20060313.001659-30</version>
+      <version>6.0-20060313.001659-7</version>
+      <version>6.0-20060313.001659-10</version>
+      <version>6.0-20060313.001659-11</version>
+    </versions>
+    <lastUpdated>20060313010719</lastUpdated>
+  </versioning>
+</metadata>