Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Completely stripped down sample to include only needed parts

  • Loading branch information...
commit 702dba7133d1bd8a679d3c4639d38883b9e74ece 1 parent 62c5ec2
Mirko Friedenhagen authored April 22, 2011
13  app1/pom.xml
@@ -7,11 +7,6 @@
7 7
     </parent>
8 8
     <artifactId>app1</artifactId>
9 9
     <packaging>jar</packaging>
10  
-    <scm>
11  
-        <connection>${project.parent.scm.connection}</connection>
12  
-        <developerConnection>${project.parent.scm.developerConnection}</developerConnection>
13  
-        <url>${project.parent.scm.url}</url>
14  
-    </scm>
15 10
     <dependencies>
16 11
         <dependency>
17 12
             <groupId>${project.groupId}</groupId>
@@ -23,12 +18,4 @@
23 18
             <scope>test</scope>
24 19
         </dependency>
25 20
     </dependencies>
26  
-    <build>
27  
-        <plugins>
28  
-            <plugin>
29  
-                <groupId>org.apache.maven.plugins</groupId>
30  
-                <artifactId>maven-scm-plugin</artifactId>
31  
-            </plugin>
32  
-        </plugins>
33  
-    </build>
34 21
 </project>
13  app2/pom.xml
@@ -7,17 +7,4 @@
7 7
     </parent>
8 8
     <artifactId>app2</artifactId>
9 9
     <packaging>jar</packaging>
10  
-    <scm>
11  
-        <connection>${project.parent.scm.connection}</connection>
12  
-        <developerConnection>${project.parent.scm.developerConnection}</developerConnection>
13  
-        <url>${project.parent.scm.url}</url>
14  
-    </scm>
15  
-    <build>
16  
-        <plugins>
17  
-            <plugin>
18  
-                <groupId>org.apache.maven.plugins</groupId>
19  
-                <artifactId>maven-scm-plugin</artifactId>
20  
-            </plugin>
21  
-        </plugins>
22  
-    </build>
23 10
 </project>
13  core/pom.xml
@@ -7,19 +7,6 @@
7 7
     </parent>
8 8
     <artifactId>core</artifactId>
9 9
     <packaging>jar</packaging>
10  
-    <scm>
11  
-        <connection>${project.parent.scm.connection}</connection>
12  
-        <developerConnection>${project.parent.scm.developerConnection}</developerConnection>
13  
-        <url>${project.parent.scm.url}</url>
14  
-    </scm>
15  
-    <build>
16  
-        <plugins>
17  
-            <plugin>
18  
-                <groupId>org.apache.maven.plugins</groupId>
19  
-                <artifactId>maven-scm-plugin</artifactId>
20  
-            </plugin>
21  
-        </plugins>
22  
-    </build>
23 10
     <dependencies>
24 11
         <dependency>
25 12
             <groupId>junit</groupId>
109  pom.xml
@@ -5,57 +5,11 @@
5 5
     <artifactId>parent</artifactId>
6 6
     <version>1.19-SNAPSHOT</version>
7 7
     <packaging>pom</packaging>
8  
-    <name>parent</name>
9  
-    <url>http://github.com/mfriedenhagen/multi-module-sample/</url>
10  
-    <scm>
11  
-        <connection>scm:git:git://github.com:mfriedenhagen/multi-module-sample.git</connection>
12  
-        <developerConnection>scm:git:git@github.com:mfriedenhagen/multi-module-sample.git</developerConnection>
13  
-        <url>http://github.com/mfriedenhagen/multi-module-sample/</url>
14  
-    </scm>
15  
-    <ciManagement>
16  
-        <system>Jenkins</system>
17  
-        <url>http://huschteguzzel.de/hudson/job/test-multimodule/</url>
18  
-    </ciManagement>
19  
-    <developers>
20  
-        <developer>
21  
-            <id>mfriedenhagen</id>
22  
-            <name>Mirko Friedenhagen</name>
23  
-            <email>mfriedenhagen@example.com</email>
24  
-            <organization>My, Myself &amp; I</organization>
25  
-            <organizationUrl>${project.url}</organizationUrl>
26  
-            <url>http://github.com/mfriedenhagen</url>
27  
-            <timezone>+1</timezone>
28  
-        </developer>
29  
-    </developers>
30  
-    <properties>
  8
+    <name>parent</name>    <properties>
  9
+        <cobertura-plugin.version>2.4</cobertura-plugin.version>
31 10
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32 11
     </properties>
33  
-    <distributionManagement>
34  
-        <snapshotRepository>
35  
-            <id>ui-snapshot</id>
36  
-            <uniqueVersion>true</uniqueVersion>
37  
-            <url>http://localhost:8080/nexus/content/repositories/snapshots/</url>
38  
-        </snapshotRepository>
39  
-        <repository>
40  
-            <id>ui-staging</id>
41  
-            <uniqueVersion>true</uniqueVersion>
42  
-            <url>http://localhost:8080/nexus/content/repositories/staging/</url>
43  
-        </repository>
44  
-        <site>
45  
-            <id>ui-site</id>
46  
-            <url>http://localhost:8080/nexus/content/repositories/sites/</url>
47  
-        </site>
48  
-    </distributionManagement>
49 12
     <build>
50  
-        <pluginManagement>
51  
-            <plugins>
52  
-                <plugin>
53  
-                    <groupId>org.apache.maven.plugins</groupId>
54  
-                    <artifactId>maven-scm-plugin</artifactId>
55  
-                    <version>1.2</version>
56  
-                </plugin>
57  
-            </plugins>
58  
-        </pluginManagement>
59 13
         <plugins>
60 14
             <plugin>
61 15
                 <groupId>org.apache.maven.plugins</groupId>
@@ -64,15 +18,6 @@
64 18
             </plugin>
65 19
             <plugin>
66 20
                 <groupId>org.apache.maven.plugins</groupId>
67  
-                <artifactId>maven-release-plugin</artifactId>
68  
-                <version>2.0-beta-9</version>
69  
-                <inherited>true</inherited>
70  
-                <configuration>
71  
-                    <releaseProfiles>multimodule-tag-modules</releaseProfiles>
72  
-                </configuration>
73  
-            </plugin>
74  
-            <plugin>
75  
-                <groupId>org.apache.maven.plugins</groupId>
76 21
                 <artifactId>maven-site-plugin</artifactId>
77 22
                 <version>3.0-beta-3</version>
78 23
                 <executions>
@@ -86,27 +31,9 @@
86 31
                 <configuration>
87 32
                     <reportPlugins>
88 33
                         <plugin>
89  
-                            <groupId>org.apache.maven.plugins</groupId>
90  
-                            <artifactId>maven-project-info-reports-plugin</artifactId>
91  
-                            <version>2.3.1</version>
92  
-                        </plugin>
93  
-                        <plugin>
94  
-                            <groupId>org.apache.maven.plugins</groupId>
95  
-                            <artifactId>maven-jxr-plugin</artifactId>
96  
-                            <version>2.2</version>
97  
-                        </plugin>
98  
-                        <plugin>
99  
-                            <groupId>org.apache.maven.plugins</groupId>
100  
-                            <artifactId>maven-checkstyle-plugin</artifactId>
101  
-                            <version>2.6</version>
102  
-                            <configuration>
103  
-                                <enableRulesSummary>false</enableRulesSummary>
104  
-                            </configuration>
105  
-                        </plugin>
106  
-                        <plugin>
107 34
                             <groupId>org.codehaus.mojo</groupId>
108 35
                             <artifactId>cobertura-maven-plugin</artifactId>
109  
-                            <version>2.4</version>
  36
+                            <version>${cobertura-plugin.version}</version>
110 37
                             <configuration>
111 38
                                 <formats>
112 39
                                     <format>html</format>
@@ -138,34 +65,4 @@
138 65
         <module>app1</module>
139 66
         <module>app2</module>
140 67
     </modules>
141  
-    <profiles>
142  
-        <profile>
143  
-            <id>multimodule-tag-modules</id>
144  
-            <build>
145  
-                <pluginManagement>
146  
-                    <plugins>
147  
-                        <plugin>
148  
-                            <groupId>org.apache.maven.plugins</groupId>
149  
-                            <artifactId>maven-scm-plugin</artifactId>
150  
-                            <version>1.2</version>
151  
-                            <executions>
152  
-                                <execution>
153  
-                                    <id>multimodule-tag-modules</id>
154  
-                                    <inherited>true</inherited>
155  
-                                    <phase>deploy</phase>
156  
-                                    <configuration>
157  
-                                        <connectionUrl>${project.scm.connectionUrl}</connectionUrl>
158  
-                                        <tag>${project.artifactId}-${project.version}</tag>
159  
-                                    </configuration>
160  
-                                    <goals>
161  
-                                        <goal>tag</goal>
162  
-                                    </goals>
163  
-                                </execution>
164  
-                            </executions>
165  
-                        </plugin>
166  
-                    </plugins>
167  
-                </pluginManagement>
168  
-            </build>
169  
-        </profile>
170  
-    </profiles>
171 68
 </project>

0 notes on commit 702dba7

Please sign in to comment.
Something went wrong with that request. Please try again.