Created
September 21, 2019 12:43
-
-
Save ssledz/7eede182a177d300767311b90090c387 to your computer and use it in GitHub Desktop.
Local mvn & git repos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>pl.softech.example.mvn</groupId> | |
<artifactId>mm-example</artifactId> | |
<version>0.0.1</version> | |
<packaging>pom</packaging> | |
<name>mm-example</name> | |
<properties> | |
<scm.git.repository.path>${local.git.repo.path}/mvn-multi-module-example.git</scm.git.repository.path> | |
</properties> | |
<scm> | |
<url>${scm.git.repository.path}</url> | |
<developerConnection>${scm.git.repository.path}</developerConnection> | |
<tag>v2.1.0</tag> | |
</scm> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>2.5.3</version> | |
<configuration> | |
<autoVersionSubmodules>true</autoVersionSubmodules> | |
<!-- Keep changes in the local repo, push will be done afterwards --> | |
<pushChanges>false</pushChanges> | |
<localCheckout>true</localCheckout> | |
<!-- Use a better name for the tag --> | |
<tagNameFormat>v@{project.version}</tagNameFormat> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.maven.scm</groupId> | |
<artifactId>maven-scm-provider-gitexe</artifactId> | |
<version>1.9.5</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
<distributionManagement> | |
<repository> | |
<id>mvn-local</id> | |
<url>${local.mvn.repo.path}</url> | |
</repository> | |
<snapshotRepository> | |
<id>mvn-local</id> | |
<url>${local.mvn.snapshots-repo.path}</url> | |
</snapshotRepository> | |
</distributionManagement> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<profiles> | |
<profile> | |
<id>local</id> | |
<properties> | |
<local.mvn.repo.path>file://${user.home}/mvn-repo/releases</local.mvn.repo.path> | |
<local.mvn.snapshots-repo.path>file://${user.home}/mvn-repo/snapshots</local.mvn.snapshots-repo.path> | |
<local.git.repo.path>scm:git:file://${user.home}/git-repo</local.git.repo.path> | |
</properties> | |
</profile> | |
</profiles> | |
<activeProfiles> | |
<activeProfile>local</activeProfile> | |
</activeProfiles> | |
</settings> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment