mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-18 13:32:10 +01:00
merge with branch issue-435
This commit is contained in:
3
pom.xml
3
pom.xml
@@ -432,6 +432,9 @@
|
||||
<!-- repostitory libraries -->
|
||||
<jgit.version>3.0.0.201306101825-r</jgit.version>
|
||||
<svnkit.version>1.7.10-scm3</svnkit.version>
|
||||
|
||||
<!-- util libraries -->
|
||||
<guava.version>14.0.1</guava.version>
|
||||
|
||||
<!-- build properties -->
|
||||
<project.build.javaLevel>1.6</project.build.javaLevel>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>14.0.1</version>
|
||||
<version>${guava.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -113,12 +113,8 @@
|
||||
<groupId>com.sun.jersey.contribs</groupId>
|
||||
<artifactId>jersey-guice</artifactId>
|
||||
<version>${jersey.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>jersey-grizzly2</artifactId>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<!-- included by dependency rewrite -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@@ -189,6 +185,14 @@
|
||||
<version>3.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${guava.version}</version>
|
||||
<!-- included by dependency rewrite -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- template engine -->
|
||||
|
||||
<dependency>
|
||||
@@ -385,6 +389,57 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>repack</id>
|
||||
<phase>compile</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<!--
|
||||
add beans.xml to jersey-guice and guava
|
||||
-->
|
||||
<property name="beans.file" value="src/main/webapp/WEB-INF/beans.xml" />
|
||||
<property name="temp.dir" value="${project.build.directory}/tmp" />
|
||||
<property name="rewrite.dir" value="${project.build.directory}/dependency-rewrite/WEB-INF/lib" />
|
||||
<property name="suffix" value="gfcdifix" />
|
||||
|
||||
<!-- jersey guice -->
|
||||
<property name="jersey.tmp" value="${temp.dir}/jersey-guice" />
|
||||
<unzip src="${com.sun.jersey.contribs:jersey-guice:jar}" dest="${jersey.tmp}"/>
|
||||
<copy file="${beans.file}" toDir="${jersey.tmp}/META-INF" />
|
||||
<zip basedir="${jersey.tmp}" destfile="${rewrite.dir}/jersey-guice-${jersey.version}-${suffix}.jar"/>
|
||||
|
||||
<!-- guava -->
|
||||
<property name="guava.tmp" value="${temp.dir}/guava" />
|
||||
<unzip src="${com.google.guava:guava:jar}" dest="${guava.tmp}"/>
|
||||
<copy file="${beans.file}" toDir="${guava.tmp}/META-INF" />
|
||||
<zip basedir="${guava.tmp}" destfile="${rewrite.dir}/guava-${guava.version}-${suffix}.jar"/>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>${project.build.directory}/dependency-rewrite</directory>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>sonia.maven</groupId>
|
||||
@@ -491,6 +546,9 @@
|
||||
<resource>
|
||||
<directory>${project.build.directory}/web-compressor</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>${project.build.directory}/dependency-rewrite</directory>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
6
scm-webapp/src/main/webapp/WEB-INF/beans.xml
Normal file
6
scm-webapp/src/main/webapp/WEB-INF/beans.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
|
||||
bean-discovery-mode="none">
|
||||
</beans>
|
||||
@@ -34,7 +34,8 @@
|
||||
|
||||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
||||
metadata-complete="true">
|
||||
|
||||
<listener>
|
||||
<listener-class>sonia.scm.boot.BootstrapListener</listener-class>
|
||||
|
||||
Reference in New Issue
Block a user