Wiki source code of maven-wolifecycle-plugin
Version 49.1 by Ulrich Köster on 2006/11/09 05:24
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
25.1 | 1 | == Description == |
| |
16.1 | 2 | |
| |
45.1 | 3 | "maven-wolifecycle-plugin" is a plug-in for development of WebObjects applications and frameworks in the context of Maven. |
| |
25.1 | 4 | |
| |
45.1 | 5 | == Lifecyle == |
| |
25.1 | 6 | |
| |
45.1 | 7 | Lifecyle maven plugin for WebObjects projects. |
| |
25.1 | 8 | |
| |
45.1 | 9 | For the moment, this project is based on the existing ant stuff. This plugin does need configuration. |
| |
25.1 | 10 | |
| |
45.1 | 11 | === Example WOFramework === |
| |
25.1 | 12 | |
| |
45.1 | 13 | From the pom.xml |
| |
35.1 | 14 | |
| |
45.1 | 15 | {{code}} |
| |
25.1 | 16 | |
| |
45.1 | 17 | <?xml version="1.0"?> |
| 18 | <project> | ||
| 19 | ... | ||
| 20 | <packaging>woframework</packaging> | ||
| 21 | ... | ||
| 22 | <build> | ||
| 23 | ... | ||
| 24 | <plugins> | ||
| 25 | <plugin> | ||
| 26 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 27 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 28 | <version>2.0-SNAPSHOT</version> | ||
| 29 | <extensions>true</extensions> | ||
| 30 | </plugin> | ||
| 31 | </plugins> | ||
| 32 | ... | ||
| 33 | </build> | ||
| 34 | ... | ||
| 35 | </project> | ||
| |
25.1 | 36 | |
| |
45.1 | 37 | {{/code}} |
| |
35.1 | 38 | |
| |
45.1 | 39 | === Example WOApplication === |
| |
43.1 | 40 | |
| |
45.1 | 41 | From the pom.xml |
| |
43.1 | 42 | |
| |
49.1 | 43 | {{code color value="red"}} |
| |
43.1 | 44 | |
| |
45.1 | 45 | <?xml version="1.0"?> |
| 46 | <project> | ||
| 47 | ... | ||
| 48 | <packaging>woapplication</packaging> | ||
| 49 | ... | ||
| 50 | <build> | ||
| 51 | ... | ||
| 52 | <plugins> | ||
| 53 | <plugin> | ||
| 54 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 55 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 56 | <version>2.0-SNAPSHOT</version> | ||
| 57 | <extensions>true</extensions> | ||
| 58 | </plugin> | ||
| 59 | </plugins> | ||
| 60 | ... | ||
| 61 | </build> | ||
| 62 | ... | ||
| 63 | </project> | ||
| |
49.1 | 64 | {code} |
| |
45.1 | 65 | |
| |
49.1 | 66 | h3. Resources |
| |
45.1 | 67 | |
| 68 | Per default all resources under Resources and all webserver resources under WebServerResources are included. | ||
| 69 | |||
| 70 | To include resources with existing patternset files: | ||
| 71 | |||
| |
49.1 | 72 | {code} |
| |
45.1 | 73 | <?xml version="1.0"?> |
| 74 | <project> | ||
| 75 | ... | ||
| 76 | <packaging>woapplication</packaging> | ||
| 77 | ... | ||
| 78 | <build> | ||
| 79 | ... | ||
| 80 | <plugins> | ||
| 81 | <plugin> | ||
| 82 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 83 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 84 | <version>2.0-SNAPSHOT</version> | ||
| 85 | <extensions>true</extensions> | ||
| |
47.1 | 86 | {color:red} |
| |
45.1 | 87 | <configuration> |
| 88 | <readPatternsets>true</readPatternsets> | ||
| 89 | </configuration> | ||
| |
47.1 | 90 | {color} |
| |
45.1 | 91 | </plugin> |
| 92 | </plugins> | ||
| 93 | ... | ||
| 94 | </build> | ||
| 95 | ... | ||
| 96 | </project> | ||
| |
49.1 | 97 | {code} |
| |
45.1 | 98 | |
| 99 | To include resources from a folder: | ||
| 100 | |||
| |
49.1 | 101 | {code} |
| |
45.1 | 102 | <?xml version="1.0"?> |
| 103 | <project> | ||
| 104 | ... | ||
| 105 | <packaging>woapplication</packaging> | ||
| 106 | ... | ||
| 107 | <build> | ||
| 108 | ... | ||
| 109 | <resources> | ||
| 110 | <resource> | ||
| 111 | <directory> [your folder here] </directory> | ||
| 112 | <targetPath> [either Resources or WebServerResources] </targetPath | ||
| 113 | </resource> | ||
| 114 | </resources> | ||
| 115 | ... | ||
| 116 | <plugins> | ||
| 117 | <plugin> | ||
| 118 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 119 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 120 | <version>2.0-SNAPSHOT</version> | ||
| 121 | <extensions>true</extensions> | ||
| 122 | </plugin> | ||
| 123 | </plugins> | ||
| 124 | ... | ||
| 125 | </build> | ||
| 126 | ... | ||
| 127 | </project> | ||
| |
49.1 | 128 | {code} |
| 129 | {{/code color}} |