[英]JHipster Eclipse Plugin Error
我正在嘗試jhipster
演示應用程序,但是在eclipse
導入項目時,在pom.xml文件中出現以下錯誤
Plugin execution not covered by lifecycle configuration: com.github.trecloux:yeoman-maven-plugin:0.4:build
(execution: run-grunt, phase: generate-resources)
Plugin execution not covered by lifecycle configuration: org.jacoco:jacoco-maven-plugin:
0.7.4.201502262128:prepare-agent (execution: pre-unit-tests, phase: initialize)
我已經嘗試過此鏈接,但是現在對我有用,然后我在下面添加了pom
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only.
It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<versionRange>[0.5,)
</versionRange>
<goals>
<goal>prepare-agent</goal>
</goals>
</pluginExecutionFilter>
<action>
<!-- m2e doesn't know what to do with jacoco,
let's ignore it or annoying error markers appear
see http://wiki.eclipse.org/M2E_plugin_execution_not_covered
-->
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
com.github.trecloux
</groupId>
<artifactId>
yeoman-maven-plugin
</artifactId>
<versionRange>
[0.4,)
</versionRange>
<goals>
<goal>build</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
之后,我需要在命令行上運行grunt
,該項目已成功啟動。 我不知道禁用插件的影響(除了自動啟動grunt
服務器外)
有人可以幫忙解決此錯誤嗎? 所以我不需要使用命令行。 我正在使用最新版本的Eclipse(火星),最新的Maven,喲,咕unt聲,更高。
將pom.xml中的jacoco版本部分替換為以下內容,它將起作用。 我也遇到了同樣的問題,並解決了這個問題,現在工作正常。
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
因此,刪除版本標記之間的內容,然后將其替換為.7.5.201505241946。 它會工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.