You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/07/18 16:35:16 UTC

svn commit: r795379 - in /maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail: ./ invoker.properties pom.xml tampered.jar

Author: bentmann
Date: Sat Jul 18 14:35:16 2009
New Revision: 795379

URL: http://svn.apache.org/viewvc?rev=795379&view=rev
Log:
o Added IT to check verification failure

Added:
    maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/
    maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties   (with props)
    maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml   (with props)
    maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/tampered.jar   (with props)

Added: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties?rev=795379&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties (added)
+++ maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties Sat Jul 18 14:35:16 2009
@@ -0,0 +1 @@
+invoker.buildResult = failure

Propchange: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml?rev=795379&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml (added)
+++ maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml Sat Jul 18 14:35:16 2009
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.its.jarsigner</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0</version>
+  <packaging>jar</packaging>
+
+  <description>
+    Tests that verification of a tampared JAR fails.
+  </description>
+
+  <properties>
+    <maven.test.skip>true</maven.test.skip>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.2</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3.1</version>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jarsigner-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <archive>tampered.jar</archive>
+        </configuration>
+        <executions>
+          <execution>
+            <id>verify-archive</id>
+            <goals>
+              <goal>verify</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/tampered.jar
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/tampered.jar?rev=795379&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/plugins/trunk/maven-jarsigner-plugin/src/it/verify-fail/tampered.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream