Changeset 2169


Ignore:
Timestamp:
08/29/12 08:31:57 (12 years ago)
Author:
oschonef
Message:
  • remove unneeded dependencies
  • copy required dependencies (w/o test dependencies) to target directory when building package
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SRUClient/trunk/pom.xml

    r2122 r2169  
     1<?xml version="1.0" encoding="UTF-8"?>
    12<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    23        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     
    4950
    5051                <dependency>
    51                         <groupId>joda-time</groupId>
    52                         <artifactId>joda-time</artifactId>
    53                         <version>2.0</version>
    54                 </dependency>
    55 
    56                 <dependency>
    5752                        <groupId>org.slf4j</groupId>
    5853                        <!--
    59                         <artifactId>slf4j-jdk14</artifactId>
    60                         -->
    61             <artifactId>slf4j-log4j12</artifactId>
     54            <artifactId>slf4j-jdk14</artifactId>
     55            -->
     56                        <artifactId>slf4j-log4j12</artifactId>
    6257                        <version>${slf4j.version}</version>
    6358                        <scope>test</scope>
     
    7671                                </configuration>
    7772                        </plugin>
     73
     74                        <plugin>
     75                                <groupId>org.apache.maven.plugins</groupId>
     76                                <artifactId>maven-dependency-plugin</artifactId>
     77                                <version>2.5.1</version>
     78                                <executions>
     79                                        <execution>
     80                                                <id>copy-dependencies</id>
     81                                                <phase>package</phase>
     82                                                <goals>
     83                                                        <goal>copy-dependencies</goal>
     84                                                </goals>
     85                                                <configuration>
     86                                                    <includeScope>compile</includeScope>
     87                                                        <overWriteReleases>false</overWriteReleases>
     88                                                        <overWriteSnapshots>false</overWriteSnapshots>
     89                                                        <overWriteIfNewer>true</overWriteIfNewer>
     90                                                </configuration>
     91                                        </execution>
     92                                </executions>
     93                        </plugin>
    7894                </plugins>
     95
     96                <pluginManagement>
     97                        <plugins>
     98                                <!-- m2e settings -->
     99                                <plugin>
     100                                        <groupId>org.eclipse.m2e</groupId>
     101                                        <artifactId>lifecycle-mapping</artifactId>
     102                                        <version>1.0.0</version>
     103                                        <configuration>
     104                                                <lifecycleMappingMetadata>
     105                                                        <pluginExecutions>
     106                                                                <!-- copy-dependency plugin -->
     107                                                                <pluginExecution>
     108                                                                        <pluginExecutionFilter>
     109                                                                                <groupId>org.apache.maven.plugins</groupId>
     110                                                                                <artifactId>maven-dependency-plugin</artifactId>
     111                                                                                <versionRange>[1.0.0,)</versionRange>
     112                                                                                <goals>
     113                                                                                        <goal>copy-dependencies</goal>
     114                                                                                </goals>
     115                                                                        </pluginExecutionFilter>
     116                                                                        <action>
     117                                                                                <ignore />
     118                                                                        </action>
     119                                                                </pluginExecution>
     120                                                        </pluginExecutions>
     121                                                </lifecycleMappingMetadata>
     122                                        </configuration>
     123                                </plugin>
     124                        </plugins>
     125                </pluginManagement>
    79126        </build>
    80127
Note: See TracChangeset for help on using the changeset viewer.