gnodet commented on issue #859:
URL: https://github.com/apache/maven-mvnd/issues/859#issuecomment-1599111640

   > the error happens when i execute command `mvnd clean package 
-Dmaven.test.skip` for my maven project that can be successfully build with 
command `mvn clean package -Dmaven.test.skip`.
   > the error prompts
   > `[ERROR] Failed to execute goal 
org.codehaus.mojo:flatten-maven-plugin:1.3.0:flatten (flatten) on project 
cdp-profile-application: 1 problem was encountered while building the effective 
model for D:\IdeaProjects\profile_application\pom.xml [ERROR] [FATAL] 
Unrecognised tag: 'goals' (position: START_TAG seen ...</version>\n <goals>... 
@77:16) @ io.netty:netty-bom:4.1.75.Final, 
C:\Users\Administrator\.m2\repository\io\netty\netty-bom\4.1.75.Final\netty-bom-4.1.75.Final.pom,
 line 77, column 16 `
   > how i resolve thisproblem? whether i need delete the `goal` tag in my 
pom.xml file?
   
   The `goals` element in plugins is deprecated and support for it has been 
removed in maven 4.  I suppose you're using the m40 distribution which is based 
on 4.0.0-alpha...  So yes, upgrade to a more recent netty where this problem 
has been fixed, or use the m39 distribution based on maven 3.9.x.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to