我的電腦是mac myeclipse是2015 javase-1.7
我有右鍵創(chuàng)建maven project->勾選 create a simple project...
點(diǎn)擊next
Group Id輸入的是com.atguigu
Artifact Id輸入的是ssm-crud
Packaging:war
點(diǎn)擊finish
生成的maven project直接就有錯(cuò),
出錯(cuò)的地方是pom.xml
報(bào)的錯(cuò)是:
Cannot detect Web Project version. Please specify version of Web Project through <version> configuration property of war
E.g.: <plugin> <artifactId>maven-war-plugin</artifactId> <configuration> <version>3.0</version> </configuration> </
plugin>
在pom文件中寫入
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<version>3.0</version>
</configuration>
</plugin>
</plugins>
</build>
之后
update project
之后
報(bào)maven requires java 1.6 or newer的錯(cuò)誤
請(qǐng)各位大神指教。
光陰似箭催人老,日月如移越少年。
<build>
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>這個(gè)晚上有很多,有問題先百度,找不到答案再問,能鍛煉自己的資料查詢能力