Uploaded image for project: 'Archetypes'
  1. Archetypes
  2. ARCH-16

Project properties generated by the different archetypes should be consistently named

    XMLWordPrintable

Details

    Description

      Hi,

      First off, I'd like to say I really like the new archetypes, thanks a bunch.

      One thing I noticed was that some of the project properties are not consistently named. For instance, the pom.xml file that gets generated when using project archetype contains the following properties:

      pom.xml generated using project archetype
        <properties>
          <magnoliaVersion>4.4.2</magnoliaVersion>
          <stkVersion>1.4.2</stkVersion>
          <javaVersion>1.5</javaVersion>
        </properties>
      

      Whereas, the pom.xml file that gets generated when using the stk-theme archetype contains the following properties:

      pom.xml generated using stk-theme archetype
        <properties>
          <magnoliaVersion>4.4.2</magnoliaVersion>
          <magnoliaSTKVersion>1.4.2</magnoliaSTKVersion>
        </properties>
      

      Note: stkVersion is define by one, and magnoliaSTKVersion is defined by the other.

      Additionally, the javaVersion property is defined in the project pom, but in the pom.xml file that's generated by the module archetype, the values are hard-coded within the compiler plugin configuration:

      pom.xml generated using module archetype
        <build>
          <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.3.2</version>
              <configuration>
                <source>1.6</source>
                <target>1.6</target>
              </configuration>
            </plugin>
          </plugins>
          ...
        </build>
      

      Please let me know if you have any questions.

      Thanks,
      Matt

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              gjoseph Magnolia International
              mderting Matt Dertinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD