pom.xml 4.8 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>2.194</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
      <optional>true</optional> <!-- ditto -->
    </dependency>
80
    <dependency>
B
Basil Crow 已提交
81 82 83
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-annotations</artifactId>
      <optional>true</optional>
84
    </dependency>
85 86 87 88
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
    </dependency>
89 90
  </dependencies>

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