Commits

rainerh  committed 9a8e630

Adding assembly goal configuration for Maven build
o all, src and lib assembly
o added reports to site
o including maven created site in all assembly

PROBLEM: javadoc:javadoc goal (strange ClassCastExceptions on OSX)

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1224e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 292cc52

Comments (0)

Files changed (4)

         </mailingList>
     </mailingLists>
     <scm>
-        <connection>:pserver:[username]@cvs.dev.java.net:/cvs/xwork</connection>
-        <url>https://xwork.dev.java.net/source/browse/xwork/</url>
+        <connection>scm:svn:http://svn.opensymphony.com/svn/xwork/trunk</connection>
+        <developerConnection>
+            scm:svn:https://svn.opensymphony.com/svn/xwork/trunk
+        </developerConnection>
+        <url>https://svn.opensymphony.com/svn/xwork/trunk</url>
     </scm>
     <licenses>
         <license>
         </license>
     </licenses>
 
-	<profiles>
-	 	<profile>
-	    	<!-- 
-	    		Run the translator for Java 1.4 compatiblity
-	    		
-	    		OS/X Sample:
-	    		$ cd xwork/
-	    		$ mvn clean install -Pj4 -Djava14.jar=$JAVA_HOME/../Classes/classes.jar
-	    	
-	    	 -->
-	      <id>j4</id>
-	      <build>
-	        <plugins>
-	          <plugin>
-	            <groupId>org.codehaus.mojo</groupId>
-	            <artifactId>retrotranslator-maven-plugin</artifactId>
-	            <executions>
-	              <execution>
-	                <id>retrotranslate</id>
-	              </execution>
-	            </executions>
-	          </plugin>
-	          <plugin>
-	            <artifactId>maven-jar-plugin</artifactId>
-	            <executions>
-	              <execution>
-	                <id>create-j4-jar</id>
-	                <goals><goal>jar</goal></goals>
-	                <configuration>
-	                  <classesDirectory>${project.build.directory}/classes-retro</classesDirectory>
-	                  <classifier>j4</classifier>
-	                  <archive>
-	                    <manifestEntries>
-	                      <Extension-Name>${project.artifactId}-j4</Extension-Name>
-	                      <Specification-Vendor>${project.organization.name}</Specification-Vendor>
-	                      <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
-	                      <Implementation-Title>${project.description}</Implementation-Title>
-	                      <Implementation-Version>${project.version}</Implementation-Version>
-	                      <Revision>${scm.revision}</Revision>
-	                    </manifestEntries>
-	                   </archive>
-	                </configuration>
-	              </execution>
-	            </executions>
-	          </plugin>
-	        </plugins>
-	      </build>
-	       <dependencies>
-	        <dependency>
-	          <groupId>sun.jdk</groupId>
-	          <artifactId>rt</artifactId>
-	          <version>1.4.0</version>
-	          <scope>system</scope>
-	          <!-- path to rt.jar (on OSX, it's classes.jar) -->
-	          <systemPath>${java14.jar}</systemPath>
-	        </dependency>
-	        <dependency>
-	          <groupId>net.sf.retrotranslator</groupId>
-	          <artifactId>retrotranslator-runtime</artifactId>
-	          <version>1.0.8</version>
-	        </dependency>
-	      </dependencies>
-	    </profile>
-	</profiles>
+    <profiles>
+        <profile>
+            <!--
+                   Run the translator for Java 1.4 compatiblity
+
+                   OS/X Sample:
+                   $ cd xwork/
+                   $ mvn clean install -Pj4 -Djava14.jar=$JAVA_HOME/../Classes/classes.jar
+
+                -->
+            <id>j4</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>retrotranslator-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>retrotranslate</id>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <artifactId>maven-jar-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>create-j4-jar</id>
+                                <goals>
+                                    <goal>jar</goal>
+                                </goals>
+                                <configuration>
+                                    <classesDirectory>${project.build.directory}/classes-retro</classesDirectory>
+                                    <classifier>j4</classifier>
+                                    <archive>
+                                        <manifestEntries>
+                                            <Extension-Name>${project.artifactId}-j4</Extension-Name>
+                                            <Specification-Vendor>${project.organization.name}</Specification-Vendor>
+                                            <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
+                                            <Implementation-Title>${project.description}</Implementation-Title>
+                                            <Implementation-Version>${project.version}</Implementation-Version>
+                                            <Revision>${scm.revision}</Revision>
+                                        </manifestEntries>
+                                    </archive>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>sun.jdk</groupId>
+                    <artifactId>rt</artifactId>
+                    <version>1.4.0</version>
+                    <scope>system</scope>
+                    <!-- path to rt.jar (on OSX, it's classes.jar) -->
+                    <systemPath>${java14.jar}</systemPath>
+                </dependency>
+                <dependency>
+                    <groupId>net.sf.retrotranslator</groupId>
+                    <artifactId>retrotranslator-runtime</artifactId>
+                    <version>1.0.8</version>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
 
 
     <build>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-site-plugin</artifactId>
+                <version>2.0-beta-5</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                     <source>1.5</source>
                 </configuration>
             </plugin>
             <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <!--version>2.0.2-SNAPSHOT</version-->
+                <configuration>
+                    <descriptors>
+                        <descriptor>src/assembly/all.xml</descriptor>
+                        <descriptor>src/assembly/lib.xml</descriptor>
+                        <descriptor>src/assembly/src.xml</descriptor>
+                    </descriptors>
+                    <finalName>xwork-${version}</finalName>
+                    <outputDirectory>target/assembly/out</outputDirectory>
+                    <workDirectory>target/assembly/work</workDirectory>
+                </configuration>
+            </plugin>
+            <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <includes>
                     </excludes>
                 </configuration>
             </plugin>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-javadoc-plugin</artifactId>
-                    <executions>
-                        <!--
-                        <execution>
-                            <id>attach-javadoc</id>
-                            <goals>
-                                <goal>jar</goal>
-                            </goals>
-                        </execution>
-                        -->
-                    </executions>
-                </plugin>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-source-plugin</artifactId>
-                    <executions>
-                        <execution>
-                            <id>attach-source</id>
-                            <goals>
-                                <goal>jar</goal>
-                            </goals>
-                        </execution>
-                    </executions>
-                </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <sourcepath>src/java</sourcepath>
+                    <groups>
+                        <group>
+                            <title>XWork Packages</title>
+                            <packages>com.opensymphony.xwork2*</packages>
+                        </group>
+                    </groups>
+                    <source>1.5</source>
+                    <links>
+                        <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+                        <link>http://java.sun.com/javaee/5/docs/api/</link>
+                        <link>http://struts.apache.org/2.x/struts2-core/apidocs</link>
+                    </links>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-source</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>cobertura-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>clean</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
 
-	     <plugin>
-	        <groupId>org.codehaus.mojo</groupId>
-	        <artifactId>cobertura-maven-plugin</artifactId>
-	        <executions>
-	          <execution>
-	            <goals>
-	              <goal>clean</goal>
-	            </goals>
-	          </execution>
-	        </executions>
-	      </plugin>
-	 
         </plugins>
         <defaultGoal>install</defaultGoal>
     </build>
 
- <reporting>
-    <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>cobertura-maven-plugin</artifactId>
-      </plugin>
-    </plugins>
-  </reporting>
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+            </plugin>
+            <!--plugin>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <version>2.0</version>
+                <configuration>
+                    <aggregate>true</aggregate>
+                </configuration>
+            </plugin-->
+            <plugin>
+                <artifactId>maven-surefire-report-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>jxr-maven-plugin</artifactId>
+            </plugin>
+            <!--plugin>
+                <artifactId>maven-pmd-plugin</artifactId>
+                <configuration>
+                    <linkXref>true</linkXref>
+                    <sourceEncoding>utf-8</sourceEncoding>
+                    <minimumTokens>100</minimumTokens>
+                    <targetJdk>1.5</targetJdk>
+                </configuration>
+            </plugin-->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>cobertura-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-changes-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>jira-report</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
+            </plugin>
+        </plugins>
+
+    </reporting>
 
     <dependencies>
         <dependency>
         </dependency>
     </dependencies>
 
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>Maven Snapshots</id>
+            <url>http://snapshots.maven.codehaus.org/maven2/</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+        </pluginRepository>
+    </pluginRepositories>
+
 </project>

File src/assembly/all.xml

+<!--
+/*
+ * $Id: all.xml 454597 2006-10-10 03:50:09Z husted $
+ *
+ * Copyright 2006 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.
+ */
+-->
+
+<assembly>
+    <id>all</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>lib</outputDirectory>
+            <scope>runtime</scope>
+        </dependencySet>
+    </dependencySets>
+    <fileSets>
+        <fileSet>
+            <directory></directory>
+            <outputDirectory></outputDirectory>
+            <includes>
+                <include>pom*</include>
+            </includes>
+        </fileSet>
+        <fileSet>
+            <directory>src/etc</directory>
+            <outputDirectory></outputDirectory>
+            <includes>
+                <include>README*</include>
+            </includes>
+        </fileSet>
+
+        <!-- Include the XWork Javadoc in the assembly -->
+        <!--fileSet>
+          <directory>target/xwork-apidocs</directory>
+          <outputDirectory>docs/xwork-apidocs</outputDirectory>
+        </fileSet-->
+
+        <!-- Include the website in the assembly -->
+        <fileSet>
+            <directory>docs</directory>
+            <outputDirectory>docs</outputDirectory>
+        </fileSet>
+
+        <!-- Include the maven site in the assembly -->
+        <fileSet>
+            <directory>target/site</directory>
+            <outputDirectory>site</outputDirectory>
+        </fileSet>
+
+        <!-- Include the source code in the assembly -->
+        <fileSet>
+            <directory>src</directory>
+            <outputDirectory>src/</outputDirectory>
+            <includes>
+                <include>java/</include>
+                <include>test/</include>
+                <include>etc/</include>
+                <include>assembly/</include>
+            </includes>
+        </fileSet>
+
+        <fileSet>
+            <directory>showcase</directory>
+            <outputDirectory>showcase</outputDirectory>
+            <includes>
+                <include>pom.xml</include>
+                <include>src/</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+</assembly>

File src/assembly/lib.xml

+<!--
+/*
+ * $Id: lib.xml 421815 2006-07-14 06:34:51Z wsmoak $
+ *
+ * Copyright 2006 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.
+ */
+-->
+
+<assembly>
+  <id>lib</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <scope>runtime</scope>
+    </dependencySet>
+  </dependencySets>
+  <fileSets>
+    <fileSet>
+    	<directory>src/etc</directory>
+    	<outputDirectory></outputDirectory>
+      <includes>
+        <include>README*</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</assembly>

File src/assembly/src.xml

+<!--
+/*
+ * $Id: src.xml 454244 2006-10-09 00:22:54Z husted $
+ *
+ * Copyright 2006 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.
+ */
+-->
+
+<assembly>
+  <id>src</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <scope>optional</scope>
+    </dependencySet>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <scope>compile</scope>
+    </dependencySet>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <scope>provided</scope>
+    </dependencySet>
+  </dependencySets>
+  <fileSets>
+
+      <fileSet>
+          <directory></directory>
+          <outputDirectory></outputDirectory>
+          <includes>
+              <include>pom*</include>
+          </includes>
+      </fileSet>
+      
+      <fileSet>
+          <directory>src/etc</directory>
+          <outputDirectory></outputDirectory>
+          <includes>
+              <include>README*</include>
+              <!--include>LICENSE*</include>
+              <include>NOTICE*</include>
+              <include>build.xml</include-->
+          </includes>
+      </fileSet>
+
+      <!-- Include the source code in the assembly -->
+      <fileSet>
+          <directory>src</directory>
+          <outputDirectory>src/</outputDirectory>
+          <includes>
+              <include>java/</include>
+              <include>test/</include>
+              <include>etc/</include>
+              <include>assembly/</include>
+          </includes>
+      </fileSet>
+
+      <fileSet>
+          <directory>showcase</directory>
+          <outputDirectory>showcase</outputDirectory>
+          <includes>
+              <include>pom.xml</include>
+              <include>src/</include>
+          </includes>
+      </fileSet>
+
+  </fileSets>
+</assembly>