• 关于 dom4j java 的搜索结果

回答

你日志接口用的是slf4j,底层日志实现用的是log4j,根据slf4j的规定,你需要一个slf4j到log4j的转换jar包 回复 @追逐梦想:我回答的是针对的第一个错误,但你已经加了slf4j-nop-1.5.2.jar,就不需要加slf4j-log4j12-1.5.8.jar我下载添加了你说的那个slf4j-log4j12-1.5.8.jar出现了下面的情况。。。又出现错误了.... java.lang.ClassNotFoundException:org.slf4j.impl.StaticLoggerBinder 帮我看看...怎么解决啊?缺包,slf.lar,或者工程发部有问题 缺少 slf4j-nop-1.5.2.jar包,导入即可。 下载地址: http://download.csdn.net/detail/jianfan_k/3545292 http://ishare.iask.sina.com.cn/f/11298521.html?retcode=0 看一下新的错误InitialSessionFactorycreationfailed.org.hibernate.InvalidMappingException:Couldnotparsemappingdocumentfromresourcecom/pb/hibernate/po/Login.hbm.xml Exceptioninthread"main"java.lang.ExceptionInInitializerError atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:20) atcom.pb.hibernate.dao.LoginDao.save(LoginDao.java:15) atcom.pb.hibernate.test.Test.main(Test.java:15) Causedby:org.hibernate.InvalidMappingException:Couldnotparsemappingdocumentfromresourcecom/pb/hibernate/po/Login.hbm.xml atorg.hibernate.cfg.Configuration.addResource(Configuration.java:616) atorg.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635) atorg.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603) atorg.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582) atorg.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556) atorg.hibernate.cfg.Configuration.configure(Configuration.java:1476) atorg.hibernate.cfg.Configuration.configure(Configuration.java:1462) atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:14) ...2more Causedby:org.hibernate.InvalidMappingException:Couldnotparsemappingdocumentfrominputstream atorg.hibernate.cfg.Configuration.addInputStream(Configuration.java:555) atorg.hibernate.cfg.Configuration.addResource(Configuration.java:613) ...9more Causedby:org.dom4j.DocumentException:Erroronline15ofdocument :元素类型"class"必须由匹配的结束标记"</class>"终止。Nestedexception:元素类型"class"必须由匹配的结束标记"</class>"终止。 atorg.dom4j.io.SAXReader.read(SAXReader.java:482) atorg.hibernate.cfg.Configuration.addInputStream(Configuration.java:546) ...10more 大家帮帮我啦。。。 SLF4J:ClasspathcontainsmultipleSLF4Jbindings. SLF4J:Foundbindingin[jar:file:/C:/Users/supermanxkq/Desktop/slf4j-nop-1.5.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J:Foundbindingin[jar:file:/C:/Users/supermanxkq/Desktop/slf4j-log4j12-1.5.8%20(1).jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J:See http://www.slf4j.org/codes.html#multiple_bindingsforanexplanation. InitialSessionFactorycreationfailed.org.hibernate.MappingNotFoundException:resource:com/pb/hibernate/po/Login/hbm/xmlnotfound Exceptioninthread"main"java.lang.ExceptionInInitializerError  atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:17)  atcom.pb.hibernate.dao.LoginDao.save(LoginDao.java:15)  atcom.pb.hibernate.test.Test.main(Test.java:15) Causedby:org.hibernate.MappingNotFoundException:resource:com/pb/hibernate/po/Login/hbm/xmlnotfound  atorg.hibernate.cfg.Configuration.addResource(Configuration.java:610)  atorg.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1635)  atorg.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)  atorg.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)  atorg.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)  atorg.hibernate.cfg.Configuration.configure(Configuration.java:1476)  atorg.hibernate.cfg.Configuration.configure(Configuration.java:1462)  atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:13)  ...2more 无效的配置文件,你的Login.hbm.xml配置有错吧回复 @追逐梦想:可能是数据库版本、jdbc驱动、方言配置等没有匹配嗯,我的login.hbm.xml在hibernate.cfg.xml中指定映射文件的完整路径的时候写成了login/hbm/xml,然后改过来之后又出现了这个问题。。。 log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment). log4j:WARNPleaseinitializethelog4jsystemproperly. log4j:WARNSee http://logging.apache.org/log4j/1.2/faq.html#noconfigformoreinfo. InitialSessionFactorycreationfailed.org.hibernate.HibernateException:Unabletoaccessjava.sql.DatabaseMetaDatatodetermineappropriateDialecttouse Exceptioninthread"main"java.lang.ExceptionInInitializerError  atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:17)  atcom.pb.hibernate.dao.LoginDao.save(LoginDao.java:15)  atcom.pb.hibernate.test.Test.main(Test.java:15) Causedby:org.hibernate.HibernateException:Unabletoaccessjava.sql.DatabaseMetaDatatodetermineappropriateDialecttouse  atorg.hibernate.dialect.resolver.DialectFactory.determineDialect(DialectFactory.java:141)  atorg.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:97)  atorg.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:117)  atorg.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)  atorg.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)  atorg.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)  atcom.pb.hibernate.util.HibernateUtil.<clinit>(HibernateUtil.java:13)  ...2more Causedby:java.sql.SQLException:不支持的特性  atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)  atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)  atoracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)  atoracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)  atoracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442)  atorg.hibernate.dialect.resolver.DialectFactory.determineDialect(DialectFactory.java:131)  ...8more

爱吃鱼的程序员 2020-06-22 22:56:05 0 浏览量 回答数 0

问题

Java读取文件问题:报错

kun坤 2020-06-08 17:32:49 1 浏览量 回答数 1

问题

java web中xml文件路径访问不到???????报错

爱吃鱼的程序员 2020-06-20 16:52:37 0 浏览量 回答数 1

新手开公司,教你化繁为简

开公司到底有没有那么难,传统的手续繁琐,线下跑断腿,场地搞不定等问题,通过阿里云”云上公司注册“解决你的烦恼。

问题

大神快来帮帮啊! 关于 hibernate创建表出错

爵霸 2019-12-01 20:06:24 824 浏览量 回答数 1

回答

处理xml格式的文件或者文本字符串的话,需要使用java的xml处理工具如jdom,或dom4j都可以的。其实本质上就是对xml的节点进行解析获取数据信息。

蛮大人123 2019-12-02 02:40:40 0 浏览量 回答数 0

回答

Java用文件代替数据库可以有很多方法,一般的话,如果要求不高,使用java.io这个包里面的类,随便写入一个文件都行(txt、doc等)。不过要替代数据库,一般都会将数据写入一个xml文件中。可以使用JAXP (SUN公司)、JDOM、DOM4J这些开发包来进行XML文件解析,写入或读取XML文件的数据都可以用开发包提供的相应方法,方便快捷

蛮大人123 2019-12-02 02:16:10 0 浏览量 回答数 0

问题

hibernate创建表出错,大神快来帮帮啊? 报错

优选2 2020-06-04 17:39:21 0 浏览量 回答数 1

问题

hibernate创建表出错,大神快来帮帮啊? 400 报错

爱吃鱼的程序员 2020-06-02 11:34:00 0 浏览量 回答数 1

问题

hibernate创建表出错,大神快来帮帮啊? 400 报错

爱吃鱼的程序员 2020-05-29 17:24:38 0 浏览量 回答数 1

问题

java map转json字符串

蛮大人123 2019-12-01 19:24:57 1924 浏览量 回答数 2

问题

Java 处理 XML 的三种主流技术及介绍:报错

kun坤 2020-06-09 23:26:43 0 浏览量 回答数 1

问题

ssh整合,org.springframework.beans.factory.BeanCreationException:

a123456678 2019-12-01 20:20:33 1483 浏览量 回答数 1

问题

java 能否在catch中进行文件删除:报错

kun坤 2020-06-07 22:02:10 0 浏览量 回答数 1

回答

struts2所必须的jar包五个:struts2-core-2.1.6.jar ------struts2的核心包freemarker-2.3.13.jar-------FreeMarker是一个模板引擎,一个基于模板生成文本输出的通用工具commons-logging.jar ------Jakarta的通用日志记录包ognl-2.6.11.jar --------支持ognl表达式xwork-2.1.2.jar ------xwork的包 由于Struts2是由xwork的延伸 有些类依然关联着xwork的类Hibernate所用15个jar包:Hbernate3.jar-----核心包antlr.jar-------语言转换工具,hibernate用他将hql语句转换为sql语句dom4j.jar--------解析xml文档的工具ehcahe.jar----------缓存工具,如没提供其它缓存,默认使用他jta.jar----------标准的JTAAPI(JTA即java事物API,JTA事务比JDBC事务更强大。一个JTA事务可以有多个参与者,而一个JDBC事务则被限定在一个单一的数据库连接),有朋友说这个包可以不要,不过没测试,反正加这个没错,所以就没删除了。cglib.jar---------高效的代码生成工具,Hibernate用它在运行时扩展 Java类和实现 Java 接口asm.jar-------ASM字节码库 ,使用“cglib”则必要 asm-attrs.jar-------ASM字节码库,使用“cglib”则必要 commons-collections-2.1.1.jar-----Apache的工具集,集合类 ,用来增强Java对集合的处理能力。jaxen-1.1-beta-7.jar------------------用dom的方式解析工程中xml文件,如果想提高启动性能则去使用(可选)commons-logging.jar---------------日志工具log4j1.2.11.jar--------------------------log4j库,Apache 的日志工具commons-pool.jar,commons-dbcp.jar--------DBCP数据库连接池,Apache的Jakarta组织开发的,Tomcat4的连接池也是DBCP。(可选)xml-apis.jar------------------------------解析xml。spring所用的5个jar:spring.jar----------------------------是包含有完整发布的单个jar包spring-aop.jar----------------------这个jar文件包含在应用中使用Spring的AOP特性时所需的类aspectjrt.jar---------------------------------是SpringAop所要用到的包commons-digester.jar--------------------Digester基于规则的XML文档解析,主要用于XML到Java对象的映射.aspectjweaver.jar-------------------------用于在Spring2.0中集成AspectJ AspectJ LTW织入器其他4个jar包:msbase.jar,mssqlserver.jar,msutil.jar----连接数据库sqlserver 20003个jar struts2-spring-plugin-2.0.11.1.jar-------struts2与spring整合所需的插件。

蛮大人123 2019-12-02 01:49:31 0 浏览量 回答数 0

问题

springboot webService----wss4j+cxf实现WS-Security报错

kun坤 2020-06-06 13:38:26 0 浏览量 回答数 1

问题

springboot webService----wss4j+cxf实现WS-?400报错

爱吃鱼的程序员 2020-06-06 09:52:55 0 浏览量 回答数 1

问题

intellij启动kafka出错? 400 报错

爱吃鱼的程序员 2020-06-05 12:30:05 0 浏览量 回答数 1

问题

各位大哥大姐们,求救啊。要绝望了。关于maven,hibernate的?报错

爱吃鱼的程序员 2020-06-14 17:19:16 0 浏览量 回答数 1

问题

使用junit测试数据源时出现空指针异常:报错

kun坤 2020-06-08 11:11:04 2 浏览量 回答数 1

问题

ssh框架搭建中出现问题 400 请求报错 

kun坤 2020-05-30 15:12:04 0 浏览量 回答数 1

问题

mvn archetype:create 命令报错?报错

爱吃鱼的程序员 2020-06-10 09:59:07 0 浏览量 回答数 1

问题

spring配置自动代理后启动报错 - java报错

montos 2020-05-31 09:08:59 1 浏览量 回答数 1

问题

spring配置自动代理后启动报错403.10 禁止访问:配置无效 

kun坤 2020-05-27 20:05:27 5 浏览量 回答数 1

问题

spring配置自动代理后启动报错:报错

kun坤 2020-06-06 22:32:41 0 浏览量 回答数 1

问题

高手指导,ssh整合,annotation注入失败的问题。纠结了好几天了?报错

爱吃鱼的程序员 2020-06-22 20:10:01 0 浏览量 回答数 1

回答

import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import java.util.List; /** * @Author: panlf * @Date: 2019/9/16 9:27 / public class Dom4jTeset { public static void main(String[] args) throws DocumentException { Element root = DocumentHelper.parseText(XML).getRootElement(); List all = root.elements(); for (Element child : all) { System.out.println(child.getQName().getName()+" ("+ child.attribute("id").getValue()+")"); System.out.println(" Customer"); double sum=0; for (Element pack : child.elements()) { Element customer = pack.elements("customer").get(0); for (Element prod : pack.elements()) { if(prod.getQName().getName().equals("customer"))continue; String unitPrice = prod.attribute("unitPrice").getValue(); sum+=Double.parseDouble(prod.attribute("unitPrice").getValue()) Integer.parseInt(prod.attribute("quantity").getValue()); } System.out.println(" "+ customer.attribute("lastName").getValue()+", "+ customer.attribute("firstName").getValue()+ " at " + customer.attribute("streetAddress").getValue()+" "+ customer.attribute("zipCode").getValue()); } System.out.println(" Total"); System.out.println(" $"+sum); } } private static String XML="<?xml version=\"1.0\" ?>\n" + "<deliveries>\n" + " <van id=\"VID-12345\">\n" + " <package>\n" + " <product taxable=\"true\" productName=\"Headphones\" isbn=\"123456\" unitPrice=\"10.00\" quantity=\"1\"/>\n" + " <product taxable=\"false\" productName=\"Milk\" isbn=\"234567\" unitPrice=\"2.00\" quantity=\"2\"/>\n" + " <customer lastName=\"Adams\" firstName=\"Maurice\" streetAddress=\"123 4th St\" zipCode=\"13126\" accountNumber=\"ACCT-54321\"/>\n" + " </package>\n" + " <package>\n" + " <product taxable=\"true\" productName=\"Snickers\" isbn=\"345678\" unitPrice=\"1.00\" quantity=\"1\"/>\n" + " <product taxable=\"false\" productName=\"Milk\" isbn=\"234567\" unitPrice=\"2.00\" quantity=\"1\"/>\n" + " <customer lastName=\"Baxter\" firstName=\"Robert\" streetAddress=\"234 5th St\" zipCode=\"13126\" accountNumber=\"ACCT-65432\"/>\n" + " </package>\n" + " </van>\n" + " <cart id=\"VID-23456\">\n" + " <package>\n" + " <product taxable=\"true\" productName=\"Snickers\" isbn=\"345678\" unitPrice=\"1.00\" quantity=\"1\"/>\n" + " <customer lastName=\"Charles\" firstName=\"Steven\" streetAddress=\"345 6th St\" zipCode=\"13126\" accountNumber=\"ACCT-76543\"/>\n" + " </package>\n" + " </cart>\n" + "</deliveries>"; }

一码平川MACHEL 2019-12-02 03:00:39 0 浏览量 回答数 0

问题

在EMR类中找不到Spark-submit异常java

小六码奴 2019-12-01 19:38:43 418 浏览量 回答数 1

问题

Maven打包成jar时出了很多问题。Missing artifact?报错

爱吃鱼的程序员 2020-06-20 17:08:01 10 浏览量 回答数 1

问题

解析非标准HL7 XML w/ Python

kun坤 2019-12-30 09:58:39 5 浏览量 回答数 1

回答

D:\dev\Java\jdk1.8.0_66\bin\java-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:62590,suspend=y,server=n-Dmaven.multiModuleProjectDirectory=D:\dev\IdeaProjects\jhope\jhope.core-Dmaven.home=D:\dev\apache-maven-3.3.9-Dclassworlds.conf=D:\dev\apache-maven-3.3.9\bin\m2.conf-Dfile.encoding=UTF-8-classpath"D:\dev\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\dev\JetBrains\IntelliJIDEA15.0.2\lib\idea_rt.jar"org.codehaus.classworlds.Launcher-Didea.version=15.0.2--debug-sD:\dev\apache-maven-3.3.9\conf\settings.xmlinstall:installConnectedtothetargetVM,address:'127.0.0.1:62590',transport:'socket'ApacheMaven3.3.9(bb52d8502b132ec0a5a3f4c09453c07478323dc5;2015-11-11T00:41:47+08:00)Mavenhome:D:\dev\apache-maven-3.3.9Javaversion:1.8.0_66,vendor:OracleCorporationJavahome:D:\dev\Java\jdk1.8.0_66\jreDefaultlocale:zh_CN,platformencoding:UTF-8OSname:"windows10",version:"10.0",arch:"amd64",family:"dos"[DEBUG]Creatednewclassrealmmaven.api[DEBUG]Importingforeignpackagesintoclassrealmmaven.api[DEBUG] Imported:javax.enterprise.inject.<plexus.core[DEBUG] Imported:javax.enterprise.util.<plexus.core[DEBUG] Imported:javax.inject.<plexus.core[DEBUG] Imported:org.apache.maven.<plexus.core[DEBUG] Imported:org.apache.maven.artifact<plexus.core[DEBUG] Imported:org.apache.maven.classrealm<plexus.core[DEBUG] Imported:org.apache.maven.cli<plexus.core[DEBUG] Imported:org.apache.maven.configuration<plexus.core[DEBUG] Imported:org.apache.maven.exception<plexus.core[DEBUG] Imported:org.apache.maven.execution<plexus.core[DEBUG] Imported:org.apache.maven.execution.scope<plexus.core[DEBUG] Imported:org.apache.maven.lifecycle<plexus.core[DEBUG] Imported:org.apache.maven.model<plexus.core[DEBUG] Imported:org.apache.maven.monitor<plexus.core[DEBUG] Imported:org.apache.maven.plugin<plexus.core[DEBUG] Imported:org.apache.maven.profiles<plexus.core[DEBUG] Imported:org.apache.maven.project<plexus.core[DEBUG] Imported:org.apache.maven.reporting<plexus.core[DEBUG] Imported:org.apache.maven.repository<plexus.core[DEBUG] Imported:org.apache.maven.rtinfo<plexus.core[DEBUG] Imported:org.apache.maven.settings<plexus.core[DEBUG] Imported:org.apache.maven.toolchain<plexus.core[DEBUG] Imported:org.apache.maven.usability<plexus.core[DEBUG] Imported:org.apache.maven.wagon.<plexus.core[DEBUG] Imported:org.apache.maven.wagon.authentication<plexus.core[DEBUG] Imported:org.apache.maven.wagon.authorization<plexus.core[DEBUG] Imported:org.apache.maven.wagon.events<plexus.core[DEBUG] Imported:org.apache.maven.wagon.observers<plexus.core[DEBUG] Imported:org.apache.maven.wagon.proxy<plexus.core[DEBUG] Imported:org.apache.maven.wagon.repository<plexus.core[DEBUG] Imported:org.apache.maven.wagon.resource<plexus.core[DEBUG] Imported:org.codehaus.classworlds<plexus.core[DEBUG] Imported:org.codehaus.plexus.<plexus.core[DEBUG] Imported:org.codehaus.plexus.classworlds<plexus.core[DEBUG] Imported:org.codehaus.plexus.component<plexus.core[DEBUG] Imported:org.codehaus.plexus.configuration<plexus.core[DEBUG] Imported:org.codehaus.plexus.container<plexus.core[DEBUG] Imported:org.codehaus.plexus.context<plexus.core[DEBUG] Imported:org.codehaus.plexus.lifecycle<plexus.core[DEBUG] Imported:org.codehaus.plexus.logging<plexus.core[DEBUG] Imported:org.codehaus.plexus.personality<plexus.core[DEBUG] Imported:org.codehaus.plexus.util.xml.Xpp3Dom<plexus.core[DEBUG] Imported:org.codehaus.plexus.util.xml.pull.XmlPullParser<plexus.core[DEBUG] Imported:org.codehaus.plexus.util.xml.pull.XmlPullParserException<plexus.core[DEBUG] Imported:org.codehaus.plexus.util.xml.pull.XmlSerializer<plexus.core[DEBUG] Imported:org.eclipse.aether.<plexus.core[DEBUG] Imported:org.eclipse.aether.artifact<plexus.core[DEBUG] Imported:org.eclipse.aether.collection<plexus.core[DEBUG] Imported:org.eclipse.aether.deployment<plexus.core[DEBUG] Imported:org.eclipse.aether.graph<plexus.core[DEBUG] Imported:org.eclipse.aether.impl<plexus.core[DEBUG] Imported:org.eclipse.aether.installation<plexus.core[DEBUG] Imported:org.eclipse.aether.internal.impl<plexus.core[DEBUG] Imported:org.eclipse.aether.metadata<plexus.core[DEBUG] Imported:org.eclipse.aether.repository<plexus.core[DEBUG] Imported:org.eclipse.aether.resolution<plexus.core[DEBUG] Imported:org.eclipse.aether.spi<plexus.core[DEBUG] Imported:org.eclipse.aether.transfer<plexus.core[DEBUG] Imported:org.eclipse.aether.version<plexus.core[DEBUG] Imported:org.slf4j.<plexus.core[DEBUG] Imported:org.slf4j.helpers.<plexus.core[DEBUG] Imported:org.slf4j.spi.<plexus.core[DEBUG]Populatingclassrealmmaven.api[INFO]Errorstacktracesareturnedon.[DEBUG]ReadingglobalsettingsfromD:\dev\apache-maven-3.3.9\conf\settings.xml[DEBUG]ReadingusersettingsfromD:\dev\apache-maven-3.3.9\conf\settings.xml[DEBUG]ReadingglobaltoolchainsfromD:\dev\apache-maven-3.3.9\conf\toolchains.xml[DEBUG]ReadingusertoolchainsfromC:\Users\dev.m2\toolchains.xml[DEBUG]Usinglocalrepositoryatd:.m2\repository[DEBUG]UsingmanagerEnhancedLocalRepositoryManagerwithpriority10.0ford:.m2\repository[INFO]Scanningforprojects...[DEBUG]Extensionrealmsforprojectjhope:jhope.core:jar:1.0-SNAPSHOT:(none)[DEBUG]LookinguplifecylemappingsforpackagingjarfromClassRealm[plexus.core,parent:null][DEBUG]Resolvingpluginprefixinstallfrom[org.apache.maven.plugins,org.codehaus.mojo][DEBUG]Resolvedpluginprefixinstalltoorg.apache.maven.plugins:maven-install-pluginfromPOMjhope:jhope.core:jar:1.0-SNAPSHOT[DEBUG]===REACTORBUILDPLAN================================================[DEBUG]Project:jhope:jhope.core:jar:1.0-SNAPSHOT[DEBUG]Tasks: [install:install][DEBUG]Style: Regular[DEBUG]=======================================================================[INFO]                                     [INFO]------------------------------------------------------------------------[INFO]Buildingjhope.core1.0-SNAPSHOT[INFO]------------------------------------------------------------------------[DEBUG]Resolvingpluginprefixinstallfrom[org.apache.maven.plugins,org.codehaus.mojo][DEBUG]Resolvedpluginprefixinstalltoorg.apache.maven.plugins:maven-install-pluginfromPOMjhope:jhope.core:jar:1.0-SNAPSHOT[DEBUG]Lifecycledefault->[validate,initialize,generate-sources,process-sources,generate-resources,process-resources,compile,process-classes,generate-test-sources,process-test-sources,generate-test-resources,process-test-resources,test-compile,process-test-classes,test,prepare-package,package,pre-integration-test,integration-test,post-integration-test,verify,install,deploy][DEBUG]Lifecycleclean->[pre-clean,clean,post-clean][DEBUG]Lifecyclesite->[pre-site,site,post-site,site-deploy][DEBUG]===PROJECTBUILDPLAN================================================[DEBUG]Project:   jhope:jhope.core:1.0-SNAPSHOT[DEBUG]Dependencies(collect):[][DEBUG]Dependencies(resolve):[][DEBUG]Repositories(dependencies):[central(https://repo.maven.apache.org/maven2,default,releases)][DEBUG]Repositories(plugins)  :[central(https://repo.maven.apache.org/maven2,default,releases)][DEBUG]-----------------------------------------------------------------------[DEBUG]Goal:     org.apache.maven.plugins:maven-install-plugin:2.4:install(default-cli)[DEBUG]Style:    Regular[DEBUG]Configuration:<?xmlversion="1.0"encoding="UTF-8"?><configuration> <artifactdefault-value="${project.artifact}"/> <attachedArtifactsdefault-value="${project.attachedArtifacts}"/> <createChecksumdefault-value="false">${createChecksum}</createChecksum> <localRepository>${localRepository}</localRepository> <packagingdefault-value="${project.packaging}"/> <pomFiledefault-value="${project.file}"/> <skipdefault-value="false">${maven.install.skip}</skip> <updateReleaseInfodefault-value="false">${updateReleaseInfo}</updateReleaseInfo></configuration>[DEBUG]=======================================================================[INFO] [INFO]---maven-install-plugin:2.4:install(default-cli)@jhope.core---[DEBUG]Dependencycollectionstats:{ConflictMarker.analyzeTime=1,ConflictMarker.markTime=1,ConflictMarker.nodeCount=38,ConflictIdSorter.graphTime=2,ConflictIdSorter.topsortTime=1,ConflictIdSorter.conflictIdCount=15,ConflictIdSorter.conflictIdCycleCount=0,ConflictResolver.totalTime=7,ConflictResolver.conflictItemCount=35,DefaultDependencyCollector.collectTime=395,DefaultDependencyCollector.transformTime=16}[DEBUG]org.apache.maven.plugins:maven-install-plugin:jar:2.4:[DEBUG]  org.apache.maven:maven-plugin-api:jar:2.0.6:compile[DEBUG]  org.apache.maven:maven-project:jar:2.0.6:compile[DEBUG]   org.apache.maven:maven-settings:jar:2.0.6:compile[DEBUG]   org.apache.maven:maven-profile:jar:2.0.6:compile[DEBUG]   org.apache.maven:maven-plugin-registry:jar:2.0.6:compile[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile[DEBUG]     junit:junit:jar:3.8.1:compile[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:compile[DEBUG]  org.apache.maven:maven-model:jar:2.0.6:compile[DEBUG]  org.apache.maven:maven-artifact-manager:jar:2.0.6:compile[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0.6:compile[DEBUG]  org.apache.maven:maven-artifact:jar:2.0.6:compile[DEBUG]  org.codehaus.plexus:plexus-utils:jar:3.0.5:compile[DEBUG]  org.codehaus.plexus:plexus-digest:jar:1.0:compile[DEBUG]Creatednewclassrealmplugin>org.apache.maven.plugins:maven-install-plugin:2.4[DEBUG]Importingforeignpackagesintoclassrealmplugin>org.apache.maven.plugins:maven-install-plugin:2.4[DEBUG] Imported: <maven.api[DEBUG]Populatingclassrealmplugin>org.apache.maven.plugins:maven-install-plugin:2.4[DEBUG] Included:org.apache.maven.plugins:maven-install-plugin:jar:2.4[DEBUG] Included:junit:junit:jar:3.8.1[DEBUG] Included:org.codehaus.plexus:plexus-utils:jar:3.0.5[DEBUG] Included:org.codehaus.plexus:plexus-digest:jar:1.0[DEBUG]Configuringmojoorg.apache.maven.plugins:maven-install-plugin:2.4:installfrompluginrealmClassRealm[plugin>org.apache.maven.plugins:maven-install-plugin:2.4,parent:sun.misc.Launcher$AppClassLoader@14dad5dc][DEBUG]Configuringmojo'org.apache.maven.plugins:maven-install-plugin:2.4:install'withbasicconfigurator-->[DEBUG] (f)artifact=jhope:jhope.core:jar:1.0-SNAPSHOT[DEBUG] (f)attachedArtifacts=[][DEBUG] (f)createChecksum=false[DEBUG] (f)localRepository=   id:local   url:file:///d:/.m2/repository/  layout:defaultsnapshots:[enabled=>true,update=>always] releases:[enabled=>true,update=>always][DEBUG] (f)packaging=jar[DEBUG] (f)pomFile=D:\dev\IdeaProjects\jhope\jhope.core\pom.xml[DEBUG] (s)skip=false[DEBUG] (f)updateReleaseInfo=false[DEBUG]--endconfiguration--[INFO]------------------------------------------------------------------------[INFO]BUILDFAILURE[INFO]------------------------------------------------------------------------[INFO]Totaltime:1.286s[INFO]Finishedat:2016-02-28T11:40:00+08:00[INFO]FinalMemory:8M/245M[INFO]------------------------------------------------------------------------[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-install-plugin:2.4:install(default-cli)onprojectjhope.core:Thepackagingforthisprojectdidnotassignafiletothebuildartifact->[Help1]org.apache.maven.lifecycle.LifecycleExecutionException:Failedtoexecutegoalorg.apache.maven.plugins:maven-install-plugin:2.4:install(default-cli)onprojectjhope.core:Thepackagingforthisprojectdidnotassignafiletothebuildartifactatorg.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)atorg.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)atorg.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)atorg.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)atorg.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)atorg.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)atorg.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)atorg.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)atorg.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)atorg.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)atorg.apache.maven.cli.MavenCli.execute(MavenCli.java:863)atorg.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)atorg.apache.maven.cli.MavenCli.main(MavenCli.java:199)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:497)atorg.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)atorg.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)atorg.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)atorg.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)atorg.codehaus.classworlds.Launcher.main(Launcher.java:47)Causedby:org.apache.maven.plugin.MojoExecutionException:Thepackagingforthisprojectdidnotassignafiletothebuildartifactatorg.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:136)atorg.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)atorg.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)...21more[ERROR] [ERROR] [ERROR]Formoreinformationabouttheerrorsandpossiblesolutions,pleasereadthefollowingarticles:[ERROR][Help1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptionDisconnectedfromthetargetVM,address:'127.0.0.1:62590',transport:'socket'Processfinishedwithexitcode1 Maven报错慌什么,error里不是都告诉你了吗<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">[ERROR]Failedtoexecutegoalorg.apache.maven.plugins:maven-install-plugin:2.4:install(default-cli)onprojectjhope.core:Thepackagingforthisprojectdidnotassignafiletothebuildartifact->[Help1] <spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">org.apache.maven.lifecycle.LifecycleExecutionException:Failedtoexecutegoalorg.apache.maven.plugins:maven-install-plugin:2.4:install(default-cli)onprojectjhope.core:Thepackagingforthisprojectdidnotassignafiletothebuildartifact <spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:normal;background-color:#FFFFFF;">at 你说的这么牛逼,然而并没有解决问题大神,刚刚入门maven不懂,求解去你的maven下载的responsitory中把maven-install插件删掉mavenupdate<imgsrc="http://www.oschina.net/js/ke/plugins/emoticons/images/34.gif"alt="">看着好昏,还说是刚入门,一看就是大神的作风啊查看一下pom文件里面是不是少了<build>标签?恩是啊maven没有用到 mvncleaninstall:install和 mvncleaninstall是不同的命令 <atarget='_blank'>@老鱼的饵谢过,goal研究一下回复<aclass='referer'target='_blank'>@圊國圊國:idea中你没有特别说明,maveninstall时会默认跑所有的goal我用的Idea的就是不行,后面我自己下载了一个mavenhelper的插件就可以了

爱吃鱼的程序员 2020-06-10 14:42:45 0 浏览量 回答数 0
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 云栖号物联网 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 2020阿里巴巴研发效能峰会 企业建站模板 云效成长地图 高端建站 云栖号弹性计算 阿里云云栖号 云栖号案例 云栖号直播