如何使用maven build中的url打开浏览器

Mic*_* K. 5 maven-2 maven-3

我正在使用Maven3构建一个Web应用程序并通过它运行它mvn jetty:run-war.现在我想从系统浏览器中的maven build打开web-app.

Mic*_* K. 4

我在 os windows 上解决了我的问题,这是目前我唯一的构建系统。在jetty服务器启动并托管我的网络应用程序后,构建通过antrun进行启动调用:

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <version>1.7</version>
    <executions>
      <execution>
        <id>Run URL in system browser.</id>
        <phase>install</phase>
        <configuration>
          <target>
            <exec executable="start" vmlauncher="false">
              <arg line="http://localhost:8080/rap?startup=entrypoint"/>
            </exec>
          </target>
        </configuration>
        <goals>
          <goal>run</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
Run Code Online (Sandbox Code Playgroud)