| <?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.drpape</groupId> |
| <artifactId>test</artifactId> |
| <version>1.0</version> |
| |
| <name>MSHADE-311</name> |
| <description> |
| Tests that creation of the dependency reduced POM does not create excludes for a provided transitive dependency. |
| This dependency 'c' is a compile dependency of 'b' which is a provided dependency of this project. |
| Shade-plugin is configured to only include (compile) dependency 'a', not 'b' (which must therefore be retained). |
| Additionally (to prevent regressions), this project has a provided dependency 'd' which depends on 'e', but 'e' is excluded. |
| That exclusion must be retained in the dependency reduced POM. |
| </description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.its.shade.drpape</groupId> |
| <artifactId>a</artifactId> |
| <version>0.1</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.shade.drpape</groupId> |
| <artifactId>b</artifactId> |
| <version>0.1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.maven.its.shade.drpape</groupId> |
| <artifactId>d</artifactId> |
| <version>0.1</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.maven.its.shade.drpape</groupId> |
| <artifactId>e</artifactId> |
| </exclusion> |
| </exclusions> |
| </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> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <dependencyReducedPomLocation>target/dependency-reduced-pom.xml</dependencyReducedPomLocation> |
| <artifactSet> |
| <includes> |
| <include>org.apache.maven.its.shade.drpape:a</include> |
| </includes> |
| </artifactSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |