If you put this parent pom in a folder called android and projects that will use it in the same folder as this.
- Android
- pom.xml
- Android project-1
The pom.xml project can then use the parent pom by placing it at the beginning of pom.xml:
<parent> <groupId>parent.group</groupId> <artifactId>parent.artifact</artifactId> <version>${version.number}</version> <relativePath>../</relativePath> </parent>
You can then expand this architecture in the future as follows:
- Mobile
- pom.xml
- Android
- pom.xml
- Android project-1
- Android project-2
- iPhone
This allows you to define a common configuration for Android projects, a common configuration for iphone projects, and a common configuration for all mobile projects. And so on
cowls source share