在使用Jersey Client API时,是否可以使用Jackson作为JSON数据的序列化程序/编组程序而不是JAXB?
如果是这样如何配置呢?
是否可以通过命令行中的id调用maven-exec-plugin(或任何其他插件)执行?
假设我的pom.xml文件如下所示:
<project>
[...]
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>foo</id>
<goals>
<goal>exec</goal>
</goals>
<phase></phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>foo</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>bar</id>
<goals>
<goal>exec</goal>
</goals>
<phase></phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>bar</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
[...]
</project>
Run Code Online (Sandbox Code Playgroud)
现在可以打电话了
mvn exec:exec
有一些额外的魔法来运行执行"foo"?
好奇的是,有一个替代解决方案,使用此处提供的配置文件:http: //www.mail-archive.com/user@mojo.codehaus.org/msg00151.html
是否可以在Eclipse的JUnit Run配置中指定一个名称模式(比如**/integration/*Test),在运行项目的所有测试时应该从测试运行中排除?
查看运行/调试配置中的选项我认为这个问题可以简化为:是否可以根据junit runner命令行参数排除某些测试.
我对创建(和维护)测试套件不感兴趣.
另一种替代解决方案(尽管对此仍然不感兴趣)是创建包含测试文件的单独目录:
并选择该目录以运行其中的所有测试(或更改"运行配置"的"测试"选项卡中的"在所选项目,包或源文件夹中运行所有测试").
我正在使用:
任何提示/建议非常感谢!