Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-584

Resulting root pom.xml from archetype generation has additional newlines with JDK11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1, 3.1.2
    • None
    • Archetypes
    • None

    Description

      This issue does not apply to version 3.1.0, it was introduced in version 3.1.1.

       

      In our project, we have the default configuration of the root pom.xml that contains lines such as this:

      <properties>
          <java.version>11</java.version>
          <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
      </properties>
      

      These lines are still in good shape when added to the jar artifact. However, upon generating the project from the archetype, we get the following (note also the whitespace on the blank lines hinting at some indentation attempts, not just the unexpected line breaks)

      <properties>
                    
        
        <java.version>11</java.version>
                    
        
        <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
                
      
      </properties>
            
      
      

      This issue does not occur in in child module pom.xml files.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bugflux bugflux
              Votes:
              14 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m