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
This commit is contained in:
kohsuke 2007-02-10 22:30:24 +00:00
parent 765dea3cc1
commit be86dce26a
4 changed files with 76 additions and 2 deletions

View File

@ -11,6 +11,32 @@
<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>

13
pom.xml
View File

@ -54,4 +54,17 @@
</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>

View 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>

View File

@ -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>