Add plugin management. Add info in ReadMe

This commit is contained in:
Konstantinos Triantafyllou 2024-09-12 17:17:05 +03:00
parent d5db584ac2
commit f058972fa8
2 changed files with 32 additions and 7 deletions

View File

@ -1,13 +1,21 @@
# uoa-global-parent # uoa-global-parent
This parent contains the configuration regarding maven release and compilation. Also, there is the definition This parent contains the global configuration for:
of global properties and import of log4j2.
- Maven Repository
- Build configuration for:
- Maven Release.
- Maven Compilation.
- Plugin Management for maven war and jar plugins.
- Distribution Management
- Global dependencies for logging
- Global properties for java and all plugins and dependencies.
## Usage ## Usage
<parent> <parent>
<groupId>eu.dnetlib</groupId> <groupId>eu.dnetlib</groupId>
<artifactId>uoa-global-parent</artifactId> <artifactId>uoa-global-parent</artifactId>
<version>2.0.2</version> <version>2.0.3</version>
</parent> </parent>

25
pom.xml
View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<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"> <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> <modelVersion>4.0.0</modelVersion>
<groupId>eu.dnetlib</groupId> <groupId>eu.dnetlib</groupId>
<artifactId>uoa-global-parent</artifactId> <artifactId>uoa-global-parent</artifactId>
@ -44,10 +45,26 @@
<configuration> <configuration>
<compilerArgs> <compilerArgs>
<arg>-parameters</arg> <arg>-parameters</arg>
<source>${java.version}</source>
<target>${java.version}</target>
</compilerArgs> </compilerArgs>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-version}</version>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<distributionManagement> <distributionManagement>
<repository> <repository>
@ -70,11 +87,11 @@
</dependency> </dependency>
</dependencies> </dependencies>
<properties> <properties>
<maven.compiler.source>17</maven.compiler.source> <java.version>17</java.version>
<maven.compiler.target>17</maven.compiler.target>
<log4j.version>2.23.1</log4j.version>
<maven-release-version>3.1.0</maven-release-version> <maven-release-version>3.1.0</maven-release-version>
<maven-compile-version>3.9.0</maven-compile-version> <maven-compile-version>3.9.0</maven-compile-version>
<maven-war-version>3.4.0</maven-war-version> <maven-war-version>3.4.0</maven-war-version>
<maven-jar-version>3.4.2</maven-jar-version>
<log4j.version>2.23.1</log4j.version>
</properties> </properties>
</project> </project>