michael-o commented on code in PR #188:
URL: 
https://github.com/apache/maven-apache-parent/pull/188#discussion_r1452689833


##########
pom.xml:
##########
@@ -403,6 +403,26 @@ under the License.
               </rules>
             </configuration>
           </execution>
+          <execution>
+            <id>enforce-maven.compiler.target-version</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireProperty>
+                  <property>maven.compiler.target</property>
+                  <regex>(?!1\.).*</regex>
+                  <regexMessage>The value of property maven.compiler.target 
must not start with "1.", use for example "8" instead of "1.8"!</regexMessage>
+                </requireProperty>
+                <requireProperty>
+                  <property>maven.compiler.source</property>
+                  <regex>(?!1\.).*</regex>
+                  <regexMessage>The value of property maven.compiler.source 
must not start with "1.", use for example "8" instead of "1.8"!</regexMessage>
+                </requireProperty>
+              </rules>
+            </configuration>
+          </execution>

Review Comment:
   I'll let it fail implicitly...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to