Skip to content

Commit

Permalink
Mulitmodule SVN
Browse files Browse the repository at this point in the history
  • Loading branch information
mfriedenhagen committed Jan 25, 2011
0 parents commit e5ace45
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.svn/
.project
.classpath
.settings/
target/
21 changes: 21 additions & 0 deletions app1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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>
<parent>
<artifactId>parent</artifactId>
<groupId>de.friedenhagen.multimodule</groupId>
<version>1.12-SNAPSHOT</version>
</parent>
<artifactId>app1</artifactId>
<scm>
<connection>${parent.scm.connection}</connection>
<developerConnection>${parent.scm.developerConnection}</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions app2/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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>
<parent>
<artifactId>parent</artifactId>
<groupId>de.friedenhagen.multimodule</groupId>
<version>1.12-SNAPSHOT</version>
</parent>
<artifactId>app2</artifactId>
<scm>
<connection>${parent.scm.connection}</connection>
<developerConnection>${parent.scm.developerConnection}</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
21 changes: 21 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<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>
<parent>
<artifactId>parent</artifactId>
<groupId>de.friedenhagen.multimodule</groupId>
<version>1.12-SNAPSHOT</version>
</parent>
<artifactId>core</artifactId>
<scm>
<connection>${parent.scm.connection}</connection>
<developerConnection>${parent.scm.developerConnection}</developerConnection>
</scm>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
86 changes: 86 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<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>de.friedenhagen.multimodule</groupId>
<artifactId>parent</artifactId>
<version>1.12-SNAPSHOT</version>
<packaging>pom</packaging>
<name>parent</name>
<scm>
<connection>scm:svn:file:///Software/nobackup/svnrepo/multimodule/trunk</connection>
<developerConnection>scm:svn:file:///Software/nobackup/svnrepo/multimodule/trunk</developerConnection>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<distributionManagement>
<snapshotRepository>
<id>ui-snapshot</id>
<uniqueVersion>true</uniqueVersion>
<url>http://localhost:8080/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>ui-staging</id>
<uniqueVersion>true</uniqueVersion>
<url>http://localhost:8080/nexus/content/repositories/staging/</url>
</repository>
</distributionManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
<inherited>true</inherited>
<configuration>
<tagBase>file:///Software/nobackup/svnrepo/multimodule/releases/</tagBase>
<releaseProfiles>multimodule-tag-modules</releaseProfiles>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>core</module>
<module>app1</module>
<module>app2</module>
</modules>
<profiles>
<profile>
<id>multimodule-tag-modules</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>multimodule-tag-modules</id>
<inherited>true</inherited>
<phase>deploy</phase>
<configuration>
<goalsDirectory>..</goalsDirectory>
<tagBase>file:///Software/nobackup/svnrepo/multimodule/releases/</tagBase>
<tag>${project.artifactId}-${project.version}</tag>
</configuration>
<goals>
<goal>tag</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>

0 comments on commit e5ace45

Please sign in to comment.