using maven-install-plugin instead of repacking closure compiler

This commit is contained in:
Sebastian Sdorra
2010-12-03 14:13:46 +01:00
parent 1c6413c44b
commit 7d90faaa83
6 changed files with 48 additions and 95 deletions

View File

@@ -43,9 +43,8 @@
<dependency>
<groupId>com.google.closure</groupId>
<artifactId>repacked-compiler</artifactId>
<artifactId>compiler</artifactId>
<version>20100917</version>
<classifier>full</classifier>
</dependency>
</dependencies>

View File

@@ -1,55 +0,0 @@
<?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>
<parent>
<groupId>sonia.scm.third-party</groupId>
<artifactId>sonia.scm.third-party</artifactId>
<version>1.0-M3-SNAPSHOT</version>
</parent>
<groupId>com.google.closure</groupId>
<artifactId>repacked-compiler</artifactId>
<packaging>pom</packaging>
<version>20100917</version>
<name>repacked-compiler</name>
<dependencies>
<dependency>
<groupId>com.google.closure</groupId>
<artifactId>compiler</artifactId>
<version>20100917</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/compiler-20100917.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>src/main/assembly/compiler.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : descriptor.xml
Created on : November 21, 2010, 7:04 PM
Author : sdorra
Description:
Purpose of the document follows.
-->
<assembly xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1'
xsi:schemaLocation='http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.1 http://maven.apache.org/xsd/assembly-1.1.1.xsd'>
<id>full</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<unpack>true</unpack>
<scope>system</scope>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>

2
third-party/pom.xml vendored
View File

@@ -17,7 +17,7 @@
<modules>
<module>svnkit-dav</module>
<module>closure-compiler</module>
<module>shared-libs</module>
</modules>
</project>

46
third-party/shared-libs/pom.xml vendored Normal file
View File

@@ -0,0 +1,46 @@
<?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>
<parent>
<groupId>sonia.scm.third-party</groupId>
<artifactId>sonia.scm.third-party</artifactId>
<version>1.0-M3-SNAPSHOT</version>
</parent>
<groupId>sonia.scm.third-party</groupId>
<artifactId>shared-libs</artifactId>
<packaging>pom</packaging>
<version>1.0-M3-SNAPSHOT</version>
<name>shared-libs</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>google-closure</id>
<goals>
<goal>install-file</goal>
</goals>
<phase>install</phase>
<configuration>
<file>${project.basedir}/src/main/lib/compiler-20100917.jar</file>
<groupId>com.google.closure</groupId>
<artifactId>compiler</artifactId>
<version>20100917</version>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>