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-launchpad-standalone-archetype.git
commit 905a42525a92f09563b644397bca56baf98522a4 Author: Robert Munteanu <[email protected]> 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 | 50 ++++++++++++++++ .../META-INF/maven/archetype-metadata.xml | 30 ++++++++++ src/main/resources/META-INF/maven/archetype.xml | 22 ++++++++ src/main/resources/archetype-resources/pom.xml | 66 ++++++++++++++++++++++ .../archetype-resources/src/main/bundles/list.xml | 22 ++++++++ .../src/test/config/sling.properties | 13 +++++ 7 files changed, 230 insertions(+) diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..5d9f3bc --- /dev/null +++ b/README.txt @@ -0,0 +1,27 @@ +Sling Servlet Archetype + +Maven archetype for Sling Launchpad Standalone applications. + +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/launchpad-standalone + +See the Subversion documentation for other source control features. + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..021b407 --- /dev/null +++ b/pom.xml @@ -0,0 +1,50 @@ +<?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 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> + <parent> + <groupId>org.apache.sling</groupId> + <artifactId>sling</artifactId> + <version>17</version> + <relativePath>../../../parent/pom.xml</relativePath> + </parent> + <artifactId>sling-launchpad-standalone-archetype</artifactId> + <version>1.0.1-SNAPSHOT</version> + <packaging>maven-archetype</packaging> + <name>Sling Launchpad Standalone Archetype</name> + <description>Maven archetype for Sling Launchpad Standalone applications</description> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/launchpad-standalone</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/launchpad-standalone</developerConnection> + <url>http://svn.apache.org/viewvc/sling/trunk/tooling/maven/archetypes/launchpad-standalone</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..121e332 --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,30 @@ +<?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-launchpad-standalone"> + <fileSets> + <fileSet filtered="true" encoding="UTF-8"> + <directory>src/main/bundles</directory> + <includes> + <include>**/*.xml</include> + </includes> + </fileSet> + <fileSet filtered="true" encoding="UTF-8"> + <directory>src/test/config</directory> + <includes> + <include>**/*.xml</include> + <include>**/*.properties</include> + </includes> + </fileSet> + </fileSets> +</archetype-descriptor> \ No newline at end of file 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..597bea1 --- /dev/null +++ b/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,22 @@ +<?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-launchpad-standalone</id> + <resources> + <resource>src/main/bundles/list.xml</resource> + </resources> + <testResources> + <resource>src/test/config/sling.properties</resource> + </testResources> +</archetype> \ No newline at end of file diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..225c597 --- /dev/null +++ b/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,66 @@ +#set( $symbol_dollar = '$' ) +<?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 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>jar</packaging> + <name>${artifactId} Launchpad Standalone</name> + <description>${artifactId} Launchpad Standalone</description> + <build> + <plugins> + <plugin> + <groupId>org.apache.sling</groupId> + <artifactId>maven-launchpad-plugin</artifactId> + <version>2.0.10</version> + <executions> + <execution> + <id>prepare-package-jar</id> + <goals> + <goal>prepare-package</goal> + </goals> + </execution> + </executions> + <configuration> + <defaultBundleList> + <version>6</version> + </defaultBundleList> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifestFile>${symbol_dollar}{project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> + <manifest> + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> + </manifest> + </archive> + </configuration> + </plugin> + </plugins> + </build> + <dependencies> + <dependency> + <groupId>org.apache.sling</groupId> + <artifactId>org.apache.sling.launchpad.base</artifactId> + <version>2.4.0</version> + <classifier>app</classifier> + <scope>runtime</scope> + </dependency> + </dependencies> +</project> diff --git a/src/main/resources/archetype-resources/src/main/bundles/list.xml b/src/main/resources/archetype-resources/src/main/bundles/list.xml new file mode 100644 index 0000000..e22144a --- /dev/null +++ b/src/main/resources/archetype-resources/src/main/bundles/list.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<!-- + 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. +--> +<bundles> + <startLevel level="0"> + <bundle> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.fileinstall</artifactId> + <version>2.0.8</version> + </bundle> + </startLevel> +</bundles> diff --git a/src/main/resources/archetype-resources/src/test/config/sling.properties b/src/main/resources/archetype-resources/src/test/config/sling.properties new file mode 100644 index 0000000..23db9a2 --- /dev/null +++ b/src/main/resources/archetype-resources/src/test/config/sling.properties @@ -0,0 +1,13 @@ +# 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. +#set( $symbol_dollar = '$' ) +felix.fileinstall.dir=${symbol_dollar}{basedir}/src/test/config/fileinstall +org.osgi.framework.startlevel.beginning=35 -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
