Wiki Markup |
---|
h2. Description "maven-wolifecycle-plugin" is a plug-in for development of WebObjects applications and frameworks in the context of Maven. |
...
Lifecyle maven plugin for WebObjects projects.
For the moment, this project is based on the existing ant stuff. This plugin does need configuration.
From the pom.xml
Code Block |
---|
h2. Lifecyle
Lifecyle maven plugin for WebObjects projects.
For the moment, this project is based on the existing ant stuff. This plugin does need configuration.
h3. Example WOFramework
From the pom.xml
{code}
<?xml version="1.0"?>
<project>
...
<packaging>woframework</packaging>
...
<build>
...
<plugins>
<plugin>
<groupId>org.objectstyle.woproject.maven2</groupId>
<artifactId>maven-wolifecycle-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<extensions>true</extensions>
</plugin>
</plugins>
...
</build>
...
</project>
|
...
{code} h3. Example WOApplication From the pom.xml |
...
Code Block |
---|
{code color:red} <?xml version="1.0"?> <project> ... <packaging>woapplication</packaging> ... <build> ... <plugins> <plugin> <groupId>org.objectstyle.woproject.maven2</groupId> <artifactId>maven-wolifecycle-plugin</artifactId> <version>2.0-SNAPSHOT</version> <extensions>true</extensions> </plugin> </plugins> ... </build> ... </project> |
Per default all resources under Resources and all webserver resources under WebServerResources are included.
To include resources with existing patternset files:
Code Block |
---|
{code} h3. Resources Per default all resources under Resources and all webserver resources under WebServerResources are included. To include resources with existing patternset files: {code} <?xml version="1.0"?> <project> ... <packaging>woapplication</packaging> ... <build> ... <plugins> <plugin> <groupId>org.objectstyle.woproject.maven2</groupId> <artifactId>maven-wolifecycle-plugin</artifactId> <version>2.0-SNAPSHOT</version> <extensions>true</extensions> {color:red} <configuration> <readPatternsets>true</readPatternsets> </configuration> {color} </plugin> </plugins> ... </build> ... </project> {code} To include resources from a folder: |
...
{code |
} <?xml version="1.0"?> <project> ... <packaging>woapplication</packaging> ... <build> ... <resources> <resource> <directory> [your folder here] </directory> <targetPath> [either Resources or WebServerResources] </targetPath </resource> </resources> ... <plugins> <plugin> <groupId>org.objectstyle.woproject.maven2</groupId> <artifactId>maven-wolifecycle-plugin</artifactId> <version>2.0-SNAPSHOT</version> <extensions>true</extensions> </plugin> </plugins> ... </build> ... </project> {code} |