Skip to content

Instantly share code, notes, and snippets.

@aalmiray

aalmiray/consumer1-pom.xml

Last active Jun 15, 2020
Embed
What would you like to do?
Mastering Maven 08
<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>com.acme</groupId>
<artifactId>consumer1</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project5</artifactId>
<version>0.0.0</version>
<exclusions>
<exclusion>
<groupId>com.acme</groupId>
<artifactId>project2</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>consumer2</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project5</artifactId>
<version>0.0.0</version>
<exclusions>
<exclusion>
<groupId>com.acme</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>consumer3</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project5</artifactId>
<version>0.0.0</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>consumer4</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project5</artifactId>
<version>0.0.0</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
.
├── project1
│ └── org.apache.commons:commons-lang3:3.0
├── project2
│ └── org.apache.commons:commons-lang3:3.5
├── project3
│ └── project2
├── project4
│ └── project3
└── project5
├── project2
├── project4
└── junit:junit:4.13
<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>com.acme</groupId>
<artifactId>project1</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.0</version>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>project2</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>project3</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project2</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>project4</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project3</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</project>
<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>com.acme</groupId>
<artifactId>project5</artifactId>
<version>0.0.0</version>
<dependencies>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project2</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<groupId>com.acme</groupId>
<artifactId>project4</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.