备忘:maven 错误信息: Plugin execution not covered by lifecycle configuration

简介: 4.0.0  mymaven  mymaven  0.0.1-SNAPSHOT         org.hibernate    hibernate    3.5.4-Final    pom          org.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>mymaven</groupId>
  <artifactId>mymaven</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <dependencies>
   <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate</artifactId>
    <version>3.5.4-Final</version>
    <type>pom</type>
   </dependency>
   <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-annotations</artifactId>
    <version>3.5.4-Final</version>
   </dependency>
   <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>3.5.4-Final</version>
   </dependency>
   <dependency>
    <groupId>org.javassist</groupId>
    <artifactId>javassist</artifactId>
    <version>3.18.2-GA</version>
   </dependency>
   <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.7.7</version>
   </dependency>
   <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.1.2</version>
   </dependency>
   <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.1.2</version>
   </dependency>
   <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.31</version>
   </dependency>
   <dependency>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis</artifactId>
    <version>3.2.7</version>
   </dependency>
  </dependencies>
  <build>
   
    <plugins>
         <plugin>
          <groupId>org.mybatis.generator</groupId>
          <artifactId>mybatis-generator-maven-plugin</artifactId>
           <version>1.3.1</version>
               <configuration> 
                   <verbose>true</verbose> 
                   <overwrite>true</overwrite> 
               </configuration> 
           <executions>
             <execution>
               <id>Generate MyBatis Artifacts</id>
               <goals>
                 <goal>generate</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
      </plugins>
  </build>
</project>

红字出错了。错误信息是:Plugin execution not covered by lifecycle configuration. 在网上找了一些解决方案,结果是把plugins包括在pluginManagement里。

<pluginManagement>

目录
相关文章
|
Java Maven Android开发
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
527 0
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...
|
8月前
|
Scala
Idea中创建scala项目中Cannot resolve plugin org.scala-tools:maven-scala-plugin: unknown
Idea中创建scala项目中Cannot resolve plugin org.scala-tools:maven-scala-plugin: unknown
54 0
|
Java Maven
No valid Maven installation found. Either set the home directory in the configuration dialog or set
No valid Maven installation found. Either set the home directory in the configuration dialog or set
479 0
No valid Maven installation found. Either set the home directory in the configuration dialog or set
|
前端开发 IDE JavaScript
Java-Spring Boot Maven Plugin
​Spring Boot Maven Plugin 总结一下下!
143 0
|
Android开发
Plugin execution not covered by lifecycle configuration: org.zeroturnaround:jrebel-maven-plugin:1.1.
Plugin execution not covered by lifecycle configuration: org.zeroturnaround:jrebel-maven-plugin:1.1.报错
Plugin execution not covered by lifecycle configuration: org.zeroturnaround:jrebel-maven-plugin:1.1.
|
XML IDE Java
测试开发基础 mvn test | 利用 Maven Surefire Plugin 做测试用例基础执行管理
测试开发基础 mvn test | 利用 Maven Surefire Plugin 做测试用例基础执行管理
|
Java Maven
Cannot resolve plugin org.apache.tomcat.maven:tomcat7-maven-plugin:<unknown>
Cannot resolve plugin org.apache.tomcat.maven:tomcat7-maven-plugin:<unknown>
1339 0
Cannot resolve plugin org.apache.tomcat.maven:tomcat7-maven-plugin:<unknown>
|
存储 Java 应用服务中间件
Maven plugin 设置和常见命令
核心 Plugin Clean Plugin The Clean Plugin is used when you want to remove files generated at build-time in a project's directory. 跳过 Clean
536 0
|
5天前
|
Java Apache Maven
Maven 项目文档
在 `C:/MVN` 目录下创建 Maven 项目 `consumerBanking` 使用命令:`mvn archetype:generate -DgroupId=com.companyname.bank -DartifactId=consumerBanking -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false`。为解决 `mvn site` 命令执行时的 `NoClassDefFoundError`
|
14天前
|
Java Maven
idea中maven项目pom文件Could not acquire lock(s)
idea中maven项目pom文件Could not acquire lock(s)