Dashboard > WOProject / WOLips > ... > WOProject-Maven2 > maven-wolifecycle-plugin
  WOProject / WOLips Log In View a printable version of the current page.  
  maven-wolifecycle-plugin
Added by Andrus Adamchik, last edited by Ulrich Köster on Feb 09, 2007  (view change)
Labels: 
(None)

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>
        <extensions>true</extensions>
      </plugin>
    </plugins>
    ...
  </build>
...
</project>

Example WOApplication

From the pom.xml

<?xml version="1.0"?>
<project>
  ...
  <packaging>woapplication</packaging>
  ...
  <build>
    ...
    <plugins>
      <plugin>
        <groupId>org.objectstyle.woproject.maven2</groupId>
        <artifactId>maven-wolifecycle-plugin</artifactId>
        <extensions>true</extensions>
      </plugin>
    </plugins>
    ...
  </build>
...
</project>

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>
        <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>
        <extensions>true</extensions>
      </plugin>
    </plugins>
    ...
  </build>
...
</project>

Options

Per default JavaClientClasses are not included in the WebServerResources.tar.gz per default.

To include them change your pom to set the 'includeJavaClientClassesInWebServerResources' property to true.

<?xml version="1.0"?>
<project>
  ...
  <packaging>woapplication</packaging>
  ...

<build>
                ........
                <plugins>
                        <plugin>
                                <groupId>org.objectstyle.woproject.maven2</groupId>
                                <artifactId>maven-wolifecycle-plugin</artifactId>
                                <extensions>true</extensions>
                                <configuration>
                                        <readPatternsets>true</readPatternsets>
  <includeJavaClientClassesInWebServerResources>true</includeJavaClientClassesInWebServerResources>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
...
</project>

Per default jars provided by Apple are included.

To skip them change your pom to set the 'skipAppleProvidedFrameworks' property to true.

(since 2.0.4)

<?xml version="1.0"?>
<project>
  ...
  <packaging>woapplication</packaging>
  ...

<build>
                ........
                <plugins>
                        <plugin>
                                <groupId>org.objectstyle.woproject.maven2</groupId>
                                <artifactId>maven-wolifecycle-plugin</artifactId>
                                <extensions>true</extensions>
                                <configuration>
  <skipAppleProvidedFrameworks>true</skipAppleProvidedFrameworks>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
...
</project>

Site running on a free Atlassian Confluence Open Source Project License granted to ObjectStyle. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators