You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2013/07/24 22:13:16 UTC
svn commit: r1506690 - in
/maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact: ./
invoker.properties pom.xml verify.groovy
Author: rfscholte
Date: Wed Jul 24 20:13:16 2013
New Revision: 1506690
URL: http://svn.apache.org/r1506690
Log:
[MINSTALL-39] Maven Install Plugin always copy the artifact in the repository, even if there was no changes
Create IT to confirm it is fixed in Apache Maven Core
Added:
maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/
maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/invoker.properties
maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/pom.xml
maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/verify.groovy
Added: maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/invoker.properties?rev=1506690&view=auto
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/invoker.properties (added)
+++ maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/invoker.properties Wed Jul 24 20:13:16 2013
@@ -0,0 +1,2 @@
+invoker.goals = install install
+invoker.maven.version = 2.2.2+, !3.0-alpha-1, !3.0-alpha-2
Added: maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/pom.xml?rev=1506690&view=auto
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/pom.xml (added)
+++ maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/pom.xml Wed Jul 24 20:13:16 2013
@@ -0,0 +1,45 @@
+<?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.install.its</groupId>
+ <artifactId>minstall-39</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+
+ <description>
+ Tests the manual installation of a simple release JAR with a corresponding POM whose coordinates are inherited
+ from the parent.
+ </description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>@project.version@</version>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Added: maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/verify.groovy?rev=1506690&view=auto
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/verify.groovy (added)
+++ maven/plugins/trunk/maven-install-plugin/src/it/non-changed-artifact/verify.groovy Wed Jul 24 20:13:16 2013
@@ -0,0 +1,30 @@
+/*
+ * 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 buildLog = new File( basedir, 'build.log' )
+assert buildLog.exists()
+
+def logText = buildLog.text
+
+artifactPath = new File( basedir, 'target/minstall-39-1.0-SNAPSHOT.jar' ).canonicalPath
+copyArtifactPath = new File( basedir, '../../local-repo/org/apache/maven/plugins/install/its/minstall-39/1.0-SNAPSHOT/minstall-39-1.0-SNAPSHOT.jar' ).canonicalPath
+
+assert 2 == logText.count( "[INFO] Installing ${artifactPath} to ${copyArtifactPath}" )
+assert 1 == logText.count( "[DEBUG] Skipped re-installing ${artifactPath} to ${copyArtifactPath}, seems unchanged" )
+