archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r1162793 - in /archiva/sandbox/obr: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/archiva/ src/main/java/org/apache/archiva/metadata/ src/main/java/org/apache/archiva/metadata/reposit...
Date Mon, 29 Aug 2011 13:17:30 GMT
Author: jbonofre
Date: Mon Aug 29 13:17:29 2011
New Revision: 1162793

URL: http://svn.apache.org/viewvc?rev=1162793&view=rev
Log:
Add Archiva OBR plugin structure.

Added:
    archiva/sandbox/obr/
    archiva/sandbox/obr/.gitignore
    archiva/sandbox/obr/README.txt
    archiva/sandbox/obr/pom.xml
    archiva/sandbox/obr/src/
    archiva/sandbox/obr/src/main/
    archiva/sandbox/obr/src/main/java/
    archiva/sandbox/obr/src/main/java/org/
    archiva/sandbox/obr/src/main/java/org/apache/
    archiva/sandbox/obr/src/main/java/org/apache/archiva/
    archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/
    archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/
    archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/
    archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/OBRFactory.java

Added: archiva/sandbox/obr/.gitignore
URL: http://svn.apache.org/viewvc/archiva/sandbox/obr/.gitignore?rev=1162793&view=auto
==============================================================================
--- archiva/sandbox/obr/.gitignore (added)
+++ archiva/sandbox/obr/.gitignore Mon Aug 29 13:17:29 2011
@@ -0,0 +1,2 @@
+target
+*.i??

Added: archiva/sandbox/obr/README.txt
URL: http://svn.apache.org/viewvc/archiva/sandbox/obr/README.txt?rev=1162793&view=auto
==============================================================================
--- archiva/sandbox/obr/README.txt (added)
+++ archiva/sandbox/obr/README.txt Mon Aug 29 13:17:29 2011
@@ -0,0 +1,7 @@
+Apache Archiva
+  OBR Plugin
+==============
+
+Apache Archiva OBR is an Archiva plugin to turn Archiva as a complete, enterprise OBR server.
+
+The OBR plugin use the Archiva repositories (maven-1 or maven-2) and add metadata that can
be used by an OBR client.

Added: archiva/sandbox/obr/pom.xml
URL: http://svn.apache.org/viewvc/archiva/sandbox/obr/pom.xml?rev=1162793&view=auto
==============================================================================
--- archiva/sandbox/obr/pom.xml (added)
+++ archiva/sandbox/obr/pom.xml Mon Aug 29 13:17:29 2011
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>plugins</artifactId>
+    <groupId>org.apache.archiva</groupId>
+    <version>1.4-SNAPSHOT</version>
+  </parent>
+  <artifactId>obr</artifactId>
+  <name>OSGi Bundle Repository (OBR) Support</name>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.archiva</groupId>
+      <artifactId>metadata-model</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.archiva</groupId>
+      <artifactId>metadata-repository-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.apache.felix.bundlerepository</artifactId>
+      <version>1.6.4</version>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging-api</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>

Added: archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/OBRFactory.java
URL: http://svn.apache.org/viewvc/archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/OBRFactory.java?rev=1162793&view=auto
==============================================================================
--- archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/OBRFactory.java
(added)
+++ archiva/sandbox/obr/src/main/java/org/apache/archiva/metadata/repository/obr/OBRFactory.java
Mon Aug 29 13:17:29 2011
@@ -0,0 +1,42 @@
+package org.apache.archiva.metadata.repository.obr;
+
+/*
+ * 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.
+ */
+
+import org.apache.archiva.metadata.model.MetadataFacet;
+import org.apache.archiva.metadata.model.MetadataFacetFactory;
+import org.springframework.stereotype.Service;
+
+/**
+ * plexus.component role="org.apache.archiva.metadata.model.MetadataFacetFactory" role-hint="org.apache.archiva.metadata.repository.obr"
+ */
+@Service( "metadataFacetFactory#org.apache.archiva.metadata.repository.obr" )
+public class OBRFactory
+    implements MetadataFacetFactory
+{
+    public MetadataFacet createMetadataFacet() {
+        // TODO  return new ArchivaOBR();
+        return null;
+    }
+
+    public MetadataFacet createMetadataFacet( String repositoryId, String name ) {
+        // TODO return new ArchivaOBR( repositoryId, name );
+        return null;
+    }
+}



Mime
View raw message