Maven 학습의 16 지정 jdk 버전
4
<plugin>
<span style="white-space:pre"> </span><groupId>org.apache.maven.plugins</groupId>
<span style="white-space:pre"> </span><artifactId>maven-compiler-plugin</artifactId>
<span style="white-space:pre"> </span><version>3.3</version>
<span style="white-space:pre"> </span><configuration>
<span style="white-space:pre"> </span><source>1.7</source>
<span style="white-space:pre"> </span><target>1.7</target>
<span style="white-space:pre"> </span></configuration>
<span style="white-space:pre"> </span></plugin>
프로젝트를 갱신해야 합니다. 뒤에 있는 것은 모두 기록입니다.2. 패키지 실행:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WebTest Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact servletapi:servletapi:jar:2.4 has been relocated to javax.servlet:servlet-api:jar:2.4
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WebTest ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ WebTest ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to D:\all\eclipse432\WebTest\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ WebTest ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\all\eclipse432\WebTest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ WebTest ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ WebTest ---
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ WebTest ---
[INFO] Packaging webapp
[INFO] Assembling webapp [WebTest] in [D:\all\eclipse432\WebTest\target\WebTest]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\all\eclipse432\WebTest\src\main\webapp]
[INFO] Webapp assembled in [74 msecs]
[INFO] Building war: D:\all\eclipse432\WebTest\target\WebTest.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.818 s
[INFO] Finished at: 2016-05-11T02:34:46+08:00
[INFO] Final Memory: 16M/167M
[INFO] ------------------------------------------------------------------------
3. 전체pom 기록:
<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.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.ms.bop</groupId>
<artifactId>WebTest</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>WebTest Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
<version>2.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<!-- <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId>
</dependency> -->
</dependencies>
<build>
<finalName>WebTest</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<!-- <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds>
<webApp> <contextPath>/WebTest</contextPath> </webApp> </configuration> </plugin> -->
</plugins>
</build>
</project>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.