货物:从容器中删除文件

时间:2016-01-04 12:57:40

标签: tomee cargo

是否可以从货物使用的容器/应用程序服务器中删除库?

我正在使用TomEE,但始终排除了库lib \ slf4j-jdk14-1.7.5.jar,因为我在容器中使用了Logback。现在我想使用Cargo进行测试,但是通过artifactInstaller它会下载完整的Tomee-1.6.0软件包而我看不到,我怎么能删除slf4j-jdk14依赖项。

Cargo-Maven插件中是否存在可能性? 或者也许是maven配置任务?

<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.8</version>
<configuration>
    <container>
        <containerId>tomcat7x</containerId>
        <artifactInstaller>
            <groupId>org.apache.openejb</groupId>
            <artifactId>apache-tomee</artifactId>
            <version>1.6.0</version>
            <classifier>plus</classifier>
        </artifactInstaller>
        <timeout>3000000</timeout>
        <systemProperties>
            <environment>ci</environment>
        </systemProperties>
        <log/>
        <output/>
        <dependencies>
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>aqapi</artifactId>
            </dependency>
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jul-to-slf4j</artifactId>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
            </dependency>
        </dependencies>
    </container>

    <configuration>
        <properties>
            <cargo.servlet.port>${custom.http.port}</cargo.servlet.port>
            <cargo.tomcat.ajp.port>${custom.ajp.port}</cargo.tomcat.ajp.port>
            <cargo.rmi.port>${custom.rmi.port}</cargo.rmi.port>
            <cargo.jvmargs>-Xms256m -Xmx1500m -XX:MaxPermSize=384m</cargo.jvmargs>
        </properties>
        <configfiles>
            <configfile>
                <file>src/test/tomee/conf/tomee.xml</file>
                <todir>conf</todir>
            </configfile>
            <configfile>
                <file>src/test/tomee/logging.properties</file>
                <todir>conf</todir>
            </configfile>
            <configfile>
                <file>src/test/tomee/logback.xml</file>
                <todir>shared/classes</todir>
            </configfile>
        </configfiles>
    </configuration>

    <deployables>
        <deployable>
            <groupId>de.test</groupId>
            <artifactId>test-war</artifactId>
            <type>war</type>
            <properties>
                <context>test-war</context>
            </properties>
        </deployable>
    </deployables>

</configuration>

0 个答案:

没有答案