无法查找组件:ComponentReportAssistant:java.util.NoSuchElementException

时间:2018-12-26 09:35:50

标签: maven-plugin

我正在使用maven-enforcer-plugin检查我的maven项目的漏洞。当我执行maven clean packge时,它将失败。

在某些机器(Ubuntu 14.04)中,它可以工作非常奇怪。在其他计算机(Ubuntu 14.04)上,它会失败。

<%= form_with(model: poro, local: true) do |form| %>
  <% if poro.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(poro.errors.count, "error") %> prohibited this poro from being saved:</h2>

      <ul>
      <% poro.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :name %>
    <%= form.text_field :name, id: :poro_name %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

输出错误是:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-enforcer-plugin</artifactId>
    <version>3.0.0-M1</version> <!--$NO-MVN-MAN-VER$-->
    <executions>
        <!-- Make sure no dependencies are used for which known vulnerabilities exist. -->
        <execution>
            <id>vulnerability-checks</id>
            <phase>validate</phase>
            <goals>
                <goal>enforce</goal>
            </goals>
            <configuration>
                <!-- Just generate warnings for now -->
                <fail>false</fail>
                <rules>
                    <requireJavaVersion>
                        <version>1.8.0</version>
                    </requireJavaVersion>
                    <!-- Disabled for now as it breaks the ability to build single modules -->
                    <!--reactorModuleConvergence/-->
                    <banVulnerable implementation="org.sonatype.ossindex.maven.enforcer.BanVulnerableDependencies"/>
                </rules>
            </configuration>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>org.sonatype.ossindex.maven</groupId>
            <artifactId>ossindex-maven-enforcer-rules</artifactId>
            <version>1.0.0</version>
        </dependency>
    </dependencies>
</plugin>

0 个答案:

没有答案