...
The following example shows how to use the new property excludeDependencyManagementDependenciesInPomProject
to control the export of management dependencies in case of projects of type pom
.
Code Block | ||
---|---|---|
| ||
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>de.smartics.sandbox</groupId> <artifactId>multimodule-project</artifactId> <version>1.0.0</version> <packaging>pom</packaging> <dependencyManagement> <dependencies> <!-- These dependencies will NOT be exported --> </dependencies> </dependencyManagement> <dependencies> <!-- These dependencies will be exported --> </dependencies> <build> <plugins> <plugin> <groupId>de.smartics.maven.plugin</groupId> <artifactId>smartics-jboss-modules-maven-plugin</artifactId> <version>0.3.1</version> <executions> <execution> <id>create-modules-archive</id> <goals> <goal>create-modules-archive</goal> </goals> <phase>package</phase> </execution> </executions> <configuration> <excludeDependencyManagementDependenciesInPomProject>true</excludeDependencyManagementDependenciesInPomProject> </configuration> </plugin> </plugins> </build> </project> |
...