You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2010/01/11 00:20:09 UTC

svn commit: r897730 - in /maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded: ./ repo/ repo/org/ repo/org/apache/ repo/org/apache/maven/ repo/org/apache/maven/its/ repo/org/apache/maven/its/shade/ repo/org/apache/maven/its/shade/n...

Author: bentmann
Date: Sun Jan 10 23:20:08 2010
New Revision: 897730

URL: http://svn.apache.org/viewvc?rev=897730&view=rev
Log:
o Added IT to check scope-based artifact inclusion/exclusion

Added:
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.jar   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.pom
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.jar   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.pom
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.jar   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.pom
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.jar   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.pom
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/system.jar   (with props)
    maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh   (with props)

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml Sun Jan 10 23:20:08 2010
@@ -0,0 +1,103 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>it</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>MSHADE</name>
+  <description>
+    Test that dependencies not matching runtime scope are automatically excluded.
+  </description>
+
+  <repositories>
+    <repository>
+      <id>shade-it</id>
+      <url>file:///${basedir}/repo</url>
+      <releases>
+        <checksumPolicy>ignore</checksumPolicy>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.its.shade.nrse</groupId>
+      <artifactId>system</artifactId>
+      <version>1.0</version>
+      <scope>system</scope>
+      <systemPath>${basedir}/system.jar</systemPath>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.its.shade.nrse</groupId>
+      <artifactId>provided</artifactId>
+      <version>1.0</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.its.shade.nrse</groupId>
+      <artifactId>compile</artifactId>
+      <version>1.0</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.its.shade.nrse</groupId>
+      <artifactId>runtime</artifactId>
+      <version>1.0</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.its.shade.nrse</groupId>
+      <artifactId>test</artifactId>
+      <version>1.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-shade-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>attach-shade</id>
+            <phase>package</phase>
+            <goals>
+              <goal>shade</goal>
+            </goals>
+            <configuration>
+              <shadedArtifactAttached>false</shadedArtifactAttached>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.jar?rev=897730&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.pom?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.pom (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/1.0/compile-1.0.pom Sun Jan 10 23:20:08 2010
@@ -0,0 +1,41 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>compile</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>MSHADE</name>
+  <description>
+    Test that dependencies not matching runtime scope are automatically excluded.
+  </description>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml Sun Jan 10 23:20:08 2010
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>compile</artifactId>
+  <version>1.0</version>
+  <versioning>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20100110230146</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/compile/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.jar?rev=897730&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.pom?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.pom (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/1.0/provided-1.0.pom Sun Jan 10 23:20:08 2010
@@ -0,0 +1,41 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>provided</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>MSHADE</name>
+  <description>
+    Test that dependencies not matching runtime scope are automatically excluded.
+  </description>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml Sun Jan 10 23:20:08 2010
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>provided</artifactId>
+  <version>1.0</version>
+  <versioning>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20100110230646</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/provided/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.jar?rev=897730&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.pom?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.pom (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/1.0/runtime-1.0.pom Sun Jan 10 23:20:08 2010
@@ -0,0 +1,41 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>runtime</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>MSHADE</name>
+  <description>
+    Test that dependencies not matching runtime scope are automatically excluded.
+  </description>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml Sun Jan 10 23:20:08 2010
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>runtime</artifactId>
+  <version>1.0</version>
+  <versioning>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20100110230222</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/runtime/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.jar?rev=897730&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.pom?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.pom (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/1.0/test-1.0.pom Sun Jan 10 23:20:08 2010
@@ -0,0 +1,41 @@
+<?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>
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <name>MSHADE</name>
+  <description>
+    Test that dependencies not matching runtime scope are automatically excluded.
+  </description>
+
+  <distributionManagement>
+    <repository>
+      <id>maven-core-it</id>
+      <url>file:///${basedir}/repo</url>
+    </repository>
+  </distributionManagement>
+</project>

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml Sun Jan 10 23:20:08 2010
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>org.apache.maven.its.shade.nrse</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <versioning>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20100110230209</lastUpdated>
+  </versioning>
+</metadata>

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/repo/org/apache/maven/its/shade/nrse/test/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/system.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/system.jar?rev=897730&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/system.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh?rev=897730&view=auto
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh (added)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh Sun Jan 10 23:20:08 2010
@@ -0,0 +1,35 @@
+import java.io.*;
+import java.util.jar.*;
+
+String[] wanted =
+{
+    "compile.properties",
+    "runtime.properties",
+};
+
+String[] unwanted =
+{
+    "system.properties",
+    "provided.properties",
+    "test.properties",
+};
+
+JarFile jarFile = new JarFile( new File( basedir, "target/it-1.0.jar" ) );
+
+for ( String path : wanted )
+{
+    if ( jarFile.getEntry( path ) == null )
+    {
+        throw new IllegalStateException( "wanted path is missing: " + path );
+    }
+}
+
+for ( String path : unwanted )
+{
+    if ( jarFile.getEntry( path ) != null )
+    {
+        throw new IllegalStateException( "unwanted path is present: " + path );
+    }
+}
+
+jarFile.close();

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-shade-plugin/src/it/non-runtime-scope-excluded/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision