Repository: apex-core Updated Branches: refs/heads/master 25ca79f0b -> 6fdd73d6f
APEXCORE-540 Enforce exclusion of provided dependencies. Project: http://git-wip-us.apache.org/repos/asf/apex-core/repo Commit: http://git-wip-us.apache.org/repos/asf/apex-core/commit/6fdd73d6 Tree: http://git-wip-us.apache.org/repos/asf/apex-core/tree/6fdd73d6 Diff: http://git-wip-us.apache.org/repos/asf/apex-core/diff/6fdd73d6 Branch: refs/heads/master Commit: 6fdd73d6f34c25c1ce091173f8def2b2a6768e4c Parents: 25ca79f Author: Thomas Weise <[email protected]> Authored: Fri Sep 23 10:38:37 2016 -0700 Committer: Thomas Weise <[email protected]> Committed: Fri Sep 23 10:38:37 2016 -0700 ---------------------------------------------------------------------- .../main/resources/archetype-resources/pom.xml | 27 ++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/apex-core/blob/6fdd73d6/apex-app-archetype/src/main/resources/archetype-resources/pom.xml ---------------------------------------------------------------------- diff --git a/apex-app-archetype/src/main/resources/archetype-resources/pom.xml b/apex-app-archetype/src/main/resources/archetype-resources/pom.xml index 0709a7b..d378b33 100644 --- a/apex-app-archetype/src/main/resources/archetype-resources/pom.xml +++ b/apex-app-archetype/src/main/resources/archetype-resources/pom.xml @@ -57,7 +57,30 @@ </execution> </executions> </plugin> - + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-enforcer-plugin</artifactId> + <version>1.4.1</version> + <executions> + <execution> + <id>enforce-provided-dependencies</id> + <goals> + <goal>enforce</goal> + </goals> + <configuration> + <rules> + <bannedDependencies> + <excludes> + <exclude>org.apache.hadoop:*:*:*:runtime</exclude> + <exclude>org.apache.apex:apex-*:*:*:runtime</exclude> + </excludes> + <message>Found (transitive) dependencies that should be excluded or not scope "runtime" to remain excluded from the application package. See https://issues.apache.org/jira/browse/APEXCORE-540</message> + </bannedDependencies> + </rules> + </configuration> + </execution> + </executions> + </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> @@ -237,7 +260,7 @@ <dependency> <groupId>org.apache.apex</groupId> <artifactId>malhar-library</artifactId> - <version>3.4.0</version> + <version>3.5.0</version> <!-- If you know that your application does not need transitive dependencies pulled in by malhar-library, uncomment the following to reduce the size of your app package.
