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

Use xml attributes to shorten POM

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: POM
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: