简体   繁体   中英

mvn -x switch within pom.xml file

I am running a build on Jenkins, I would like to enable -x switch so I can do some debugging. Here is my pom.xml file:

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.dqsalpha-dev.app</groupId>
    <artifactId>dqsalpha</artifactId>
    <version>0.0.1001</version>
    <build>
        <plugins>
            <plugin>
                <version>1.6.0</version>
                <artifactId>exec-maven-plugin</artifactId>
                <groupId>org.codehaus.mojo</groupId>
                <executions>
                    <execution><!-- Run our version calculation script -->
                        <id>Version Calculation</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                        <configuration>
                            <executable>${basedir}/@test.sh</executable>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

is there a way to enable the -X switch with the pom file?

Or perhaps, I can add the -X switch to the Jenkins configuration, which looks like:

在此处输入图片说明

您应该能够在Jenkins中更新“ Goals and options字段,使其包含-X开关,如下所示:

-X clean install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM