File tree 14 files changed +127
-21
lines changed
plexus-compiler-its/src/main/it
eclipse-compiler-mapstruct
simple-eclipse-compiler-fail
14 files changed +127
-21
lines changed Original file line number Diff line number Diff line change 29
29
<url >https://github.com/basil/MCOMPILER-346-mre</url >
30
30
<properties >
31
31
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
32
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
32
33
</properties >
33
34
<dependencies >
34
35
<dependency >
61
62
<dependency >
62
63
<groupId >org.codehaus.plexus</groupId >
63
64
<artifactId >plexus-compiler-api</artifactId >
64
- <version >@pom. version@ </version >
65
+ <version >${plexus.compiler. version} </version >
65
66
</dependency >
66
67
<dependency >
67
68
<groupId >org.codehaus.plexus</groupId >
68
69
<artifactId >plexus-compiler-javac</artifactId >
69
- <version >@pom. version@ </version >
70
+ <version >${plexus.compiler. version} </version >
70
71
</dependency >
71
72
</dependencies >
72
73
</plugin >
Original file line number Diff line number Diff line change 31
31
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
32
32
<maven .compiler.source>1.8</maven .compiler.source>
33
33
<maven .compiler.target>1.8</maven .compiler.target>
34
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
34
35
</properties >
35
36
36
37
<build >
37
38
<plugins >
38
39
<plugin >
39
40
<artifactId >maven-compiler-plugin</artifactId >
40
- <version >3.8.1 </version >
41
+ <version >@maven.compiler.version@ </version >
41
42
<configuration >
42
43
<compilerId >aspectj</compilerId >
43
44
</configuration >
44
45
<dependencies >
45
46
<dependency >
46
47
<groupId >org.codehaus.plexus</groupId >
47
48
<artifactId >plexus-compiler-api</artifactId >
48
- <version >@pom. version@ </version >
49
+ <version >${plexus.compiler. version} </version >
49
50
</dependency >
50
51
<dependency >
51
52
<groupId >org.codehaus.plexus</groupId >
52
53
<artifactId >plexus-compiler-aspectj</artifactId >
53
- <version >@pom. version@ </version >
54
+ <version >${plexus.compiler. version} </version >
54
55
</dependency >
55
56
</dependencies >
56
57
</plugin >
Original file line number Diff line number Diff line change 34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
35
<maven .compiler.source>1.8</maven .compiler.source>
36
36
<maven .compiler.target>1.8</maven .compiler.target>
37
-
37
+ < plexus .compiler.version>@pom.version@</ plexus .compiler.version>
38
38
<org .mapstruct.version>1.5.2.Final</org .mapstruct.version>
39
39
</properties >
40
40
51
51
<plugin >
52
52
<groupId >org.apache.maven.plugins</groupId >
53
53
<artifactId >maven-compiler-plugin</artifactId >
54
- <version >3.10.1 </version >
54
+ <version >@maven.compiler.version@ </version >
55
55
<configuration >
56
56
<compilerId >eclipse</compilerId >
57
57
</configuration >
58
58
<dependencies >
59
59
<dependency >
60
60
<groupId >org.codehaus.plexus</groupId >
61
61
<artifactId >plexus-compiler-api</artifactId >
62
- <version >@pom. version@ </version >
62
+ <version >${plexus.compiler. version} </version >
63
63
</dependency >
64
64
<dependency >
65
65
<groupId >org.codehaus.plexus</groupId >
66
66
<artifactId >plexus-compiler-eclipse</artifactId >
67
- <version >@pom. version@ </version >
67
+ <version >${plexus.compiler. version} </version >
68
68
</dependency >
69
69
<dependency >
70
70
<groupId >org.mapstruct</groupId >
Original file line number Diff line number Diff line change 32
32
<properties >
33
33
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
34
34
<javac .version>9+181-r4173-1</javac .version>
35
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
35
36
</properties >
36
37
37
38
<dependencies >
48
49
<plugin >
49
50
<groupId >org.apache.maven.plugins</groupId >
50
51
<artifactId >maven-compiler-plugin</artifactId >
51
- <version >3.8.1 </version >
52
+ <version >@maven.compiler.version@ </version >
52
53
<configuration >
53
54
<target >8</target >
54
55
<source >8</source >
Original file line number Diff line number Diff line change
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ invoker.java.version = 11+
19
+ invoker.goals = clean compile
20
+ # invoker.buildResult = failure
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <modelVersion >4.0.0</modelVersion >
6
+
7
+ <groupId >org.apache.maven.plugins.compiler.it</groupId >
8
+ <artifactId >missing-warnings</artifactId >
9
+ <version >1.0-SNAPSHOT</version >
10
+
11
+ <build >
12
+ <pluginManagement >
13
+ <plugins >
14
+ <plugin >
15
+ <groupId >org.apache.maven.plugins</groupId >
16
+ <artifactId >maven-compiler-plugin</artifactId >
17
+ <version >@maven.compiler.version@</version >
18
+ <configuration >
19
+ <forceJavacCompilerUse >true</forceJavacCompilerUse >
20
+ <showWarnings >true</showWarnings >
21
+ </configuration >
22
+ <dependencies >
23
+ <dependency >
24
+ <groupId >org.codehaus.plexus</groupId >
25
+ <artifactId >plexus-compiler-api</artifactId >
26
+ <version >${plexus.compiler.version} </version >
27
+ </dependency >
28
+ <dependency >
29
+ <groupId >org.codehaus.plexus</groupId >
30
+ <artifactId >plexus-compiler-javac</artifactId >
31
+ <version >${plexus.compiler.version} </version >
32
+ </dependency >
33
+ </dependencies >
34
+ </plugin >
35
+ </plugins >
36
+ </pluginManagement >
37
+ </build >
38
+
39
+ <properties >
40
+ <maven .compiler.source>11</maven .compiler.source>
41
+ <maven .compiler.target>11</maven .compiler.target>
42
+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
43
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
44
+ </properties >
45
+ </project >
Original file line number Diff line number Diff line change
1
+ package com .company ;
2
+
3
+ public class SomeClass
4
+ {
5
+ }
Original file line number Diff line number Diff line change
1
+ module testcase {
2
+ exports com .company to someOtherModule ;
3
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+ def logFile = new File ( basedir, ' build.log' )
20
+ assert logFile. exists()
21
+ content = logFile. text. normalize()
22
+
23
+ assert content. contains( " module-info.java:[2,24] [module] module not found: someOtherModule" )
24
+ // assert content.contains( "exports com.company to someOtherModule;" )
Original file line number Diff line number Diff line change 34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
35
<maven .compiler.source>1.8</maven .compiler.source>
36
36
<maven .compiler.target>1.8</maven .compiler.target>
37
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
37
38
</properties >
38
39
39
40
<dependencies >
58
59
<dependency >
59
60
<groupId >org.codehaus.plexus</groupId >
60
61
<artifactId >plexus-compiler-api</artifactId >
61
- <version >@pom. version@ </version >
62
+ <version >${plexus.compiler. version} </version >
62
63
</dependency >
63
64
<dependency >
64
65
<groupId >org.codehaus.plexus</groupId >
65
66
<artifactId >plexus-compiler-eclipse</artifactId >
66
- <version >@pom. version@ </version >
67
+ <version >${plexus.compiler. version} </version >
67
68
</dependency >
68
69
</dependencies >
69
70
</plugin >
Original file line number Diff line number Diff line change 34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
35
<maven .compiler.source>1.8</maven .compiler.source>
36
36
<maven .compiler.target>1.8</maven .compiler.target>
37
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
37
38
</properties >
38
39
39
40
<dependencies >
58
59
<dependency >
59
60
<groupId >org.codehaus.plexus</groupId >
60
61
<artifactId >plexus-compiler-api</artifactId >
61
- <version >@pom. version@ </version >
62
+ <version >${plexus.compiler. version} </version >
62
63
</dependency >
63
64
<dependency >
64
65
<groupId >org.codehaus.plexus</groupId >
65
66
<artifactId >plexus-compiler-eclipse</artifactId >
66
- <version >@pom. version@ </version >
67
+ <version >${plexus.compiler. version} </version >
67
68
</dependency >
68
69
</dependencies >
69
70
</plugin >
Original file line number Diff line number Diff line change 34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
35
<maven .compiler.source>11</maven .compiler.source>
36
36
<maven .compiler.target>11</maven .compiler.target>
37
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
37
38
</properties >
38
39
39
40
<dependencies >
50
51
<plugin >
51
52
<groupId >org.apache.maven.plugins</groupId >
52
53
<artifactId >maven-compiler-plugin</artifactId >
53
- <version >3.8.1 </version >
54
+ <version >@maven.compiler.version@ </version >
54
55
<configuration >
55
56
<fork >true</fork >
56
57
<compilerArgs >
61
62
<dependency >
62
63
<groupId >org.codehaus.plexus</groupId >
63
64
<artifactId >plexus-compiler-api</artifactId >
64
- <version >@pom. version@ </version >
65
+ <version >${plexus.compiler. version} </version >
65
66
</dependency >
66
67
<dependency >
67
68
<groupId >org.codehaus.plexus</groupId >
68
69
<artifactId >plexus-compiler-javac</artifactId >
69
- <version >@pom. version@ </version >
70
+ <version >${plexus.compiler. version} </version >
70
71
</dependency >
71
72
</dependencies >
72
73
</plugin >
Original file line number Diff line number Diff line change 34
34
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
35
35
<maven .compiler.source>1.8</maven .compiler.source>
36
36
<maven .compiler.target>1.8</maven .compiler.target>
37
+ <plexus .compiler.version>@pom.version@</plexus .compiler.version>
37
38
</properties >
38
39
39
40
<dependencies >
50
51
<plugin >
51
52
<groupId >org.apache.maven.plugins</groupId >
52
53
<artifactId >maven-compiler-plugin</artifactId >
53
- <version >3.8.1 </version >
54
+ <version >@maven.compiler.version@ </version >
54
55
<configuration >
55
56
<compilerArgs >
56
57
<compilerArg >-Xlint:-path</compilerArg >
57
58
</compilerArgs >
58
59
</configuration >
59
60
<dependencies >
60
- <dependency >
61
+ <dependency >
61
62
<groupId >org.codehaus.plexus</groupId >
62
63
<artifactId >plexus-compiler-api</artifactId >
63
- <version >@pom. version@ </version >
64
+ <version >${plexus.compiler. version} </version >
64
65
</dependency >
65
66
<dependency >
66
67
<groupId >org.codehaus.plexus</groupId >
67
68
<artifactId >plexus-compiler-javac</artifactId >
68
- <version >@pom. version@ </version >
69
+ <version >${plexus.compiler. version} </version >
69
70
</dependency >
70
71
</dependencies >
71
72
</plugin >
Original file line number Diff line number Diff line change 54
54
<errorprone .version>2.14.0</errorprone .version>
55
55
<trimStackTrace >false</trimStackTrace >
56
56
<preparationGoals >clean install</preparationGoals >
57
+ <maven .compiler.version>3.10.1</maven .compiler.version>
57
58
</properties >
58
59
59
60
<dependencyManagement >
129
130
<plugin >
130
131
<groupId >org.apache.maven.plugins</groupId >
131
132
<artifactId >maven-compiler-plugin</artifactId >
133
+ <version >${maven.compiler.version} </version >
132
134
<configuration >
133
135
<release >8</release >
134
136
</configuration >
You can’t perform that action at this time.
0 commit comments