Skip to content

Commit

Permalink
[MCOMPILER-565] Allow project build by Maven 4
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 15, 2023
1 parent 4855773 commit a1c5b13
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/it/mcompiler-106/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ under the License.
<configuration>
<fork>true</fork>
<compilerArguments>
<Xlint/>
<Xlint:-path/>
</compilerArguments>
<Xlint/>
<Averbose>true</Averbose>
</compilerArguments>
</configuration>
</plugin>
</plugins>
Expand Down
25 changes: 25 additions & 0 deletions src/it/mcompiler-106/verify.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
def logFile = new File( basedir, 'build.log' )
assert logFile.exists()
content = logFile.text

assert content.contains( ' -Averbose=true' )
assert content.contains( ' -Xlint' )

Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public abstract class AbstractCompilerMojo extends AbstractMojo {
/**
* <p>
* Sets the unformatted single argument string to be passed to the compiler. To pass multiple arguments such as
* <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use {@link #compilerArguments}.
* <code>-Xmaxerrs 1000</code> (which are actually two arguments) you have to use {@link #compilerArgs}.
* </p>
* <p>
* This is because the list of valid arguments passed to a Java compiler varies based on the compiler version.
Expand Down

0 comments on commit a1c5b13

Please sign in to comment.