Author: apetrelli
Date: Fri Mar 11 14:41:59 2011
New Revision: 1080581
URL: http://svn.apache.org/viewvc?rev=1080581&view=rev
Log:
TILESSHARED-24
Enabled Maven 3 site building for tiles-site.
Modified:
tiles/site/pom.xml
Modified: tiles/site/pom.xml
URL:
http://svn.apache.org/viewvc/tiles/site/pom.xml?rev=1080581&r1=1080580&r2=1080581&view=diff
==============================================================================
--- tiles/site/pom.xml (original)
+++ tiles/site/pom.xml Fri Mar 11 14:41:59 2011
@@ -1,31 +1,19 @@
<?xml version="1.0"?>
-<!--
-/*
- * $Id$
- *
- * 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"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+<!-- /* * $Id$ * * 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"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.apache.tiles</groupId>
@@ -54,7 +42,7 @@
<url>http://svn.apache.org/viewvc/tiles/site/</url>
</scm>
- <ciManagement/>
+ <ciManagement />
<distributionManagement>
<site>
@@ -74,17 +62,16 @@
<phase>site</phase>
<configuration>
<tasks>
- <mkdir
dir="${project.build.directory}/site/dtds"/>
+ <mkdir
+ dir="${project.build.directory}/site/dtds"
/>
<get
src="http://svn.apache.org/repos/asf/tiles/framework/trunk/tiles-core/src/main/resources/org/apache/tiles/resources/tiles-config_2_0.dtd"
dest="${project.build.directory}/site/dtds/tiles-config_2_0.dtd"
- verbose="true"
- ignoreerrors="true"/>
+ verbose="true" ignoreerrors="true" />
<get
src="http://svn.apache.org/repos/asf/tiles/framework/trunk/tiles-core/src/main/resources/org/apache/tiles/resources/tiles-config_2_1.dtd"
dest="${project.build.directory}/site/dtds/tiles-config_2_1.dtd"
- verbose="true"
- ignoreerrors="true"/>
+ verbose="true" ignoreerrors="true" />
</tasks>
</configuration>
<goals>
@@ -118,5 +105,58 @@
</plugins>
</reporting>
- <dependencies/>
+ <profiles>
+ <profile>
+ <id>maven-3</id>
+ <activation>
+ <file>
+ <exists>${basedir}</exists>
+ </file>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0-beta-3</version>
+ <configuration>
+ <reportingPlugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+
<artifactId>apache-rat-plugin</artifactId>
+ <version>0.6</version>
+ <configuration>
+ <excludes>
+
<exclude>forms/invitation*.txt</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </reportingPlugins>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+ <dependencies />
</project>