小编Eft*_*mis的帖子

Maven JAXB插件的区别

我已经确定存在两个用于Maven 2的JAXB插件,具有一些不同的配置.

一个来自Sun:http://jaxb.dev.java.net/jaxb-maven2-plugin/,另一个来自Mojohaus:http://mojohaus.org/jaxb2-maven-plugin/

可以推荐这两个插件中的哪一个?


谢谢马特.在我的小型研究项目中,我发现还有另一个来自sunners的插件:

<groupId>com.sun.tools.xjc.maven2</groupId>  
<artifactId>maven-jaxb-plugin</artifactId>  
Run Code Online (Sandbox Code Playgroud)

那一个:

<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
Run Code Online (Sandbox Code Playgroud)

仍然是Codehouse的那个.

java maven-2 jaxb maven-plugin maven

123
推荐指数
4
解决办法
9万
查看次数

Maven Javascript Compressor

我想知道如何使用maven压缩javascript文件.我已经访问了像 http://mojohaus.org/javascript-maven-tools/guide-webapp-development.html这样的网站, 但没有解释实施.

我想知道执行maven插件的依赖性.

javascript maven-2 minify

9
推荐指数
1
解决办法
9446
查看次数

Maven FindBugs插件

你有用法:findbugs-maven-plugin

<project>
  [...]
  <reporting>
    [...]
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>findbugs-maven-plugin</artifactId>
      <version>1.2.1</version>
      <configuration>
        <xmlOutput>true|false</xmlOutput>
        <xmlOutputDirectory>directory location of findbugs xdoc xml report</xmlOutputDirectory>
        <threshold>High|Normal|Low|Exp|Ignore</threshold>
        <effort>Min|Default|Max</effort>
        <excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
        <includeFilterFile>findbugs-include.xml</includeFilterFile>
        <visitors>FindDeadLocalStores,UnreadFields</visitors>
        <omitVisitors>FindDeadLocalStores,UnreadFields</omitVisitors>
        <onlyAnalyze>org.codehaus.mojo.findbugs.*</onlyAnalyze>
        <pluginList>/libs/fb-contrib/fb-contrib-2.8.0.jar</pluginList>
        <debug>true|false</debug>
        <relaxed>true|false</relaxed>
        <findbugsXmlOutput>true|false</findbugsXmlOutput>
        <findbugsXmlOutputDirectory>directory location of findbugs legact xml format report</findbugsXmlOutputDirectory>
      </configuration>
    </plugin>
    [...]
  </reporting>
  [...]
</project>
Run Code Online (Sandbox Code Playgroud)

但有一次:

mvn site
Run Code Online (Sandbox Code Playgroud)

我明白了:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.codehaus.mojo
ArtifactId: findbugs-maven-plugin
Version: 1.2.1

Reason: Unable to download the artifact from any repository

  org.codehaus.mojo:findbugs-maven-plugin:pom:1.2.1

from the specified remote …
Run Code Online (Sandbox Code Playgroud)

java maven-2 findbugs maven-plugin

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

maven-2 ×3

java ×2

maven-plugin ×2

findbugs ×1

javascript ×1

jaxb ×1

maven ×1

minify ×1