2021-07-31 10:14:16 -04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
2021-09-19 14:34:26 -04:00
|
|
|
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">
|
2021-07-31 10:14:16 -04:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.baeldung.maven.plugin</groupId>
|
|
|
|
<artifactId>host-maven-repo-example</artifactId>
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
2022-05-10 10:44:57 -04:00
|
|
|
<url>https://github.com/${repository-owner}/${repository-name}.git</url>
|
2021-07-31 10:14:16 -04:00
|
|
|
<scm>
|
2022-05-10 10:44:57 -04:00
|
|
|
<url>https://github.com/${repository-owner}/${repository-name}.git</url>
|
|
|
|
<connection>scm:git:git@github.com:${repository-owner}/${repository-name}.git</connection>
|
|
|
|
<developerConnection>scm:git:git@github.com:${repository-owner}/${repository-name}.git</developerConnection>
|
2021-07-31 10:14:16 -04:00
|
|
|
</scm>
|
|
|
|
<distributionManagement>
|
|
|
|
<repository>
|
|
|
|
<id>internal.repo</id>
|
|
|
|
<name>Temporary Staging Repository</name>
|
|
|
|
<url>file://${project.build.directory}/mvn-artifact</url>
|
|
|
|
</repository>
|
|
|
|
</distributionManagement>
|
2021-09-19 14:34:26 -04:00
|
|
|
|
2021-07-31 10:14:16 -04:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>3.1.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.github</groupId>
|
|
|
|
<artifactId>site-maven-plugin</artifactId>
|
|
|
|
<version>0.12</version>
|
|
|
|
<configuration>
|
|
|
|
<message>Maven artifacts for ${project.version}</message>
|
|
|
|
<noJekyll>true</noJekyll>
|
|
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
2022-05-10 10:44:57 -04:00
|
|
|
<branch>refs/heads/${branch-name}</branch>
|
2021-07-31 10:14:16 -04:00
|
|
|
<includes>
|
|
|
|
<include>**/*</include>
|
|
|
|
</includes>
|
|
|
|
<merge>true</merge>
|
2022-05-10 10:44:57 -04:00
|
|
|
<repositoryName>${repository-name}</repositoryName>
|
|
|
|
<repositoryOwner>${repository-owner}</repositoryOwner>
|
2021-07-31 10:14:16 -04:00
|
|
|
<server>github</server>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>site</goal>
|
|
|
|
</goals>
|
|
|
|
<phase>deploy</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<version>2.8.2</version>
|
|
|
|
<configuration>
|
|
|
|
<altDeploymentRepository>
|
|
|
|
internal.repo::default::file://${project.build.directory}/mvn-artifact
|
|
|
|
</altDeploymentRepository>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<version>3.1.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2021-09-19 14:34:26 -04:00
|
|
|
|
2021-07-31 10:14:16 -04:00
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>PROJECT-REPO-URL</id>
|
2022-05-10 13:20:02 -04:00
|
|
|
<url>https://github.com/${repository-owner}/${repository-name}/${branch-name}</url>
|
2021-07-31 10:14:16 -04:00
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<updatePolicy>always</updatePolicy>
|
|
|
|
</snapshots>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
2021-09-19 14:34:26 -04:00
|
|
|
|
|
|
|
<properties>
|
2022-07-15 00:29:54 -04:00
|
|
|
<!--Put your own properties -->
|
2022-05-10 10:44:57 -04:00
|
|
|
<repository-owner>Put-repo-owner</repository-owner>
|
|
|
|
<repository-name>Put-repository-name</repository-name>
|
|
|
|
<branch-name>Put-branch-name</branch-name>
|
2021-09-19 14:34:26 -04:00
|
|
|
<github.global.server>github</github.global.server>
|
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
</properties>
|
|
|
|
|
2022-05-10 13:20:02 -04:00
|
|
|
</project>
|