随笔分类 - maven
摘要:修改pom.xml文件,添加以下属性 view plain <project> ... <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> ... </projec
阅读全文
摘要:1.建立maven webapp工程aty-rest。 2. 在pom文件增加spring框架、jax-rs接口、CXF实现 [plain] view plain copy <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.w
阅读全文
摘要:WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attri
阅读全文
摘要:maven tomcat插件好像无法进行热部署,jetty可以如下配置实现热部署,但是idea无法进行自动编译,所以需要如下快捷键 Ctrl+Shift+F9,编译 Ctrl+F9,生成项目
阅读全文
摘要:配置 在pom.xm 加入以下xml。 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.1</version> <configuration>
阅读全文
摘要:最近从IntelliJ Idea 14的Community版本切换到Ultimate。 问题出现 最近从IntelliJ Idea 14的Community版本切换到Ultimate,key是从网络上下载的。安装之后,在创建maven project时(使用了archetype),速度慢的令人不敢相
阅读全文
摘要:<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.1.6.v20100715</version> <configuration> <webApp>$
阅读全文
摘要:第一: 1,如果是resources目录下文件profile参数中动态打入,在pom.xml中的build标签中加入如下配置:
阅读全文
摘要:<build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.*</include> </includes>
阅读全文
摘要:maven用可以利用如下配置进行资源过滤,pom.xml的配置如下: Xml代码 <build> <!-- 主资源目录 --> <resources> <resource> <!-- 设定主资源目录 --> <directory>src/main/resources</directory> <!--
阅读全文
摘要:异常信息:Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory 究其原因是如果log4j-over-slf4j.jar 和 slf4j-log
阅读全文