Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5991

Use xml attributes to shorten POM

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • POM
    • None

    Description

      Is it possible to greatly shorten the pom by using xml attributes ?

      For example the dependency element :

      <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.0</version>
      <type>jar</type>
      <scope>test</scope>
      <optional>true</optional>
      </dependency>

      Can be shortened to

      <dependency groupId="junit" artifactId="junit" version="4.0" type="jar" scope="test" optional="true" />

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frank.lloyd.teh Frank Lloyd Teh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: