Skip to content

Instantly share code, notes, and snippets.

@kgirard
Created April 8, 2013 19:04
Show Gist options
  • Save kgirard/5339516 to your computer and use it in GitHub Desktop.
Save kgirard/5339516 to your computer and use it in GitHub Desktop.
Pom that breaks p2-maven-plugin with ZipException
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.reficio.rcp</groupId>
<artifactId>test-p2-site</artifactId>
<packaging>pom</packaging>
<version>2.0.7</version>
<build>
<plugins>
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<id>default-cli</id>
<configuration>
<artifacts>
<artifact><id>com.google.guava:guava:14.0.1</id></artifact>
<artifact>
<id>net.sf.trove4j:trove4j:3.0.3</id>
<override>true</override>
<instructions>
<Bundle-Name>Trove: High Performance Collections for Java</Bundle-Name>
</instructions>
</artifact>
<artifact>
<id>org.apache.commons:commons-lang3:3.1</id>
<override>true</override>
<instructions>
<Bundle-Name>Lang3: Apache Commons Lang for Java</Bundle-Name>
<Bundle-SymbolicName>org.apache.commons.lang3</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>commons-io:commons-io:2.4</id>
<override>true</override>
<instructions>
<Bundle-Name>IO: Apache Commons IO for Java</Bundle-Name>
<Bundle-SymbolicName>org.apache.commons.io</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>org.antlr:antlr-runtime:3.5</id>
<override>true</override>
<instructions>
<Bundle-Name>ANTLR: ANother Tool for Language Recognition for Java</Bundle-Name>
<Bundle-SymbolicName>org.antlr.runtime</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>org.mockito:mockito-core:1.9.5</id>
<override>true</override>
<instructions>
<Bundle-Name>Mockito: Simpler and Better Mocking for Java</Bundle-Name>
<Bundle-SymbolicName>org.mockito</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>org.javassist:javassist:3.15.0-GA</id>
</artifact>
<artifact>
<id>javax.transaction:jta:1.1</id>
<override>true</override>
<instructions>
<Bundle-SymbolicName>javax.transaction</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>xerces:xercesImpl:2.11.0</id>
<override>true</override>
<instructions>
<Bundle-Name>Xerces: Apache XML Parser for Java</Bundle-Name>
<Bundle-SymbolicName>org.apache.xerces</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>asm:asm-tree:3.3.1</id>
<override>true</override>
<instructions>
<Bundle-SymbolicName>org.objectweb.asm.tree</Bundle-SymbolicName>
</instructions>
</artifact>
<artifact>
<id>asm:asm:3.3.1</id>
<override>true</override>
<instructions>
<Bundle-SymbolicName>org.objectweb.asm</Bundle-SymbolicName>
</instructions>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.5.v20120716</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webAppSourceDirectory>${basedir}/target/repository/</webAppSourceDirectory>
<webApp>
<contextPath>/site</contextPath>
</webApp>
<stopPort>9966</stopPort>
<stopKey>kdm</stopKey>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>reficio</id>
<url>http://repo.reficio.org/maven/</url>
</pluginRepository>
</pluginRepositories>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment