JHipster Eclipse插件错误 [英] JHipster Eclipse Plugin Error
问题描述
我正在尝试jhipster
演示应用程序,但是在eclipse
中导入项目时,我在pom.xml文件中遇到以下错误
I am trying jhipster
demo application but when import project in eclipse
i am getting below error in pom.xml file
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
i have tried this link, but its now working for me then I have added below to 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
服务器之外)
after that i need to run grunt
on command line, The project is started successfully. I am not aware about the impact of disabling the plugins (apart from auto starting grunt
server)
有人可以帮助解决此错误吗?所以我不需要使用命令行. 我正在使用最新版本的Eclipse(火星),最新的Maven,哟,咕unt声,更高.
Can someone please help to resolve this error ? so i dont need to use command line. I am using Latest Version of Eclipse (Mars), Lastest Maven,yo,grunt,bower.
推荐答案
将以下内容替换为pom.xml中的jacoco版本部件.我也遇到了同样的问题,并解决了这个问题,现在可以正常工作了.
Replace the jacoco version part in pom.xml with the following it will work. I too faced the same issue and resolved with this and is working fine now.
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
因此,删除版本标签之间的内容,然后将其替换为.7.5.201505241946.会工作的.
So delete the content in between version tags and replace that with .7.5.201505241946. It will work.
这篇关于JHipster Eclipse插件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!