archetype
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>it.cnr.si</groupId>
<artifactId>archetype</artifactId>
<version>1.2.0</version>
</dependency><?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>archetype</artifactId>
<groupId>it.cnr.si</groupId>
<version>1.2.0</version>
<name>CNR SI Archetype</name>
<description>Archetype for push artifact to Maven repository</description>
<url>http://www.cnr.it</url>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<nexus.repository.releases>content/repositories/releases</nexus.repository.releases>
<nexus.repository.snapshots>content/repositories/snapshots</nexus.repository.snapshots>
<scm.plugin.file.list>publiccode.yml</scm.plugin.file.list>
<nexus.url />
</properties>
<repositories>
<repository>
<id>cnr</id>
<name>cnr public</name>
<url>${nexus.url}/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>cnr-snapshots</id>
<name>cnr public</name>
<url>${nexus.url}/content/groups/public-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>cnr</id>
<name>cnr public</name>
<url>${nexus.url}/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<id>cnr-snapshots</id>
<name>cnr snapshots</name>
<url>${nexus.url}/content/groups/public-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
<configuration>
<source>${java.version}</source>
<doclint>none</doclint>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- explicitly define maven-deploy-plugin after other to force exec order -->
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>**/target/**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>
<repository>
<id>buildandtest</id>
<name>nexus</name>
<url>${nexus.url}/${nexus.repository.releases}</url>
</repository>
<snapshotRepository>
<id>buildandtest</id>
<name>nexus</name>
<url>${nexus.url}/${nexus.repository.snapshots}</url>
</snapshotRepository>
</distributionManagement>
<licenses>
<license>
<name>GNU AFFERO GENERAL PUBLIC LICENSE</name>
<url>https://www.gnu.org/licenses/agpl-3.0.html</url>
<comments>
Copyright (C) 2019 Consiglio Nazionale delle Ricerche
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see https://www.gnu.org/licenses/
</comments>
</license>
</licenses>
<developers>
<developer>
<id>marco.spasiano</id>
<name>Marco Spasiano</name>
<email>marco.spasiano@cnr.it</email>
<organization>Consiglio Nazionale delle Ricerche</organization>
<organizationUrl>http://www.cnr.it</organizationUrl>
</developer>
<developer>
<id>francesco.uliana</id>
<name>Francesco Uliana</name>
<email>francesco@uliana.it</email>
</developer>
<developer>
<id>fabrizio.pierleoni</id>
<name>Fabrizio Pierleoni</name>
<email>fabrizio.pierleoni@cnr.it</email>
<organization>Consiglio Nazionale delle Ricerche</organization>
<organizationUrl>http://www.cnr.it</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:ssh://git@git.si.cnr.it/dev/archetype.git</connection>
<developerConnection>scm:git:ssh://git@git.si.cnr.it/dev/archetype.git</developerConnection>
<url>http://git.si.cnr.it/dev/archetype</url>
<tag>1.0.16</tag>
</scm>
<profiles>
<profile>
<id>maven-central</id>
<properties>
<sonatype.repository.releases>service/local/staging/deploy/maven2</sonatype.repository.releases>
<sonatype.repository.snapshots>content/repositories/snapshots</sonatype.repository.snapshots>
<sonatype.url>https://oss.sonatype.org</sonatype.url>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.7.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>sonatype</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>sonatype</id>
<name>nexus</name>
<url>${sonatype.url}/${sonatype.repository.releases}</url>
</repository>
<snapshotRepository>
<id>sonatype</id>
<name>nexus</name>
<url>${sonatype.url}/${sonatype.repository.snapshots}</url>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<id>release-version</id>
<properties>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<configuration>
<includes>${scm.plugin.file.list}</includes>
<message>changed softwareVersion and releaseDate [ci skip]</message>
<pushChanges>true</pushChanges>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<preparationGoals>clean verify scm:checkin</preparationGoals>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sonar</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.2</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>sonar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>