You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "ok-netbeans (via GitHub)" <gi...@apache.org> on 2024/01/10 12:57:37 UTC

[I] Maven: Superfluous empty lines in parent pom.xml after creating a new child module based on archetype [netbeans]

ok-netbeans opened a new issue, #6943:
URL: https://github.com/apache/netbeans/issues/6943

   ### Apache NetBeans version
   
   Apache NetBeans 20
   
   ### What happened
   
   When adding a new child module based on an archetype to a maven parent project, the pom.xml of the parent project is updated in order to include the new sub-module. However, after the update the pom.xml file contains a lot of additional blank lines (seems to double the number of lines). 
   
   ### Language / Project Type / NetBeans Component
   
   Java Maven Project with child projects
   
   ### How to reproduce
   
   The following steps need to be performed:
   - create a new top-level maven project using the "Files -> New Project"  and choose the project type "POM Project".
   **good**: observe a newly created maven project being opened in NetBeans 
   - open the generated "pom.xml" file of that project
   **good**: observe that it is formatted as expected and **does** not include blank lines after each xml entry.
   - create a child module using the popup menu on the "Modules" entry of the maven project and choose "Create New Module"
   - within the "New Project" dialog choose "Project from Archetyp" and continue to the next dialog
   - choose any of the listed archetypes (e.g. javafx) for the child project and create the project
   **good**: the new child project is created and is listed within the "Modules" section of its parent
   **bad**: the original pom.xml file of the parent project does contain a lot of superfluous blank lines
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 13 or earlier
   
   ### Operating System
   
   RedHat Linux
   
   ### JDK
   
   JDK 21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: notifications-unsubscribe@netbeans.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists