Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: a623b9d9a4535ead11b0493ffc5e06004b82409a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
















                                                                                                                                                                                                         






                                                          
  


                                              
  























































































                                                                                                                              
  
























                                                                                                                                    
                                                                      








                                                                              
        






















































































                                                                                                             
    
                 




























































                                                                                                                               
                  

















































































































































































































































































































































































































                                                                                                                 
       












































                                                                                  

          
<!-- **************************************************************************
#
# Copyright (c) 2004-2009 Oracle Corporation.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors: 
#
#    Kohsuke Kawaguchi, id:sorokh
#        
#
#************************************************************************** --> 

<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.eclipse.hudson</groupId>
        <artifactId>hudson-parent</artifactId>
        <version>3.0.0-SNAPSHOT</version>
        <relativePath>hudson-parent/pom.xml</relativePath>
    </parent>
  
    <groupId>org.eclipse.hudson.main</groupId>
    <artifactId>hudson</artifactId>
    <packaging>pom</packaging>
  
    <name>Hudson</name>
    <description>The module that constitutes the main hudson.war</description>

    <licenses>
        <license>
            <name>Eclipse Public License v1.0</name>
            <url>http://www.eclipse.org/legal/epl-v10.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:git://github.com/hudson/hudson.git</connection>
        <developerConnection>scm:git:ssh://git@github.com/hudson/hudson.git</developerConnection>
        <url>https://github.com/hudson/hudson</url>
    </scm>

    <properties>
        <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
        <build.timestamp>${maven.build.timestamp}</build.timestamp>
        <build.number/>

        <!--GWT properties-->
        <gwt.draftCompile>false</gwt.draftCompile>
        <gwt.style>OBFUSCATED</gwt.style>
        <gwt.compiler.optimizationLevel>9</gwt.compiler.optimizationLevel>
        <gwt.compiler.strict>true</gwt.compiler.strict>

        <!--Libraries-->
        <localizer.version>1.10</localizer.version>
        <aspectj.version>1.6.11</aspectj.version>
        <sisuGuice.version>3.0.3</sisuGuice.version>
        <sisuInject.version>2.2.3</sisuInject.version>
        <jetty.version>6.1.26</jetty.version>
        <wagon-http.version>1.0-beta-7</wagon-http.version>
        <test-annotations.version>1.0</test-annotations.version>
        <servlet-api.version>2.4</servlet-api.version>
        <slf4j-api.version>1.6.1</slf4j-api.version>
        <jcl-over-slf4j.version>1.6.1</jcl-over-slf4j.version>
        <slf4j-jdk14.version>1.6.1</slf4j-jdk14.version>
        <jul-to-slf4j.version>1.6.1</jul-to-slf4j.version>
        <logback-classic.version>0.9.28</logback-classic.version>
        <guava.version>10.0.1</guava.version>
        <ant.version>1.8.2</ant.version>
        <xstream.version>1.4.1-hudson-2</xstream.version>
        <jsr305.version>1.3.9</jsr305.version>
        <commons-lang.version>3.0.1</commons-lang.version>
        <commons-io.version>2.0.1</commons-io.version>
        <commons-codec.version>1.4</commons-codec.version>
        <aether.version>1.11</aether.version>
        <args4j.version>2.0.16</args4j.version>
        <groovy.version>1.8.1</groovy.version>
        <jaxb-api.version>2.2.2</jaxb-api.version>

        <!--Backward compatible properties-->
        <aspectjVersion>${aspectj.version}</aspectjVersion>
        <sisuGuiceVersion>${sisuGuice.version}</sisuGuiceVersion>
        <sisuInjectVersion>${sisuInject.version}</sisuInjectVersion>
        <jetty-version>${jetty.version}</jetty-version>

        <!--Plugins-->
        <maven-antrun-extended-plugin.version>1.42</maven-antrun-extended-plugin.version>
        <maven-hudson-dev-plugin.version>6.1.7-hudson-1</maven-hudson-dev-plugin.version>
        <build-helper-maven-plugin.version>1.5</build-helper-maven-plugin.version>
        <aspectj-maven-plugin.version>1.3</aspectj-maven-plugin.version>
        <gwt-maven-plugin.version>2.3.0-1</gwt-maven-plugin.version>
        <plexus-component-metadata-plugin.version>1.5.4</plexus-component-metadata-plugin.version>
        <maven-jaxb2-plugin.version>0.7.4</maven-jaxb2-plugin.version>
        <!--TODO migrate to 2.6 to resolve issue with compilation on JDK7 (https://jira.codehaus.org/browse/ENUNCIATE-603) -->
        <maven-enunciate-plugin.version>1.24</maven-enunciate-plugin.version>
        <cobertura-maven-plugin.version>2.5.1</cobertura-maven-plugin.version>
    </properties>

    <modules>
        <module>hudson-parent</module>
        <module>hudson-test-utils</module>
        <module>hudson-utils</module>
        <module>hudson-remoting</module>
        <module>hudson-cli</module>
        <module>hudson-core</module>
        <module>hudson-inject</module>
        <module>hudson-plugin-utils</module>
        <module>hudson-service</module>
        <module>hudson-jetty-war-executable</module>
        <module>hudson-war</module>
        <module>hudson-test-framework</module>
        <module>hudson-plugin-parent</module>
    </modules>
  
    <build>
        <pluginManagement>
            <plugins>

                <plugin>
                    <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
                    <artifactId>maven-antrun-extended-plugin</artifactId>
                    <version>${maven-antrun-extended-plugin.version}</version>
                </plugin>

                <plugin>
                    <!--
                        Both test harness and core uses stapler as an extension,
                        and apparently without having extension preloaded at the parent, the main artifact of the 'test' module
                        ends up installed with 'stapler-jar' extension (which normally is an indication that the ArtifactTypeHandler
                        defined in this extension is not getting picked up.)

                        To avoid this problem, I'm defining an extension here. Not sure if the nested <dependencies> is necessary.
                        It's also possible that I misdiagnosed the problem and the root cause is something entirely different.

                        To test if you can remove this work around, do a rebuild from main and see if the test harness
                        is installed with the right extension into the local repository.
                    -->
                    <groupId>org.kohsuke.stapler</groupId>
                    <artifactId>maven-stapler-plugin</artifactId>
                    <version>${maven-stapler-plugin.version}</version>
                    <extensions>true</extensions>
                    <dependencies>
                        <dependency>
                            <groupId>org.jvnet.maven-jellydoc-plugin</groupId>
                            <artifactId>maven-jellydoc-plugin</artifactId>
                            <version>1.4</version>
                        </dependency>
                    </dependencies>
                </plugin>
        
                <!-- this is really just a patched version of maven-jetty-plugin to workaround issue #932 -->
                <plugin>
                    <groupId>org.jvnet.hudson.tools</groupId>
                    <artifactId>maven-hudson-dev-plugin</artifactId>
                    <version>${maven-hudson-dev-plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>${build-helper-maven-plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>aspectj-maven-plugin</artifactId>
                    <version>${aspectj-maven-plugin.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.aspectj</groupId>
                            <artifactId>aspectjtools</artifactId>
                            <version>${aspectj.version}</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <Xlint>ignore</Xlint>
                        <XaddSerialVersionUID>true</XaddSerialVersionUID>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>gwt-maven-plugin</artifactId>
                    <version>${gwt-maven-plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.plexus</groupId>
                    <artifactId>plexus-component-metadata</artifactId>
                    <version>${plexus-component-metadata-plugin.version}</version>
                </plugin>

                <plugin>
                    <groupId>org.jvnet.jaxb2.maven2</groupId>
                    <artifactId>maven-jaxb2-plugin</artifactId>
                    <version>${maven-jaxb2-plugin.version}</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>generate</goal>
                            </goals>
                            <configuration>
                                <extension>true</extension>
                                <schemaDirectory>src/main/schema</schemaDirectory>
                                <plugins>
                                    <plugin>
                                        <groupId>org.eclipse.hudson.main</groupId>
                                        <artifactId>hudson-jaxb-xjc</artifactId>
                                        <version>${project.version}</version>
                                    </plugin>
                                </plugins>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.enunciate</groupId>
                    <artifactId>maven-enunciate-plugin</artifactId>
                    <version>${maven-enunciate-plugin.version}</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>assemble</goal>
                            </goals>
                            <configuration>
                                <forceWarPackaging>false</forceWarPackaging>
                                <configFile>enunciate.xml</configFile>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

            </plugins>
        </pluginManagement>
    
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>display-info</goal>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <!-- There is a bug in JDK 1.5's compiler therefore need to compile with 1.6 -->
                                <requireJavaVersion>
                                    <version>[1.6.0,]</version>
                                </requireJavaVersion>
                                <requireMavenVersion>
                                    <version>[3.0.0,]</version>
                                </requireMavenVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <!-- enable release profile during the release, create IPS package, and sign bits. -->
                    <prepareVerifyArgs>-P release,sign</prepareVerifyArgs>
                    <goals>-DskipTests javadoc:javadoc deploy javadoc:aggregate</goals>
                    <pushChanges>false</pushChanges>
                    <localCheckout>true</localCheckout>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <configuration>
                            <resourceBundles>
                                <resourceBundle>org.jvnet.hudson:license:1.0</resourceBundle>
                            </resourceBundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <!--
                Since some developers try to run hudson-dev:run from main, define it here so that at least the plugin resolves.
                This enables us to report a better error message.
                -->
                <groupId>org.jvnet.hudson.tools</groupId>
                <artifactId>maven-hudson-dev-plugin</artifactId>
            </plugin>
        </plugins>

        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-http</artifactId>
                <version>${wagon-http.version}</version>
            </extension>
        </extensions>
    </build>

    <dependencies>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.jvnet.hudson</groupId>
                <artifactId>test-annotations</artifactId>
                <version>${test-annotations.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.jvnet.localizer</groupId>
                <artifactId>localizer</artifactId>
                <version>${localizer.version}</version>
            </dependency>

            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>${servlet-api.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j-api.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${jcl-over-slf4j.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-jdk14</artifactId>
                <version>${slf4j-jdk14.version}</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jul-to-slf4j</artifactId>
                <version>${jul-to-slf4j.version}</version>
            </dependency>

            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback-classic.version}</version>
            </dependency>

            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>

            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjrt</artifactId>
                <version>${aspectj.version}</version>
            </dependency>

            <dependency>
                <groupId>org.aspectj</groupId>
                <artifactId>aspectjweaver</artifactId>
                <version>${aspectj.version}</version>
            </dependency>

            <dependency>
                <groupId>org.sonatype.sisu</groupId>
                <artifactId>sisu-guice</artifactId>
                <version>${sisuGuice.version}</version>
                <classifier>no_aop</classifier>
                <exclusions>
                    <exclusion>
                        <groupId>org.sonatype.sisu</groupId>
                        <artifactId>sisu-guava</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.sonatype.sisu</groupId>
                <artifactId>sisu-inject-bean</artifactId>
                <version>${sisuInject.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant</artifactId>
                <version>${ant.version}</version>
            </dependency>    

            <dependency>
                <groupId>org.hudsonci.tools</groupId>
                <artifactId>xstream</artifactId>
                <version>${xstream.version}</version>
            </dependency>

            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>${jsr305.version}</version>
            </dependency>

            <dependency>
                <groupId>org.sonatype.aether</groupId>
                <artifactId>aether-util</artifactId>
                <version>${aether.version}</version>
            </dependency>

            <dependency>
                <groupId>args4j</groupId>
                <artifactId>args4j</artifactId>
                <version>${args4j.version}</version>
            </dependency>

            <dependency>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty</artifactId>
                <version>${jetty.version}</version>
            </dependency>

            <dependency>
                <groupId>javax.xml.bind</groupId>
                <artifactId>jaxb-api</artifactId>
                <version>${jaxb-api.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons-lang.version}</version>
            </dependency>

            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io.version}</version>
            </dependency>

            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${commons-codec.version}</version>
            </dependency> 

            <!--unit tests -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito-core.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <dependency>
                <groupId>org.easymock</groupId>
                <artifactId>easymock</artifactId>
                <version>${easymock.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-module-junit4</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-easymock</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <dependency>
                <groupId>org.powermock</groupId>
                <artifactId>powermock-api-mockito</artifactId>
                <version>${powermock.version}</version>
                <scope>test</scope>
                <optional>true</optional>
            </dependency>

            <!-- INTERNAL -->
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-test-utils</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-utils</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-inject</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-inject</artifactId>
                <classifier>tests</classifier>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-service</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-plugin-utils</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-remoting</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-cli</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-cli</artifactId>
                <classifier>jar-with-dependencies</classifier>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-war</artifactId>
                <type>war</type>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>hudson-test-framework</artifactId>
                <version>${project.version}</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>metrics</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <configuration>
                            <threshold>High</threshold>
                        </configuration>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                        <configuration>
                        <!--rulesets>
                        <ruleset>ruleset.xml</ruleset>
                        </rulesets-->
                            <targetJdk>1.5</targetJdk>
                        </configuration>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <configuration>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
        </profile>

        <profile>
            <!-- FIXME: This is an ineffective use of a default activated profile. -->
            <id>debug</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <hudson.sign.alias>hudson</hudson.sign.alias>
                <hudson.sign.keystore>../dummy.keystore</hudson.sign.keystore>
                <hudson.sign.storepass>hudson</hudson.sign.storepass>

                <!-- GWT development properties -->
                <gwt.draftCompile>true</gwt.draftCompile>
                <gwt.style>PRETTY</gwt.style>
                <gwt.compiler.optimizationLevel>-1</gwt.compiler.optimizationLevel>
                <gwt.compiler.strict>false</gwt.compiler.strict>
                <gwt.user.agent>safari</gwt.user.agent>
            </properties>
        </profile>

        <profile>
            <id>sorcerer</id>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.jvnet.sorcerer</groupId>
                        <artifactId>maven-sorcerer-plugin</artifactId>
                        <version>0.8</version>
                    </plugin>
                </plugins>
            </reporting>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jvnet.sorcerer</groupId>
                        <artifactId>maven-sorcerer-plugin</artifactId>
                        <version>0.8</version>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>m2e</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
            </activation>
            <properties>
                <m2BuildDirectory>target</m2BuildDirectory>
            </properties>
            <build>
                <directory>${m2BuildDirectory}</directory>
                <plugins>
                    <plugin>
                        <groupId>org.maven.ide.eclipse</groupId>
                        <artifactId>lifecycle-mapping</artifactId>
                        <version>0.12.0</version>
                        <configuration>
                            <mappingId>customizable</mappingId>
                            <configurators>
                                <configurator id="org.maven.ide.eclipse.jdt.javaConfigurator" />
                                <configurator id="org.maven.ide.eclipse.plexus.annotations.plexusConfigurator" />
                            </configurators>
                            <mojoExecutions>
                                <mojoExecution>org.apache.maven.plugins:maven-resources-plugin::</mojoExecution>
                            </mojoExecutions>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>integration-tests</id>
            <activation>
                <property>
                    <name>it</name>
                </property>
            </activation>
       
            <!--TODO find better solution to use properties for hudson-remoting-->
            <properties>
                <hudson.sign.alias>hudson</hudson.sign.alias>
                <hudson.sign.keystore>../dummy.keystore</hudson.sign.keystore>
                <hudson.sign.storepass>hudson</hudson.sign.storepass>
            </properties>
        </profile>

        <profile>
            <id>hudson</id>
            <build>
                <pluginManagement>
                    <plugins>
                        <plugin>
                            <groupId>org.codehaus.mojo</groupId>
                            <artifactId>cobertura-maven-plugin</artifactId>
                            <version>${cobertura-maven-plugin.version}</version>
                            <configuration>
                                <check>
                                    <branchRate>80</branchRate>
                                    <lineRate>80</lineRate>
                                    <haltOnFailure>true</haltOnFailure>
                                    <totalBranchRate>80</totalBranchRate>
                                    <totalLineRate>80</totalLineRate>
                                    <packageLineRate>80</packageLineRate>
                                    <packageBranchRate>80</packageBranchRate>
                                </check>
                                <formats>
                                    <format>xml</format>
                                </formats>
                            </configuration>
                            <executions>
                                <execution>
                                    <phase>package</phase>
                                    <goals>
                                        <goal>cobertura</goal>
                                    </goals>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </pluginManagement>
            </build>
        </profile>
    </profiles>

</project>

Back to the top