Add properties for maven and add compiler plugin. Add information in README.md

This commit is contained in:
Konstantinos Triantafyllou 2024-09-05 18:17:29 +03:00
parent 618b158c29
commit ea1191abe8
2 changed files with 25 additions and 1 deletions

View File

@ -1,2 +1,13 @@
# uoa-global-parent # uoa-global-parent
This parent contains the configuration regarding maven release and compilation. Also, there is the definition
of global properties and import of log4j2.
## Usage
<parent>
<groupId>eu.dnetlib</groupId>
<artifactId>uoa-global-parent</artifactId>
<version>2.0.2</version>
</parent>

15
pom.xml
View File

@ -35,7 +35,17 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5</version> <version>${maven-release-version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compile-version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
@ -63,5 +73,8 @@
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<log4j.version>2.23.1</log4j.version> <log4j.version>2.23.1</log4j.version>
<maven-release-version>3.1.0</maven-release-version>
<maven-compile-version>3.9.0</maven-compile-version>
<maven-war-version>3.4.0</maven-war-version>
</properties> </properties>
</project> </project>