Wiki source code of maven-wolifecycle-plugin
                  Last modified by Ulrich Köster on 2007/02/09 11:42
              
      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 | |
|  | 52.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 | <extensions>true</extensions> | ||
| 29 | </plugin> | ||
| 30 | </plugins> | ||
| 31 | ... | ||
| 32 | </build> | ||
| 33 | ... | ||
| 34 | </project> | ||
|  | 25.1 | 35 | |
|  | 45.1 | 36 | {{/code}} | 
|  | 35.1 | 37 | |
|  | 45.1 | 38 | === Example WOApplication === | 
|  | 43.1 | 39 | |
|  | 45.1 | 40 | From the pom.xml | 
|  | 43.1 | 41 | |
|  | 51.1 | 42 | {{code}} | 
|  | 43.1 | 43 | |
|  | 45.1 | 44 | <?xml version="1.0"?> | 
| 45 | <project> | ||
| 46 | ... | ||
| 47 | <packaging>woapplication</packaging> | ||
| 48 | ... | ||
| 49 | <build> | ||
| 50 | ... | ||
| 51 | <plugins> | ||
| 52 | <plugin> | ||
| 53 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 54 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 55 | <extensions>true</extensions> | ||
| 56 | </plugin> | ||
| 57 | </plugins> | ||
| 58 | ... | ||
| 59 | </build> | ||
| 60 | ... | ||
| 61 | </project> | ||
| 62 | |||
|  | 51.1 | 63 | {{/code}} | 
|  | 45.1 | 64 | |
|  | 51.1 | 65 | === Resources === | 
| 66 | |||
|  | 45.1 | 67 | Per default all resources under Resources and all webserver resources under WebServerResources are included. | 
| 68 | |||
| 69 | To include resources with existing patternset files: | ||
| 70 | |||
|  | 51.1 | 71 | {{code}} | 
| 72 | |||
|  | 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 | <extensions>true</extensions> | ||
| 85 | <configuration> | ||
| 86 | <readPatternsets>true</readPatternsets> | ||
| 87 | </configuration> | ||
| 88 | </plugin> | ||
| 89 | </plugins> | ||
| 90 | ... | ||
| 91 | </build> | ||
| 92 | ... | ||
| 93 | </project> | ||
| 94 | |||
|  | 51.1 | 95 | {{/code}} | 
| 96 | |||
|  | 45.1 | 97 | To include resources from a folder: | 
| 98 | |||
|  | 51.1 | 99 | {{code}} | 
| 100 | |||
|  | 45.1 | 101 | <?xml version="1.0"?> | 
| 102 | <project> | ||
| 103 | ... | ||
| 104 | <packaging>woapplication</packaging> | ||
| 105 | ... | ||
| 106 | <build> | ||
| 107 | ... | ||
| 108 | <resources> | ||
| 109 | <resource> | ||
| 110 | <directory> [your folder here] </directory> | ||
| 111 | <targetPath> [either Resources or WebServerResources] </targetPath | ||
| 112 | </resource> | ||
| 113 | </resources> | ||
| 114 | ... | ||
| 115 | <plugins> | ||
| 116 | <plugin> | ||
| 117 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 118 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 119 | <extensions>true</extensions> | ||
| 120 | </plugin> | ||
| 121 | </plugins> | ||
| 122 | ... | ||
| 123 | </build> | ||
| 124 | ... | ||
| 125 | </project> | ||
|  | 51.1 | 126 | |
| 127 | {{/code}} | ||
| 128 | |||
| 129 | == Options == | ||
| 130 | |||
| 131 | Per default JavaClientClasses are not included in the WebServerResources.tar.gz per default. | ||
| 132 | |||
| 133 | To include them change your pom to set the 'includeJavaClientClassesInWebServerResources' property to true. | ||
| 134 | |||
| 135 | {{code}} | ||
| 136 | |||
| 137 | <?xml version="1.0"?> | ||
| 138 | <project> | ||
| 139 | ... | ||
| 140 | <packaging>woapplication</packaging> | ||
| 141 | ... | ||
| 142 | |||
| 143 | <build> | ||
| 144 | ........ | ||
| 145 | <plugins> | ||
| 146 | <plugin> | ||
| 147 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 148 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 149 | <extensions>true</extensions> | ||
| 150 | <configuration> | ||
| 151 | <readPatternsets>true</readPatternsets> | ||
| 152 | <includeJavaClientClassesInWebServerResources>true</includeJavaClientClassesInWebServerResources> | ||
| 153 | </configuration> | ||
| 154 | </plugin> | ||
| 155 | </plugins> | ||
| 156 | </build> | ||
| 157 | ... | ||
| 158 | </project> | ||
| 159 | |||
| 160 | |||
| 161 | {{/code}} | ||
| 162 | |||
| 163 | Per default jars provided by Apple are included. | ||
| 164 | |||
| 165 | To skip them change your pom to set the 'skipAppleProvidedFrameworks' property to true. | ||
| 166 | |||
| 167 | (since 2.0.4) | ||
| 168 | |||
| 169 | {{code}} | ||
| 170 | |||
| 171 | <?xml version="1.0"?> | ||
| 172 | <project> | ||
| 173 | ... | ||
| 174 | <packaging>woapplication</packaging> | ||
| 175 | ... | ||
| 176 | |||
| 177 | <build> | ||
| 178 | ........ | ||
| 179 | <plugins> | ||
| 180 | <plugin> | ||
| 181 | <groupId>org.objectstyle.woproject.maven2</groupId> | ||
| 182 | <artifactId>maven-wolifecycle-plugin</artifactId> | ||
| 183 | <extensions>true</extensions> | ||
| 184 | <configuration> | ||
| 185 | <skipAppleProvidedFrameworks>true</skipAppleProvidedFrameworks> | ||
| 186 | </configuration> | ||
| 187 | </plugin> | ||
| 188 | </plugins> | ||
| 189 | </build> | ||
| 190 | ... | ||
| 191 | </project> | ||
| 192 | |||
| 193 | |||
| 194 | {{/code}} |