小编Arn*_*rne的帖子

Ignore Problems by maven-enforcer-plugin

我正在尝试将 maven-enforcer-plugin 与收敛规则一起使用。我设法摆脱了除一个之外的所有问题。我们在我们的项目中使用 gwt 并且需要在客户端提供 hibernate-validator 4.1.0.Final 并提供范围。在服务器端,我们需要 hibernate-validator 4.2.0.Final,因为我们需要一些较新的功能。4.1.0.Final 依赖项具有分类器来源。这样我就可以在一个 pom.xml 文件中包含两个版本。一切正常,但执行器插件不那么高兴并且失败了。

有什么办法可以配置插件来允许这个“问题”?

编辑:

The enforcer-plugin fails with the following error: 
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:

Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.hibernate:hibernate-validator:4.1.0.Final paths to dependency are...
Run Code Online (Sandbox Code Playgroud)

问候,阿恩

hibernate-validator maven-enforcer-plugin gwt-2.5

5
推荐指数
1
解决办法
5034
查看次数

如何在Maven中使用SuperDevMode

在阅读了很多关于gwt 2.5的SuperDevMode后,我想亲自尝试一下.我阅读了https://vaadin.com/blog/-/blogs/vaadin-and-superdevmode和其他一些文章.据我所知,我必须运行codeserver类.我检查了gwt-maven-plugin存储库,但不太确定是否已经支持gwt2.5.

有没有人设法让SuperDevMode与maven一起工作?

问候,arne

编辑:

感谢托马斯我得到了它!这是我的pom的摘录.

<resources>
    <resource>
      <directory>
    src/main/java
      </directory>
    </resource>
</resources>

    <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>exec-maven-plugin</artifactId>
       <version>1.2.1</version>
        <executions>
            <execution>
              <goals>
                <goal>java</goal>
              </goals>
            </execution>
        </executions>

      <configuration>                                     
         <mainClass>com.google.gwt.dev.codeserver.CodeServer</mainClass>
         <arguments>
                <argument>com.myapp.Application</argument>
         </arguments>
      </configuration>

   </plugin>
Run Code Online (Sandbox Code Playgroud)

现在我只需要运行目标: exec:java启动代码服务器.

gwt maven gwt-maven-plugin

4
推荐指数
1
解决办法
4070
查看次数