Skip to content

Instantly share code, notes, and snippets.

@joakime
Last active December 5, 2023 22:20
Show Gist options
  • Save joakime/0f57778062e4c4c1f534eb5145854acf to your computer and use it in GitHub Desktop.
Save joakime/0f57778062e4c4c1f534eb5145854acf to your computer and use it in GitHub Desktop.
foo-project]$ tree -F
./
├── foo-child/
│   ├── pom.xml
│   └── src/
│   └── main/
│   └── java/
└── pom.xml
<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>org.example</groupId>
<artifactId>foo-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<clean.version>3.3.2</clean.version>
</properties>
<modules>
<module>foo-child</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>${clean.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.example</groupId>
<artifactId>foo-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>foo-child</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<clean.version>3.3.1</clean.version>
</properties>
<build>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment