Author: Alex.Kolonitsky
Date: 2010-06-10 11:42:02 -0400 (Thu, 10 Jun 2010)
New Revision: 17596
Added:
root/archetypes/richfaces-component/trunk/readme.txt
Modified:
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/api/pom.xml
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/readme.txt
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/META-INF/maven/archetype-metadata.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/bom/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/api/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/impl/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/ui/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/parent/pom.xml
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/pom.xml
Log:
RFPL-602 Update component module archetypes
Added: root/archetypes/richfaces-component/trunk/readme.txt
===================================================================
--- root/archetypes/richfaces-component/trunk/readme.txt (rev 0)
+++ root/archetypes/richfaces-component/trunk/readme.txt 2010-06-10 15:42:02 UTC (rev
17596)
@@ -0,0 +1,31 @@
+RichFaces 4 Archetype
+
+This archetype creates a folder/pom.xml structure for component (like in tables)
+
+/<artifact-id>
+ /api
+ src/main/java
+ pom.xml
+ /impl
+ src/main/java
+ pom.xml
+ /ui
+ src/main/java
+ pom.xml
+ pom.xml
+
+
+To generate a project from the archetype, run
+
+mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes
-DarchetypeArtifactId=richfaces-component
+ -Dcategory=<version> -Dname=<name>
+
+in such case will be created artifacts with:
+ category : <category>
+ name : <name>
+ groupId : org.richfaces.ui.<category>
+ artifact : <category>-<name>
+ version : 4.0.0-SNAPSHOT
+
+TODO link to wiki page
+TODO example with panels
\ No newline at end of file
Modified:
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/api/pom.xml
===================================================================
---
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/api/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/api/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -25,10 +25,11 @@
<parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${name}-aggregator</artifactId>
+ <artifactId>${artifactId}-aggregator</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
+ <groupId>${groupId}.${category}</groupId>
<artifactId>${artifactId}-api</artifactId>
<name>Richfaces UI Components: ${artifactId} api</name>
<packaging>jar</packaging>
Modified:
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/pom.xml
===================================================================
---
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-component/trunk/src/main/resources/archetype-resources/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -28,9 +28,10 @@
<version>4.0.0-SNAPSHOT</version>
</parent>
+ <groupId>${groupId}.${category}</groupId>
<artifactId>${artifactId}-aggregator</artifactId>
<packaging>pom</packaging>
- <name>Richfaces UI Components: ${name} aggregator</name>
+ <name>Richfaces UI Components: ${artifactId} aggregator</name>
<modules>
<module>api</module>
Modified: root/archetypes/richfaces-components-aggregator/trunk/readme.txt
===================================================================
--- root/archetypes/richfaces-components-aggregator/trunk/readme.txt 2010-06-10 14:22:51
UTC (rev 17595)
+++ root/archetypes/richfaces-components-aggregator/trunk/readme.txt 2010-06-10 15:42:02
UTC (rev 17596)
@@ -1,9 +1,33 @@
RichFaces 4 Archetype
+This archetype creates a folder/pom.xml structure for component (like in tables)
-This archetype creates a simple RichFaces 4 application. To generate a project from the
archetype, run
+/<category>
+ /bom
+ pom.xml
+ /parent
+ pom.xml
+ /dist
+ /api
+ pom.xml
+ /impl
+ pom.xml
+ /ui
+ pom.xml
+ pom.xml
+ pom.xml
- mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes
-DarchetypeArtifactId=richfaces-components-aggregator
- -DarchetypeVersion=<version> -DgroupId=<yourGroupId>
-DartifactId=<yourArtifactId> -Dversion=1.0-SNAPSHOT
+To generate a project from the archetype, run
+mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes
-DarchetypeArtifactId=richfaces-components-aggregator
+ -Dcategory=<category>
+
+in such case will be created artifacts with:
+ category : <category>
+ groupId : org.richfaces.ui.<category>
+ artifact : <category>-<name>
+ version : 4.0.0-SNAPSHOT
+
+TODO link to wiki page
+TODO example with panels
\ No newline at end of file
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/META-INF/maven/archetype-metadata.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/META-INF/maven/archetype-metadata.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/META-INF/maven/archetype-metadata.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -30,7 +30,7 @@
<defaultValue>components</defaultValue>
</requiredProperty>
<requiredProperty key="artifactId">
- <defaultValue>richfaces-ui-${category}</defaultValue>
+ <defaultValue>${category}</defaultValue>
</requiredProperty>
<requiredProperty key="version">
<defaultValue>4.0.0-SNAPSHOT</defaultValue>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -1 +1,73 @@
-remove this file, it is maven-archetype-plugin bug
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the
+ copyright.txt in the distribution for a full listing of
+ individual contributors. This is free software; you can
+ redistribute it and/or modify it under the terms of the GNU
+ Lesser General Public License as published by the Free Software
+ Foundation; either version 2.1 of the License, or (at your
+ option) any later version. This software is distributed in the
+ hope that it will be useful, but WITHOUT ANY WARRANTY; without
+ even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ for more details. You should have received a copy of the GNU
+ Lesser General Public License along with this software; if not,
+ write to the Free Software Foundation, Inc., 51 Franklin St,
+ Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site:
+
http://www.fsf.org.
+-->
+
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-parent</artifactId>
+ <version>7</version>
+ </parent>
+
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>${category}-aggregator</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Richfaces UI Components: ${category} aggregator</name>
+
+ <modules>
+ <module>bom</module>
+ <module>parent</module>
+ <module>dist</module>
+ </modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <!-- The dist requires clean install for prepare -->
+ <preparationGoals>clean install</preparationGoals>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <!-- The dist requires clean install for prepare -->
+ <preparationGoals>clean install</preparationGoals>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <scm>
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
+ <
url>http://fisheye.jboss.org/browse/richfaces</url>
+ </scm>
+</project>
\ No newline at end of file
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/bom/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/bom/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/bom/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -29,9 +29,9 @@
</parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${artifactId}-bom</artifactId>
+ <artifactId>richfaces-ui-${category}-bom</artifactId>
<version>4.0.0-SNAPSHOT</version>
- <name>Richfaces UI Components: ${category} BOM</name>
+ <name>Richfaces UI Components: ${category} bom</name>
<packaging>pom</packaging>
<properties>
@@ -50,17 +50,17 @@
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-ui</artifactId>
+ <artifactId>richfaces-ui-${artifactId}-ui</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-impl</artifactId>
+ <artifactId>richfaces-ui-${artifactId}-impl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-api</artifactId>
+ <artifactId>richfaces-ui-${artifactId}-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/api/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/api/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/api/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -21,15 +21,15 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>${groupId}</groupId>
- <artifactId>${artifactId}-assembler</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-parent</artifactId>
<version>${version}</version>
</parent>
<groupId>${groupId}</groupId>
- <artifactId>${artifactId}-api</artifactId>
+ <artifactId>richfaces-ui-${category}-api</artifactId>
<packaging>jar</packaging>
- <name>Richfaces UI Iteration API</name>
+ <name>Richfaces UI ${category} api</name>
<properties>
<assembly.projects.group>${groupId}.${category}</assembly.projects.group>
@@ -39,8 +39,8 @@
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>${groupId}.${artifactId}</groupId>
- <artifactId>${artifactId}-bom</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
@@ -145,8 +145,8 @@
</profiles>
<scm>
-
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
-
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
<
url>http://fisheye.jboss.org/browse/richfaces</url>
</scm>
</project>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/impl/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/impl/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/impl/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -21,16 +21,15 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>${groupId}</groupId>
- <artifactId>${category}-assembler</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-parent</artifactId>
<version>${version}</version>
</parent>
<groupId>${groupId}</groupId>
- <artifactId>${artifactId}</artifactId>
- <version>${version}</version>
+ <artifactId>richfaces-ui-${category}-impl</artifactId>
<packaging>jar</packaging>
- <name>Richfaces UI Iteration API</name>
+ <name>Richfaces UI ${category} api</name>
<properties>
<assembly.projects.group>${groupId}.${category}</assembly.projects.group>
@@ -40,8 +39,8 @@
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>${groupId}.${artifactId}</groupId>
- <artifactId>${artifactId}-bom</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
@@ -55,7 +54,7 @@
<!-- artifacts for javadoc generation -->
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-api</artifactId>
+ <artifactId>richfaces-ui-${artifactId}-api</artifactId>
<version>${project.version}</version>
</dependency>
@@ -153,8 +152,8 @@
</profiles>
<scm>
-
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
-
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
<
url>http://fisheye.jboss.org/browse/richfaces</url>
</scm>
</project>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -23,13 +23,12 @@
<parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${category}-parent</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <artifactId>richfaces-ui-${category}-parent</artifactId>
+ <version>${version}</version>
</parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${artifactId}-assembler</artifactId>
- <version>4.0.0-SNAPSHOT</version>
+ <artifactId>richfaces-ui-${artifactId}-assembler</artifactId>
<packaging>pom</packaging>
<name>Richfaces UI ${category} assembler</name>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/ui/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/ui/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/dist/ui/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -22,16 +22,15 @@
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>${groupId}</groupId>
- <artifactId>${artifactId}-assembler</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-parent</artifactId>
<version>${version}</version>
</parent>
<groupId>${groupId}</groupId>
- <artifactId>${artifactId}</artifactId>
- <version>${version}</version>
+ <artifactId>richfaces-ui-${category}-ui</artifactId>
<packaging>jar</packaging>
- <name>Richfaces UI Iteration UI</name>
+ <name>Richfaces UI ${category} ui</name>
<properties>
<assembly.projects.group>${groupId}.${category}</assembly.projects.group>
@@ -41,8 +40,8 @@
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>${groupId}.${artifactId}</groupId>
- <artifactId>${artifactId}-bom</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
@@ -56,7 +55,7 @@
<!-- artifacts for javadoc generation -->
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-impl</artifactId>
+ <artifactId>richfaces-ui-${category}-impl</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
@@ -199,8 +198,8 @@
</profiles>
<scm>
-
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
-
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/ui/${...
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/root...
<
url>http://fisheye.jboss.org/browse/richfaces</url>
</scm>
</project>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/parent/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/parent/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/parent/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -29,7 +29,7 @@
</parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${category}-parent</artifactId>
+ <artifactId>richfaces-ui-${category}-parent</artifactId>
<version>${version}</version>
<name>Richfaces UI Components: ${category} parent</name>
<packaging>pom</packaging>
@@ -42,8 +42,8 @@
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>${artifactId}-bom</artifactId>
+ <groupId>${groupId}.${category}</groupId>
+ <artifactId>richfaces-ui-${category}-bom</artifactId>
<version>${project.version}</version>
<scope>import</scope>
<type>pom</type>
Modified:
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/pom.xml
===================================================================
---
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/pom.xml 2010-06-10
14:22:51 UTC (rev 17595)
+++
root/archetypes/richfaces-components-aggregator/trunk/src/main/resources/archetype-resources/trunk/pom.xml 2010-06-10
15:42:02 UTC (rev 17596)
@@ -29,10 +29,10 @@
</parent>
<groupId>${groupId}.${category}</groupId>
- <artifactId>${artifactId}-aggregator</artifactId>
+ <artifactId>${category}-aggregator</artifactId>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
- <name>Richfaces UI Components: ${category} Aggregator</name>
+ <name>Richfaces UI Components: ${category} aggregator</name>
<modules>
<module>bom</module>