You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:29:37 UTC

[sling-bundle-archetype] branch master created (now c3ed756)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git.


      at c3ed756  SLING-7167 Adjust READMEs

This branch includes the following new commits:

     new 95d5257  SLING-2978 - Create tooling top-level directory and move maven and ide under it
     new 0f0e62a  Update to parent pom 18
     new 908bca5  SLING-3051 : updated maven plugin and dependency versions of maven-scr-plugin and org.apache.felix.scr.annotations to work properly with m2eclipse (otherwise complains about lifecycle-mapping for scr goal not being mapped, and with these versions it works perfect). Plus adjusting the outputDirectory as suggested in SLING-3019
     new 38f4592  Update to parent pom v19
     new dda4971  SLING-3538 - Maven archetypes should use the same port as the default launchpad port
     new eb41576  SLING-3539 - SimpleDSComponent from archetypes does nothing by default
     new e2e9678  SLING-3520 - Consolidate archetype plugin versions in a parent pom
     new 6daaef7  SLING-3532 - Move sling plugin configuration out of the autoInstallBundle profile
     new c3ca5cd  [maven-release-plugin] prepare release sling-bundle-archetype-1.0.2
     new dd5d474  [maven-release-plugin] prepare for next development iteration
     new 3da26e9  SLING-4698 - Set parent.relativePath to empty for all modules
     new f08e7e8  Maven archetypes: use parent version 3
     new a3135e8  archetypes: move to archetype parent 4-SNAPSHOT and fix rat checks
     new a61b3c8  sling-bundle-archetype: use sling-archetype-parent 4
     new 4a9d12b  [maven-release-plugin] prepare release sling-bundle-archetype-1.0.4
     new 641ad9c  [maven-release-plugin] prepare for next development iteration
     new 976eeac  sling-bundle-archetype: use sling-archetype-parent 5-SNAPSHOT
     new e8f9e09  Archetypes: roll back to released version of archetype parent
     new 080ebbf  SLING-7167 Adjust READMEs
     new fbb6a31  SLING-7167 Adjust READMEs
     new c3ed756  SLING-7167 Adjust READMEs

The 21 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
['"commits@sling.apache.org" <co...@sling.apache.org>'].

[sling-bundle-archetype] 18/21: Archetypes: roll back to released version of archetype parent

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit e8f9e09c0b6bdc2ffadae79b9f9c7ec129dd01e5
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 22:07:11 2015 +0000

    Archetypes: roll back to released version of archetype parent
    
    Our current policy of setting the parent's relativePath to empty
    prevents picking up the parent from the reactor build, so we must
    use a released version.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709119 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 31da585..4e47477 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
-        <version>5</version>
+        <version>1</version>
         <relativePath />
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 03/21: SLING-3051 : updated maven plugin and dependency versions of maven-scr-plugin and org.apache.felix.scr.annotations to work properly with m2eclipse (otherwise complains about lifecycle-mapping for scr goal not being mapped, and with these versions it works perfect). Plus adjusting the outputDirectory as suggested in SLING-3019

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 908bca57bb18f3c06f2ab6fcfe40c380438a1584
Author: Stefan Egli <st...@apache.org>
AuthorDate: Tue Sep 10 13:29:33 2013 +0000

    SLING-3051 : updated maven plugin and dependency versions of maven-scr-plugin and org.apache.felix.scr.annotations to work properly with m2eclipse (otherwise complains about lifecycle-mapping for scr goal not being mapped, and with these versions it works perfect). Plus adjusting the outputDirectory as suggested in SLING-3019
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1521475 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/resources/archetype-resources/pom.xml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
index 6e09b4f..b9016c0 100644
--- a/src/main/resources/archetype-resources/pom.xml
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -30,7 +30,7 @@
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-scr-plugin</artifactId>
-                <version>1.7.2</version>
+                <version>1.13.0</version>
                 <executions>
                     <execution>
                         <id>generate-scr-descriptor</id>
@@ -39,6 +39,9 @@
                         </goals>
                     </execution>
                 </executions>
+                <configuration>
+                	<outputDirectory>${project.build.directory}/classes</outputDirectory>
+                </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.felix</groupId>
@@ -94,7 +97,7 @@
         <dependency>
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.scr.annotations</artifactId>
-            <version>1.6.0</version>
+            <version>1.9.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 15/21: [maven-release-plugin] prepare release sling-bundle-archetype-1.0.4

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 4a9d12bb72c822a10bc0b0463ea00ebaf85a65ea
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 19:44:49 2015 +0000

    [maven-release-plugin] prepare release sling-bundle-archetype-1.0.4
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709075 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4bb54df..b1855ab 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,20 +23,20 @@
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
         <version>4</version>
-        <relativePath/>
+        <relativePath />
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>
-    <version>1.0.3-SNAPSHOT</version>
+    <version>1.0.4</version>
     <packaging>maven-archetype</packaging>
 
     <name>Sling Bundle Archetype</name>
     <description>Maven archetype for a generic OSGi bundle.</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/bundle</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.4</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.4</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/sling-bundle-archetype-1.0.4</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 04/21: Update to parent pom v19

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 38f459284d61531f4a223b44aa6545bfc6ed2d28
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Mar 31 14:39:20 2014 +0000

    Update to parent pom v19
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1583337 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 78efa67..f83efa6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>18</version>
+        <version>19</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 11/21: SLING-4698 - Set parent.relativePath to empty for all modules

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 3da26e9084465a86a12717256dea902e23361ce5
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 7 10:14:40 2015 +0000

    SLING-4698 - Set parent.relativePath to empty for all modules
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1678154 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 306ef12..7c144a9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
         <version>1</version>
-        <relativePath>../parent/pom.xml</relativePath>
+        <relativePath/>
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 01/21: SLING-2978 - Create tooling top-level directory and move maven and ide under it

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 95d5257d39d5c13756c01b9ab478ecbafaa35f89
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Jul 24 18:13:22 2013 +0000

    SLING-2978 - Create tooling top-level directory and move maven and ide
    under it
    
    * moved the maven directory under tooling maven
    * adjusted module paths in pom.xml
    * updated the scm information in the pom.xml files
    * updated the scm information in the README.txt files
    
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1506645 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt                                         |  27 +++++
 pom.xml                                            |  58 +++++++++
 .../META-INF/maven/archetype-metadata.xml          |  29 +++++
 src/main/resources/META-INF/maven/archetype.xml    |  19 +++
 src/main/resources/archetype-resources/pom.xml     | 134 +++++++++++++++++++++
 .../src/main/java/SimpleDSComponent.java           |  54 +++++++++
 6 files changed, 321 insertions(+)

diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..bf85624
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,27 @@
+Sling Bundle Archetype
+
+Maven archetype for OSGi bundles.
+
+Getting Started
+===============
+
+This component uses a Maven 2 (http://maven.apache.org/) build
+environment. It requires a Java 5 JDK (or higher) and Maven (http://maven.apache.org/)
+2.0.7 or later. We recommend to use the latest Maven version.
+
+If you have Maven 2 installed, you can install the jar into your local Maven repository
+using the following command:
+
+    mvn install
+
+See the Maven 2 documentation for other build features.
+
+The latest source code for this component is available in the
+Subversion (http://subversion.tigris.org/) source repository of
+the Apache Software Foundation. If you have Subversion installed,
+you can checkout the latest source using the following command:
+
+    svn checkout http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle
+
+See the Subversion documentation for other source control features.
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..0b1f7ce
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  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>
+    <parent>
+        <groupId>org.apache.sling</groupId>
+        <artifactId>sling</artifactId>
+        <version>17</version>
+        <relativePath>../../../parent/pom.xml</relativePath>
+    </parent>
+
+    <artifactId>sling-bundle-archetype</artifactId>
+    <version>1.0.1-SNAPSHOT</version>
+    <packaging>maven-archetype</packaging>
+
+    <name>Sling Bundle Archetype</name>
+    <description>Maven archetype for a generic OSGi bundle.</description>
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/bundle</url>
+    </scm>
+
+    <build>
+        <extensions>
+            <extension>
+                <groupId>org.apache.maven.archetype</groupId>
+                <artifactId>archetype-packaging</artifactId>
+                <version>2.0-alpha-4</version>
+            </extension>
+        </extensions>
+        <plugins>
+            <plugin>
+                <artifactId>maven-archetype-plugin</artifactId>
+                <version>2.0-alpha-4</version>
+                <extensions>true</extensions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml
new file mode 100644
index 0000000..021b32a
--- /dev/null
+++ b/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -0,0 +1,29 @@
+<?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 name="sling-bundle">
+    <fileSets>
+        <fileSet filtered="true" packaged="true" encoding="UTF-8">
+            <directory>src/main/java</directory>
+            <includes>
+                <include>**/*.java</include>
+            </includes>
+        </fileSet>
+        <fileSet filtered="true" packaged="true" encoding="UTF-8">
+          <directory>src/test/java</directory>
+          <includes>
+            <include>**/*.java</include>
+          </includes>
+        </fileSet>
+    </fileSets>
+</archetype-descriptor>
diff --git a/src/main/resources/META-INF/maven/archetype.xml b/src/main/resources/META-INF/maven/archetype.xml
new file mode 100644
index 0000000..6d41494
--- /dev/null
+++ b/src/main/resources/META-INF/maven/archetype.xml
@@ -0,0 +1,19 @@
+<?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>
+    <id>sling-bundle</id>
+    <sources>
+        <source>src/main/java/SimpleDSComponent.java</source>
+    </sources>
+</archetype>
diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..6e09b4f
--- /dev/null
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  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>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <packaging>bundle</packaging>
+    <version>${version}</version>
+    <name>${artifactId}</name>
+    <description>${groupId} - ${artifactId}</description>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-scr-plugin</artifactId>
+                <version>1.7.2</version>
+                <executions>
+                    <execution>
+                        <id>generate-scr-descriptor</id>
+                        <goals>
+                            <goal>scr</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <extensions>true</extensions>
+                <version>2.0.1</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <!-- use version 2.3.2 to have java 1.5 as the default -->
+                <version>2.3.2</version>
+            </plugin>
+        </plugins>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.5</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>4.2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>4.2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.jcr</groupId>
+            <artifactId>jcr</artifactId>
+            <version>2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.api</artifactId>
+            <version>2.2.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.5.10</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.apache.felix.scr.annotations</artifactId>
+            <version>1.6.0</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <profiles>
+        <profile>
+            <id>autoInstallBundle</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.sling</groupId>
+                        <artifactId>maven-sling-plugin</artifactId>
+                        <version>2.0.4-incubator</version>
+                        <executions>
+                            <execution>
+                                <id>install-bundle</id>
+                                <goals>
+                                    <goal>install</goal>
+                                </goals>
+                                <configuration>
+                                    <slingUrl>http://localhost:8888/system/console</slingUrl>
+                                    <user>admin</user>
+                                    <password>admin</password>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>
diff --git a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
new file mode 100644
index 0000000..22a4ce0
--- /dev/null
+++ b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
@@ -0,0 +1,54 @@
+/*
+ * 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.
+ */
+package ${package};
+
+
+import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Service;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.component.ComponentContext;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Just a simple DS Component
+ */
+@Component(metatype=true)
+@Service
+public class SimpleDSComponent implements Runnable {
+    
+    private Logger logger = LoggerFactory.getLogger(this.getClass());
+    
+    private BundleContext bundleContext;
+    
+    public void run() {
+        logger.info("Running...");
+    }
+    
+    protected void activate(ComponentContext ctx) {
+        this.bundleContext = ctx.getBundleContext();
+    }
+    
+    protected void deactivate() {
+        this.bundleContext = null;
+    }
+
+}
+

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 10/21: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit dd5d4745207de3894955647b225b6f7b41d9d3d1
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 15 08:48:41 2014 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594824 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 0d89298..306ef12 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,16 +27,16 @@
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>
-    <version>1.0.2</version>
+    <version>1.0.3-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
 
     <name>Sling Bundle Archetype</name>
     <description>Maven archetype for a generic OSGi bundle.</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.2</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.2</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/sling-bundle-archetype-1.0.2</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/bundle</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 02/21: Update to parent pom 18

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 0f0e62a79710f0ba3ecbe5822bf54ef09cb00fb4
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Sep 6 12:15:57 2013 +0000

    Update to parent pom 18
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1520554 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 0b1f7ce..78efa67 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling</artifactId>
-        <version>17</version>
+        <version>18</version>
         <relativePath>../../../parent/pom.xml</relativePath>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 14/21: sling-bundle-archetype: use sling-archetype-parent 4

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit a61b3c8bef66e65275379bfb7dd281ef413feb0c
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 19:44:24 2015 +0000

    sling-bundle-archetype: use sling-archetype-parent 4
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709074 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index dd7463b..4bb54df 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
-        <version>4-SNAPSHOT</version>
+        <version>4</version>
         <relativePath/>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 13/21: archetypes: move to archetype parent 4-SNAPSHOT and fix rat checks

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit a3135e8fbfb5bf3e7bb0cd103223ab9154734180
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 19:38:55 2015 +0000

    archetypes: move to archetype parent 4-SNAPSHOT and fix rat checks
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709070 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                |  2 +-
 .../resources/projects/normal/archetype.properties     | 18 ++++++++++++++++++
 src/test/resources/projects/normal/verify.groovy       | 16 ++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9da7b91..dd7463b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
-        <version>3</version>
+        <version>4-SNAPSHOT</version>
         <relativePath/>
     </parent>
 
diff --git a/src/test/resources/projects/normal/archetype.properties b/src/test/resources/projects/normal/archetype.properties
index 7a24f94..c18596e 100644
--- a/src/test/resources/projects/normal/archetype.properties
+++ b/src/test/resources/projects/normal/archetype.properties
@@ -1,3 +1,21 @@
+#####################################################################
+# 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.
+#####################################################################
 groupId=org.apache.sling
 artifactId=test-bundle-archetype-project
 version=0.0.1-SNAPSHOT
diff --git a/src/test/resources/projects/normal/verify.groovy b/src/test/resources/projects/normal/verify.groovy
index 8e4bc97..dda5e44 100644
--- a/src/test/resources/projects/normal/verify.groovy
+++ b/src/test/resources/projects/normal/verify.groovy
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 new File(basedir, '.').eachFileRecurse(groovy.io.FileType.FILES) { logFile ->
 	if ( logFile.name == "build.log" ) {
 		logFile.eachLine { line ->

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 08/21: SLING-3532 - Move sling plugin configuration out of the autoInstallBundle profile

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 6daaef75f12a123e632ded6f06f5cc627e5b4b0e
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 15 08:40:09 2014 +0000

    SLING-3532 - Move sling plugin configuration out of the
    autoInstallBundle profile
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594821 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/resources/archetype-resources/pom.xml | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
index 77a7ff4..51a83ed 100644
--- a/src/main/resources/archetype-resources/pom.xml
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -55,6 +55,16 @@
                     <target>${archetype.java.version}</target>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.sling</groupId>
+                <artifactId>maven-sling-plugin</artifactId>
+                <version>${slingplugin.version}</version>
+                <configuration>
+                    <slingUrl>http://localhost:8080/system/console</slingUrl>
+                    <user>admin</user>
+                    <password>admin</password>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
     <dependencies>
@@ -115,18 +125,12 @@
                     <plugin>
                         <groupId>org.apache.sling</groupId>
                         <artifactId>maven-sling-plugin</artifactId>
-                        <version>${slingplugin.version}</version>
                         <executions>
                             <execution>
                                 <id>install-bundle</id>
                                 <goals>
                                     <goal>install</goal>
                                 </goals>
-                                <configuration>
-                                    <slingUrl>http://localhost:8080/system/console</slingUrl>
-                                    <user>admin</user>
-                                    <password>admin</password>
-                                </configuration>
                             </execution>
                         </executions>
                     </plugin>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 20/21: SLING-7167 Adjust READMEs

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit fbb6a31f79c2b94efb47ebe30e579540c57530bd
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Mon Oct 2 16:24:01 2017 +0000

    SLING-7167 Adjust READMEs
    
    switch from plain text to Markdown
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810542 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt => README.md | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/README.txt b/README.md
similarity index 100%
rename from README.txt
rename to README.md

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 19/21: SLING-7167 Adjust READMEs

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 080ebbf7afa6940563417c407e3a6f06775812b0
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Mon Oct 2 15:03:16 2017 +0000

    SLING-7167 Adjust READMEs
    
    remove outdated information
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810435 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/README.txt b/README.txt
index bf85624..b20c305 100644
--- a/README.txt
+++ b/README.txt
@@ -1,27 +1,3 @@
 Sling Bundle Archetype
 
 Maven archetype for OSGi bundles.
-
-Getting Started
-===============
-
-This component uses a Maven 2 (http://maven.apache.org/) build
-environment. It requires a Java 5 JDK (or higher) and Maven (http://maven.apache.org/)
-2.0.7 or later. We recommend to use the latest Maven version.
-
-If you have Maven 2 installed, you can install the jar into your local Maven repository
-using the following command:
-
-    mvn install
-
-See the Maven 2 documentation for other build features.
-
-The latest source code for this component is available in the
-Subversion (http://subversion.tigris.org/) source repository of
-the Apache Software Foundation. If you have Subversion installed,
-you can checkout the latest source using the following command:
-
-    svn checkout http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle
-
-See the Subversion documentation for other source control features.
-

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 05/21: SLING-3538 - Maven archetypes should use the same port as the default launchpad port

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit dda49717f2c6310983ef3ad31554fabba87810ca
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri May 2 10:41:31 2014 +0000

    SLING-3538 - Maven archetypes should use the same port as the default
    launchpad port
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1591859 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/resources/archetype-resources/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
index b9016c0..d888c03 100644
--- a/src/main/resources/archetype-resources/pom.xml
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -123,7 +123,7 @@
                                     <goal>install</goal>
                                 </goals>
                                 <configuration>
-                                    <slingUrl>http://localhost:8888/system/console</slingUrl>
+                                    <slingUrl>http://localhost:8080/system/console</slingUrl>
                                     <user>admin</user>
                                     <password>admin</password>
                                 </configuration>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 17/21: sling-bundle-archetype: use sling-archetype-parent 5-SNAPSHOT

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 976eeac4cc8f66c56fb6e58182d263c3a8da3a3d
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 19:45:45 2015 +0000

    sling-bundle-archetype: use sling-archetype-parent 5-SNAPSHOT
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709078 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9afee6f..31da585 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
-        <version>4</version>
+        <version>5</version>
         <relativePath />
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 06/21: SLING-3539 - SimpleDSComponent from archetypes does nothing by default

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit eb41576784e7cefd3d5c9bc8574797963bd2caed
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri May 2 10:55:09 2014 +0000

    SLING-3539 - SimpleDSComponent from archetypes does nothing by default
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1591865 13f79535-47bb-0310-9956-ffa450edef68
---
 .../archetype-resources/src/main/java/SimpleDSComponent.java        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
index 22a4ce0..64fe8eb 100644
--- a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
+++ b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
@@ -20,6 +20,7 @@ package ${package};
 
 
 import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Property;
 import org.apache.felix.scr.annotations.Service;
 
 import org.osgi.framework.BundleContext;
@@ -28,10 +29,13 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Just a simple DS Component
+ * A simple DS component which is executed every 10 seconds
+ *
+ * @see <a href="https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html">Scheduler Service</a>
  */
 @Component(metatype=true)
 @Service
+@Property( name="scheduler.period", longValue = 10)
 public class SimpleDSComponent implements Runnable {
     
     private Logger logger = LoggerFactory.getLogger(this.getClass());

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 09/21: [maven-release-plugin] prepare release sling-bundle-archetype-1.0.2

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit c3ca5cdcb3082d8be7f1c3f7e0371debb5158885
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 15 08:48:09 2014 +0000

    [maven-release-plugin] prepare release sling-bundle-archetype-1.0.2
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594822 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 3883425..0d89298 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,16 +27,16 @@
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>
-    <version>1.0.1-SNAPSHOT</version>
+    <version>1.0.2</version>
     <packaging>maven-archetype</packaging>
 
     <name>Sling Bundle Archetype</name>
     <description>Maven archetype for a generic OSGi bundle.</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/bundle</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.2</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.2</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/tags/sling-bundle-archetype-1.0.2</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 07/21: SLING-3520 - Consolidate archetype plugin versions in a parent pom

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit e2e96781ea14c673335542b8b34f60142a0c517d
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu May 15 08:36:08 2014 +0000

    SLING-3520 - Consolidate archetype plugin versions in a parent pom
    
    Update all archetypes to use the archetype parent. Projects missing
    verification now run a simple verify script which validates that the
    build was successful and no warnings were generated.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1594818 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            | 15 +++------
 src/main/resources/archetype-resources/pom.xml     | 37 ++++++++++++----------
 .../src/main/java/SimpleDSComponent.java           |  4 +--
 .../resources/projects/normal/archetype.properties |  4 +++
 src/test/resources/projects/normal/goal.txt        |  1 +
 src/test/resources/projects/normal/verify.groovy   |  9 ++++++
 6 files changed, 40 insertions(+), 30 deletions(-)

diff --git a/pom.xml b/pom.xml
index f83efa6..3883425 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,9 +21,9 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.sling</groupId>
-        <artifactId>sling</artifactId>
-        <version>19</version>
-        <relativePath>../../../parent/pom.xml</relativePath>
+        <artifactId>sling-archetype-parent</artifactId>
+        <version>1</version>
+        <relativePath>../parent/pom.xml</relativePath>
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>
@@ -44,15 +44,8 @@
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>
                 <artifactId>archetype-packaging</artifactId>
-                <version>2.0-alpha-4</version>
+                <version>${archetype.version}</version>
             </extension>
         </extensions>
-        <plugins>
-            <plugin>
-                <artifactId>maven-archetype-plugin</artifactId>
-                <version>2.0-alpha-4</version>
-                <extensions>true</extensions>
-            </plugin>
-        </plugins>
     </build>
 </project>
diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
index d888c03..77a7ff4 100644
--- a/src/main/resources/archetype-resources/pom.xml
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -19,18 +19,18 @@
 -->
 <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>${groupId}</groupId>
-    <artifactId>${artifactId}</artifactId>
+    <groupId>\${groupId}</groupId>
+    <artifactId>\${artifactId}</artifactId>
     <packaging>bundle</packaging>
-    <version>${version}</version>
-    <name>${artifactId}</name>
-    <description>${groupId} - ${artifactId}</description>
+    <version>\${version}</version>
+    <name>\${artifactId}</name>
+    <description>\${groupId} - \${artifactId}</description>
     <build>
         <plugins>
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-scr-plugin</artifactId>
-                <version>1.13.0</version>
+                <version>${scrplugin.version}</version>
                 <executions>
                     <execution>
                         <id>generate-scr-descriptor</id>
@@ -39,21 +39,21 @@
                         </goals>
                     </execution>
                 </executions>
-                <configuration>
-                	<outputDirectory>${project.build.directory}/classes</outputDirectory>
-                </configuration>
             </plugin>
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
-                <version>2.0.1</version>
+                <version>${bundleplugin.version}</version>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <!-- use version 2.3.2 to have java 1.5 as the default -->
-                <version>2.3.2</version>
+                <version>${compilerplugin.version}</version>
+                <configuration>
+                    <source>${archetype.java.version}</source>
+                    <target>${archetype.java.version}</target>
+                </configuration>
             </plugin>
         </plugins>
     </build>
@@ -85,25 +85,25 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.api</artifactId>
-            <version>2.2.0</version>
+            <version>${slingapi.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
-            <version>1.5.10</version>
+            <version>${slf4japi.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.scr.annotations</artifactId>
-            <version>1.9.0</version>
+            <version>${scrannotations.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
-            <version>3.8.1</version>
+            <version>${junit.version}</version>
             <scope>test</scope>
         </dependency>
     </dependencies>
@@ -115,7 +115,7 @@
                     <plugin>
                         <groupId>org.apache.sling</groupId>
                         <artifactId>maven-sling-plugin</artifactId>
-                        <version>2.0.4-incubator</version>
+                        <version>${slingplugin.version}</version>
                         <executions>
                             <execution>
                                 <id>install-bundle</id>
@@ -134,4 +134,7 @@
             </build>
         </profile>
     </profiles>
+    <properties>
+        <project.build.sourceEncoding>${project.build.sourceEncoding}</project.build.sourceEncoding>
+    </properties>
 </project>
diff --git a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
index 64fe8eb..a3e16bd 100644
--- a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
+++ b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java
@@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
  *
  * @see <a href="https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html">Scheduler Service</a>
  */
-@Component(metatype=true)
+@Component
 @Service
 @Property( name="scheduler.period", longValue = 10)
 public class SimpleDSComponent implements Runnable {
@@ -50,7 +50,7 @@ public class SimpleDSComponent implements Runnable {
         this.bundleContext = ctx.getBundleContext();
     }
     
-    protected void deactivate() {
+    protected void deactivate(ComponentContext ctx) {
         this.bundleContext = null;
     }
 
diff --git a/src/test/resources/projects/normal/archetype.properties b/src/test/resources/projects/normal/archetype.properties
new file mode 100644
index 0000000..7a24f94
--- /dev/null
+++ b/src/test/resources/projects/normal/archetype.properties
@@ -0,0 +1,4 @@
+groupId=org.apache.sling
+artifactId=test-bundle-archetype-project
+version=0.0.1-SNAPSHOT
+package=org.apache.sling.archetype.bundle.testing
\ No newline at end of file
diff --git a/src/test/resources/projects/normal/goal.txt b/src/test/resources/projects/normal/goal.txt
new file mode 100644
index 0000000..4a1a71d
--- /dev/null
+++ b/src/test/resources/projects/normal/goal.txt
@@ -0,0 +1 @@
+verify
\ No newline at end of file
diff --git a/src/test/resources/projects/normal/verify.groovy b/src/test/resources/projects/normal/verify.groovy
new file mode 100644
index 0000000..8e4bc97
--- /dev/null
+++ b/src/test/resources/projects/normal/verify.groovy
@@ -0,0 +1,9 @@
+new File(basedir, '.').eachFileRecurse(groovy.io.FileType.FILES) { logFile ->
+	if ( logFile.name == "build.log" ) {
+		logFile.eachLine { line ->
+			if ( line.contains("WARNING") ) {
+				throw new RuntimeException("Warning found in line ${line}\nIn file ${logFile}");
+			}
+		}
+	}
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 21/21: SLING-7167 Adjust READMEs

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit c3ed756616f436d47f72365acc0745e71701cf56
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Tue Oct 3 10:12:33 2017 +0000

    SLING-7167 Adjust READMEs
    
    add uniform header linking to Sling project
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810960 13f79535-47bb-0310-9956-ffa450edef68
---
 README.md | 4 +++-
 pom.xml   | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index b20c305..c953084 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
-Sling Bundle Archetype
+# Apache Sling Bundle Archetype
+
+This module is part of the [Apache Sling](https://sling.apache.org) project.
 
 Maven archetype for OSGi bundles.
diff --git a/pom.xml b/pom.xml
index 4e47477..91d7805 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
     <version>1.0.5-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
 
-    <name>Sling Bundle Archetype</name>
+    <name>Apache Sling Bundle Archetype</name>
     <description>Maven archetype for a generic OSGi bundle.</description>
 
     <scm>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 16/21: [maven-release-plugin] prepare for next development iteration

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit 641ad9c58982e67e22dad8bda3da01e0d15b3ed8
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 19:45:05 2015 +0000

    [maven-release-plugin] prepare for next development iteration
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709077 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index b1855ab..9afee6f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,16 +27,16 @@
     </parent>
 
     <artifactId>sling-bundle-archetype</artifactId>
-    <version>1.0.4</version>
+    <version>1.0.5-SNAPSHOT</version>
     <packaging>maven-archetype</packaging>
 
     <name>Sling Bundle Archetype</name>
     <description>Maven archetype for a generic OSGi bundle.</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.4</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/sling-bundle-archetype-1.0.4</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/sling-bundle-archetype-1.0.4</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/bundle</url>
     </scm>
 
     <build>

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.

[sling-bundle-archetype] 12/21: Maven archetypes: use parent version 3

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git

commit f08e7e8bf0d5fed5b42641e741e6ee97f209ddd9
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Fri Oct 16 15:11:21 2015 +0000

    Maven archetypes: use parent version 3
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1709035 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 7c144a9..9da7b91 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
     <parent>
         <groupId>org.apache.sling</groupId>
         <artifactId>sling-archetype-parent</artifactId>
-        <version>1</version>
+        <version>3</version>
         <relativePath/>
     </parent>
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.