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/11/07 09:14:34 UTC

[sling-maven-jcrocm-plugin] annotated tag maven-jcrocm-plugin-2.0.2-incubator created (now 689d07a)

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

rombert pushed a change to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git.


      at 689d07a  (tag)
 tagging d5f77d4a54869ddfd3e3e17b03f5e8f4385fda6c (commit)
      by Felix Meschberger
      on Thu Jun 18 09:21:02 2009 +0000

- Log -----------------------------------------------------------------
maven-jcrocm-plugin-2.0.2-incubator
-----------------------------------------------------------------------

This annotated tag includes the following new commits:

     new 25fa8d7  Import initial Sling source
     new 9297bae  Ignore Eclipse and build artifacts
     new 56f53fb  Fix scm settings
     new f158501  Ignore Eclipse .settings
     new 0858d35  Fix license headers.
     new e797442  Fix license headers.
     new 32d4083  Adapt to descriptor chances in latest Jackrabbit OCM Mapper snapshot
     new 3e3d700  SLING-83 Move modules according to the new module structure
     new bd76ce5  SLING-83: Add two maven modules.
     new 87cc834  SLING-83: Fix relative paths to parent poms.
     new 483b1c8  Rename XML root element to jackrabbit-ocm, which is the correct root element of the Jackrabbit OCM.
     new 80ed9b6  SLING-204 - add svn ignore patterns for intellij
     new cf0151c  Move licence and notice to top level dir.
     new ee1e89f  Add incubator disclaimer.
     new e58bc9a  Write first element in pom in one line (to avoid problems with the maven release plugin) and minor pom fixes.
     new 15e1efc  Update notice files.
     new 0a51c92  Update notice files for maven plugins.
     new 75195d5  Eclude maven-eclipse.xml generated by the maven eclipse plugin.
     new 68693f5  SLING-483: Add excludes for javadocs (WiP)
     new baec2b0  SLING-495 - NOTICE files generated using mknotice script
     new 23e630a  SLING-495 - NOTICE files updated according to changes in revision 662927
     new a12091e  SLING-495 - NOTICE files regenerated with revision 663097 changes
     new f0a6c51  Use released version of parent pom.
     new 0c7b58b  [maven-release-plugin] prepare release maven-jcrocm-plugin-2.0.0-incubator
     new 3a3f307  [maven-release-plugin] prepare for next development iteration
     new 74e2930  Fix reference to parent pom.
     new a3402b4  SLING-521: Restore plugin notice files.
     new 39e6fdd  SLING-521: Separate between notice files for bin and src dists.
     new d164414  SLING-521: Separate between notice files for bin and src dists.
     new dfefea1  Change copyright year to 2008.
     new e80a3f8  [maven-release-plugin]  copy for tag maven-jcrocm-plugin-2.0.2-incubator
     new d5f77d4  Move Sling to new TLP location

The 32 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-maven-jcrocm-plugin] 03/32: Fix scm settings

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 56f53fb3dccb7c1df9f92dd02a844d747cda37b1
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Mon Sep 10 14:39:14 2007 +0000

    Fix scm settings
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574263 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/pom.xml b/pom.xml
index c5fa81b..a1fb987 100644
--- a/pom.xml
+++ b/pom.xml
@@ -38,17 +38,17 @@
 		Java Classes contained in the project sources
 	</description>
 
-	<scm>
-		<url>
-			http://svn.day.com/repos/sling/trunk/maven-jcrocm-plugin
-		</url>
-		<connection>
-			scm:svn:${scm.url}
-		</connection>
-		<developerConnection>
-			scm:svn:${scm.url}
-		</developerConnection>
-	</scm>
+    <scm>
+        <connection>
+            scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin
+        </connection>
+        <developerConnection>
+            scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin
+        </developerConnection>
+        <url>
+            http://svn.apache.org/viewvc/incubator/sling/trunk/maven-jcrocm-plugin
+        </url>
+    </scm>
 
 	<reporting>
 		<plugins>

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

[sling-maven-jcrocm-plugin] 07/32: Adapt to descriptor chances in latest Jackrabbit OCM Mapper snapshot

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 32d408343f33346eddde02114fe692dd210abbad
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Thu Sep 13 12:55:00 2007 +0000

    Adapt to descriptor chances in latest Jackrabbit OCM Mapper snapshot
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@575299 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/maven/jcrocm/AbstractNodeDescriptor.java |  8 +++---
 .../apache/sling/maven/jcrocm/BeanDescriptor.java  |  2 +-
 .../apache/sling/maven/jcrocm/ClassDescriptor.java | 10 +++----
 .../sling/maven/jcrocm/CollectionDescriptor.java   |  2 +-
 .../apache/sling/maven/jcrocm/FieldDescriptor.java | 32 ++--------------------
 5 files changed, 14 insertions(+), 40 deletions(-)

diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
index 9bc6f51..6e4dab1 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
@@ -34,7 +34,7 @@ public class AbstractNodeDescriptor extends AbstractItemDescriptor {
 
     public static final String AUTO_INSERT = "autoInsert";
 
-    public static final String JCR_NODE_TYPE = "jcrNodeType";
+    public static final String JCR_TYPE = "jcrType";
 
     public static final String JCR_SAME_NAME_SIBBLINGS = "jcrSameNameSiblings";
 
@@ -46,7 +46,7 @@ public class AbstractNodeDescriptor extends AbstractItemDescriptor {
 
     private boolean isAutoInsert = true;
 
-    private String jcrNodeType;
+    private String jcrType;
 
     private boolean isJcrSameNameSibblings;
 
@@ -57,7 +57,7 @@ public class AbstractNodeDescriptor extends AbstractItemDescriptor {
     public AbstractNodeDescriptor(Log log, DocletTag tag, String fieldName) {
         super(log, tag, fieldName);
 
-        jcrNodeType = tag.getNamedParameter(JCR_NODE_TYPE);
+        jcrType = tag.getNamedParameter(JCR_TYPE);
         isJcrSameNameSibblings = Boolean.valueOf(
             tag.getNamedParameter(JCR_SAME_NAME_SIBBLINGS)).booleanValue();
 
@@ -79,7 +79,7 @@ public class AbstractNodeDescriptor extends AbstractItemDescriptor {
     void generate(XMLWriter xmlWriter) {
         super.generate(xmlWriter);
 
-        xmlWriter.printAttribute(JCR_NODE_TYPE, jcrNodeType);
+        xmlWriter.printAttribute(JCR_TYPE, jcrType);
         xmlWriter.printAttribute(JCR_SAME_NAME_SIBBLINGS,
             isJcrSameNameSibblings);
 
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
index 89fac88..53d79f6 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
@@ -36,7 +36,7 @@ import com.thoughtworks.qdox.model.JavaMethod;
  *       autoUpdate (true|false) &quot;true&quot;
  *       autoInsert (true|false) &quot;true&quot;  
  *       converter CDATA #IMPLIED
- *       jcrNodeType CDATA #IMPLIED
+ *       jcrType CDATA #IMPLIED
  *       jcrAutoCreated (true | false) &quot;false&quot;   
  *       jcrMandatory (true | false) &quot;false&quot;
  *       jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) &quot;COPY&quot;
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
index a332e3e..191a9f2 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
@@ -36,7 +36,7 @@ import com.thoughtworks.qdox.model.JavaClass;
  * <pre>
  *  &lt;!ATTLIST class-descriptor
  *      className CDATA #REQUIRED
- *      jcrNodeType CDATA #IMPLIED
+ *      jcrType CDATA #IMPLIED
  *      jcrSuperTypes CDATA #IMPLIED
  *      jcrMixinTypes CDATA #IMPLIED
  *      extend CDATA #IMPLIED
@@ -63,7 +63,7 @@ public class ClassDescriptor extends AbstractDescriptorElement {
 
     public static final String CLASS_NAME = "className";
 
-    public static final String JCR_NODE_TYPE = "jcrNodeType";
+    public static final String JCR_TYPE = "jcrType";
 
     public static final String JCR_SUPER_TYPES = "jcrSuperTypes";
 
@@ -85,7 +85,7 @@ public class ClassDescriptor extends AbstractDescriptorElement {
 
     private String className;
 
-    private String jcrNodeType;
+    private String jcrType;
 
     private String jcrSuperTypes;
 
@@ -155,7 +155,7 @@ public class ClassDescriptor extends AbstractDescriptorElement {
             }
         }
 
-        cd.jcrNodeType = tag.getNamedParameter(JCR_NODE_TYPE);
+        cd.jcrType = tag.getNamedParameter(JCR_TYPE);
         cd.jcrSuperTypes = tag.getNamedParameter(JCR_SUPER_TYPES);
         cd.jcrMixinTypes = tag.getNamedParameter(JCR_MIXIN_TYPES);
 
@@ -194,7 +194,7 @@ public class ClassDescriptor extends AbstractDescriptorElement {
 
         xmlWriter.printElementStart(ELEMENT_CLASS_DESCRIPTOR, true);
         xmlWriter.printAttribute(CLASS_NAME, className);
-        xmlWriter.printAttribute(JCR_NODE_TYPE, jcrNodeType);
+        xmlWriter.printAttribute(JCR_TYPE, jcrType);
         xmlWriter.printAttribute(JCR_SUPER_TYPES, jcrSuperTypes);
         xmlWriter.printAttribute(JCR_MIXIN_TYPES, jcrMixinTypes);
         xmlWriter.printAttribute(EXTEND, extend);
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
index c32a93c..c5cfdfc 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
@@ -38,7 +38,7 @@ import com.thoughtworks.qdox.model.JavaMethod;
  *      elementClassName CDATA #IMPLIED
  *      collectionClassName CDATA #IMPLIED
  *      collectionConverter CDATA #IMPLIED
- *      jcrNodeType CDATA #IMPLIED
+ *      jcrType CDATA #IMPLIED
  *      jcrAutoCreated (true | false) &quot;false&quot;   
  *      jcrMandatory (true | false) &quot;false&quot;
  *      jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) &quot;COPY&quot;
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
index c96b192..38d1745 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
@@ -53,8 +53,6 @@ public class FieldDescriptor extends AbstractItemDescriptor {
 
     public static final String ELEMENT_FIELD_DESCRIPTOR = "field-descriptor";
 
-    public static final String FIELD_TYPE = "fieldType";
-
     public static final String ID = "id";
 
     public static final String PATH = "path";
@@ -71,8 +69,6 @@ public class FieldDescriptor extends AbstractItemDescriptor {
 
     public static final String JCR_MULTIPLE = "jcrMultiple";
 
-    private String fieldType;
-
     private boolean isId;
 
     private boolean isPath;
@@ -96,14 +92,7 @@ public class FieldDescriptor extends AbstractItemDescriptor {
             return null;
         }
 
-        // field type is explicitly declared or Java field type
-        String fieldType = tag.getNamedParameter(FIELD_TYPE);
-        if (fieldType == null) {
-            fieldType = field.getType().getJavaClass().getFullyQualifiedName();
-        }
-        
-        return new FieldDescriptor(log, tag, field.getName(),
-            fieldType);
+        return new FieldDescriptor(log, tag, field.getName());
     }
 
     static FieldDescriptor fromMethod(Log log, JavaMethod method) {
@@ -120,26 +109,12 @@ public class FieldDescriptor extends AbstractItemDescriptor {
             fieldName = getFieldFromMethod(method);
         }
 
-        // field type is explicitly declared or parameter or return value
-        String fieldType = tag.getNamedParameter(FIELD_TYPE);
-        if (fieldType == null) {
-            if (method.getParameters() != null
-                && method.getParameters().length == 1) {
-                fieldType = method.getParameters()[0].getType().getJavaClass().getFullyQualifiedName();
-            } else if (method.getReturns() != null) {
-                fieldType = method.getReturns().getJavaClass().getFullyQualifiedName();
-            }
-        }
-
-        return new FieldDescriptor(log, tag, fieldName, fieldType);
+        return new FieldDescriptor(log, tag, fieldName);
     }
 
-    private FieldDescriptor(Log log, DocletTag tag, String fieldName,
-            String fieldType) {
+    private FieldDescriptor(Log log, DocletTag tag, String fieldName) {
         super(log, tag, fieldName);
 
-        this.fieldType = fieldType;
-
         isId = Boolean.valueOf(tag.getNamedParameter(ID)).booleanValue();
         isPath = Boolean.valueOf(tag.getNamedParameter(PATH)).booleanValue();
         isUuid = Boolean.valueOf(tag.getNamedParameter(UUID)).booleanValue();
@@ -161,7 +136,6 @@ public class FieldDescriptor extends AbstractItemDescriptor {
 
         super.generate(xmlWriter);
 
-        xmlWriter.printAttribute(FIELD_TYPE, fieldType);
         xmlWriter.printAttribute(ID, isId);
         xmlWriter.printAttribute(PATH, isPath);
         xmlWriter.printAttribute(UUID, isUuid);

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

[sling-maven-jcrocm-plugin] 25/32: [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 annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 3a3f30734530a394bf7f750e9fc6a963c1535e79
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jun 4 14:55:39 2008 +0000

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

diff --git a/pom.xml b/pom.xml
index b464257..9d32343 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
 	</parent>
 
 	<artifactId>maven-jcrocm-plugin</artifactId>
-	<version>2.0.0-incubator</version>
+	<version>2.0.1-incubator-SNAPSHOT</version>
 	<packaging>maven-plugin</packaging>
 
 	<name>
@@ -41,9 +41,9 @@
 	</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</developerConnection>
-        <url>http://svn.apache.org/viewvc/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/sling/trunk/maven/maven-jcrocm-plugin</url>
     </scm>
 
 	<reporting>

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

[sling-maven-jcrocm-plugin] 05/32: Fix license headers.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 0858d35c299e363d910f1ef1b896db467a67f57a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Sep 12 06:56:34 2007 +0000

    Fix license headers.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574806 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

diff --git a/pom.xml b/pom.xml
index a1fb987..ed31ccb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,18 +1,21 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!--
-	Copyright 2007 The Apache Software Foundation.
-	
-	Licensed 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.
+  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"

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

[sling-maven-jcrocm-plugin] 10/32: SLING-83: Fix relative paths to parent poms.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 87cc8349aa53f569e73e0c457249d471a951542d
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Nov 7 08:13:27 2007 +0000

    SLING-83: Fix relative paths to parent poms.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@592646 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2e99cd3..4fcb8e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
 		<groupId>org.apache.sling</groupId>
 		<artifactId>sling</artifactId>
 		<version>1-incubator-SNAPSHOT</version>
-		<relativePath>....//parent/pom.xml</relativePath>
+		<relativePath>../../parent/pom.xml</relativePath>
 	</parent>
 
 	<artifactId>maven-jcrocm-plugin</artifactId>

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

[sling-maven-jcrocm-plugin] 15/32: Write first element in pom in one line (to avoid problems with the maven release plugin) and minor pom fixes.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit e58bc9afbf8bc8dca16c2ac7fe9bcd3f5de27f07
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Apr 14 13:43:49 2008 +0000

    Write first element in pom in one line (to avoid problems with the maven release plugin) and minor pom fixes.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@647797 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4fcb8e3..9ad059b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -17,9 +17,8 @@
   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">
+<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>

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

[sling-maven-jcrocm-plugin] 11/32: Rename XML root element to jackrabbit-ocm, which is the correct root element of the Jackrabbit OCM.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 483b1c8df7e6b3b002c74b1dea1d5b59686c0c7c
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Wed Nov 7 20:29:51 2007 +0000

    Rename XML root element to jackrabbit-ocm, which is the correct root element
    of the Jackrabbit OCM.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@592879 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
index 6907b66..523a1fd 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
@@ -95,7 +95,7 @@ public class JcrOcmMojo extends AbstractMojo {
             } catch (OutOfMemoryError oome) {
                 // this may be the case for big sources and not enough VM mem
                 builder = null; // drop the builder to help GC now
-                
+
                 // fail with some explanation
                 throw new MojoFailureException(
                     "Failed analyzing source due to not enough memory, try setting Max Heap Size higher, e.g. using MAVEN_OPTS=-Xmx128m");
@@ -150,12 +150,12 @@ public class JcrOcmMojo extends AbstractMojo {
         try {
             descriptorStream = new FileOutputStream(descriptorFile);
             xw = new XMLWriter(descriptorStream, false);
-            xw.printElementStart("graffito-jcr", false);
+            xw.printElementStart("jackrabbit-ocm", false);
             for (Iterator di=descriptors.iterator(); di.hasNext(); ) {
                 ClassDescriptor sd = (ClassDescriptor) di.next();
                 sd.generate(xw);
             }
-            xw.printElementEnd("graffito-jcr");
+            xw.printElementEnd("jackrabbit-ocm");
 
         } catch (IOException ioe) {
             hasFailures = true;

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

[sling-maven-jcrocm-plugin] 21/32: SLING-495 - NOTICE files updated according to changes in revision 662927

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 23e630af5c13d99476320715a9d1daab902b67ab
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Jun 4 08:05:20 2008 +0000

    SLING-495 - NOTICE files updated according to changes in revision 662927
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@663025 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/NOTICE b/NOTICE
index a655ded..158f524 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,19 +1,11 @@
 Apache Sling - Maven Plugin to create Jackrabbit OCM descriptors
-Copyright 2007-2008 The Apache Software Foundation
 
-Based on source code originally developed by
-Day Software (http://www.day.com/).
+Apache Sling
+Copyright 2008 The Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
-Licensed under the Apache License 2.0.
-
-See http://www.apache.org/legal/3party.html for the ASF policy on 
-third-party licenses.
 
-This product includes software developed at codehaus.org, under BSD-like 
-license.
-
-This product includes software developed at qdox.codehaus.org, under 
-Apache License.
+Based on source code originally developed by
+Day Software (http://www.day.com/).
 

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

[sling-maven-jcrocm-plugin] 13/32: Move licence and notice to top level dir.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit cf0151c616034cbb119c2cd71f5131773b20e29a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Apr 10 15:23:52 2008 +0000

    Move licence and notice to top level dir.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@646843 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/resources/META-INF/LICENSE => LICENSE | 0
 src/main/resources/META-INF/NOTICE => NOTICE   | 0
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/META-INF/LICENSE b/LICENSE
similarity index 100%
rename from src/main/resources/META-INF/LICENSE
rename to LICENSE
diff --git a/src/main/resources/META-INF/NOTICE b/NOTICE
similarity index 100%
rename from src/main/resources/META-INF/NOTICE
rename to NOTICE

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

[sling-maven-jcrocm-plugin] 14/32: Add incubator disclaimer.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit ee1e89f36391de624fe54e52d68a8669135b1119
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Apr 14 12:58:07 2008 +0000

    Add incubator disclaimer.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@647780 13f79535-47bb-0310-9956-ffa450edef68
---
 DISCLAIMER | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 0000000..90850c2
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,7 @@
+Apache Sling is an effort undergoing incubation at The Apache Software Foundation (ASF),
+sponsored by the Apache Jackrabbit PMC. Incubation is required of all newly accepted
+projects until a further review indicates that the infrastructure, communications,
+and decision making process have stabilized in a manner consistent with other
+successful ASF projects. While incubation status is not necessarily a reflection of
+the completeness or stability of the code, it does indicate that the project has yet
+to be fully endorsed by the ASF.
\ 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-maven-jcrocm-plugin] 26/32: Fix reference to parent pom.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 74e29303e6a93f6129288a5f931f31afd4e226cb
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jun 5 05:51:38 2008 +0000

    Fix reference to parent pom.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@663458 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9d32343..de76ee5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 	<parent>
 		<groupId>org.apache.sling</groupId>
 		<artifactId>sling</artifactId>
-		<version>1-incubator</version>
+		<version>2-incubator-SNAPSHOT</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-maven-jcrocm-plugin] 31/32: [maven-release-plugin] copy for tag maven-jcrocm-plugin-2.0.2-incubator

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit e80a3f827a9d354c1f24daf7567178b5c2f5fb39
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Jun 17 06:59:30 2008 +0000

    [maven-release-plugin]  copy for tag maven-jcrocm-plugin-2.0.2-incubator
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.2-incubator@668418 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index de76ee5..e23c2b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,12 +23,12 @@
 	<parent>
 		<groupId>org.apache.sling</groupId>
 		<artifactId>sling</artifactId>
-		<version>2-incubator-SNAPSHOT</version>
+		<version>3-incubator</version>
 		<relativePath>../../parent/pom.xml</relativePath>
 	</parent>
 
 	<artifactId>maven-jcrocm-plugin</artifactId>
-	<version>2.0.1-incubator-SNAPSHOT</version>
+	<version>2.0.2-incubator</version>
 	<packaging>maven-plugin</packaging>
 
 	<name>
@@ -41,9 +41,9 @@
 	</description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin</developerConnection>
-        <url>http://svn.apache.org/viewvc/incubator/sling/trunk/maven/maven-jcrocm-plugin</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.2-incubator</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.2-incubator</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/sling/tags/maven-jcrocm-plugin-2.0.2-incubator</url>
     </scm>
 
 	<reporting>

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

[sling-maven-jcrocm-plugin] 28/32: SLING-521: Separate between notice files for bin and src dists.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 39e6fddfe27ae9d89f87143df591744c91f5a9c2
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jun 13 13:18:18 2008 +0000

    SLING-521: Separate between notice files for bin and src dists.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@667520 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE                                             |  15 --
 README.txt                                         |  38 ++++
 .../main/resources/META-INF/DISCLAIMER             |   0
 src/main/resources/META-INF/LICENSE                | 202 +++++++++++++++++++++
 NOTICE => src/main/resources/META-INF/NOTICE       |   0
 5 files changed, 240 insertions(+), 15 deletions(-)

diff --git a/NOTICE b/NOTICE
index ab7ff77..967e0ea 100644
--- a/NOTICE
+++ b/NOTICE
@@ -4,22 +4,7 @@ Copyright 2007-2008 The Apache Software Foundation
 Apache Sling is based on source code originally developed 
 by Day Software (http://www.day.com/).
 
-
-I. Included Software
-
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
-Licensed under the Apache License 2.0.
-
-
-II. Used Software
-
-This product uses software developed at
-The Codehaus (http://www.codehaus.org)
-Licensed under the Apache License 2.0.
-
-
-III. License Summary
-- Apache License 2.0
 
 
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..56c8537
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,38 @@
+Apache Sling Maven JCROCM Plugin
+
+WE NEED A LOT MORE HERE!!!!!!!!!!!!!!!!!!
+
+
+Disclaimer
+==========
+Apache Sling is an effort undergoing incubation at The Apache Software Foundation (ASF),
+sponsored by the Apache Jackrabbit PMC. Incubation is required of all newly accepted
+projects until a further review indicates that the infrastructure, communications,
+and decision making process have stabilized in a manner consistent with other
+successful ASF projects. While incubation status is not necessarily a reflection of
+the completeness or stability of the code, it does indicate that the project has yet
+to be fully endorsed by the ASF.
+
+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 compile and
+package the jar using the following command:
+
+    mvn package
+
+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/incubator/sling/trunk/maven/maven-jcrocm-plugin
+
+See the Subversion documentation for other source control features.
+
diff --git a/DISCLAIMER b/src/main/resources/META-INF/DISCLAIMER
similarity index 100%
rename from DISCLAIMER
rename to src/main/resources/META-INF/DISCLAIMER
diff --git a/src/main/resources/META-INF/LICENSE b/src/main/resources/META-INF/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/src/main/resources/META-INF/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
diff --git a/NOTICE b/src/main/resources/META-INF/NOTICE
similarity index 100%
copy from NOTICE
copy to src/main/resources/META-INF/NOTICE

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

[sling-maven-jcrocm-plugin] 30/32: Change copyright year to 2008.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit dfefea16d5c72da83eff6890479ac6acfffe5549
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Jun 16 12:08:14 2008 +0000

    Change copyright year to 2008.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@668130 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE                             | 2 +-
 src/main/resources/META-INF/NOTICE | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NOTICE b/NOTICE
index 967e0ea..790ae97 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
 Apache Sling Maven JCROCM Plugin
-Copyright 2007-2008 The Apache Software Foundation
+Copyright 2008 The Apache Software Foundation
 
 Apache Sling is based on source code originally developed 
 by Day Software (http://www.day.com/).
diff --git a/src/main/resources/META-INF/NOTICE b/src/main/resources/META-INF/NOTICE
index ab7ff77..368daa0 100644
--- a/src/main/resources/META-INF/NOTICE
+++ b/src/main/resources/META-INF/NOTICE
@@ -1,5 +1,5 @@
 Apache Sling Maven JCROCM Plugin
-Copyright 2007-2008 The Apache Software Foundation
+Copyright 2008 The Apache Software Foundation
 
 Apache Sling is based on source code originally developed 
 by Day Software (http://www.day.com/).

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

[sling-maven-jcrocm-plugin] 12/32: SLING-204 - add svn ignore patterns for intellij

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 80ed9b6290d611e8a3cbe8c3fb6486189fc62cb5
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Jan 28 08:39:32 2008 +0000

    SLING-204 - add svn ignore patterns for intellij
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@615760 13f79535-47bb-0310-9956-ffa450edef68

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

[sling-maven-jcrocm-plugin] 16/32: Update notice files.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 15e1efc99e663c2a7ac8f3fd01b569c7fa2530e9
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Apr 14 16:05:27 2008 +0000

    Update notice files.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@647874 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/NOTICE b/NOTICE
index 4894d83..218af80 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,8 +1,10 @@
-Apache Sling
-Copyright 2007 The Apache Software Foundation
+Apache Sling Maven JCROCM Plugin
+Copyright 2007-2008 The Apache Software Foundation
+
+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/).
+Licensed under the Apache License 2.0.
 
-Based on source code originally developed by
-Day Software (http://www.day.com/).

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

[sling-maven-jcrocm-plugin] 08/32: SLING-83 Move modules according to the new module structure

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 3e3d7009194a8efa8dc11fdc1e3be40c0c640d83
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Nov 6 10:59:46 2007 +0000

    SLING-83 Move modules according to the new module structure
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@592370 13f79535-47bb-0310-9956-ffa450edef68

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

[sling-maven-jcrocm-plugin] 23/32: Use released version of parent pom.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit f0a6c5100b51e8a17a122bb8ab53a0fd63df3540
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jun 4 14:16:40 2008 +0000

    Use released version of parent pom.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@663109 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index fdfd107..e2c617a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
 	<parent>
 		<groupId>org.apache.sling</groupId>
 		<artifactId>sling</artifactId>
-		<version>1-incubator-SNAPSHOT</version>
+		<version>1-incubator</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-maven-jcrocm-plugin] 24/32: [maven-release-plugin] prepare release maven-jcrocm-plugin-2.0.0-incubator

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 0c7b58b51a26aafd2e69cc173a96d292348cfd2c
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Jun 4 14:55:30 2008 +0000

    [maven-release-plugin] prepare release maven-jcrocm-plugin-2.0.0-incubator
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@663139 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index e2c617a..b464257 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
 	</parent>
 
 	<artifactId>maven-jcrocm-plugin</artifactId>
-	<version>2.0.0-incubator-SNAPSHOT</version>
+	<version>2.0.0-incubator</version>
 	<packaging>maven-plugin</packaging>
 
 	<name>
@@ -41,15 +41,9 @@
 	</description>
 
     <scm>
-        <connection>
-            scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin
-        </connection>
-        <developerConnection>
-            scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin
-        </developerConnection>
-        <url>
-            http://svn.apache.org/viewvc/incubator/sling/trunk/maven/maven-jcrocm-plugin
-        </url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</developerConnection>
+        <url>http://svn.apache.org/viewvc/incubator/sling/tags/maven-jcrocm-plugin-2.0.0-incubator</url>
     </scm>
 
 	<reporting>

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

[sling-maven-jcrocm-plugin] 09/32: SLING-83: Add two maven modules.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit bd76ce57d6941eddd10c017773406cf677a6c44e
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Nov 7 08:05:42 2007 +0000

    SLING-83: Add two maven modules.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@592645 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index ed31ccb..2e99cd3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
 		<groupId>org.apache.sling</groupId>
 		<artifactId>sling</artifactId>
 		<version>1-incubator-SNAPSHOT</version>
-		<relativePath>../parent/pom.xml</relativePath>
+		<relativePath>....//parent/pom.xml</relativePath>
 	</parent>
 
 	<artifactId>maven-jcrocm-plugin</artifactId>
@@ -43,13 +43,13 @@
 
     <scm>
         <connection>
-            scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin
+            scm:svn:http://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin
         </connection>
         <developerConnection>
-            scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin
+            scm:svn:https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin
         </developerConnection>
         <url>
-            http://svn.apache.org/viewvc/incubator/sling/trunk/maven-jcrocm-plugin
+            http://svn.apache.org/viewvc/incubator/sling/trunk/maven/maven-jcrocm-plugin
         </url>
     </scm>
 

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

[sling-maven-jcrocm-plugin] 06/32: Fix license headers.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit e7974423daee17a784c98ef6c1b2c8d160163782
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Sep 12 07:15:46 2007 +0000

    Fix license headers.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574812 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/maven/jcrocm/AbstractDescriptorElement.java     | 15 ++++++++-------
 .../apache/sling/maven/jcrocm/AbstractItemDescriptor.java | 15 ++++++++-------
 .../apache/sling/maven/jcrocm/AbstractNodeDescriptor.java | 15 ++++++++-------
 .../org/apache/sling/maven/jcrocm/BeanDescriptor.java     | 15 ++++++++-------
 .../org/apache/sling/maven/jcrocm/ClassDescriptor.java    | 15 ++++++++-------
 .../apache/sling/maven/jcrocm/CollectionDescriptor.java   | 15 ++++++++-------
 .../org/apache/sling/maven/jcrocm/FieldDescriptor.java    | 15 ++++++++-------
 .../java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java    | 15 ++++++++-------
 .../java/org/apache/sling/maven/jcrocm/XMLWriter.java     | 15 ++++++++-------
 9 files changed, 72 insertions(+), 63 deletions(-)

diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java
index d465d44..e456381 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java
index 821268e..eea14ad 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
index d5a1ed1..9bc6f51 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
index 1f3acbb..89fac88 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
index 574d756..a332e3e 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
index e18c476..c32a93c 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
index 740dd14..c96b192 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
index b6c92ff..6907b66 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java b/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java
index f81527d..53e3e6c 100644
--- a/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java
+++ b/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java
@@ -1,11 +1,12 @@
 /*
- * Copyright 2007 The Apache Software Foundation.
- * 
- * Licensed 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
+ * 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,

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

[sling-maven-jcrocm-plugin] 01/32: Import initial Sling source

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 25fa8d7ed54c685e40cfad4ea5c79306d1dfc4e1
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Mon Sep 10 08:50:41 2007 +0000

    Import initial Sling source
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574179 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                            |  85 +++++++
 .../maven/jcrocm/AbstractDescriptorElement.java    |  67 ++++++
 .../sling/maven/jcrocm/AbstractItemDescriptor.java | 123 ++++++++++
 .../sling/maven/jcrocm/AbstractNodeDescriptor.java | 106 +++++++++
 .../apache/sling/maven/jcrocm/BeanDescriptor.java  | 121 ++++++++++
 .../apache/sling/maven/jcrocm/ClassDescriptor.java | 252 +++++++++++++++++++++
 .../sling/maven/jcrocm/CollectionDescriptor.java   | 138 +++++++++++
 .../apache/sling/maven/jcrocm/FieldDescriptor.java | 197 ++++++++++++++++
 .../org/apache/sling/maven/jcrocm/JcrOcmMojo.java  | 235 +++++++++++++++++++
 .../org/apache/sling/maven/jcrocm/XMLWriter.java   | 100 ++++++++
 src/main/resources/META-INF/LICENSE                | 202 +++++++++++++++++
 src/main/resources/META-INF/NOTICE                 |   8 +
 12 files changed, 1634 insertions(+)

diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..c5fa81b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+	Copyright 2007 The Apache Software Foundation.
+	
+	Licensed 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>1-incubator-SNAPSHOT</version>
+		<relativePath>../parent/pom.xml</relativePath>
+	</parent>
+
+	<artifactId>maven-jcrocm-plugin</artifactId>
+	<version>2.0.0-incubator-SNAPSHOT</version>
+	<packaging>maven-plugin</packaging>
+
+	<name>
+		Sling - Maven Plugin to create Jackrabbit OCM descriptors
+	</name>
+	<description>
+		The Maven JcrOCM Plugin supports extracting and generation of
+		Jackrabbit OCM descriptors from JavaDoc tags embedded in the
+		Java Classes contained in the project sources
+	</description>
+
+	<scm>
+		<url>
+			http://svn.day.com/repos/sling/trunk/maven-jcrocm-plugin
+		</url>
+		<connection>
+			scm:svn:${scm.url}
+		</connection>
+		<developerConnection>
+			scm:svn:${scm.url}
+		</developerConnection>
+	</scm>
+
+	<reporting>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-plugin-plugin</artifactId>
+			</plugin>
+		</plugins>
+	</reporting>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-plugin-api</artifactId>
+			<version>2.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-artifact</artifactId>
+			<version>2.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-project</artifactId>
+			<version>2.0</version>
+		</dependency>
+
+		<dependency>
+			<groupId>qdox</groupId>
+			<artifactId>qdox</artifactId>
+			<version>1.6.1</version>
+		</dependency>
+	</dependencies>
+</project>
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java
new file mode 100644
index 0000000..d465d44
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractDescriptorElement.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.AbstractJavaEntity;
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaClass;
+import com.thoughtworks.qdox.model.JavaClassParent;
+
+/**
+ * The <code>AbstractDescriptorElement</code> serves as the base class for the
+ * descriptor objects read from the Doclet tags.
+ */
+abstract class AbstractDescriptorElement {
+
+    private final Log log;
+
+    protected final DocletTag tag;
+
+    protected AbstractDescriptorElement(Log log, DocletTag tag) {
+        this.log = log;
+        this.tag = tag;
+    }
+
+    abstract boolean validate();
+
+    abstract void generate(XMLWriter xmlWriter);
+
+    JavaClass getJavaClass() {
+        AbstractJavaEntity aje = tag.getContext();
+        if (aje instanceof JavaClass) {
+            return (JavaClass) aje;
+        }
+
+        JavaClassParent parent = aje.getParent();
+        if (parent instanceof JavaClass) {
+            return (JavaClass) parent;
+        }
+
+        return null;
+    }
+
+    protected void log(String message) {
+        log.error("@" + tag.getName() + ": " + message + " ("
+            + tag.getContext().getSource().getURL() + ", line "
+            + tag.getLineNumber() + ")");
+    }
+
+    protected void warn(String message) {
+        log.warn(message);
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java
new file mode 100644
index 0000000..821268e
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractItemDescriptor.java
@@ -0,0 +1,123 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaMethod;
+
+/**
+ * The <code>AbstractItemDescriptor</code> is the base class for the field,
+ * bean and collection descriptors providing support for the common
+ * configuration elements.
+ */
+abstract class AbstractItemDescriptor extends AbstractDescriptorElement {
+
+    /**
+     * The name of the Doclet Tag attribute naming the field to which the
+     * descriptor applies (value is "fieldName").
+     */
+    public static final String FIELD_NAME = "fieldName";
+
+    /**
+     * The name of the Doclet Tag attribute naming the JCR item to which the
+     * descriptor applies (value is "jcrName").
+     */
+    public static final String JCR_NAME = "jcrName";
+
+    /**
+     * The name of the Doclet Tag attribute naming the field to which the
+     * descriptor applies (value is "fieldName").
+     */
+    public static final String JCR_AUTO_CREATED = "jcrAutoCreated";
+
+    public static final String JCR_MANDATORY = "jcrMandatory";
+
+    public static final String JCR_ON_PARENT_VERSION = "jcrOnParentVersion";
+
+    public static final String JCR_PROTECTED = "jcrProtected";
+
+    private String fieldName;
+
+    private String jcrName;
+
+    private boolean isJcrAutoCreated;
+
+    private boolean isJcrMandatory;
+
+    private String jcrOnParentVersion;
+
+    private boolean isJcrProtected;
+
+    /**
+     * @param log
+     * @param tag
+     */
+    public AbstractItemDescriptor(Log log, DocletTag tag, String fieldName) {
+        super(log, tag);
+
+        this.fieldName = fieldName;
+        jcrName = tag.getNamedParameter(JCR_NAME);
+        isJcrAutoCreated = Boolean.valueOf(
+            tag.getNamedParameter(JCR_AUTO_CREATED)).booleanValue();
+        isJcrMandatory = Boolean.valueOf(tag.getNamedParameter(JCR_MANDATORY)).booleanValue();
+        jcrOnParentVersion = tag.getNamedParameter(JCR_ON_PARENT_VERSION);
+        isJcrProtected = Boolean.valueOf(tag.getNamedParameter(JCR_PROTECTED)).booleanValue();
+    }
+
+    void generate(XMLWriter xmlWriter) {
+        xmlWriter.printAttribute(FIELD_NAME, fieldName);
+        xmlWriter.printAttribute(JCR_NAME, jcrName);
+        xmlWriter.printAttribute(JCR_AUTO_CREATED, isJcrAutoCreated);
+        xmlWriter.printAttribute(JCR_MANDATORY, isJcrMandatory);
+        xmlWriter.printAttribute(JCR_ON_PARENT_VERSION, jcrOnParentVersion);
+        xmlWriter.printAttribute(JCR_PROTECTED, isJcrProtected);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#validate()
+     */
+    boolean validate() {
+        boolean valid = true;
+
+        if (jcrOnParentVersion != null) {
+            if (!jcrOnParentVersion.equals("COPY")
+                && !jcrOnParentVersion.equals("VERSION")
+                && !jcrOnParentVersion.equals("INITIALIZE")
+                && !jcrOnParentVersion.equals("COMPUTE")
+                && !jcrOnParentVersion.equals("IGNORE")
+                && !jcrOnParentVersion.equals("ABORT")) {
+                log("Invalid JCR Field OnParentVersion: " + jcrOnParentVersion);
+                valid = false;
+            }
+        }
+
+        return valid;
+    }
+
+    static String getFieldFromMethod(JavaMethod method) {
+        String fieldName = method.getName();
+        if ((fieldName.startsWith("get") || fieldName.startsWith("set"))
+            && fieldName.length() >= 4) {
+            fieldName = Character.toLowerCase(fieldName.charAt(3))
+                + fieldName.substring(4);
+        }
+        return fieldName;
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
new file mode 100644
index 0000000..d5a1ed1
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/AbstractNodeDescriptor.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+
+/**
+ * The <code>AbstractNodeDescriptor</code> is the base class for mostly node
+ * based descriptors (bean, collection).
+ */
+public class AbstractNodeDescriptor extends AbstractItemDescriptor {
+
+    public static final String PROXY = "proxy";
+
+    public static final String AUTO_RETRIEVE = "autoRetrieve";
+
+    public static final String AUTO_UPDATE = "autoUpdate";
+
+    public static final String AUTO_INSERT = "autoInsert";
+
+    public static final String JCR_NODE_TYPE = "jcrNodeType";
+
+    public static final String JCR_SAME_NAME_SIBBLINGS = "jcrSameNameSiblings";
+
+    private boolean isProxy = true;
+
+    private boolean isAutoRetrieve = true;
+
+    private boolean isAutoUpdate = true;
+
+    private boolean isAutoInsert = true;
+
+    private String jcrNodeType;
+
+    private boolean isJcrSameNameSibblings;
+
+    /**
+     * @param log
+     * @param tag
+     */
+    public AbstractNodeDescriptor(Log log, DocletTag tag, String fieldName) {
+        super(log, tag, fieldName);
+
+        jcrNodeType = tag.getNamedParameter(JCR_NODE_TYPE);
+        isJcrSameNameSibblings = Boolean.valueOf(
+            tag.getNamedParameter(JCR_SAME_NAME_SIBBLINGS)).booleanValue();
+
+        if (tag.getNamedParameter(PROXY) != null) {
+            isProxy = Boolean.valueOf(tag.getNamedParameter(PROXY)).booleanValue();
+        }
+        if (tag.getNamedParameter(AUTO_RETRIEVE) != null) {
+            isAutoRetrieve = Boolean.valueOf(
+                tag.getNamedParameter(AUTO_RETRIEVE)).booleanValue();
+        }
+        if (tag.getNamedParameter(AUTO_UPDATE) != null) {
+            isAutoUpdate = Boolean.valueOf(tag.getNamedParameter(AUTO_UPDATE)).booleanValue();
+        }
+        if (tag.getNamedParameter(AUTO_INSERT) != null) {
+            isAutoInsert = Boolean.valueOf(tag.getNamedParameter(AUTO_INSERT)).booleanValue();
+        }
+    }
+
+    void generate(XMLWriter xmlWriter) {
+        super.generate(xmlWriter);
+
+        xmlWriter.printAttribute(JCR_NODE_TYPE, jcrNodeType);
+        xmlWriter.printAttribute(JCR_SAME_NAME_SIBBLINGS,
+            isJcrSameNameSibblings);
+
+        if (!isProxy) {
+            xmlWriter.printAttribute(PROXY, "false");
+        }
+        if (!isAutoRetrieve) {
+            xmlWriter.printAttribute(AUTO_RETRIEVE, "false");
+        }
+        if (!isAutoUpdate) {
+            xmlWriter.printAttribute(AUTO_UPDATE, "false");
+        }
+        if (!isAutoInsert) {
+            xmlWriter.printAttribute(AUTO_INSERT, "false");
+        }
+    }
+
+    boolean validate() {
+        boolean valid = super.validate();
+
+        // do additional validation
+
+        return valid;
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
new file mode 100644
index 0000000..1f3acbb
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/BeanDescriptor.java
@@ -0,0 +1,121 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaField;
+import com.thoughtworks.qdox.model.JavaMethod;
+
+/**
+ * The <code>BeanDescriptor</code> class provides support for the
+ * bean-descriptor element of a class mapping, which has the following attribute
+ * list definition:
+ * 
+ * <pre>
+ *   &lt;!ATTLIST bean-descriptor
+ *       fieldName CDATA #REQUIRED
+ *       jcrName CDATA #IMPLIED 
+ *       proxy (true | false) &quot;false&quot; 
+ *       autoRetrieve (true|false) &quot;true&quot;
+ *       autoUpdate (true|false) &quot;true&quot;
+ *       autoInsert (true|false) &quot;true&quot;  
+ *       converter CDATA #IMPLIED
+ *       jcrNodeType CDATA #IMPLIED
+ *       jcrAutoCreated (true | false) &quot;false&quot;   
+ *       jcrMandatory (true | false) &quot;false&quot;
+ *       jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) &quot;COPY&quot;
+ *       jcrProtected (true | false) &quot;false&quot;
+ *       jcrSameNameSiblings (true | false) &quot;false&quot;         
+ *   &gt;
+ * </pre>
+ */
+public class BeanDescriptor extends AbstractNodeDescriptor {
+
+    public static final String TAG_BEAN_DESCRIPTOR = "ocm.bean";
+
+    public static final String CONVERTER = "converter";
+
+    public static final String ELEMENT_BEAN_DESCRIPTOR = "bean-descriptor";
+
+    private String converter;
+
+    static BeanDescriptor fromField(Log log, JavaField field) {
+
+        DocletTag tag = field.getTagByName(TAG_BEAN_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        return new BeanDescriptor(log, tag, field.getName());
+    }
+
+    static BeanDescriptor fromMethod(Log log, JavaMethod method) {
+
+        DocletTag tag = method.getTagByName(TAG_BEAN_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        // field name is the method name, unless overwritten with the fieldName
+        // tag
+        String fieldName = tag.getNamedParameter(FIELD_NAME);
+        if (fieldName == null) {
+            fieldName = getFieldFromMethod(method);
+        }
+
+        return new BeanDescriptor(log, tag, fieldName);
+    }
+
+    /**
+     * @param log
+     * @param tag
+     */
+    private BeanDescriptor(Log log, DocletTag tag, String fieldName) {
+        super(log, tag, fieldName);
+
+        converter = tag.getNamedParameter(CONVERTER);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#generate(org.apache.sling.maven.jcrocm.XMLWriter)
+     */
+    void generate(XMLWriter xmlWriter) {
+        xmlWriter.printElementStart(ELEMENT_BEAN_DESCRIPTOR, true);
+        super.generate(xmlWriter);
+
+        xmlWriter.printAttribute(CONVERTER, converter);
+
+        xmlWriter.printElementStartClose(true);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#validate()
+     */
+    boolean validate() {
+        boolean valid = super.validate();
+
+        // do additional validation
+
+        return valid;
+    }
+
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
new file mode 100644
index 0000000..574d756
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/ClassDescriptor.java
@@ -0,0 +1,252 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.StringTokenizer;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaClass;
+
+/**
+ * The <code>ClassDescriptor</code> class provides support for the
+ * class-descriptor element of a class mapping, which has the following
+ * attribute list definition:
+ * 
+ * <pre>
+ *  &lt;!ATTLIST class-descriptor
+ *      className CDATA #REQUIRED
+ *      jcrNodeType CDATA #IMPLIED
+ *      jcrSuperTypes CDATA #IMPLIED
+ *      jcrMixinTypes CDATA #IMPLIED
+ *      extend CDATA #IMPLIED
+ *      abstract (true|false) &quot;false&quot;
+ *      interface (true|false) &quot;false&quot;
+ *      discriminator (true|false) &quot;true&quot;
+ *  &gt;
+ *  &lt;!ATTLIST implement-descriptor
+ *      interfaceName CDATA #REQUIRED
+ *  &gt;
+ * </pre>
+ * 
+ * <p>
+ * Additionally, as can be seen from above, the
+ * <code>implement-descriptor</code> is also supported by this class. It
+ * retrieves the list of interfaces from the described class.
+ * </p>
+ */
+public class ClassDescriptor extends AbstractDescriptorElement {
+
+    public static final String TAG_CLASS_DESCRIPTOR = "ocm.mapped";
+
+    public static final String ELEMENT_CLASS_DESCRIPTOR = "class-descriptor";
+
+    public static final String CLASS_NAME = "className";
+
+    public static final String JCR_NODE_TYPE = "jcrNodeType";
+
+    public static final String JCR_SUPER_TYPES = "jcrSuperTypes";
+
+    public static final String JCR_MIXIN_TYPES = "jcrMixinTypes";
+
+    public static final String EXTEND = "extend";
+    
+    public static final String INTERFACES = "interfaces";
+
+    public static final String ABSTRACT = "abstract";
+
+    public static final String INTERFACE = "interface";
+
+    public static final String DISCRIMINATOR = "discriminator";
+
+    public static final String ELEMENT_IMPLEMENT_DESCRIPTOR = "implement-descriptor";
+
+    public static final String INTERFACE_NAME = "interfaceName";
+
+    private String className;
+
+    private String jcrNodeType;
+
+    private String jcrSuperTypes;
+
+    private String jcrMixinTypes;
+
+    private boolean discriminator = true;
+
+    private String extend;
+
+    private boolean isAbstract;
+
+    private boolean isInterface;
+
+    private Set interfaces;
+
+    private List children;
+
+    static ClassDescriptor fromClass(Log log, JavaClass javaClass) {
+
+        DocletTag tag = javaClass.getTagByName(TAG_CLASS_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        ClassDescriptor cd = new ClassDescriptor(log, tag);
+        cd.className = javaClass.getFullyQualifiedName();
+        cd.isInterface = javaClass.isInterface();
+        cd.isAbstract = !cd.isInterface && javaClass.isAbstract();
+
+        cd.extend = tag.getNamedParameter(EXTEND);
+        if (cd.extend == null) {
+            if (javaClass.getSuperJavaClass() != null) {
+                cd.extend = javaClass.getSuperJavaClass().getFullyQualifiedName();
+
+                // do not declare extending Object :-)
+                if (Object.class.getName().equals(cd.extend)) {
+                    cd.extend = null;
+                }
+            }
+        } else if (cd.extend.length() == 0) {
+            // explicit empty extend value prevents extend attribute from being
+            // set
+            cd.extend = null;
+        }
+
+        String interfaceList = tag.getNamedParameter(INTERFACES);
+        if (interfaceList == null) {
+            if (javaClass.getImplementedInterfaces() != null) {
+                JavaClass[] implInterfaces = javaClass.getImplementedInterfaces();
+                cd.interfaces = new HashSet();
+                for (int i = 0; i < implInterfaces.length; i++) {
+                    cd.interfaces.add(implInterfaces[i].getFullyQualifiedName());
+                }
+            }
+        } else if (interfaceList.length() == 0) {
+            // empty interface list prevents creation of interface element
+            cd.interfaces = null;
+        } else {
+            // split list and create set for interface elements
+            StringTokenizer tokener = new StringTokenizer(interfaceList, ",");
+            cd.interfaces = new HashSet();
+            while (tokener.hasMoreTokens()) {
+                String iface = tokener.nextToken().trim();
+                if (iface.length() > 0) {
+                    cd.interfaces.add(iface);
+                }
+            }
+        }
+
+        cd.jcrNodeType = tag.getNamedParameter(JCR_NODE_TYPE);
+        cd.jcrSuperTypes = tag.getNamedParameter(JCR_SUPER_TYPES);
+        cd.jcrMixinTypes = tag.getNamedParameter(JCR_MIXIN_TYPES);
+
+        // only reset default if explicitly stated
+        if (tag.getNamedParameter(DISCRIMINATOR) != null) {
+            cd.discriminator = Boolean.valueOf(
+                tag.getNamedParameter(DISCRIMINATOR)).booleanValue();
+        }
+
+        return cd;
+    }
+
+    private ClassDescriptor(Log log, DocletTag tag) {
+        super(log, tag);
+    }
+
+    void addChild(AbstractDescriptorElement child) {
+        if (child != null) {
+            if (children == null) {
+                children = new ArrayList();
+            }
+
+            children.add(child);
+        }
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#generate(org.apache.sling.maven.jcrocm.XMLWriter)
+     */
+    void generate(XMLWriter xmlWriter) {
+
+        xmlWriter.println();
+        xmlWriter.printComment("Class: " + className);
+
+        xmlWriter.printElementStart(ELEMENT_CLASS_DESCRIPTOR, true);
+        xmlWriter.printAttribute(CLASS_NAME, className);
+        xmlWriter.printAttribute(JCR_NODE_TYPE, jcrNodeType);
+        xmlWriter.printAttribute(JCR_SUPER_TYPES, jcrSuperTypes);
+        xmlWriter.printAttribute(JCR_MIXIN_TYPES, jcrMixinTypes);
+        xmlWriter.printAttribute(EXTEND, extend);
+        xmlWriter.printAttribute(ABSTRACT, isAbstract);
+        xmlWriter.printAttribute(INTERFACE, isInterface);
+
+        // only write discriminator if false, true is the default here
+        if (!discriminator) {
+            xmlWriter.printAttribute(DISCRIMINATOR, "false");
+        }
+
+        xmlWriter.printElementStartClose(false);
+
+        // interface implementations
+        if (interfaces != null) {
+            for (Iterator ii = interfaces.iterator(); ii.hasNext();) {
+                String iface = (String) ii.next();
+                xmlWriter.println();
+                xmlWriter.printElementStart(ELEMENT_IMPLEMENT_DESCRIPTOR, true);
+                xmlWriter.printAttribute(INTERFACE_NAME, iface);
+                xmlWriter.printElementStartClose(true);
+            }
+        }
+
+        // fields, beans and collections
+        if (children != null) {
+            for (Iterator ci = children.iterator(); ci.hasNext();) {
+                AbstractDescriptorElement child = (AbstractDescriptorElement) ci.next();
+                xmlWriter.println();
+                child.generate(xmlWriter);
+            }
+        }
+
+        xmlWriter.printElementEnd(ELEMENT_CLASS_DESCRIPTOR);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#validate()
+     */
+    boolean validate() {
+        boolean valid = true;
+
+        if (children != null) {
+            if (children != null) {
+                for (Iterator ci = children.iterator(); ci.hasNext();) {
+                    AbstractDescriptorElement child = (AbstractDescriptorElement) ci.next();
+                    valid &= child.validate();
+                }
+            }
+        }
+
+        return valid;
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
new file mode 100644
index 0000000..e18c476
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/CollectionDescriptor.java
@@ -0,0 +1,138 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaField;
+import com.thoughtworks.qdox.model.JavaMethod;
+
+/**
+ * The <code>CollectionDescriptor</code> class provides support for the
+ * collection-descriptor element of a class mapping, which has the following
+ * attribute list definition:
+ * 
+ * <pre>
+ *  &lt;!ATTLIST collection-descriptor
+ *      fieldName CDATA #REQUIRED
+ *      jcrName CDATA #IMPLIED 
+ *      proxy (true | false) &quot;false&quot;
+ *      autoRetrieve (true|false) &quot;true&quot;
+ *      autoUpdate (true|false) &quot;true&quot;
+ *      autoInsert (true|false) &quot;true&quot;  
+ *      elementClassName CDATA #IMPLIED
+ *      collectionClassName CDATA #IMPLIED
+ *      collectionConverter CDATA #IMPLIED
+ *      jcrNodeType CDATA #IMPLIED
+ *      jcrAutoCreated (true | false) &quot;false&quot;   
+ *      jcrMandatory (true | false) &quot;false&quot;
+ *      jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) &quot;COPY&quot;
+ *      jcrProtected (true | false) &quot;false&quot;
+ *      jcrSameNameSiblings (true | false) &quot;false&quot;  
+ *  &gt;
+ * </pre>
+ */
+public class CollectionDescriptor extends AbstractNodeDescriptor {
+
+    public static final String TAG_COLLECTION_DESCRIPTOR = "ocm.collection";
+
+    public static final String ELEMENT_COLLECTION_DESCRIPTOR = "collection-descriptor";
+
+    private static final String ELEMENT_CLASS_NAME = "elementClassName";
+
+    private static final String COLLECTION_CLASS_NAME = "collectionClassName";
+
+    private static final String COLLECTION_CONVERTER = "collectionConverter";
+
+    private String elementClassName;
+
+    private String collectionClassName;
+
+    private String collectionConverter;
+
+    static CollectionDescriptor fromField(Log log, JavaField field) {
+
+        DocletTag tag = field.getTagByName(TAG_COLLECTION_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        return new CollectionDescriptor(log, tag, field.getName());
+    }
+
+    static CollectionDescriptor fromMethod(Log log, JavaMethod method) {
+
+        DocletTag tag = method.getTagByName(TAG_COLLECTION_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        // field name is the method name, unless overwritten with the fieldName
+        // tag
+        String fieldName = tag.getNamedParameter(FIELD_NAME);
+        if (fieldName == null) {
+            fieldName = getFieldFromMethod(method);
+        }
+
+        return new CollectionDescriptor(log, tag, fieldName);
+    }
+
+    /**
+     * @param log
+     * @param tag
+     */
+    public CollectionDescriptor(Log log, DocletTag tag, String fieldName) {
+        super(log, tag, fieldName);
+
+        elementClassName = tag.getNamedParameter(ELEMENT_CLASS_NAME);
+        collectionClassName = tag.getNamedParameter(COLLECTION_CLASS_NAME);
+        collectionConverter = tag.getNamedParameter(COLLECTION_CONVERTER);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#generate(org.apache.sling.maven.jcrocm.XMLWriter)
+     */
+    void generate(XMLWriter xmlWriter) {
+        xmlWriter.printElementStart(ELEMENT_COLLECTION_DESCRIPTOR, true);
+        super.generate(xmlWriter);
+
+        xmlWriter.printAttribute(ELEMENT_CLASS_NAME, elementClassName);
+        xmlWriter.printAttribute(COLLECTION_CLASS_NAME, collectionClassName);
+        xmlWriter.printAttribute(COLLECTION_CONVERTER, collectionConverter);
+
+        xmlWriter.printElementStartClose(true);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#validate()
+     */
+    boolean validate() {
+        boolean valid = super.validate();
+
+        // ensure element class name
+        if (elementClassName == null) {
+            elementClassName = Object.class.getName();
+        }
+
+        return valid;
+    }
+
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
new file mode 100644
index 0000000..740dd14
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/FieldDescriptor.java
@@ -0,0 +1,197 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import org.apache.maven.plugin.logging.Log;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaField;
+import com.thoughtworks.qdox.model.JavaMethod;
+
+/**
+ * The <code>FieldDescriptor</code> class provides support for the
+ * field-descriptor element of a class mapping, which has the following
+ * attribute list definition:
+ * 
+ * <pre>
+ *  &lt;!ATTLIST field-descriptor
+ *      fieldName CDATA #REQUIRED
+ *      fieldType CDATA #IMPLIED
+ *      jcrName CDATA #IMPLIED 
+ *      id (true | false) &quot;false&quot;
+ *      path (true | false) &quot;false&quot;
+ *      uuid (true | false) &quot;false&quot;
+ *      converter CDATA #IMPLIED
+ *      jcrDefaultValue CDATA #IMPLIED
+ *      jcrValueConstraints CDATA #IMPLIED 
+ *      jcrType (String | Date | Long | Double | Boolean | Binary) #IMPLIED
+ *      jcrAutoCreated (true | false) &quot;false&quot;
+ *      jcrMandatory (true | false) &quot;false&quot;
+ *      jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) &quot;COPY&quot;
+ *      jcrProtected (true | false) &quot;false&quot;
+ *      jcrMultiple (true | false) &quot;false&quot;
+ *  &gt;
+ * </pre>
+ */
+public class FieldDescriptor extends AbstractItemDescriptor {
+
+    public static final String TAG_FIELD_DESCRIPTOR = "ocm.field";
+
+    public static final String ELEMENT_FIELD_DESCRIPTOR = "field-descriptor";
+
+    public static final String FIELD_TYPE = "fieldType";
+
+    public static final String ID = "id";
+
+    public static final String PATH = "path";
+
+    public static final String UUID = "uuid";
+
+    public static final String CONVERTER = "converter";
+
+    public static final String JCR_DEFAULT_VALUE = "jcrDefaultValue";
+
+    public static final String JCR_VALUE_CONSTRAINTS = "jcrValueConstraints";
+
+    public static final String JCR_TYPE = "jcrType";
+
+    public static final String JCR_MULTIPLE = "jcrMultiple";
+
+    private String fieldType;
+
+    private boolean isId;
+
+    private boolean isPath;
+
+    private boolean isUuid;
+
+    private String converter;
+
+    private String jcrDefaultValue;
+
+    private String jcrValueConstraints;
+
+    private String jcrType;
+
+    private boolean isJcrMultiple;
+
+    static FieldDescriptor fromField(Log log, JavaField field) {
+
+        DocletTag tag = field.getTagByName(TAG_FIELD_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        // field type is explicitly declared or Java field type
+        String fieldType = tag.getNamedParameter(FIELD_TYPE);
+        if (fieldType == null) {
+            fieldType = field.getType().getJavaClass().getFullyQualifiedName();
+        }
+        
+        return new FieldDescriptor(log, tag, field.getName(),
+            fieldType);
+    }
+
+    static FieldDescriptor fromMethod(Log log, JavaMethod method) {
+
+        DocletTag tag = method.getTagByName(TAG_FIELD_DESCRIPTOR);
+        if (tag == null) {
+            return null;
+        }
+
+        // field name is the method name, unless overwritten with the fieldName
+        // tag
+        String fieldName = tag.getNamedParameter(FIELD_NAME);
+        if (fieldName == null) {
+            fieldName = getFieldFromMethod(method);
+        }
+
+        // field type is explicitly declared or parameter or return value
+        String fieldType = tag.getNamedParameter(FIELD_TYPE);
+        if (fieldType == null) {
+            if (method.getParameters() != null
+                && method.getParameters().length == 1) {
+                fieldType = method.getParameters()[0].getType().getJavaClass().getFullyQualifiedName();
+            } else if (method.getReturns() != null) {
+                fieldType = method.getReturns().getJavaClass().getFullyQualifiedName();
+            }
+        }
+
+        return new FieldDescriptor(log, tag, fieldName, fieldType);
+    }
+
+    private FieldDescriptor(Log log, DocletTag tag, String fieldName,
+            String fieldType) {
+        super(log, tag, fieldName);
+
+        this.fieldType = fieldType;
+
+        isId = Boolean.valueOf(tag.getNamedParameter(ID)).booleanValue();
+        isPath = Boolean.valueOf(tag.getNamedParameter(PATH)).booleanValue();
+        isUuid = Boolean.valueOf(tag.getNamedParameter(UUID)).booleanValue();
+
+        converter = tag.getNamedParameter(CONVERTER);
+        jcrDefaultValue = tag.getNamedParameter(JCR_DEFAULT_VALUE);
+        jcrValueConstraints = tag.getNamedParameter(JCR_VALUE_CONSTRAINTS);
+        jcrType = tag.getNamedParameter(JCR_TYPE);
+        isJcrMultiple = Boolean.valueOf(tag.getNamedParameter(JCR_MULTIPLE)).booleanValue();
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#generate(org.apache.sling.maven.jcrocm.XMLWriter)
+     */
+    void generate(XMLWriter xmlWriter) {
+        xmlWriter.printElementStart(ELEMENT_FIELD_DESCRIPTOR, true);
+
+        super.generate(xmlWriter);
+
+        xmlWriter.printAttribute(FIELD_TYPE, fieldType);
+        xmlWriter.printAttribute(ID, isId);
+        xmlWriter.printAttribute(PATH, isPath);
+        xmlWriter.printAttribute(UUID, isUuid);
+        xmlWriter.printAttribute(CONVERTER, converter);
+        xmlWriter.printAttribute(JCR_DEFAULT_VALUE, jcrDefaultValue);
+        xmlWriter.printAttribute(JCR_VALUE_CONSTRAINTS, jcrValueConstraints);
+        xmlWriter.printAttribute(JCR_TYPE, jcrType);
+        xmlWriter.printAttribute(JCR_MULTIPLE, isJcrMultiple);
+
+        xmlWriter.printElementStartClose(true);
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.sling.maven.jcrocm.AbstractDescriptorElement#validate()
+     */
+    boolean validate() {
+        boolean valid = true;
+
+        if (jcrType != null) {
+            if (!jcrType.equals("String") && !jcrType.equals("Date")
+                && !jcrType.equals("Long") && !jcrType.equals("Double")
+                && !jcrType.equals("Boolean") && !jcrType.equals("Binary")) {
+                log("Invalid JCR Field Type: " + jcrType);
+                valid = false;
+            }
+        }
+
+        valid &= super.validate();
+
+        return valid;
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
new file mode 100644
index 0000000..b6c92ff
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/JcrOcmMojo.java
@@ -0,0 +1,235 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Resource;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.StringUtils;
+
+import com.thoughtworks.qdox.JavaDocBuilder;
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.JavaClass;
+import com.thoughtworks.qdox.model.JavaField;
+import com.thoughtworks.qdox.model.JavaMethod;
+import com.thoughtworks.qdox.model.JavaSource;
+
+/**
+ * The <code>JcrOcmMojo</code> implements the (default) ocm goal of the
+ * <em>maven-jcrocm-plugin</em>. It is by default run in the
+ * <code>generate-resources</code> phase and requires the compile scoped
+ * dependencies to be resolved.
+ *
+ * @goal ocm
+ * @phase generate-resources
+ * @description Build Jackrabbit OCM Descriptors from Java Source
+ * @requiresDependencyResolution compile
+ */
+public class JcrOcmMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${project.build.directory}/sling-generated"
+     * @required
+     * @readonly
+     */
+    private File outputDirectory;
+
+    /**
+     * The Maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * Name and path of the generated descriptor.
+     *
+     * @parameter expression="${jcrocm.descriptor.name}" default-value="mappings.xml"
+     */
+    private String finalName;
+
+    public void execute() throws MojoFailureException {
+
+        boolean hasFailures = false;
+
+        // prepare QDox and prime with the compile class path of the project
+        JavaDocBuilder builder = new JavaDocBuilder();
+        try {
+            builder.getClassLibrary().addClassLoader(this.getCompileClassLoader());
+        } catch (IOException ioe) {
+            throw new MojoFailureException("Cannot prepare QDox");
+        }
+
+        // add the sources from the project
+        for (Iterator i = this.project.getCompileSourceRoots().iterator(); i.hasNext();) {
+            try {
+                builder.addSourceTree(new File((String) i.next()));
+            } catch (OutOfMemoryError oome) {
+                // this may be the case for big sources and not enough VM mem
+                builder = null; // drop the builder to help GC now
+                
+                // fail with some explanation
+                throw new MojoFailureException(
+                    "Failed analyzing source due to not enough memory, try setting Max Heap Size higher, e.g. using MAVEN_OPTS=-Xmx128m");
+            }
+        }
+
+        // parse the sources and get them
+        JavaSource[] javaSources = builder.getSources();
+        List descriptors = new ArrayList();
+        for (int i = 0; i < javaSources.length; i++) {
+            JavaClass[] javaClasses = javaSources[i].getClasses();
+            for (int j = 0; javaClasses != null && j < javaClasses.length; j++) {
+                DocletTag tag = javaClasses[j].getTagByName(ClassDescriptor.TAG_CLASS_DESCRIPTOR);
+                if (tag != null) {
+                    ClassDescriptor descriptor = this.createClassDescriptor(javaClasses[j]);
+                    if (descriptor != null) {
+                        descriptors.add(descriptor);
+                    } else {
+                        hasFailures = true;
+                    }
+                }
+            }
+        }
+
+        // after checking all classes, throw if there were any failures
+        if (hasFailures) {
+            throw new MojoFailureException("Jackrabbit OCM Descriptor parsing had failures (see log)");
+        }
+
+        // terminate if there is nothing to write
+        if (descriptors.isEmpty()) {
+            this.getLog().info("No Jackrabbit OCM Descriptors found in project");
+            return;
+        }
+
+        // finally the descriptors have to be written ....
+        if (StringUtils.isEmpty(this.finalName)) {
+            this.getLog().error("Descriptor file name must not be empty");
+            return;
+        }
+
+        // prepare the descriptor output file
+        File descriptorFile = new File(new File(this.outputDirectory, "SLING-INF"), this.finalName);
+        descriptorFile.getParentFile().mkdirs(); // ensure parent dir
+
+        this.getLog().info("Generating " + descriptors.size()
+            + " OCM Mapping Descriptors to " + descriptorFile);
+
+        // write out all the class descriptors in parse order
+        FileOutputStream descriptorStream = null;
+        XMLWriter xw = null;
+        try {
+            descriptorStream = new FileOutputStream(descriptorFile);
+            xw = new XMLWriter(descriptorStream, false);
+            xw.printElementStart("graffito-jcr", false);
+            for (Iterator di=descriptors.iterator(); di.hasNext(); ) {
+                ClassDescriptor sd = (ClassDescriptor) di.next();
+                sd.generate(xw);
+            }
+            xw.printElementEnd("graffito-jcr");
+
+        } catch (IOException ioe) {
+            hasFailures = true;
+            this.getLog().error("Cannot write descriptor to " + descriptorFile, ioe);
+            throw new MojoFailureException("Failed to write descriptor to " + descriptorFile);
+        } finally {
+            IOUtil.close(xw);
+            IOUtil.close(descriptorStream);
+
+            // remove the descriptor file in case of write failure
+            if (hasFailures) {
+                descriptorFile.delete();
+            }
+        }
+
+        // now add the descriptor file to the maven resources
+        final String ourRsrcPath = this.outputDirectory.getAbsolutePath();
+        boolean found = false;
+        final Iterator rsrcIterator = this.project.getResources().iterator();
+        while ( !found && rsrcIterator.hasNext() ) {
+            final Resource rsrc = (Resource)rsrcIterator.next();
+            found = rsrc.getDirectory().equals(ourRsrcPath);
+        }
+        if ( !found ) {
+            final Resource resource = new Resource();
+            resource.setDirectory(this.outputDirectory.getAbsolutePath());
+            this.project.addResource(resource);
+        }
+        // and set include accordingly
+        this.project.getProperties().setProperty("Sling-Mappings", "SLING-INF/" + this.finalName);
+    }
+
+    /**
+     * Creates an URL class loader containing all compile artifacts.
+     *
+     * @return The URLClassLoader for the compile artifacts.
+     * @throws IOException If any error occurrs creating URLs for the compile
+     *             artifact files.
+     */
+    private ClassLoader getCompileClassLoader() throws IOException {
+        List artifacts = this.project.getCompileArtifacts();
+        URL[] path = new URL[artifacts.size()];
+        int i = 0;
+        for (Iterator ai=artifacts.iterator(); ai.hasNext(); ) {
+            Artifact a = (Artifact) ai.next();
+            path[i++] = a.getFile().toURI().toURL();
+        }
+        return new URLClassLoader(path);
+    }
+
+    private ClassDescriptor createClassDescriptor(JavaClass javaClass) {
+
+        // create the class descriptor for the java class, return early if none
+        ClassDescriptor cd = ClassDescriptor.fromClass(this.getLog(), javaClass);
+        if (cd == null) {
+            return null;
+        }
+
+        // analyze fields for mapping descriptors
+        JavaField[] fields = javaClass.getFields();
+        for (int i=0; fields != null && i < fields.length; i++) {
+            cd.addChild(FieldDescriptor.fromField(this.getLog(), fields[i]));
+            cd.addChild(BeanDescriptor.fromField(this.getLog(), fields[i]));
+            cd.addChild(CollectionDescriptor.fromField(this.getLog(), fields[i]));
+        }
+
+        // analyze methods for mapping descriptors
+        JavaMethod[] methods = javaClass.getMethods();
+        for (int i=0; methods != null && i < methods.length; i++) {
+            cd.addChild(FieldDescriptor.fromMethod(this.getLog(), methods[i]));
+            cd.addChild(BeanDescriptor.fromMethod(this.getLog(), methods[i]));
+            cd.addChild(CollectionDescriptor.fromMethod(this.getLog(), methods[i]));
+        }
+
+        // return nothing if validation fails
+        return cd.validate() ? cd : null;
+    }
+}
diff --git a/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java b/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java
new file mode 100644
index 0000000..f81527d
--- /dev/null
+++ b/src/main/java/org/apache/sling/maven/jcrocm/XMLWriter.java
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2007 The Apache Software Foundation.
+ * 
+ * Licensed 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.sling.maven.jcrocm;
+
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
+
+import org.codehaus.plexus.util.StringUtils;
+
+public class XMLWriter extends PrintWriter {
+
+    String indent = "";
+
+    XMLWriter(OutputStream descriptorStream, boolean append) throws IOException {
+        super(new OutputStreamWriter(descriptorStream, "UTF-8"));
+
+        if (!append) {
+            println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
+        }
+    }
+
+    private void indent() {
+        indent += "  ";
+    }
+
+    private void outdent() {
+        if (indent.length() >= 2) {
+            indent = indent.substring(2);
+        }
+    }
+
+    void printComment(String message) {
+        print  (indent);
+        println("<!--");
+        print  (indent);
+        print  ("    ");
+        println(message);
+        print  (indent);
+        println("-->");
+    }
+    
+    void printElementStart(String name, boolean hasAttributes) {
+        print(indent);
+        print("<");
+        print(name);
+        if (!hasAttributes) {
+            printElementStartClose(false);
+        }
+        indent();
+    }
+
+    void printElementStartClose(boolean isEmpty) {
+        if (isEmpty) {
+            print(" /");
+            outdent();
+        }
+        println('>');
+    }
+
+    void printElementEnd(String name) {
+        outdent();
+        print(indent);
+        print("</");
+        print(name);
+        println('>');
+    }
+
+    void printAttribute(String name, String value) {
+        if (!StringUtils.isEmpty(name) && value != null) {
+            println();
+            print(indent);
+            print(' ');
+            print(name);
+            print("=\"");
+            print(value);
+            print('"');
+        }
+    }
+
+    void printAttribute(String name, boolean value) {
+        if (value) {
+            printAttribute(name, "true");
+        }
+    }
+}
diff --git a/src/main/resources/META-INF/LICENSE b/src/main/resources/META-INF/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/src/main/resources/META-INF/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
diff --git a/src/main/resources/META-INF/NOTICE b/src/main/resources/META-INF/NOTICE
new file mode 100644
index 0000000..4894d83
--- /dev/null
+++ b/src/main/resources/META-INF/NOTICE
@@ -0,0 +1,8 @@
+Apache Sling
+Copyright 2007 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+Based on source code originally developed by
+Day Software (http://www.day.com/).

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

[sling-maven-jcrocm-plugin] 20/32: SLING-495 - NOTICE files generated using mknotice script

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit baec2b097fb3c26188b93ce861362805fa0b1fba
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue Jun 3 12:24:26 2008 +0000

    SLING-495 - NOTICE files generated using mknotice script
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@662766 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/NOTICE b/NOTICE
index fa2293a..a655ded 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,23 +1,19 @@
-Apache Sling Maven JCROCM Plugin
+Apache Sling - Maven Plugin to create Jackrabbit OCM descriptors
 Copyright 2007-2008 The Apache Software Foundation
 
 Based on source code originally developed by
 Day Software (http://www.day.com/).
 
-
-I. Included Software
-
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 Licensed under the Apache License 2.0.
 
+See http://www.apache.org/legal/3party.html for the ASF policy on 
+third-party licenses.
 
-II. Used Software
-
-This product uses software developed at
-The Codehaus (http://www.codehaus.org)
-Licensed under the Apache License 2.0.
+This product includes software developed at codehaus.org, under BSD-like 
+license.
 
+This product includes software developed at qdox.codehaus.org, under 
+Apache License.
 
-III. License Summary
-- Apache License 2.0

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

[sling-maven-jcrocm-plugin] 29/32: SLING-521: Separate between notice files for bin and src dists.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit d16441437b33620a99b6f0f3c8d7d560a2cc3f23
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri Jun 13 13:43:34 2008 +0000

    SLING-521: Separate between notice files for bin and src dists.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@667538 13f79535-47bb-0310-9956-ffa450edef68
---
 README.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.txt b/README.txt
index 56c8537..da6ae9f 100644
--- a/README.txt
+++ b/README.txt
@@ -1,7 +1,8 @@
 Apache Sling Maven JCROCM Plugin
 
-WE NEED A LOT MORE HERE!!!!!!!!!!!!!!!!!!
-
+The Maven JcrOCM Plugin supports extracting and generation of
+Jackrabbit OCM descriptors from JavaDoc tags embedded in the
+Java Classes contained in the project sources
 
 Disclaimer
 ==========

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

[sling-maven-jcrocm-plugin] 18/32: Eclude maven-eclipse.xml generated by the maven eclipse plugin.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 75195d51e5663f31189a71c91610d8d9ef99146f
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon May 5 07:09:17 2008 +0000

    Eclude maven-eclipse.xml generated by the maven eclipse plugin.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@653322 13f79535-47bb-0310-9956-ffa450edef68

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

[sling-maven-jcrocm-plugin] 04/32: Ignore Eclipse .settings

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit f1585018feb676ef70566f50e3b1c45f03c099b1
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Tue Sep 11 14:25:31 2007 +0000

    Ignore Eclipse .settings
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574614 13f79535-47bb-0310-9956-ffa450edef68

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

[sling-maven-jcrocm-plugin] 32/32: Move Sling to new TLP location

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit d5f77d4a54869ddfd3e3e17b03f5e8f4385fda6c
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Thu Jun 18 09:21:02 2009 +0000

    Move Sling to new TLP location
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/tags/maven-jcrocm-plugin-2.0.2-incubator@785979 13f79535-47bb-0310-9956-ffa450edef68

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

[sling-maven-jcrocm-plugin] 19/32: SLING-483: Add excludes for javadocs (WiP)

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 68693f534822bda57f32a013f6990b409eb92c9a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Fri May 30 09:30:24 2008 +0000

    SLING-483: Add excludes for javadocs (WiP)
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@661615 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index 9ad059b..fdfd107 100644
--- a/pom.xml
+++ b/pom.xml
@@ -58,6 +58,16 @@
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-plugin-plugin</artifactId>
 			</plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                  <!-- No javadocs -->
+                    <excludePackageNames>
+                        org.apache.sling
+                    </excludePackageNames>
+                </configuration>
+            </plugin>
 		</plugins>
 	</reporting>
 

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

[sling-maven-jcrocm-plugin] 17/32: Update notice files for maven plugins.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 0a51c92076a9c302bda8dcd69d6d97b1ce87efe9
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Apr 16 06:26:25 2008 +0000

    Update notice files for maven plugins.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@648548 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/NOTICE b/NOTICE
index 218af80..fa2293a 100644
--- a/NOTICE
+++ b/NOTICE
@@ -4,7 +4,20 @@ Copyright 2007-2008 The Apache Software Foundation
 Based on source code originally developed by
 Day Software (http://www.day.com/).
 
+
+I. Included Software
+
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 Licensed under the Apache License 2.0.
 
+
+II. Used Software
+
+This product uses software developed at
+The Codehaus (http://www.codehaus.org)
+Licensed under the Apache License 2.0.
+
+
+III. License Summary
+- Apache License 2.0

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

[sling-maven-jcrocm-plugin] 22/32: SLING-495 - NOTICE files regenerated with revision 663097 changes

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit a12091e2c1b8dbeb5b8cd0250c6bef4d634636a8
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Wed Jun 4 13:50:29 2008 +0000

    SLING-495 - NOTICE files regenerated with revision 663097 changes
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@663098 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/NOTICE b/NOTICE
index 158f524..a97014b 100644
--- a/NOTICE
+++ b/NOTICE
@@ -6,6 +6,6 @@ Copyright 2008 The Apache Software Foundation
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
 
-Based on source code originally developed by
-Day Software (http://www.day.com/).
+Apache Sling is based on source code originally developed 
+by Day Software (http://www.day.com/).
 

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

[sling-maven-jcrocm-plugin] 27/32: SLING-521: Restore plugin notice files.

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit a3402b467d7ca0bcbc2fcc440904dd3ede5fb94b
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Jun 10 14:11:59 2008 +0000

    SLING-521: Restore plugin notice files.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven/maven-jcrocm-plugin@666117 13f79535-47bb-0310-9956-ffa450edef68
---
 NOTICE | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/NOTICE b/NOTICE
index a97014b..ab7ff77 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,11 +1,25 @@
-Apache Sling - Maven Plugin to create Jackrabbit OCM descriptors
+Apache Sling Maven JCROCM Plugin
+Copyright 2007-2008 The Apache Software Foundation
+
+Apache Sling is based on source code originally developed 
+by Day Software (http://www.day.com/).
 
-Apache Sling
-Copyright 2008 The Apache Software Foundation
+
+I. Included Software
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+
+II. Used Software
+
+This product uses software developed at
+The Codehaus (http://www.codehaus.org)
+Licensed under the Apache License 2.0.
+
+
+III. License Summary
+- Apache License 2.0
 
-Apache Sling is based on source code originally developed 
-by Day Software (http://www.day.com/).
 

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

[sling-maven-jcrocm-plugin] 02/32: Ignore Eclipse and build artifacts

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

rombert pushed a commit to annotated tag maven-jcrocm-plugin-2.0.2-incubator
in repository https://gitbox.apache.org/repos/asf/sling-maven-jcrocm-plugin.git

commit 9297bae0a40070bd714b4b6a16ee4ed2762db35a
Author: Felix Meschberger <fm...@apache.org>
AuthorDate: Mon Sep 10 13:17:30 2007 +0000

    Ignore Eclipse and build artifacts
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/maven-jcrocm-plugin@574241 13f79535-47bb-0310-9956-ffa450edef68

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