pom.xml 5.2 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
K
kohsuke 已提交
2
<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">
3
  <modelVersion>4.0.0</modelVersion>
4

5
  <parent>
6
    <groupId>org.jenkins-ci.main</groupId>
7
    <artifactId>jenkins-parent</artifactId>
8
    <version>${revision}${changelist}</version>
9
  </parent>
10

11
  <artifactId>cli</artifactId>
12

13 14
  <name>Jenkins cli</name>
  <description>Command line interface for Jenkins</description>
15

16 17 18 19 20
  <properties>
    <!-- TODO: remove once Medium level is set in the core (JENKINS-36716) -->
    <findbugs.threshold>Medium</findbugs.threshold>
  </properties>

21
  <dependencies>
22 23 24 25 26 27 28
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
29
      <artifactId>powermock-api-mockito2</artifactId>
30 31
      <scope>test</scope>
    </dependency>
32 33 34 35
    <dependency>
        <groupId>org.kohsuke</groupId>
        <artifactId>access-modifier-annotation</artifactId>
    </dependency>
36 37 38 39
    <dependency>
      <groupId>org.jenkins-ci</groupId>
      <artifactId>annotation-indexer</artifactId>
    </dependency>
40 41 42 43
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
    </dependency>
44 45 46 47
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
    </dependency>
48 49 50
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>remoting</artifactId>
51
      <!-- specified in the parent -->
52 53 54
    </dependency>
    <dependency>
      <groupId>junit</groupId>
J
Jesse Glick 已提交
55
      <artifactId>junit</artifactId>
56 57 58 59 60
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jvnet.localizer</groupId>
      <artifactId>localizer</artifactId>
D
Daniel Beck 已提交
61
      <version>1.26</version>
62 63
    </dependency>
    <dependency>
64 65
      <groupId>org.apache.sshd</groupId>
      <artifactId>sshd-core</artifactId>
66
      <version>1.7.0</version>
67 68
      <optional>true</optional> <!-- do not expose to core -->
    </dependency>
69 70 71 72 73 74
	<!-- ed25519 algorithm, see JENKINS-45318 -->
	<dependency>
  	  <groupId>net.i2p.crypto</groupId>
	  <artifactId>eddsa</artifactId>
	  <version>0.3.0</version>
	</dependency>
75 76
    <dependency>
      <groupId>org.slf4j</groupId>
77
      <artifactId>slf4j-jdk14</artifactId>
78 79 80
      <optional>true</optional> <!-- ditto -->
    </dependency>
    <dependency> <!-- TODO remove and replace PrivateKeyProvider with SecurityUtils.createFileKeyPairProvider() as in SshClient -->
81
      <groupId>org.jenkins-ci</groupId>
82
      <artifactId>trilead-ssh2</artifactId>
83
      <version>build214-jenkins-1</version>
84
    </dependency>
85 86 87 88 89
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>annotations</artifactId>
      <scope>provided</scope>
    </dependency>
90 91 92 93
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>
94 95
  </dependencies>

96 97 98 99
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
100
        <!-- version specified in grandparent pom -->
101 102 103
        <executions>
          <execution>
            <goals>
104
              <goal>single</goal>
105 106 107
            </goals>
            <phase>package</phase>
            <configuration>
108 109 110
              <descriptorRefs>
                <descriptorRef>jar-with-dependencies</descriptorRef>
              </descriptorRefs>
111 112 113 114
              <archive>
                <manifest>
                  <mainClass>hudson.cli.CLI</mainClass>
                </manifest>
115
                <manifestEntries>
116
                  <Jenkins-CLI-Version>${project.version}</Jenkins-CLI-Version>
117
                </manifestEntries>
118 119 120 121 122
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
K
kohsuke 已提交
123 124 125
      <plugin>
        <groupId>org.jvnet.localizer</groupId>
        <artifactId>maven-localizer-plugin</artifactId>
126
        <!-- version specified in grandparent pom -->
K
kohsuke 已提交
127 128 129 130 131 132 133 134
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <fileMask>Messages.properties</fileMask>
              <outputDirectory>target/generated-sources/localizer</outputDirectory>
135
              <accessModifierAnnotations>true</accessModifierAnnotations>
K
kohsuke 已提交
136 137 138 139
            </configuration>
          </execution>
        </executions>
      </plugin>
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
              <goals>
                 <goal>add-source</goal>
              </goals>
              <configuration>
                <sources>
                  <source>${project.build.directory}/generated-sources/localizer</source>
                </sources>
              </configuration>
          </execution>
        </executions>
      </plugin>
158 159 160 161
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>
162 163
    </plugins>
  </build>
164
</project>