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 2015/03/28 11:18:54 UTC
svn commit: r1669741 - in
/maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar: ./ pom.xml
src/ src/it/ src/it/project/ src/it/project/invoker.properties
src/it/project/pom.xml
Author: rfscholte
Date: Sat Mar 28 10:18:54 2015
New Revision: 1669741
URL: http://svn.apache.org/r1669741
Log:
[MINVOKER-155] Invoker plugin does not allow multiple environment variables to be set
Added:
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/pom.xml
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/invoker.properties
maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/pom.xml
Added: maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/pom.xml?rev=1669741&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/pom.xml (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/pom.xml Sat Mar 28 10:18:54 2015
@@ -0,0 +1,66 @@
+<?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.invoker.its</groupId>
+ <artifactId>maven-env-test</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ <name>Maven Environment Test</name>
+ <description>Maven Invoker tests for environment variable setting</description>
+
+ <url>http://jira.codehaus.org/browse/MINVOKER-155</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+ <postBuildHookScript>verify</postBuildHookScript>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>install</goal>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <environmentVariables>
+ <A_PROP>white</A_PROP>
+ <Z_PROP>blue</Z_PROP>
+ </environmentVariables>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Added: maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/invoker.properties?rev=1669741&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/invoker.properties (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/invoker.properties Sat Mar 28 10:18:54 2015
@@ -0,0 +1,19 @@
+# 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.name=Multiple env props
+invoker.goals=clean process-sources
Added: maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/pom.xml?rev=1669741&view=auto
==============================================================================
--- maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/pom.xml (added)
+++ maven/plugins/trunk/maven-invoker-plugin/src/it/multiEnvVar/src/it/project/pom.xml Sat Mar 28 10:18:54 2015
@@ -0,0 +1,62 @@
+<?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.invoker.its.it</groupId>
+ <artifactId>multEnvVar</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.2</version>
+ <executions>
+ <execution>
+ <id>enforce-env-properties</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>env.A_PROP</property>
+ <message>### Missing property 'A_PROP'</message>
+ </requireProperty>
+ <requireProperty>
+ <property>env.Z_PROP</property>
+ <message>### Missing property 'Z_PROP'</message>
+ </requireProperty>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>