Maven Archetype Bundles

site missing module in maven-archetype-j2ee-simple archetype plugin

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 5
  • Labels:
    None
  • Number of attachments :
    2

Description

Hi,

When I create a j2ee-simple project from archetype n°10 the main pom.xml specify a site module but without site directory.
Then at each j2ee project creation I need to delete the relevant line in pom.xml.

Can we have a site directory generated or the relevant line in pom.xml deleted.

Regards.

  1. ARCHETYPE-228-j2ee.diff
    06/Feb/10 4:49 PM
    14 kB
    Matthew McCullough
  2. ARCHETYPE-228-part1.diff
    06/Feb/10 4:31 PM
    2 kB
    Matthew McCullough

Activity

Hide
Esteban DUGUEPEROUX added a comment -

And the following XML header shouldn't be compulsory ?

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

Show
Esteban DUGUEPEROUX added a comment - And the following XML header shouldn't be compulsory ? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Hide
Antony Stubbs added a comment -
Show
Antony Stubbs added a comment - Gives a very bad impression of Maven.. see here: http://stackoverflow.com/questions/1082012/maven-archetype-j2ee-simple-generates-a-failing-project
Hide
Matthew McCullough added a comment -

I'm working towards fixing this since it bothers me as well and makes my classes unable to use this archetype.

Oddly, the archetype plugin was updated to 2.0-alpha-4, but the j2ee archetype was not brought along for the ride. The archetype-catalog.xml file (http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/main/resources/archetype-catalog.xml?view=markup) is still pointing to the 1.0 release of this archetype (http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-j2ee-simple/1.0/), which Wendy Smoak says is an old branch likely never to cut another release (makes sense).

So, this leaves us with the option of trying to migrate the guts of the j2ee archetype to the 2.0-alpha-4 trunk (http://svn.apache.org/viewvc/maven/archetype/trunk/). However, the Wendy says the archetype plugin has been completely re-written and now the archetypes are stored in "samples" in the source tree for this project. The odd part is that I don't see a 2.0-alpha-4 of the samples (such as quickstart) having been published to central.

I've also captured this in a post to the mailing list.
http://n2.nabble.com/Maven-Archetype-1-0-to-2-0-variations-question-on-CLI-interactive-prompt-tc4523822.html#a4523822

Show
Matthew McCullough added a comment - I'm working towards fixing this since it bothers me as well and makes my classes unable to use this archetype. Oddly, the archetype plugin was updated to 2.0-alpha-4, but the j2ee archetype was not brought along for the ride. The archetype-catalog.xml file (http://svn.apache.org/viewvc/maven/archetype/trunk/archetype-common/src/main/resources/archetype-catalog.xml?view=markup) is still pointing to the 1.0 release of this archetype (http://repo1.maven.org/maven2/org/apache/maven/archetypes/maven-archetype-j2ee-simple/1.0/), which Wendy Smoak says is an old branch likely never to cut another release (makes sense). So, this leaves us with the option of trying to migrate the guts of the j2ee archetype to the 2.0-alpha-4 trunk (http://svn.apache.org/viewvc/maven/archetype/trunk/). However, the Wendy says the archetype plugin has been completely re-written and now the archetypes are stored in "samples" in the source tree for this project. The odd part is that I don't see a 2.0-alpha-4 of the samples (such as quickstart) having been published to central. I've also captured this in a post to the mailing list. http://n2.nabble.com/Maven-Archetype-1-0-to-2-0-variations-question-on-CLI-interactive-prompt-tc4523822.html#a4523822
Hide
Matthew McCullough added a comment -

The future of this plugin for Maven 3 is over at http://github.com/sonatype/sonatype-archetype

For Maven 2, I've attached a patch that basically just gets the archetypes woven into the build process (they were disabled as modules). Next up is adding back the J2ee one (a second supplemental patch) to the samples. I'll start by coping it from http://svn.apache.org/viewvc/maven/archetype/branches/archetype-1.0.x/maven-archetype-bundles/maven-archetype-j2ee-simple/

and then massaging it to fix the Maven 2 versions of the 2.0-alpha-4 plugin and the Maven 3, 0.8.7 version of the plugin.

Work in progress...

Check out http://github.com/matthewmccullough/sonatype-archetype for what I did on the Maven 3.0 side today.

Show
Matthew McCullough added a comment - The future of this plugin for Maven 3 is over at http://github.com/sonatype/sonatype-archetype For Maven 2, I've attached a patch that basically just gets the archetypes woven into the build process (they were disabled as modules). Next up is adding back the J2ee one (a second supplemental patch) to the samples. I'll start by coping it from http://svn.apache.org/viewvc/maven/archetype/branches/archetype-1.0.x/maven-archetype-bundles/maven-archetype-j2ee-simple/ and then massaging it to fix the Maven 2 versions of the 2.0-alpha-4 plugin and the Maven 3, 0.8.7 version of the plugin. Work in progress... Check out http://github.com/matthewmccullough/sonatype-archetype for what I did on the Maven 3.0 side today.
Hide
Matthew McCullough added a comment -

This is "fix part one" that gets the samples compiling and passing tests with Maven 2.2.1. Next up is a patch that adds back the j2EE sample.

Show
Matthew McCullough added a comment - This is "fix part one" that gets the samples compiling and passing tests with Maven 2.2.1. Next up is a patch that adds back the j2EE sample.
Hide
Matthew McCullough added a comment -

Adding back the j2ee sample as an archetype

Show
Matthew McCullough added a comment - Adding back the j2ee sample as an archetype
Hide
Matthew McCullough added a comment -

Looks like the samples that were brought over, but not active (that I activated) are not quite set up as archetypes. They need a wrapper project above them that is of type <packaging>maven-archetype</packaging>

Show
Matthew McCullough added a comment - Looks like the samples that were brought over, but not active (that I activated) are not quite set up as archetypes. They need a wrapper project above them that is of type <packaging>maven-archetype</packaging>

People

Vote (6)
Watch (4)

Dates

  • Created:
    Updated: