You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2014/06/09 22:01:12 UTC
svn commit: r1601495 - in
/maven/plugins/trunk/maven-site-plugin/src/it/reportConfig: ./
invoker.properties pom.xml verify.groovy
Author: hboutemy
Date: Mon Jun 9 20:01:11 2014
New Revision: 1601495
URL: http://svn.apache.org/r1601495
Log:
[MSITE-516] IT to check that reportPlugins inherit config from pluginManagement as done in MSHARED-338
Added:
maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/
maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties (with props)
maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml (with props)
maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy (with props)
Added: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties?rev=1601495&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties Mon Jun 9 20:01:11 2014
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.maven.version = 3.0+
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/invoker.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml?rev=1601495&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml Mon Jun 9 20:01:11 2014
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.site.its</groupId>
+ <artifactId>report-config</artifactId>
+ <version>1.0-SNAPSHOT</version>
+
+ <name>MSITE-516 Report Configuration IT</name>
+ <description>
+ http://jira.codehaus.org/browse/MSITE-516
+ Checks that report configuration is inherited from build.pluginManagement: see MSHARED-338.
+ </description>
+ <url>http://maven.apache.org</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <licenses>
+ <license>
+ <name>Apache License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>@project.version@</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>@projectInfoReportsPluginVersion@</version>
+ <configuration>
+ <linkOnly>true</linkOnly><!-- must be injected in reporting/plugin -->
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>license</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy?rev=1601495&view=auto
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy (added)
+++ maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy Mon Jun 9 20:01:11 2014
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+File f = new File( basedir, 'target/site/license.html' )
+assert f.exists();
+
+content = f.text;
+
+// linkOnly parameter merged from pluginManagement
+assert content.contains( ' href="http://www.apache.org/licenses/LICENSE-2.0.txt"' );
+
+return true;
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-site-plugin/src/it/reportConfig/verify.groovy
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision