You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2008/08/05 18:46:53 UTC
svn commit: r682786 - in /jackrabbit/sandbox/jackrabbit-standalone: ./ src/
src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/jackrabbit/
src/main/java/org/apache/jackrabbit/standalone/
Author: jukka
Date: Tue Aug 5 09:46:52 2008
New Revision: 682786
URL: http://svn.apache.org/viewvc?rev=682786&view=rev
Log:
JCR-1357: Create "quick start" developer bundles for model 1,2,3 deployment
Started a jackrabbit-standalone snapshot project that produces a runnable jar file that comes with embedded Jetty and the Jackrabbit webapp. Ideally it should be possible to use this package also as a normal war file so we wouldn't need to differentiate between the jar and war distributions.
Added:
jackrabbit/sandbox/jackrabbit-standalone/ (with props)
jackrabbit/sandbox/jackrabbit-standalone/pom.xml
jackrabbit/sandbox/jackrabbit-standalone/src/
jackrabbit/sandbox/jackrabbit-standalone/src/main/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/
jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java
Propchange: jackrabbit/sandbox/jackrabbit-standalone/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Aug 5 09:46:52 2008
@@ -0,0 +1,2 @@
+.*
+target
Added: jackrabbit/sandbox/jackrabbit-standalone/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-standalone/pom.xml?rev=682786&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-standalone/pom.xml (added)
+++ jackrabbit/sandbox/jackrabbit-standalone/pom.xml Tue Aug 5 09:46:52 2008
@@ -0,0 +1,72 @@
+<?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>
+
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>jackrabbit-standalone</artifactId>
+ <version>SNAPSHOT</version>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>javax.jcr</groupId>
+ <artifactId>jcr</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>jackrabbit-webapp</artifactId>
+ <version>1.4</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty</artifactId>
+ <version>6.1.11</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jsp-2.1</artifactId>
+ <version>6.1.11</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-simple</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ </dependencies>
+
+</project>
Added: jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java?rev=682786&view=auto
==============================================================================
--- jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java (added)
+++ jackrabbit/sandbox/jackrabbit-standalone/src/main/java/org/apache/jackrabbit/standalone/Main.java Tue Aug 5 09:46:52 2008
@@ -0,0 +1,48 @@
+/*
+ * 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 org.apache.jackrabbit.standalone;
+
+import java.io.File;
+
+import org.mortbay.jetty.Server;
+import org.mortbay.jetty.webapp.WebAppContext;
+
+/**
+ *
+ */
+public class Main {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] argv) throws Exception {
+ File jackrabbit = new File("jackrabbit");
+ jackrabbit.mkdirs();
+
+ WebAppContext webapp = new WebAppContext();
+ webapp.setContextPath("/");
+ webapp.setWar("target/jackrabbit-standalone-SNAPSHOT-jar-with-dependencies.jar");
+ webapp.setExtractWAR(false);
+ webapp.setTempDirectory(new File(jackrabbit, "jetty"));
+
+ Server server = new Server(8080);
+ server.setHandler(webapp);
+ server.start();
+ server.join();
+ }
+
+}