Author: artdaw
Date: 2008-07-10 08:57:41 -0400 (Thu, 10 Jul 2008)
New Revision: 9509
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml
Log:
http://jira.jboss.com/jira/browse/RF-3692 - Setting up the environment, Creating project
for component, Creating and building component skeleton sections were fixed
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-10 12:53:45 UTC
(rev 9508)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-10 12:57:41 UTC
(rev 9509)
@@ -9,7 +9,7 @@
<keyword>Guide</keyword>
</keywordset>
</sectioninfo>
- <title>Creating and building component</title>
+ <title>Creating and building component skeleton</title>
<para>
Let's create a skeleton for the <emphasis
role="bold"><property><inputDate></property></emphasis>
component.
</para>
@@ -51,7 +51,7 @@
<para>
This command generates and compiles the library and then creates a result JAR
file.
A directory named <property>target</property> will be created along
with a <property>src</property> directory.
- If you get a file named
<property>target/mylib-1.0-SNAPSHOT.jar</property>, everything is set up
successfully.
+ If you get a file named
<property>target/inputDate-1.0-SNAPSHOT.jar</property>, everything is set up
successfully.
</para>
</section>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-10 12:53:45 UTC
(rev 9508)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-10 12:57:41 UTC
(rev 9509)
@@ -78,6 +78,86 @@
</tbody>
</tgroup>
</table>
+ <para>
+ Now you should add <property>maven-compiler-plugin</property>
+ to the <property>plugins</property> section in the
<property>inputDate/pom.xml</property> file:
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <inherited>true</inherited>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+</plugin>
+...]]>
+ </programlisting>
+ <para>
+ Finally your <property>inputDate/pom.xml</property> should look like
this one:
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <artifactId>sandbox</artifactId>
+ <groupId>org.mycompany</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.mycompany</groupId>
+ <artifactId>inputDate</artifactId>
+ <name>inputDate</name>
+ <version>1.0-SNAPSHOT</version>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.2.1.GA</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.mycompany</prefix>
+ <taglib>
+ <shortName>inputDate</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <inherited>true</inherited>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.2.1.GA</version>
+ </dependency>
+ </dependencies>
+</project>
+...]]>
+ </programlisting>
</section>
Modified: trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml 2008-07-10 12:53:45 UTC (rev
9508)
+++ trunk/docs/cdkguide/en/src/main/docbook/modules/setup.xml 2008-07-10 12:57:41 UTC (rev
9509)
@@ -48,6 +48,12 @@
<id>cdk</id>
<repositories>
<repository>
+ <id>maven2-repository.dev.java.net</id>
+ <
name>Java.net Repository for Maven</name>
+ <
url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
<releases>
<enabled>true</enabled>
</releases>
@@ -84,7 +90,7 @@
</snapshots>
<id>repository.jboss.com</id>
<name>Jboss Repository for Maven</name>
- <url>
http://repository.jboss.com/maven2/ </url>
+ <
url>http://repository.jboss.com/maven2/ </url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
@@ -128,39 +134,75 @@
</para>
<programlisting role="XML"><![CDATA[...
<?xml version="1.0" encoding="UTF-8"?>
-<project
-
xmlns="http://maven.apache.org/POM/4.0.0"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.mycompany</groupId>
- <artifactId>sandbox</artifactId>
- <url>http://mycompany.org</url>
- <version>1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <dependencies>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.4</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-ui</artifactId>
- <version>3.2.1</version>
- </dependency>
- </dependencies>
+<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>
+ <groupId>org.mycompany</groupId>
+ <artifactId>sandbox</artifactId>
+ <url>http://mycompany.org</url>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_07</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.2_07</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>el-impl</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.2.1.GA</version>
+ </dependency>
+ </dependencies>
</project>
...]]>
</programlisting>
- </listitem>
+ </listitem>
+ <listitem>
+ <para>
+ Close the file
+ </para>
+ </listitem>
</itemizedlist>
<para>
Here are some of these elements with descriptions: