Re: Resources problem with woframework packaging

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Thu Nov 09 2006 - 05:39:40 EST

  • Next message: Josef Vanek: "Re: Resources problem with woframework packaging"

    I've updated the information under http://www.objectstyle.org/
    confluence/display/WOL/maven-wolifecycle-plugin

    Could try again with the latest wolifecycle plugin. You existing pom
    should worlk with it.

    Uli
    Am 09.11.2006 um 10:56 schrieb Josef Vanek:

    > Hi all
    >
    > I have a very simple project for testing a woproject build. It has
    > one java
    > class in ${basedir}/src/main/java and one Main.wo component in
    > Resources
    > folder in ${basedir}.
    >
    > My build section in the POM is :
    >
    > ...
    > <packaging>woframework</packaging>
    > <build>
    > <sourceDirectory>src/main/java</sourceDirectory>
    > <testSourceDirectory>src/test/java</testSourceDirectory>
    > <plugins>
    > <plugin>
    > <groupId>org.apache.maven.plugins</groupId>
    > <artifactId>maven-compiler-plugin</artifactId>
    > <configuration>
    > <source>1.5</source>
    > <target>1.5</target>
    > </configuration>
    > </plugin>
    > <plugin>
    > <groupId>org.objectstyle.woproject.maven2</groupId>
    > <artifactId>maven-wolifecycle-plugin</artifactId>
    > <version>2.0-SNAPSHOT</version>
    > <extensions>true</extensions>
    > </plugin>
    > <plugin>
    > <groupId>org.apache.maven.plugins</groupId>
    > <artifactId>maven-surefire-plugin</artifactId>
    > <configuration>
    > <skip>true</skip>
    > </configuration>
    > </plugin>
    > </plugins>
    > </build>
    > ...
    >
    > When I invoke the mvn package goal, it produces no error, it
    > produces a nice
    > ${artifactId}-${version}.jar in the target directory, but when I
    > look into the
    > jar, it contains the Main.wo AND Resources/Main.wo.
    >
    > How could I get rid of the Main.wo component at the root of the jar
    > please ?
    > Said by another mean, how can I control which resources are
    > included in the
    > jar and which are not ?
    >
    > Josef
    >
    > --
    > Open WebMail Project (http://openwebmail.org)
    >



    This archive was generated by hypermail 2.0.0 : Thu Nov 09 2006 - 05:39:45 EST