Joh*_*y19 5 logging fork maven-jetty-plugin
我正在使用maven jetty插件来运行我的集成测试,为此我在分叉模式下运行jetty(因为我需要将一些jam args传递给jvm)一切正常但是由于某些原因我没有得到任何我的web登录控制台.
当我运行它不忘记我得到所有STDOUT,STDERR等..所以当有问题我可以看到什么是错的,但是当运行forked我没有任何东西所以当有问题时我不知道它在哪里是.
这是我的pom
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.0.3.v20130506</version>
<configuration>
<contextPath>/${project.artifactId}</contextPath>
<jvmArgs>-Denv=it -Djetty.port=8081 -javaagent:/...../jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/....../target/jacoco.exec</jvmArgs>
<waitForChild>false</waitForChild>
<stopKey>stopJetty</stopKey>
<stopPort>9966</stopPort>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run-forked</goal>
</goals>
<configuration>
<stopKey>stopJetty</stopKey>
<stopPort>9966</stopPort>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我应该添加什么来将所有日志都放在控制台中?
| 归档时间: |
|
| 查看次数: |
282 次 |
| 最近记录: |