-1
我正在通过“mvn test”的maven执行java“main”类,它在cmd提示符下按预期工作。 Main类按预期生成XML输出。如何在TeamCity中执行/配置相同。如何通过maven执行java主类并通过teamcity执行相同
我的pom.xml
<build>
\t \t <plugins>
\t \t <plugin>
\t \t \t <groupId>org.codehaus.mojo</groupId>
\t \t \t <artifactId>exec-maven-plugin</artifactId>
\t \t \t <version>1.1.1</version>
\t \t \t <executions>
\t \t \t <execution>
\t \t \t \t <phase>test</phase>
\t \t \t \t <goals>
\t \t \t \t \t <goal>java</goal>
\t \t \t \t </goals>
\t \t \t \t <configuration>
\t \t \t \t \t <mainClass>com.test.scripts.TestScript</mainClass>
\t \t \t \t </configuration>
\t \t \t </execution>
\t \t \t </executions>
\t \t </plugin>
\t \t </plugins>
\t \t </build>
\t \t
with some dependency details.