Plugin execution not covered by lifecycle configuration...

来源:互联网 发布:网上买旧书知乎 编辑:程序博客网 时间:2024/05/16 01:22

      

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

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

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

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

       

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,找到原因了那就给它配置数据源就好了。


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也可以。


    如果修改后还报找不到'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.xsdhttp://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">


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




2 0
原创粉丝点击