You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2011/12/18 21:13:43 UTC
svn commit: r1220523 - in /karaf/branches/karaf-2.2.x/archetypes: ./
feature/ feature/src/ feature/src/main/ feature/src/main/resources/
feature/src/main/resources/META-INF/
feature/src/main/resources/META-INF/maven/
feature/src/main/resources/archetyp...
Author: jbonofre
Date: Sun Dec 18 20:13:43 2011
New Revision: 1220523
URL: http://svn.apache.org/viewvc?rev=1220523&view=rev
Log:
[KARAF-1109] Add feature archetype
Added:
karaf/branches/karaf-2.2.x/archetypes/feature/
karaf/branches/karaf-2.2.x/archetypes/feature/NOTICE
karaf/branches/karaf-2.2.x/archetypes/feature/pom.xml
- copied, changed from r1220351, karaf/branches/karaf-2.2.x/archetypes/pom.xml
karaf/branches/karaf-2.2.x/archetypes/feature/src/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/archetype-metadata.xml
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/
karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/pom.xml
Modified:
karaf/branches/karaf-2.2.x/archetypes/pom.xml
Added: karaf/branches/karaf-2.2.x/archetypes/feature/NOTICE
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/archetypes/feature/NOTICE?rev=1220523&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/archetypes/feature/NOTICE (added)
+++ karaf/branches/karaf-2.2.x/archetypes/feature/NOTICE Sun Dec 18 20:13:43 2011
@@ -0,0 +1,48 @@
+Apache Karaf
+Copyright 2010 The Apache Software Foundation
+
+
+I. Included Software
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+This product includes software written by
+Antony Lesuisse.
+Licensed under Public Domain.
+
+
+II. Used Software
+
+This product uses software developed at
+The OSGi Alliance (http://www.osgi.org/).
+Copyright (c) OSGi Alliance (2000, 2010).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+OPS4J (http://www.ops4j.org/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+FUSE Source (http://www.fusesource.org/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+Tanuki Software (http://www.tanukisoftware.com/).
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+JLine (http://jline.sourceforge.net).
+Licensed under the BSD License.
+
+This product uses software developed at
+SLF4J (http://www.slf4j.org/).
+Licensed under the MIT License.
+
+This product includes software from http://www.json.org.
+Copyright (c) 2002 JSON.org
+
+
+III. License Summary
+- Apache License 2.0
Copied: karaf/branches/karaf-2.2.x/archetypes/feature/pom.xml (from r1220351, karaf/branches/karaf-2.2.x/archetypes/pom.xml)
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/archetypes/feature/pom.xml?p2=karaf/branches/karaf-2.2.x/archetypes/feature/pom.xml&p1=karaf/branches/karaf-2.2.x/archetypes/pom.xml&r1=1220351&r2=1220523&rev=1220523&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/archetypes/pom.xml (original)
+++ karaf/branches/karaf-2.2.x/archetypes/feature/pom.xml Sun Dec 18 20:13:43 2011
@@ -2,6 +2,7 @@
<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/xsd/maven-4.0.0.xsd">
<!--
+
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.
@@ -17,27 +18,40 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
+
<modelVersion>4.0.0</modelVersion>
-
+
<parent>
<groupId>org.apache.karaf</groupId>
- <artifactId>karaf</artifactId>
+ <artifactId>archetypes</artifactId>
<version>2.2.5-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
- <artifactId>archetypes</artifactId>
-
- <name>Apache Karaf :: Archetypes</name>
- <packaging>pom</packaging>
-
- <modules>
- <module>assembly</module>
- <module>blueprint</module>
- <module>bundle</module>
- <module>command</module>
- <module>itests</module>
- </modules>
+ <groupId>org.apache.karaf.archetypes</groupId>
+ <artifactId>karaf-feature-archetype</artifactId>
+ <packaging>maven-archetype</packaging>
+
+ <name>Apache Karaf :: Archetypes :: Feature Archetype</name>
+ <description>This archetype sets up an empty karaf features project.</description>
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.2</version>
+ </extension>
+ </extensions>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
</project>
Added: karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1220523&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/archetype-metadata.xml (added)
+++ karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/META-INF/maven/archetype-metadata.xml Sun Dec 18 20:13:43 2011
@@ -0,0 +1,23 @@
+<?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.
+-->
+<archetype-descriptor xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
+ xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ name="karaf-feature-archetype">
+
+</archetype-descriptor>
\ No newline at end of file
Added: karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/pom.xml?rev=1220523&view=auto
==============================================================================
--- karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/pom.xml (added)
+++ karaf/branches/karaf-2.2.x/archetypes/feature/src/main/resources/archetype-resources/pom.xml Sun Dec 18 20:13:43 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>${groupId}</groupId>
+ <artifactId>${artifactId}</artifactId>
+ <version>${version}</version>
+ <packaging>pom</packaging>
+ <name>${artifactId} feature</name>
+ <description>
+ Create a feature with the defined dependencies set.
+ </description>
+
+ <dependencies>
+ <!-- Put here the artifacts which should be included in the feature -->
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.karaf.tooling</groupId>
+ <artifactId>features-maven-plugin</artifactId>
+ <version>2.2.5-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <id>generate-features-file</id>
+ <goals>
+ <goal>generate-features-file</goal>
+ </goals>
+ <configuration>
+ <karafVersion>2.2.5-SNAPSHOT</karafVersion>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Modified: karaf/branches/karaf-2.2.x/archetypes/pom.xml
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/archetypes/pom.xml?rev=1220523&r1=1220522&r2=1220523&view=diff
==============================================================================
--- karaf/branches/karaf-2.2.x/archetypes/pom.xml (original)
+++ karaf/branches/karaf-2.2.x/archetypes/pom.xml Sun Dec 18 20:13:43 2011
@@ -37,6 +37,7 @@
<module>blueprint</module>
<module>bundle</module>
<module>command</module>
+ <module>feature</module>
<module>itests</module>
</modules>