Skip to content

Commit 0a850a1

Browse files
committed
[MJAVADOC-807] Simplify IT for MJAVADOC-498
This closes #309
1 parent 43e901f commit 0a850a1

File tree

8 files changed

+15
-47
lines changed

8 files changed

+15
-47
lines changed

src/it/projects/MJAVADOC-498_aggr_modulepath/baz/pom.xml

+5-14
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,10 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-javadoc-plugin</artifactId>
36-
<executions>
37-
<execution>
38-
<id>javadoc-aggregate</id>
39-
<phase>package</phase>
40-
<goals>
41-
<goal>javadoc-no-fork</goal>
42-
</goals>
43-
<configuration>
44-
<includeDependencySources>true</includeDependencySources>
45-
<includeTransitiveDependencySources>true</includeTransitiveDependencySources>
46-
</configuration>
47-
</execution>
48-
</executions>
36+
<configuration>
37+
<includeDependencySources>true</includeDependencySources>
38+
<includeTransitiveDependencySources>true</includeTransitiveDependencySources>
39+
</configuration>
4940
</plugin>
5041
</plugins>
5142
</build>
@@ -58,4 +49,4 @@
5849
</dependency>
5950
</dependencies>
6051

61-
</project>
52+
</project>

src/it/projects/MJAVADOC-498_aggr_modulepath/invoker.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -16,3 +16,4 @@
1616
# under the License.
1717

1818
invoker.java.version = 9+
19+
invoker.goals = compile javadoc:javadoc

src/it/projects/MJAVADOC-498_aggr_modulepath/pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@
5353
<groupId>org.apache.maven.plugins</groupId>
5454
<artifactId>maven-javadoc-plugin</artifactId>
5555
<version>@project.version@</version>
56-
<executions>
57-
<execution>
58-
<id>attach-javadocs</id>
59-
<phase>package</phase>
60-
<goals>
61-
<goal>jar</goal>
62-
</goals>
63-
</execution>
64-
</executions>
6556
</plugin>
6657
</plugins>
6758
</build>

src/it/projects/MJAVADOC-498_mm_modulepath/invoker.properties

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
10+
#
1111
# Unless required by applicable law or agreed to in writing,
1212
# software distributed under the License is distributed on an
1313
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -16,3 +16,4 @@
1616
# under the License.
1717

1818
invoker.java.version = 9+
19+
invoker.goals = compile javadoc:javadoc

src/it/projects/MJAVADOC-498_mm_modulepath/pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,6 @@
5252
<groupId>org.apache.maven.plugins</groupId>
5353
<artifactId>maven-javadoc-plugin</artifactId>
5454
<version>@project.version@</version>
55-
<executions>
56-
<execution>
57-
<id>attach-javadocs</id>
58-
<phase>package</phase>
59-
<goals>
60-
<goal>jar</goal>
61-
</goals>
62-
</execution>
63-
</executions>
6455
</plugin>
6556
</plugins>
6657
</build>

src/it/projects/MJAVADOC-498_modulepath/invoker.properties

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
# under the License.
1717

1818
invoker.java.version = 9+
19+
invoker.goals = compile javadoc:javadoc javadoc:test-javadoc

src/it/projects/MJAVADOC-498_modulepath/pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@
6161
<groupId>org.apache.maven.plugins</groupId>
6262
<artifactId>maven-javadoc-plugin</artifactId>
6363
<version>@project.version@</version>
64-
<executions>
65-
<execution>
66-
<id></id>
67-
<goals>
68-
<goal>jar</goal>
69-
<goal>test-jar</goal>
70-
</goals>
71-
</execution>
72-
</executions>
7364
</plugin>
7465
</plugins>
7566
</build>

src/it/projects/MJAVADOC-498_modulepath/verify.groovy

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
* under the License.
1818
*/
1919
def log = new File( basedir, 'build.log').text
20-
21-
assert log.count( " --module-path" ) == 3
20+
def count = log.count( " --module-path" )
21+
// depends on Maven version (<= 3.8.x, then 2; otherwise 3)
22+
assert count == 2 || count == 3

0 commit comments

Comments
 (0)