Author: handyande
Date: Wed Jan 31 10:40:06 2007
New Revision: 501940
URL: http://svn.apache.org/viewvc?view=rev&rev=501940
Log:
A simple maven module that is pre-configured to install use and deploy to
enterprise
Added:
maven/sandbox/enterprise/enterprise-example/ (with props)
maven/sandbox/enterprise/enterprise-example/README.txt
maven/sandbox/enterprise/enterprise-example/enterprise-example.iml
maven/sandbox/enterprise/enterprise-example/pom.xml
maven/sandbox/enterprise/enterprise-example/src/
maven/sandbox/enterprise/enterprise-example/src/main/
maven/sandbox/enterprise/enterprise-example/src/main/java/
maven/sandbox/enterprise/enterprise-example/src/main/java/Example.java
Propchange: maven/sandbox/enterprise/enterprise-example/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Jan 31 10:40:06 2007
@@ -0,0 +1,4 @@
+target
+*.iml
+*.ipr
+*.iws
Added: maven/sandbox/enterprise/enterprise-example/README.txt
URL:
http://svn.apache.org/viewvc/maven/sandbox/enterprise/enterprise-example/README.txt?view=auto&rev=501940
==============================================================================
--- maven/sandbox/enterprise/enterprise-example/README.txt (added)
+++ maven/sandbox/enterprise/enterprise-example/README.txt Wed Jan 31 10:40:06
2007
@@ -0,0 +1,38 @@
+To use the example module here which is already set up to use the enterprise
+features you will need to install the dav provider for wagon.
+
+Do this by grabbing the files:
+
+wagon-webdav-1.0-beta-2.jar
+slide-webdavlib-2.1.jar
+commons-logging-1.0.4.jar
+commons-httpclient-2.0.2.jar
+
+and putting them in M2_HOME/lib/
+
+You will also need to create an account on enterprise (go to
+http://localhost:8080/archiva/) and enter the credentials into
+~/.m2/settings.xml, e.g.:
+
+<settings>
+ <servers>
+ <server>
+ <id>enterprise-repository</id>
+ <username>admin</username>
+ <password>password</password>
+ </server>
+ <server>
+ <id>enterprise-snapshot</id>
+ <username>admin</username>
+ <password>password</password>
+ </server>
+ <server>
+ <id>enterprise-site</id>
+ <username>admin</username>
+ <password>password</password>
+ </server>
+ </servers>
+</settings>
+
+Then you can "mvn deploy" or "mvn site site:deploy" to install the artifacts
into the
+enterprise repositories (making sure enterprise is booted first).
Added: maven/sandbox/enterprise/enterprise-example/enterprise-example.iml
URL:
http://svn.apache.org/viewvc/maven/sandbox/enterprise/enterprise-example/enterprise-example.iml?view=auto&rev=501940
==============================================================================
--- maven/sandbox/enterprise/enterprise-example/enterprise-example.iml (added)
+++ maven/sandbox/enterprise/enterprise-example/enterprise-example.iml Wed Jan
31 10:40:06 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4" relativePaths="false" type="JAVA_MODULE">
+ <component name="ModuleRootManager" />
+ <component name="NewModuleRootManager" inherit-compiler-output="false">
+ <output url="file://$MODULE_DIR$/target/classes" />
+ <exclude-output />
+ <output-test url="file://$MODULE_DIR$/target/test-classes" />
+ <content url="file://$MODULE_DIR$">
+ <sourceFolder url="file://$MODULE_DIR$/src/main/java"
isTestSource="false" />
+ <excludeFolder url="file://$MODULE_DIR$/target" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ <orderEntry type="module-library">
+ <library>
+ <CLASSES>
+ <root
url="jar:///Users/aje/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar!/" />
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
+ <orderEntryProperties />
+ </component>
+ <component name="copyright">
+ <Base>
+ <setting name="state" value="2" />
+ </Base>
+ </component>
+</module>
+
Added: maven/sandbox/enterprise/enterprise-example/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/enterprise/enterprise-example/pom.xml?view=auto&rev=501940
==============================================================================
--- maven/sandbox/enterprise/enterprise-example/pom.xml (added)
+++ maven/sandbox/enterprise/enterprise-example/pom.xml Wed Jan 31 10:40:06 2007
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.enterprise</groupId>
+ <artifactId>enterprise-example</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>Maven Enterprise Example Project</name>
+ <url>http://localhost:8080/site/index.html</url>
+
+ <scm>
+
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/sandbox/enterprise/enterprise-example</connection>
+
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/sandbox/enterprise/enterprise-example</developerConnection>
+
<url>http://svn.apache.org/viewvc/maven/sandbox/enterprise/enterprise-example</url>
+ </scm>
+
+ <ciManagement>
+ <system>continuum</system>
+ <url>http://localhost:8080/continuum/</url>
+ </ciManagement>
+
+ <repositories>
+ <repository>
+ <id>enterprise-repository</id>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <url>http://localhost:8080/repository/</url>
+ </repository>
+ <repository>
+ <id>enterprise-snapshot</id>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <url>http://localhost:8080/snapshot/</url>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <repository>
+ <id>enterprise-repository</id>
+ <url>dav:http://localhost:8080/repository/</url>
+ </repository>
+ <snapshotRepository>
+ <id>enterprise-snapshot</id>
+ <url>dav:http://localhost:8080/snapshot/</url>
+ </snapshotRepository>
+ <site>
+ <id>enterprise-site</id>
+ <url>dav:http://localhost:8080/site/</url>
+ </site>
+ </distributionManagement>
+</project>
Added: maven/sandbox/enterprise/enterprise-example/src/main/java/Example.java
URL:
http://svn.apache.org/viewvc/maven/sandbox/enterprise/enterprise-example/src/main/java/Example.java?view=auto&rev=501940
==============================================================================
--- maven/sandbox/enterprise/enterprise-example/src/main/java/Example.java
(added)
+++ maven/sandbox/enterprise/enterprise-example/src/main/java/Example.java Wed
Jan 31 10:40:06 2007
@@ -0,0 +1,9 @@
+/**
+ * Example class as part of the Maven Enterprise module
+ * @uthor: Andrew Williams
+ * @since: 31-Jan-2007
+ * @version: $Id$
+ */
+public class Example
+{
+}