To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Description

"maven-wolifecycle-plugin" is a plug-in for development of WebObjects applications and frameworks in the context of Maven.

Lifecyle

Lifecyle maven plugin for WebObjects projects.

For the moment, this project is based on the existing ant stuff. This plugin does need configuration.

Example WOFramework

From the pom.xml

<?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>

Example WOApplication

From the pom.xml

Unknown macro: {code color}

<?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>


h3. Resources

Per default all resources under Resources and all webserver resources under WebServerResources are included.

To include resources with existing patternset files:

<?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>

<configuration>
<readPatternsets>true</readPatternsets>
</configuration>

</plugin>
</plugins>
...
</build>
...
</project>


To include resources from a folder:

<?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>


  • No labels