maven
yiluoAK_47
这个作者很懒,什么都没留下…
展开
-
maven pom.xml详解
<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.0http://maven.apache.org/maven-v4_0_0.xsd"转载 2013-02-06 14:07:02 · 1983 阅读 · 0 评论 -
解决Maven报Plugin execution not covered by lifecycle configuration
环境 eclipse 4.3.0 maven 3.0.4 m2e 1.4.0 出现场景 以前的老项目,在我的环境(我的环境较新)下,别人老环境不报错。错误示例一个错误示例,子项目引用了父项目,子项目parent标签处报错如下:Multiple annotations found at this line:- ma转载 2015-06-24 10:36:11 · 2060 阅读 · 0 评论 -
check $m2_home environment variable and mvn script match
If u are getting error like -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match In eclipse then go through Window--> Preference原创 2015-09-01 18:06:46 · 7641 阅读 · 1 评论 -
M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
使用Eclipse安装了maven插件之后,创建Maven工程,发现添加依赖“Add Dependency”的时候无法自动搜索远程库。如果不能搜索远程库那用这个插件有啥用撒。。。查遍了所有的maven配置文件都没发现问题。最后发现是插件本身的问题。原因是远程库的索引没有成功的建立。很有可能安装插件之后的某一次“Update Indexes”失败之后,导致默认的index“http://repo1.m转载 2016-03-11 12:06:10 · 3189 阅读 · 0 评论 -
Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener
Eclipse中tomcat部署工程启动后报错: Shell代码 收藏代码 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework转载 2016-03-25 09:55:54 · 730 阅读 · 0 评论 -
Eclipse部署Maven web项目到tomcat服务器时,没有将lib下的jar复制过去的解决办法
我们在做web开发是,经常都要在eclipse中搭建web服务器,并将开发中的web项目部署到web服务器进行调试,在此,我选择的是tomcat服务器。之前部署web项目到tomcat进行启动调试都很正常,今天突然出现无法启动情况,启动过程报如下错误:Java.lang.ClassNotFoundException: org.springframework.web.context.ContextLo转载 2016-08-11 15:34:14 · 876 阅读 · 0 评论 -
使用wagon-maven-plugin插件自动部署项目
该插件的maven依赖为:<dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>wagon-maven-plugin</artifactId> <version>1.0</version> </dependency> 插件的文档地址为: http://www.mojohaus.org/w转载 2016-10-11 10:57:46 · 1645 阅读 · 0 评论 -
ml 3 字节的 UTF-8 序列的字节 3 无效
今天在eclipse中编写**.xml文件时,注释中的中文被eclipse识别到错误:3 字节的 UTF-8 序列的字节 3 无效,曾多次遇到该问题,问题的根源是:The cause of this is a file that is not UTF-8 is being parsed as UTF-8. It is likely that the parser is encountering a转载 2016-10-19 22:58:56 · 1189 阅读 · 0 评论 -
使用wagon-maven-plugin自动部署文件到Linux服务器
<extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>2.8</version> </extension></extensions><plugins>...</p原创 2016-11-30 09:58:23 · 2419 阅读 · 0 评论 -
mvn deploy 报出400错误
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total t转载 2017-01-18 15:35:29 · 1481 阅读 · 0 评论 -
解决maven打包编译出现File encoding has not been set问题
maven打包编译时后台一直输出警告信息 [WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent! 找了半天,原来只要在pom.xml文件中增加一个配置项即可 <properties> <project.build.sour转载 2017-05-11 09:59:28 · 21460 阅读 · 3 评论 -
Linux 搭建Nexus
1, Nexus 下载Nexus 官方下载, 最新版下载: nexus-2.4.0-09-bundle.tar.gzNexus war下载: nexus-2.4.0-09.war2, Nexus 安装(1) 创建解压文件夹: mkdir nexus-2.4.0-09(2) 解压tar.gz文件: tar z转载 2015-05-13 19:20:52 · 1348 阅读 · 0 评论 -
使用maven打包jar或者war
使用maven-war-plugin 对Maven项目进行动态打包 http://nileader.blog.51cto.com/1381108/449956 如何把配置文件打包到jar中 http://blog.csdn.net/ciedecem/article/details/10382275 maven打包总结 http://blog.csdn.net/fireofjava/arti转载 2015-05-05 11:16:59 · 22244 阅读 · 0 评论 -
Eclipse 插件Maven在使用 add dependency,找不到包,解决办法
Eclipse 插件Maven在使用 add dependency,找不到包,解决办法通过右键单击pom.xml文件选择maven –> add dependency 或者是打开pom.xml文件,选择dependencies –>add 时,搜索不到依赖的jar包,解决方法如下:1、eclipse菜单 window-> show view –> other –> Maven2、在转载 2013-09-26 21:34:16 · 10269 阅读 · 0 评论 -
Maven基础-默认中央仓库[settings.xml 配置详解 ]
首先:Maven中央仓库的搜索全部公共jar包的地址是,http://search.maven.org/===Maven基础-默认中央仓库===================================当我们创建一个简单的Maven项目后(只需要在pom.xml配置好依赖),运行mvn clean install就可以把项目构建好,不需要我们手工下载任何jar,这全靠中央转载 2013-09-26 21:35:41 · 130348 阅读 · 2 评论 -
The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required
解决办法,maven依赖添加: javax.servlet servlet-api 2.5 jar provided转载 2013-09-26 23:09:04 · 6171 阅读 · 0 评论 -
maven log4j.jar问题
Maven使用log4j可能会有协议上的问题如果log4j的版本在1.2.14以上,则会出现下面的错误:<!-- ws:start:WikiTextCodeRule:0: <pre class="text">Missing artifact javax.jms:jms:jar:1.1:compile<br/>Missing artifact转载 2013-06-13 10:31:30 · 10610 阅读 · 1 评论 -
运行Maven是报错:No goals have been specified for this build
Java代码 No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate转载 2013-11-25 10:29:10 · 120851 阅读 · 5 评论 -
eclipse +maven+web应用 +tomcat 找不到jar包
eclipse +maven+web应用 +tomcat ,spring的jar包都依赖于Maven Dependencies, 在 web应用 右键->Run as -> Run on Server情况下,会找不到WebContent/WEB-INF/lib下的jar,这个目录的确也没有放jar包。 处理方法:Properties->deployment asse转载 2013-12-05 11:32:50 · 7772 阅读 · 1 评论 -
java开发问题总结-4-Maven使用问题汇总
Non-resolvable parent POM[INFO] Scanning for projects...[ERROR] The build could not read 1 project -> [Help 1][ERROR] [ERROR] The project com.iflytek.ossp:ossp-resserver-service:1.0.0-SNA转载 2014-03-12 16:32:28 · 64913 阅读 · 2 评论 -
Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderListener
Eclipse中tomcat部署工程启动后报错:Shell代码 严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.spring转载 2014-03-12 16:49:43 · 8707 阅读 · 2 评论 -
安装私服nexus遇到的问题
问题:启动maven私服nexus时报错[root@localhost bin]# ./nexus start****************************************WARNING - NOT RECOMMENDED TO RUN AS ROOT****************************************If you insi转载 2014-11-18 10:21:09 · 3071 阅读 · 0 评论 -
Make Tomcat Ignore Servlet in WEB-INF/LIB
4down votefavorite2I'm created a web-application and I need it to be able to interact with a graph database (I'm using Titan). When adding Titan's dependency, I get the following err转载 2015-05-05 11:08:56 · 1406 阅读 · 0 评论 -
【Maven学习】Maven打包生成包含所有依赖的jar包
maven打包生成的普通jar包,只包含该工程下源码编译结果,不包含依赖内容。同时,maven提供以下方式生成包含所有依赖的jar文件,依赖以class的方式存在; 将此plugin添加到pom文件中 <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration>转载 2017-11-23 14:38:04 · 892 阅读 · 0 评论