pom.xml 6.5 KB
Newer Older
K
kohsuke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<!--
The MIT License

Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Daniel Dyer, Stephen Connolly

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

25 26 27
<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>
28
    <groupId>org.jenkins-ci.main</groupId>
29
    <artifactId>pom</artifactId>
30
    <version>1.404</version>
31 32 33 34 35
    <relativePath>../pom.xml</relativePath>
  </parent>
  
  <artifactId>remoting</artifactId>
  <packaging>jar</packaging>
36
  <name>Jenkins remoting layer</name>
37 38
  <description>
    Contains the bootstrap code to bridge separate JVMs into a single semi-shared space.
39
    Reusable outside Jenkins.
40
  </description>
41
  
42 43
  <build>
    <plugins>
44 45 46
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
O
olamy 已提交
47
        <version>2.1</version>
48 49 50 51 52 53 54
        <configuration>
          <threshold>High</threshold>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
O
olamy 已提交
55
        <version>2.5</version>
56 57 58 59 60 61 62
        <configuration>
          <!--rulesets>
            <ruleset>ruleset.xml</ruleset>
          </rulesets-->
          <targetJdk>1.5</targetJdk>
        </configuration>
      </plugin>
K
kohsuke 已提交
63
      <plugin>
A
abayer 已提交
64
        <artifactId>maven-jar-plugin</artifactId>
K
kohsuke 已提交
65 66 67 68 69 70 71
        <configuration>
          <archive>
            <manifest>
              <mainClass>hudson.remoting.Launcher</mainClass>
            </manifest>
          </archive>
        </configuration>
72
        <executions>
K
kohsuke 已提交
73
          <execution>
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
            <goals>
              <goal>sign</goal>
            </goals>
            <configuration>
              <!--
                during the development, debug profile defined in ../pom.xml will cause
                the jars to be signed by a self-certified dummy public key.
                
                For release, you should define the real values in ~/.m2/settings.xml
              -->
              <alias>${hudson.sign.alias}</alias>
              <storepass>${hudson.sign.storepass}</storepass>
              <keystore>${hudson.sign.keystore}</keystore>
            </configuration>
          </execution>
        </executions>
K
kohsuke 已提交
90
      </plugin>
91 92 93 94
      <plugin>
        <groupId>org.jvnet.maven-antrun-extended-plugin</groupId>
        <artifactId>maven-antrun-extended-plugin</artifactId>
        <executions>
95 96 97 98 99 100 101 102 103
          <execution>
            <id>generate-resources</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <tstamp>
104
                  <format property="now" pattern="MM/dd/yyyy HH:mm" unit="hour" />
105
                </tstamp>
106 107
                <property name="build.type" value="private" /> <!-- override for "rc" build -->
                <pathconvert property="version.rc">
108
                  <path path="${project.version}" />
109 110 111 112 113
                  <chainedmapper><flattenmapper /><globmapper from="*-SNAPSHOT" to="*-RC" /></chainedmapper>
                </pathconvert>
                <condition property="build.version" value="${version.rc} (${now})">
                  <equals arg1="${build.type}" arg2="rc" />
                </condition>
114
                <property name="build.version" value="${project.version} (${build.type}-${now}-${user.name})" />
115 116 117 118 119 120 121 122
                <!-- default to release version -->
                <!-- put the version file -->
                <mkdir dir="target/classes/hudson/remoting" />
                <echo file="target/classes/hudson/remoting/hudson-version.properties">version=${build.version}
                </echo>
              </tasks>
            </configuration>
          </execution>
123 124
          <execution>
            <!-- rejar args4j contents -->
125
            <id>process-classes</id>
126 127 128 129 130 131 132 133 134 135 136 137 138
            <phase>process-classes</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <resolveArtifact artifactId="args4j" property="args4j.jar" />
                <unjar src="${args4j.jar}" dest="target/classes" />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
139 140 141
    </plugins>
  </build>

142 143 144 145 146 147 148 149 150 151 152 153 154 155
  <dependencies>
    <!-- test dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-all</artifactId>
      <version>2.2.3</version>
      <scope>test</scope>
    </dependency>
156 157 158
    <dependency>
      <groupId>args4j</groupId>
      <artifactId>args4j</artifactId>
159
      <version>2.0.16</version>
160 161
      <scope>provided</scope>
    </dependency>
K
kohsuke 已提交
162
    <dependency>
S
Seiji Sogabe 已提交
163 164 165 166
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.3</version>
      <scope>test</scope>
K
kohsuke 已提交
167
    </dependency>
168 169 170 171 172 173
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.4</version>
      <scope>test</scope>
    </dependency>
174
  </dependencies>
175 176 177 178 179 180

  <profiles>
    <profile>
      <id>release</id>
      <properties>
        <!-- for releases, just use the POM version. See above ant-run plugin for how this gets used. -->
181
        <build.version>${project.version}</build.version>
182 183 184
      </properties>
    </profile>
  </profiles>
K
kohsuke 已提交
185
</project>