JHipster Eclipse 插件错误
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)
我试过 this link,但它现在对我有用然后我在下面添加到 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 (Mars), Latest Maven,yo,g运行t,bower.
将 pom.xml 中的 jacoco 版本部分替换为以下内容即可。我也遇到了同样的问题并解决了这个问题,现在工作正常。
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
所以删除版本标签之间的内容并替换为.7.5.201505241946。它会起作用。
我正在尝试 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)
我试过 this link,但它现在对我有用然后我在下面添加到 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 (Mars), Latest Maven,yo,g运行t,bower.
将 pom.xml 中的 jacoco 版本部分替换为以下内容即可。我也遇到了同样的问题并解决了这个问题,现在工作正常。
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
所以删除版本标签之间的内容并替换为.7.5.201505241946。它会起作用。