Plugin execution not covered by lifecycle configuration...

      

    最近在跟权限系统,导入源码后出现了很多异常,其中之一如下:引入第三方插件eclipselink报错信息:

Plugin execution not covered by lifecycle configuration: au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.3:weave (execution: default, phase: process-classes)

    直译过来大意就是插件执行没有被生命周期配置给覆盖。也就是说该插件没有被合理管理起来。

Plugin execution not covered by lifecycle configuration..._第1张图片

针对上述错误信息,那么给它添加一个管理就OK了。

Plugin execution not covered by lifecycle configuration..._第2张图片

       

JBAS014775: 新的缺失的/未满足的依赖关系:
service jboss.naming.context.java.jboss.datasources.JcMysqlDS (缺失的)依赖关系: [service jboss.persistenceunit."itoo-authority-start-ear.ear/itoo-authority-api-0.0.1-SNAPSHOT.jar#MT_HOTEL_SERVICE", service jboss.persistenceunit."itoo-authority-start-ear.ear/itoo-authority-start-web-0.0.1-SNAPSHOT.war#MT_HOTEL_SERVICE"]

仔细查看错误信息,最终原因是没有找到依赖的数据源JcMysqlDS,找到原因了那就给它配置数据源就好了。

Plugin execution not covered by lifecycle configuration..._第3张图片


Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

    直译过来就是这个标签只适用于jdk1.5及1.5以上的版本(注意:jdk1.8可能会有其他异常),修改项目的jdk版

本或者直接使用myeclipse自带的jdk也可以。

Plugin execution not covered by lifecycle configuration..._第4张图片


    如果修改后还报找不到'component-scan',则可能是spring的配置文件内部的隐性异常,将

applicatonContext.xml文件的头文件用下面代码替换。

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:task="http://www.springframework.org/schema/task" xmlns:cache="http://www.springframework.org/schema/cache"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">


    每解决一个问题就多了一点积累,正因为有了一点点的进步才会有最终的成功,加油!




你可能感兴趣的:(Plugin execution not covered by lifecycle configuration...)