~ubuntu-branches/ubuntu/saucy/jenkins/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/build/0004-disable-plugins.patch/war/pom.xml

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-13 12:35:19 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130813123519-tizgfxcr70trl7r0
Tags: 1.509.2+dfsg-1
* New upstream release (Closes: #706725):
  - d/control: Update versioned BD's:
    * jenkins-executable-war >= 1.28.
    * jenkins-instance-identity >= 1.3.
    * libjenkins-remoting-java >= 2.23.
    * libjenkins-winstone-java >= 0.9.10-jenkins-44.
    * libstapler-java >= 1.207.
    * libjenkins-json-java >= 2.4-jenkins-1.
    * libstapler-adjunct-timeline-java >= 1.4.
    * libstapler-adjunct-codemirror-java >= 1.2.
    * libmaven-hpi-plugin-java >= 1.93.
    * libjenkins-xstream-java >= 1.4.4-jenkins-3.
  - d/maven.rules: Map to older version of animal-sniffer-maven-plugin.
  - Add patch for compatibility with guava >= 0.14.
  - Add patch to exclude asm4 dependency via jnr-posix.
  - Fixes the following security vulnerabilities:
    CVE-2013-2034, CVE-2013-2033, CVE-2013-2034, CVE-2013-1808
* d/patches/*: Switch to using git patch-queue for managing patches.
* De-duplicate jars between libjenkins-java and jenkins-external-job-monitor
  (Closes: #701163):
  - d/control: Add dependency between jenkins-external-job-monitor ->
    libjenkins-java.
  - d/rules: 
    Drop installation of jenkins-core in jenkins-external-job-monitor.
  - d/jenkins-external-job-monitor.{links,install}: Link to jenkins-core
    in /usr/share/java instead of included version.
* Wait longer for jenkins to stop during restarts (Closes: #704848):
  - d/jenkins.init: Re-sync init script from upstream codebase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
The MIT License
 
3
 
 
4
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Stephen Connolly, Tom Huybrechts, Yahoo! Inc.
 
5
 
 
6
Permission is hereby granted, free of charge, to any person obtaining a copy
 
7
of this software and associated documentation files (the "Software"), to deal
 
8
in the Software without restriction, including without limitation the rights
 
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
10
copies of the Software, and to permit persons to whom the Software is
 
11
furnished to do so, subject to the following conditions:
 
12
 
 
13
The above copyright notice and this permission notice shall be included in
 
14
all copies or substantial portions of the Software.
 
15
 
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
19
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
21
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
22
THE SOFTWARE.
 
23
-->
 
24
 
 
25
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
26
  <modelVersion>4.0.0</modelVersion>
 
27
 
 
28
  <parent>
 
29
    <groupId>org.jenkins-ci.main</groupId>
 
30
    <artifactId>pom</artifactId>
 
31
    <version>1.509.2</version>
 
32
    <relativePath>../pom.xml</relativePath>
 
33
  </parent>
 
34
 
 
35
  <artifactId>jenkins-war</artifactId>
 
36
  <packaging>war</packaging>
 
37
 
 
38
  <name>Jenkins war</name>
 
39
  <description>
 
40
    Creates a war file. Also includes additional static web resources, such as images, CSS, JavaScript, and
 
41
    some HTML files.
 
42
  </description>
 
43
 
 
44
  <properties>
 
45
    <JENKINS_HOME>${basedir}/work</JENKINS_HOME>
 
46
    <contextPath>/jenkins</contextPath><!-- context path during test -->
 
47
    <port>8080</port><!-- HTTP listener port -->
 
48
  </properties>
 
49
 
 
50
  <dependencies>
 
51
    <dependency>
 
52
      <groupId>org.jenkins-ci</groupId>
 
53
      <artifactId>executable-war</artifactId>
 
54
      <version>1.28</version>
 
55
      <scope>provided</scope>
 
56
    </dependency>
 
57
 
 
58
    <dependency>
 
59
      <groupId>org.jenkins-ci.main</groupId>
 
60
      <artifactId>jenkins-core</artifactId>
 
61
      <version>${project.version}</version>
 
62
      <exclusions>
 
63
        <!--
 
64
          jars that are not needed in war. most of the exclusions should happen in the core, to make IDEs happy, not here.
 
65
        -->
 
66
        <exclusion>
 
67
          <groupId>javax.servlet</groupId>
 
68
          <artifactId>servlet-api</artifactId>
 
69
        </exclusion>
 
70
        <exclusion>
 
71
          <groupId>javax.servlet</groupId>
 
72
          <artifactId>jsp-api</artifactId>
 
73
        </exclusion>
 
74
        <!-- Stapler 1.195 fails to declare this as optional, and the 1.1 version lacks a license: -->
 
75
        <exclusion>
 
76
          <artifactId>metainf-services</artifactId>
 
77
          <groupId>org.kohsuke.metainf-services</groupId>
 
78
        </exclusion>
 
79
      </exclusions>
 
80
    </dependency>
 
81
    <!-- declare this in reactors, so i can use now directly : mvn install -pl war -am to get the war  -->
 
82
    <!-- TO REMOVE when maven-plugin won't be anymore a bundle plugin -->
 
83
    <dependency>
 
84
      <groupId>${project.groupId}</groupId>
 
85
      <artifactId>maven-plugin</artifactId>
 
86
      <version>${project.version}</version>
 
87
      <scope>provided</scope>
 
88
    </dependency>
 
89
    <dependency>
 
90
      <groupId>${project.groupId}</groupId>
 
91
      <artifactId>remoting</artifactId>
 
92
      <!-- specified in the parent -->
 
93
    </dependency>    
 
94
    <dependency>
 
95
      <groupId>${project.groupId}</groupId>
 
96
      <artifactId>cli</artifactId>
 
97
      <classifier>jar-with-dependencies</classifier>
 
98
      <version>${project.version}</version>
 
99
      <scope>provided</scope>
 
100
    </dependency>
 
101
    <dependency>
 
102
      <!--
 
103
        not actually used by test but used by dependency plugin to include it inside the war.
 
104
      -->
 
105
      <groupId>org.jenkins-ci</groupId>
 
106
      <artifactId>winstone</artifactId>
 
107
      <version>0.9.10-jenkins-44</version>
 
108
      <scope>test</scope>
 
109
    </dependency>
 
110
    <dependency>
 
111
      <groupId>org.jenkins-ci.modules</groupId>
 
112
      <artifactId>instance-identity</artifactId>
 
113
      <version>1.3</version>
 
114
    </dependency>
 
115
    <dependency>
 
116
      <groupId>org.jenkins-ci.modules</groupId>
 
117
      <artifactId>ssh-cli-auth</artifactId>
 
118
      <version>1.2</version>
 
119
    </dependency>
 
120
    <dependency>
 
121
      <groupId>org.jenkins-ci.modules</groupId>
 
122
      <artifactId>slave-installer</artifactId>
 
123
      <version>1.2</version>
 
124
    </dependency>
 
125
    <dependency>
 
126
      <groupId>org.jenkins-ci.modules</groupId>
 
127
      <artifactId>windows-slave-installer</artifactId>
 
128
      <version>1.2</version>
 
129
    </dependency>
 
130
    <dependency>
 
131
      <groupId>org.jenkins-ci.modules</groupId>
 
132
      <artifactId>launchd-slave-installer</artifactId>
 
133
      <version>1.2</version>
 
134
    </dependency>
 
135
    <dependency>
 
136
      <groupId>org.jenkins-ci.modules</groupId>
 
137
      <artifactId>upstart-slave-installer</artifactId>
 
138
      <version>1.1</version>
 
139
    </dependency>
 
140
    <dependency>
 
141
      <groupId>org.jenkins-ci.modules</groupId>
 
142
      <artifactId>sshd</artifactId>
 
143
      <version>1.5</version>
 
144
    </dependency>
 
145
    <dependency>
 
146
      <!--
 
147
        We bundle slf4j binding since we got some components (sshd for example)
 
148
        that uses slf4j.
 
149
 
 
150
        The problem with not shipping any binding in the war is that if the
 
151
        servlet container does use slf4j in itself, then we got a classloader
 
152
        constraint violation (see JENKINS-12334) as we try to load StaticLoggerBinder
 
153
        which resides in the binding jar (this jar would be from container implementation,
 
154
        which relies on slf4j api in the container, when we have our own slf4j API jar
 
155
        statically depending on the binding jar.)
 
156
 
 
157
        We also get tickets like JENKINS-12650 for not reporting logs at all
 
158
        (although this is a non-fatal problem.)
 
159
 
 
160
        The downside of adding a jar is that we can potentially get "multiple binding jar"
 
161
        warning like http://www.slf4j.org/codes.html, but that's at least non-fatal.
 
162
      -->
 
163
      <groupId>org.slf4j</groupId>
 
164
      <artifactId>slf4j-jdk14</artifactId>
 
165
    </dependency>
 
166
 
 
167
 
 
168
    <!-- offline profiler API when we need it -->
 
169
 
 
170
    <!--dependency
 
171
      <groupId>com.yourkit.api</groupId>
 
172
      <artifactId>yjp</artifactId>
 
173
      <version>dontcare</version>
 
174
      <scope>system</scope>
 
175
      <systemPath>/usr/local/yjp/lib/yjp.jar</systemPath>
 
176
    </dependency-->
 
177
  </dependencies>
 
178
 
 
179
  <build>
 
180
    <finalName>jenkins</finalName>
 
181
    <plugins>
 
182
      <plugin>
 
183
        <artifactId>maven-war-plugin</artifactId>
 
184
        <!-- version specified in grandparent pom -->
 
185
        <configuration>
 
186
          <filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
 
187
          <!-- for putting Main-Class into war -->
 
188
          <archive>
 
189
            <manifest>
 
190
              <mainClass>Main</mainClass>
 
191
            </manifest>
 
192
            <manifestEntries>
 
193
              <Implementation-Version>${project.version}</Implementation-Version>
 
194
              <Hudson-Version>1.395</Hudson-Version>
 
195
              <Jenkins-Version>${project.version}</Jenkins-Version>
 
196
            </manifestEntries>
 
197
          </archive>
 
198
          <!--outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping-->
 
199
        </configuration>
 
200
      </plugin>
 
201
      <plugin>
 
202
        <artifactId>maven-dependency-plugin</artifactId>
 
203
        <!-- version specified in grandparent pom -->
 
204
        <executions>
 
205
          <execution>
 
206
            <id>list-dependencies</id>
 
207
            <phase>generate-resources</phase>
 
208
            <goals>
 
209
              <goal>list</goal>
 
210
            </goals>
 
211
            <configuration>
 
212
              <outputFile>${project.build.outputDirectory}/dependencies.txt</outputFile>
 
213
            </configuration>
 
214
          </execution>
 
215
          <execution>
 
216
            <!-- put executable war header -->
 
217
            <id>executable-war-header</id>
 
218
            <phase>generate-resources</phase>
 
219
            <goals>
 
220
              <goal>unpack-dependencies</goal>
 
221
            </goals>
 
222
            <configuration>
 
223
              <includeGroupIds>org.jenkins-ci</includeGroupIds>
 
224
              <includeArtifactIds>executable-war</includeArtifactIds>
 
225
              <includeScope>provided</includeScope>
 
226
              <includes>**/*.class</includes>
 
227
              <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
 
228
            </configuration>
 
229
          </execution>
 
230
          <execution>
 
231
            <id>resgen</id>
 
232
            <phase>generate-resources</phase>
 
233
            <goals>
 
234
              <goal>copy</goal>
 
235
            </goals>
 
236
            <configuration>
 
237
              <artifactItems>
 
238
                <!-- dependencies that goes to unusual locations -->
 
239
                <artifactItem>
 
240
                  <groupId>${project.groupId}</groupId>
 
241
                  <artifactId>remoting</artifactId>
 
242
                  <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF</outputDirectory>
 
243
                  <destFileName>remoting.jar</destFileName>
 
244
                </artifactItem>
 
245
                <artifactItem>
 
246
                  <groupId>${project.groupId}</groupId>
 
247
                  <artifactId>remoting</artifactId>
 
248
                  <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF</outputDirectory>
 
249
                  <destFileName>slave.jar</destFileName>
 
250
                </artifactItem>
 
251
                <artifactItem>
 
252
                  <groupId>${project.groupId}</groupId>
 
253
                  <artifactId>cli</artifactId>
 
254
                  <classifier>jar-with-dependencies</classifier>
 
255
                  <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF</outputDirectory>
 
256
                  <destFileName>jenkins-cli.jar</destFileName>
 
257
                </artifactItem>
 
258
                <artifactItem>
 
259
                  <groupId>org.jenkins-ci</groupId>
 
260
                  <artifactId>winstone</artifactId>
 
261
                  <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
 
262
                  <destFileName>winstone.jar</destFileName>
 
263
                </artifactItem>
 
264
                <!-- bundled plugins -->
 
265
                <artifactItem>
 
266
                  <groupId>${project.groupId}</groupId>
 
267
                  <artifactId>maven-plugin</artifactId>
 
268
                  <type>hpi</type>
 
269
                </artifactItem>
 
270
                <artifactItem>
 
271
                  <groupId>org.jenkins-ci.plugins</groupId>
 
272
                  <artifactId>ssh-slaves</artifactId>
 
273
                  <version>0.25</version>
 
274
                  <type>hpi</type>
 
275
                </artifactItem>
 
276
                <artifactItem>
 
277
                  <groupId>org.jenkins-ci.plugins</groupId>
 
278
                  <artifactId>credentials</artifactId>
 
279
                  <version>1.3.1</version>
 
280
                  <type>hpi</type>
 
281
                </artifactItem>
 
282
                <artifactItem>
 
283
                  <groupId>org.jenkins-ci.plugins</groupId>
 
284
                  <artifactId>ssh-credentials</artifactId>
 
285
                  <version>0.2</version>
 
286
                  <type>hpi</type>
 
287
                </artifactItem>
 
288
                <artifactItem>
 
289
                  <groupId>org.jenkins-ci.plugins</groupId>
 
290
                  <artifactId>subversion</artifactId>
 
291
                  <version>1.39</version>
 
292
                  <type>hpi</type>
 
293
                </artifactItem>
 
294
                <artifactItem>
 
295
                  <groupId>org.jenkins-ci.plugins</groupId>
 
296
                  <artifactId>cvs</artifactId>
 
297
                  <version>1.6</version>
 
298
                  <type>hpi</type>
 
299
                </artifactItem>
 
300
                <artifactItem>
 
301
                  <groupId>org.jenkins-ci.plugins</groupId>
 
302
                  <artifactId>ant</artifactId>
 
303
                  <version>1.1</version>
 
304
                  <type>hpi</type>
 
305
                </artifactItem>
 
306
                <artifactItem>
 
307
                  <groupId>org.jenkins-ci.plugins</groupId>
 
308
                  <artifactId>javadoc</artifactId>
 
309
                  <version>1.0</version>
 
310
                  <type>hpi</type>
 
311
                </artifactItem>
 
312
                <artifactItem>
 
313
                  <groupId>org.jenkins-ci.plugins</groupId>
 
314
                  <artifactId>translation</artifactId>
 
315
                  <version>1.10</version>
 
316
                  <type>hpi</type>
 
317
                </artifactItem>
 
318
                <artifactItem>
 
319
                  <groupId>org.jenkins-ci.plugins</groupId>
 
320
                  <artifactId>external-monitor-job</artifactId>
 
321
                  <version>1.1</version>
 
322
                  <type>hpi</type>
 
323
                </artifactItem>
 
324
                <artifactItem>
 
325
                  <groupId>org.jenkins-ci.plugins</groupId>
 
326
                  <artifactId>ldap</artifactId>
 
327
                  <version>1.1</version>
 
328
                  <type>hpi</type>
 
329
                </artifactItem>
 
330
                <artifactItem>
 
331
                  <groupId>org.jenkins-ci.plugins</groupId>
 
332
                  <artifactId>pam-auth</artifactId>
 
333
                  <version>1.0</version>
 
334
                  <type>hpi</type>
 
335
                </artifactItem>
 
336
                <artifactItem>
 
337
                  <groupId>org.jenkins-ci.plugins</groupId>
 
338
                  <artifactId>mailer</artifactId>
 
339
                  <version>1.4</version>
 
340
                  <type>hpi</type>
 
341
                </artifactItem>
 
342
              </artifactItems>
 
343
              <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/plugins</outputDirectory>
 
344
              <stripVersion>true</stripVersion>
 
345
              <overWriteIfNewer>true</overWriteIfNewer>
 
346
              <overWriteReleases>false</overWriteReleases>
 
347
              <overWriteSnapshots>true</overWriteSnapshots>
 
348
            </configuration>
 
349
          </execution>
 
350
        </executions>
 
351
      </plugin>
 
352
      <plugin>
 
353
        <groupId>org.codehaus.mojo</groupId>
 
354
        <artifactId>build-helper-maven-plugin</artifactId>
 
355
        <executions>
 
356
          <execution>
 
357
            <!-- deploy the war as a jar, so that the tests can pull this into the classpath -->
 
358
            <id>deploy-war-for-test</id>
 
359
            <phase>package</phase>
 
360
            <goals>
 
361
              <goal>attach-artifact</goal>
 
362
            </goals>
 
363
            <configuration>
 
364
              <artifacts>
 
365
                <artifact>
 
366
                  <file>${project.build.directory}/${project.build.finalName}.war</file>
 
367
                  <type>jar</type>
 
368
                  <classifier>war-for-test</classifier>
 
369
                </artifact>
 
370
              </artifacts>
 
371
            </configuration>
 
372
          </execution>
 
373
        </executions>
 
374
      </plugin>
 
375
      <plugin><!-- generate licenses.xml -->
 
376
        <groupId>com.cloudbees</groupId>
 
377
        <artifactId>maven-license-plugin</artifactId>
 
378
        <!-- version specified in grandparent pom -->
 
379
        <configuration>
 
380
          <generateLicenseXml>${project.build.outputDirectory}/META-INF/licenses.xml</generateLicenseXml>
 
381
          <generateLicenseHtml>${project.build.outputDirectory}/META-INF/licenses.html</generateLicenseHtml>
 
382
          <attach>true</attach>
 
383
          <inlineScript>
 
384
            filter {
 
385
                // add Winstone since we are bundling it.
 
386
                def d = project.dependencies.find { it.artifactId=="winstone" };
 
387
                def a = mojo.artifactFactory.createProjectArtifact(d.groupId,d.artifactId,d.version);
 
388
                def p = mojo.projectBuilder.buildFromRepository(a, project.getRemoteArtifactRepositories(), mojo.localRepository)
 
389
                models.put(a,p);
 
390
            }
 
391
          </inlineScript>
 
392
        </configuration>
 
393
      </plugin>
 
394
      <plugin>
 
395
        <!-- this is really just a patched version of maven-jetty-plugin to workaround issue #932 -->
 
396
        <groupId>org.jenkins-ci.tools</groupId>
 
397
        <artifactId>maven-jenkins-dev-plugin</artifactId>
 
398
        <!-- version specified in grandparent pom -->
 
399
        <configuration>
 
400
          <!--
 
401
            Reload webapp when you hit ENTER. (See JETTY-282 for more)
 
402
          -->
 
403
          <reload>manual</reload>
 
404
          <connectors>
 
405
            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
 
406
                <port>${port}</port>
 
407
            </connector>
 
408
          </connectors>
 
409
          <additionalClassesDirectories>
 
410
            <!-- load resoures straight from source -->
 
411
            <additionalClassesDirectory>../core/src/main/resources</additionalClassesDirectory>
 
412
            
 
413
            <!--
 
414
              read directly from core module's output directory,
 
415
              so that changes are picked up right away without running mvn.
 
416
            -->
 
417
            <additionalClassesDirectory>../core/target/classes</additionalClassesDirectory>
 
418
          </additionalClassesDirectories>
 
419
          <loginServices>
 
420
            <loginService implementation="org.eclipse.jetty.security.HashLoginService">
 
421
              <name>default</name>
 
422
              <config>${basedir}/src/realm.properties</config>
 
423
            </loginService>
 
424
          </loginServices>
 
425
          <systemProperties>
 
426
            <systemProperty>
 
427
              <name>JENKINS_HOME</name>
 
428
              <value>${JENKINS_HOME}</value>
 
429
            </systemProperty>
 
430
            <systemProperty>
 
431
              <!-- always reload views during debugging -->
 
432
              <name>stapler.jelly.noCache</name>
 
433
              <value>true</value>
 
434
            </systemProperty>
 
435
            <systemProperty>
 
436
              <!-- show the stapler evaluation during execution -->
 
437
              <name>stapler.trace</name>
 
438
              <value>true</value>
 
439
            </systemProperty>
 
440
            <systemProperty>
 
441
              <!-- always reload scripts during debugging -->
 
442
              <name>hudson.script.noCache</name>
 
443
              <value>true</value>
 
444
            </systemProperty>
 
445
            <systemProperty>
 
446
              <!-- load view resources from the source directly, again for real time change -->
 
447
              <name>stapler.resourcePath</name>
 
448
              <value>
 
449
                  ../core/src/main/resources;
 
450
                  ../ui-samples-plugin/src/main/resources;
 
451
                  ../maven-plugin/src/main/resources
 
452
              </value>
 
453
            </systemProperty>
 
454
            <systemProperty>
 
455
              <!-- enable the plugins in main by default -->
 
456
              <name>hudson.bundled.plugins</name>
 
457
              <value><!-- run "mvn install" once will generate the.hpl -->
 
458
                  ${basedir}/../maven-plugin/target/test-classes/the.hpl,
 
459
                  ${basedir}/../ui-samples-plugin/target/test-classes/the.hpl,
 
460
                  ${project.build.directory}/${project.build.finalName}/WEB-INF/plugins/*.hpi
 
461
              </value>
 
462
            </systemProperty>
 
463
            <systemProperty>
 
464
              <!-- stat collection pointless -->
 
465
              <name>hudson.model.UsageStatistics.disabled</name>
 
466
              <value>true</value>
 
467
            </systemProperty>
 
468
            <systemProperty>
 
469
              <name>hudson.Main.development</name>
 
470
              <value>true</value>
 
471
            </systemProperty>
 
472
            <systemProperty>
 
473
              <!-- this adds 3 sec to the shutdown, and most likely pointless, too -->
 
474
              <name>hudson.DNSMultiCast.disabled</name>
 
475
              <value>true</value>
 
476
            </systemProperty>
 
477
          </systemProperties>
 
478
          <webApp>
 
479
            <contextPath>${contextPath}</contextPath>
 
480
            <configurationDiscovered>false</configurationDiscovered>
 
481
          </webApp>
 
482
        </configuration>
 
483
      </plugin>
 
484
    </plugins>
 
485
  </build>
 
486
 
 
487
  <profiles>
 
488
    <profile>
 
489
      <!-- profile for creating Jenkins IPS package -->
 
490
      <id>ips</id>
 
491
      <build>
 
492
        <plugins>
 
493
          <plugin>
 
494
            <groupId>org.jvnet.updatecenter2</groupId>
 
495
            <artifactId>maven-makepkgs-plugin</artifactId>
 
496
            <!-- version specified in grandparent pom -->
 
497
            <executions>
 
498
              <execution>
 
499
                <goals>
 
500
                  <goal>package</goal>
 
501
                </goals>
 
502
              </execution>
 
503
            </executions>
 
504
            <configuration>
 
505
              <python>python2.5</python>
 
506
              <proto>../ips/proto.py</proto>
 
507
              <attach>false</attach>
 
508
            </configuration>
 
509
          </plugin>
 
510
        </plugins>
 
511
      </build>
 
512
    </profile>
 
513
    <profile>
 
514
      <!-- sign war -->
 
515
      <id>sign</id>
 
516
      <build>
 
517
        <plugins>
 
518
          <plugin>
 
519
            <artifactId>maven-jarsigner-plugin</artifactId>
 
520
            <executions>
 
521
              <execution>
 
522
                <id>signWar</id>
 
523
                <phase>verify</phase>
 
524
                <goals>
 
525
                  <goal>sign</goal>
 
526
                </goals>
 
527
                <configuration>
 
528
                  <archive>${project.build.directory}/${project.build.finalName}.war</archive>
 
529
                </configuration>
 
530
              </execution>
 
531
            </executions>
 
532
          </plugin>
 
533
        </plugins>
 
534
      </build>
 
535
    </profile>
 
536
  </profiles>
 
537
</project>