You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/06/04 13:34:03 UTC

[GitHub] [maven-plugin-tools] cstamas opened a new pull request #35: [MPLUGIN-372] IT

cstamas opened a new pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35


   Adding separate IT that demonstrates how this IT FAILS (as expected)
   on master, while passes with PR.
   
   The IT itself is based on `annotation-with-inheritance-from-deps`
   with following changes:
   * dependency maven-plugin-api scope moved to `provided`
   * FirstMojo got `@deprecated` javadoc tag REMOVED (to make maven-plugin-plugin search superclasses)
   
   The IT against master shows that build FAILS (so install goal fail) as
   maven-plugin-plugin:descriptor goal fails. It reports "API incompatible"
   but actual cause is CNFEx.


-- 
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.

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



[GitHub] [maven-plugin-tools] cstamas commented on pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#issuecomment-895181290


   merged as 7adc5c18054a04520df932f1aef7d912e125e2ce


-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] cstamas commented on pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#issuecomment-895167650


   Tested locally the changes (w/ master and w/ MPLUGIN-372), works as expected (fails, passes)


-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] rfscholte commented on a change in pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
rfscholte commented on a change in pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#discussion_r685128505



##########
File path: maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/invoker.properties
##########
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals.1 = install

Review comment:
       based on verify script, `process-classes` is good enough, right? 




-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] cstamas commented on pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#issuecomment-895157817


   This IT when ran locally (against master or with MPLUGIN-372 locally merged) fails and passes, showing the problem.


-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] rfscholte commented on a change in pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
rfscholte commented on a change in pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#discussion_r685126604



##########
File path: maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/verify.groovy
##########
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ */
+
+File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
+assert descriptorFile.isFile()
+
+return true;

Review comment:
       in groovy `return true` not required, as the assert already resolves to `true` 




-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] cstamas closed pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas closed pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35


   


-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] rfscholte commented on a change in pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
rfscholte commented on a change in pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#discussion_r685127048



##########
File path: maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/invoker.properties
##########
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals.1 = install

Review comment:
       .1 can be removed




-- 
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-unsubscribe@maven.apache.org

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



[GitHub] [maven-plugin-tools] cstamas commented on pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas commented on pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#issuecomment-855296477


   Um, the GH workflow does not run ITs...


-- 
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.

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



[GitHub] [maven-plugin-tools] cstamas commented on a change in pull request #35: [MPLUGIN-372] IT

Posted by GitBox <gi...@apache.org>.
cstamas commented on a change in pull request #35:
URL: https://github.com/apache/maven-plugin-tools/pull/35#discussion_r685134363



##########
File path: maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/verify.groovy
##########
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ */
+
+File descriptorFile = new File( basedir, "target/classes/META-INF/maven/plugin.xml" );
+assert descriptorFile.isFile()
+
+return true;

Review comment:
       fixed

##########
File path: maven-plugin-plugin/src/it/mplugin-372-annotation-with-inheritance-from-provided-deps/invoker.properties
##########
@@ -0,0 +1,18 @@
+# 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.
+
+invoker.goals.1 = install

Review comment:
       fixed




-- 
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-unsubscribe@maven.apache.org

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