Author: khmarbaise Date: Mon Aug 25 18:41:53 2014 New Revision: 1620409 URL: http://svn.apache.org/r1620409 Log: [MINSTALL-108] - Added IT to proove the problem exists.
Added: maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/invoker.properties maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/pom.xml maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/pom.xml maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/verify.groovy Added: maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/invoker.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/invoker.properties?rev=1620409&view=auto ============================================================================== --- maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/invoker.properties (added) +++ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/invoker.properties Mon Aug 25 18:41:53 2014 @@ -0,0 +1,20 @@ +# 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.goals = clean install -DinstallAtEnd=false +# waiting for MINSTALL-108 fix +invoker.buildResult = success Added: maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/pom.xml?rev=1620409&view=auto ============================================================================== --- maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/pom.xml (added) +++ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/module1/pom.xml Mon Aug 25 18:41:53 2014 @@ -0,0 +1,47 @@ +<?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> + + <parent> + <groupId>org.apache.maven.its.install.iae.pass</groupId> + <artifactId>iae</artifactId> + <version>1.0</version> + </parent> + <artifactId>module1</artifactId> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.3.1</version> + <executions> + <execution> + <id>enforce</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <AlwaysPass/> + </rules> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> Added: maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/pom.xml?rev=1620409&view=auto ============================================================================== --- maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/pom.xml (added) +++ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/pom.xml Mon Aug 25 18:41:53 2014 @@ -0,0 +1,76 @@ +<?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.its.install.iae.pass</groupId> + <artifactId>iae</artifactId> + <version>1.0</version> + <packaging>pom</packaging> + + <description> + Tests installation at end override. + </description> + + <properties> + <maven.test.skip>true</maven.test.skip> + </properties> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.0.2</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-install-plugin</artifactId> + <version>@project.version@</version> + <configuration> + <installAtEnd>true</installAtEnd> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <version>2.5</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>2.6</version> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.12</version> + </plugin> + </plugins> + </build> + + <modules> + <module>module1</module> + </modules> + +</project> Added: maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/verify.groovy URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/verify.groovy?rev=1620409&view=auto ============================================================================== --- maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/verify.groovy (added) +++ maven/plugins/trunk/maven-install-plugin/src/it/MINSTALL-108/verify.groovy Mon Aug 25 18:41:53 2014 @@ -0,0 +1,25 @@ +/* + * 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() +/* UNTIL MINSTALL-108 will be fixed the result + * should not be <installAtEnd default-value="false">false</installAtEnd> + */ +assert buildLog.text.contains ( '<installAtEnd default-value="false">true</installAtEnd>')