maven archetype creating correctly?

From: Mr. G Brown (gsbrow..mich.edu)
Date: Thu Jul 23 2009 - 20:16:47 EDT

  • Next message: Martino Limido: "Eclipse 3.5 - Very Slow Build Time"

    Hi,

    Is the archetype creating things correctly?

    I just created a demo.war.warnowonder project, with the 2.0.17
    archetype via m2eclipse and wo 5.3.3 and no wonder, and war support.

    I get:

    Now the wo components are not part of the resources that get packaged
    up in the war; I can't find the Main.wo component anywhere in the war.
    if one does : mvn clean package, one gets a Info.plist and Properties
    and the java classes, that is all:


    Also, when one creates a new component, it's java file gets put right
    under src/ -- not in the component package.

    the pom:
    <?xml version="1.0" encoding="UTF-8"?>
    <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/maven-v4_0_0.xsd">
            <modelVersion>4.0.0</modelVersion>
            <groupId>demo.war</groupId>
            <artifactId>warnowonder</artifactId>
            <packaging>woapplication</packaging>
            <version>0.0.1-SNAPSHOT</version>
            <name>warnowonder WebObjects Application</name>
            <url>http://maven.apache.org>

            <properties>
                    <!-- properties used for filtering and dependency management -->
                    <jvmtarget>1.5</jvmtarget>
                    <mainclass>demo.war.warnowonder.app.Application</mainclass>
                    <webobjects.groupId>com.webobjects</webobjects.groupId>
                    <webobjects.version>5.3.3</webobjects.version>
    </properties>

            <build>
                    <finalName>${project.artifactId}</finalName>
                    <plugins>
                            <plugin>
                                    <groupId>org.objectstyle.woproject.maven2</groupId>
                                    <artifactId>maven-wolifecycle-plugin</artifactId>
                                    <version>2.0.17</version>
                                    <extensions>true</extensions>
                            </plugin>
                            <plugin>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-compiler-plugin</artifactId>
                                    <configuration>
                                            <source>${jvmtarget}</source>
                                            <target>${jvmtarget}</target>
                                    </configuration>
                            </plugin>
                    </plugins>
            </build>

            <dependencies>
                    <dependency>
                            <groupId>${webobjects.groupId}</groupId>
                            <artifactId>JavaWebObjects</artifactId>
                            <version>${webobjects.version}</version>
                    </dependency>
                    <dependency>
                            <groupId>${webobjects.groupId}</groupId>
                            <artifactId>JavaEOAccess</artifactId>
                            <version>${webobjects.version}</version>
                    </dependency>
                    <dependency>
                            <groupId>${webobjects.groupId}</groupId>
                            <artifactId>JavaFoundation</artifactId>
                            <version>${webobjects.version}</version>
                    </dependency>
            </dependencies>
    </project>



    This archive was generated by hypermail 2.0.0 : Thu Jul 23 2009 - 20:19:12 EDT