pom.xml 4.13 KB
<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>nicolas-container</artifactId>
        <groupId>pl.waw.ipipan.zil.summ</groupId>
        <version>1.0.0</version>
    </parent>

    <artifactId>nicolas-cli</artifactId>

    <dependencies>

        <!-- project -->
        <dependency>
            <groupId>pl.waw.ipipan.zil.summ</groupId>
            <artifactId>nicolas-multiservice</artifactId>
        </dependency>
        <dependency>
            <groupId>pl.waw.ipipan.zil.summ</groupId>
            <artifactId>nicolas-lib</artifactId>
        </dependency>
        <dependency>
            <groupId>pl.waw.ipipan.zil.summ</groupId>
            <artifactId>nicolas-model</artifactId>
            <scope>runtime</scope>
        </dependency>

        <!-- internal -->
        <dependency>
            <groupId>pl.waw.ipipan.zil.multiservice</groupId>
            <artifactId>utils</artifactId>
        </dependency>

        <!-- third party -->
        <dependency>
            <groupId>com.beust</groupId>
            <artifactId>jcommander</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>

        <!-- logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>uk.org.lidalia</groupId>
            <artifactId>slf4j-test</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
        </dependency>

        <!-- test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>jar-with-dependencies</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                        <configuration>
                            <descriptorRefs>
                                <descriptorRef>jar-with-dependencies</descriptorRef>
                            </descriptorRefs>
                            <appendAssemblyId>false</appendAssemblyId>
                            <finalName>nicolas-cli</finalName>
                            <archive>
                                <manifest>
                                    <mainClass>pl.waw.ipipan.zil.summ.nicolas.cli.Main</mainClass>
                                </manifest>
                            </archive>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <classpathDependencyExcludes>
                        <classpathDependencyExcludes>org.slf4j:slf4j-simple</classpathDependencyExcludes>
                    </classpathDependencyExcludes>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-failsafe-plugin</artifactId>
                <configuration>
                    <classpathDependencyExcludes>
                        <classpathDependencyExcludes>org.slf4j:slf4j-simple</classpathDependencyExcludes>
                    </classpathDependencyExcludes>
                </configuration>
            </plugin>

        </plugins>
    </build>
</project>