Plugin maven berth without console logs when starting forked

I use the maven plugin for actuation to run my integration tests, for this I run the berth in forked mode (because I need to pass some test arguments to jvm) Everything works fine, but for some reason I don't get any of my web log in the console.

When I run it without forgetting, I get all STDOUT, STDERR, etc., so when there is a problem, I can understand what is wrong, but when I start forked, I have nothing, when there is a problem, I do not have idea where it is.

here is my 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>

What should I add in order to have all the logs in the console?

+4
source share

Source: https://habr.com/ru/post/1615525/


All Articles