a*****p 发帖数: 1285 | 1 我在maven下面加了struts得dependency,很简单得一个struts hello world程序,没
有报错,但是project得folder上一直有个小叉,不知道什么原因。
pom内容如下
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.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
basics
war
1.0-SNAPSHOT
Maven Webapp Archetype
http://maven.apache.org
junit
junit
3.8.1
test
org.apache.struts
struts2-core
2.0.11.2
basics
org.codehaus.mojo
tomcat-maven-plugin
tomcat
tomcat
/basics
|
b***s 发帖数: 117 | 2 看marker页,有哪些error
可能要设置m2_repository变量
【在 a*****p 的大作中提到】 : 我在maven下面加了struts得dependency,很简单得一个struts hello world程序,没 : 有报错,但是project得folder上一直有个小叉,不知道什么原因。 : pom内容如下 : 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.0 http://maven.apache.org/maven-v4_0_0.xsd"> : 4.0.0 : : basics : war : 1.0-SNAPSHOT
|
a*****p 发帖数: 1285 | 3 原来试ire environment 版本太高,我设了1.6, eclipse里面默认1.5,但是我电脑上就
只有1.6,其他1.3, 1.4, 1.5都只是alias到1.6得jdk,不知道为啥有这个问题。晕了。 |
q***s 发帖数: 2243 | 4 Add this into you pom.xml maybe help to fix your problem.
org.apache.maven.plugins
maven-compiler-plugin
2.3.2
1.6
UTF-8
also you need right click on project and then maven->update maven configure
in eclipse |
a*****p 发帖数: 1285 | |