archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r833613 - in /archiva/sandbox/archiva-sling-experiment: ./ NOTICE pom.xml src/ src/main/ src/main/assembly/ src/main/assembly/bin.xml
Date Sat, 07 Nov 2009 00:13:03 GMT
Author: brett
Date: Sat Nov  7 00:13:02 2009
New Revision: 833613

URL: http://svn.apache.org/viewvc?rev=833613&view=rev
Log:
experiment with an Archiva-like system using Sling

Added:
    archiva/sandbox/archiva-sling-experiment/
    archiva/sandbox/archiva-sling-experiment/NOTICE
    archiva/sandbox/archiva-sling-experiment/pom.xml   (with props)
    archiva/sandbox/archiva-sling-experiment/src/
    archiva/sandbox/archiva-sling-experiment/src/main/
    archiva/sandbox/archiva-sling-experiment/src/main/assembly/
    archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml   (with props)

Added: archiva/sandbox/archiva-sling-experiment/NOTICE
URL: http://svn.apache.org/viewvc/archiva/sandbox/archiva-sling-experiment/NOTICE?rev=833613&view=auto
==============================================================================
--- archiva/sandbox/archiva-sling-experiment/NOTICE (added)
+++ archiva/sandbox/archiva-sling-experiment/NOTICE Sat Nov  7 00:13:02 2009
@@ -0,0 +1,8 @@
+Apache Sling Launchpad Webapp
+Copyright 2008-2009 The Apache Software Foundation
+
+Apache Sling is based on source code originally developed 
+by Day Software (http://www.day.com/).
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).

Added: archiva/sandbox/archiva-sling-experiment/pom.xml
URL: http://svn.apache.org/viewvc/archiva/sandbox/archiva-sling-experiment/pom.xml?rev=833613&view=auto
==============================================================================
--- archiva/sandbox/archiva-sling-experiment/pom.xml (added)
+++ archiva/sandbox/archiva-sling-experiment/pom.xml Sat Nov  7 00:13:02 2009
@@ -0,0 +1,194 @@
+<?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/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>archiva-sling-experiment</artifactId>
+
+    <groupId>org.apache.archiva</groupId>
+    <packaging>war</packaging>
+    <version>1.0-SNAPSHOT</version>
+
+    <name>Apache Sling Launchpad Web Application</name>
+    <description>The launchpad webapp packages the standard launchpad components
+        in a Sling web application.</description>
+
+    <properties>
+        <!--
+            Jetty default port (override with -D)
+        -->
+        <http.port>8888</http.port>
+        
+        <!-- path suffix for HTTP access to Sling -->
+
+        <!-- path suffix for WebDAV access to the repository -->
+
+        <!-- hostname for integration tests -->
+        <test.host>localhost</test.host>
+
+        <!--
+            Disable Jetty webapp rescan (override with -D) 
+        -->
+        <jetty.scan.interval.seconds>0</jetty.scan.interval.seconds>
+
+        <!-- 
+            Sling home directory when starting with jetty:run
+        -->
+        <jetty.sling.home>${project.build.directory}/sling</jetty.sling.home>
+        
+        <!--
+            Context path of the Sling web application
+        -->
+        <jetty.sling.context>/</jetty.sling.context>
+
+        <!-- TODO: how to substitute from Archetype when created? -->
+        <sling.launchpad.base.version>2.0.5-SNAPSHOT</sling.launchpad.base.version>
+        <sling.launchpad.version>6-SNAPSHOT</sling.launchpad.version>
+    </properties>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>maven-jetty-plugin</artifactId>
+                <version>6.1.19</version>
+                <configuration>
+                    <contextPath>/</contextPath>
+                    <scanIntervalSeconds>${jetty.scan.interval.seconds}</scanIntervalSeconds>
+
+                    <connectors>
+                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+                            <port>${http.port}</port>
+                            <maxIdleTime>60000</maxIdleTime>
+                        </connector>
+                    </connectors>
+
+                    <!-- 
+                        Use target/... as the webapp source, as we unpack stuff there from
the
+                        Sling launcher modules
+                    -->
+                    <webAppSourceDirectory>${project.build.directory}/${project.build.finalName}</webAppSourceDirectory>
+                    <webAppConfig>
+                        <contextPath>${jetty.sling.context}</contextPath>
+                        <initParams>
+                            <sling.home>${jetty.sling.home}</sling.home>
+                        </initParams>
+                    </webAppConfig>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- Unpack the sling-app launcher for inclusion in the web app
-->
+                        <id>unpack-dependencies</id>
+                        <goals>
+                            <goal>unpack-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <includeArtifactIds>org.apache.sling.launchpad.bundles</includeArtifactIds>
+                            <includes>resources/**</includes>
+                            <excludeTransitive>true</excludeTransitive>
+                            <outputDirectory>${project.build.directory}/launchpad-bundles</outputDirectory>
+                            <overWriteReleases>false</overWriteReleases>
+                            <overWriteSnapshots>true</overWriteSnapshots>
+                        </configuration>
+                    </execution>
+                    <!-- Launcher Jar -->                    
+                    <execution>
+                        <id>copy-launcher-jar</id>
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.apache.sling</groupId>
+                                    <artifactId>org.apache.sling.launchpad.base</artifactId>
+                                    <version>${sling.launchpad.base.version}</version>
+                                </artifactItem>
+                            </artifactItems>
+                            <stripVersion>true</stripVersion>
+                            <excludeTransitive>true</excludeTransitive>
+                            <outputDirectory>${project.build.directory}/launchpad-bundles/resources</outputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!-- Include sling-webapp launcher classes and resources -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <configuration>
+                    <webResources>
+                        <!-- the configuration resources -->
+                        <resource>
+                            <directory>${project.build.directory}/launchpad-bundles</directory>
+                            <targetPath>WEB-INF</targetPath>
+                        </resource>
+                        <!-- Legal stuff -->
+                        <resource>
+                            <directory>${basedir}</directory>
+                            <targetPath>META-INF</targetPath>
+                            <includes>
+                                <include>LICENSE*</include>
+                                <include>NOTICE*</include>
+                                <include>DISCLAIMER</include>
+                            </includes>
+                        </resource>
+                    </webResources>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <configuration>
+                    <descriptors>
+                        <descriptor>src/main/assembly/bin.xml</descriptor>
+                    </descriptors>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.launchpad.base</artifactId>
+            <version>${sling.launchpad.base.version}</version>
+            <classifier>webapp</classifier>
+            <type>war</type>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.launchpad.bundles</artifactId>
+            <version>${sling.launchpad.version}</version>
+            <scope>provided</scope>
+            <optional>true</optional>
+        </dependency>
+
+        <!-- Include your own bundles here, and also in the dependency unpacking element
above -->
+    </dependencies>
+</project>

Propchange: archiva/sandbox/archiva-sling-experiment/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml?rev=833613&view=auto
==============================================================================
--- archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml (added)
+++ archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml Sat Nov  7 00:13:02
2009
@@ -0,0 +1,50 @@
+<?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.
+-->
+<assembly>
+  <id>bin</id>
+  <formats>
+    <format>tar.gz</format>
+    <format>zip</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <includes>
+        <include>README*</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>src/main/resources/META-INF</directory>
+      <outputDirectory></outputDirectory>
+      <includes>
+        <include>LICENSE*</include>
+        <include>NOTICE*</include>
+        <include>DISCLAIMER</include>
+      </includes>
+    </fileSet>
+    <fileSet>
+      <directory>target</directory>
+      <outputDirectory></outputDirectory>
+      <includes>
+        <include>*.jar</include>
+        <include>*.war</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</assembly>
\ No newline at end of file

Propchange: archiva/sandbox/archiva-sling-experiment/src/main/assembly/bin.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message