-
Notifications
You must be signed in to change notification settings - Fork 3
Apache Maven
Somkiat Puisungnoen edited this page Oct 3, 2022
·
1 revision
pom.xml
<groupId>com.example</groupId>
<artifactId>day01</artifactId>
<version>${DEMO_VERSION}</version>
<name>day01</name>
How to use ?
$export DEMO_VERSION=1.0
$mvn clean package
pom.xml
...
<packaging>pom</packaging>
...
+ main_project
+ pom.xml
+ project01
+ pom.xml
+ project02
+ pom.xml
Add project01 and project02 to file pom.xml
of main project
<modules>
<module>project01</module>
<module>project02</module>
</modules>
Edit pom.xml of project01 and project02 :: add the parent project
<parent>
<artifactId>main-project</artifactId>
<groupId>com.demo</groupId>
<version>1.0</version>
</parent>