提交 be86dce2 编写于 作者: K kohsuke

sign jars that are needed for JNLP slave agents


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2144 71c3de6d-444a-0410-be80-ed276b4c234a
上级 765dea3c
......@@ -10,7 +10,33 @@
<artifactId>jnlp-agent</artifactId>
<packaging>jar</packaging>
<name>Hudson JNLP slave agent</name>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<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>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.jvnet.hudson.main</groupId>
......
......@@ -53,5 +53,18 @@
</plugin>
</plugins>
</build>
<profiles>
<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>
</properties>
</profile>
</profiles>
</project>
\ No newline at end of file
......@@ -137,6 +137,11 @@
<attribute name="Main-Class" value="hudson.remoting.Launcher" />
</manifest>
</jar>
<!-- see ../jnlp-agent/pom.xml for details -->
<signjar jar="target/${artifactId}-${version}-jdk14.jar"
alias="${hudson.sign.alias}"
keystore="${hudson.sign.keystore}"
storepass="${hudson.sign.storepass}" />
</tasks>
</configuration>
<goals>
......@@ -179,6 +184,24 @@
</manifest>
</archive>
</configuration>
<executions>
<execution>
<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>
</plugin>
</plugins>
</build>
......
......@@ -71,6 +71,13 @@
-->
<!--scanIntervalSeconds>1</scanIntervalSeconds-->
<webAppSourceDirectory>${basedir}/resources</webAppSourceDirectory>
<!--realm for debug
<userRealms>
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
<name>hudsonRealm</name>
<config>src/realm.properties</config>
</userRealm>
</userRealms>-->
<systemProperties>
<systemProperty>
<name>HUDSON_HOME</name>
......@@ -124,6 +131,11 @@
<version>${version}</version>
<classifier>${hudsonClassifier}</classifier>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.main</groupId>
<artifactId>jnlp-agent</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.main</groupId>
<artifactId>hudson-core</artifactId>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册