Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5166584

Browse files
王俊杰王俊杰
王俊杰
authored and
王俊杰
committed
项目初始化
1 parent 8c706c4 commit 5166584

File tree

5 files changed

+199
-0
lines changed

5 files changed

+199
-0
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Example user template template
3+
### Example user template
4+
5+
# IntelliJ project files
6+
.idea
7+
*.iml
8+
out
9+
gen

netty/pom.xml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>code</artifactId>
7+
<groupId>com.wang.code</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>netty</artifactId>
13+
14+
<name>netty</name>
15+
<!-- FIXME change it to the project's website -->
16+
<url>http://www.example.com</url>
17+
18+
<properties>
19+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
<maven.compiler.source>1.7</maven.compiler.source>
21+
<maven.compiler.target>1.7</maven.compiler.target>
22+
</properties>
23+
24+
<dependencies>
25+
<dependency>
26+
<groupId>junit</groupId>
27+
<artifactId>junit</artifactId>
28+
<version>4.11</version>
29+
<scope>test</scope>
30+
</dependency>
31+
</dependencies>
32+
33+
<build>
34+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
35+
<plugins>
36+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
37+
<plugin>
38+
<artifactId>maven-clean-plugin</artifactId>
39+
<version>3.1.0</version>
40+
</plugin>
41+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
42+
<plugin>
43+
<artifactId>maven-resources-plugin</artifactId>
44+
<version>3.0.2</version>
45+
</plugin>
46+
<plugin>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<version>3.8.0</version>
49+
</plugin>
50+
<plugin>
51+
<artifactId>maven-surefire-plugin</artifactId>
52+
<version>2.22.1</version>
53+
</plugin>
54+
<plugin>
55+
<artifactId>maven-jar-plugin</artifactId>
56+
<version>3.0.2</version>
57+
</plugin>
58+
<plugin>
59+
<artifactId>maven-install-plugin</artifactId>
60+
<version>2.5.2</version>
61+
</plugin>
62+
<plugin>
63+
<artifactId>maven-deploy-plugin</artifactId>
64+
<version>2.8.2</version>
65+
</plugin>
66+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
67+
<plugin>
68+
<artifactId>maven-site-plugin</artifactId>
69+
<version>3.7.1</version>
70+
</plugin>
71+
<plugin>
72+
<artifactId>maven-project-info-reports-plugin</artifactId>
73+
<version>3.0.0</version>
74+
</plugin>
75+
</plugins>
76+
</pluginManagement>
77+
</build>
78+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.wang.code;
2+
3+
/**
4+
* Hello world!
5+
*
6+
*/
7+
public class App
8+
{
9+
public static void main( String[] args )
10+
{
11+
System.out.println( "Hello World!" );
12+
}
13+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.wang.code;
2+
3+
import static org.junit.Assert.assertTrue;
4+
5+
import org.junit.Test;
6+
7+
/**
8+
* Unit test for simple App.
9+
*/
10+
public class AppTest
11+
{
12+
/**
13+
* Rigorous Test :-)
14+
*/
15+
@Test
16+
public void shouldAnswerWithTrue()
17+
{
18+
assertTrue( true );
19+
}
20+
}

pom.xml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.wang.code</groupId>
8+
<artifactId>code</artifactId>
9+
<packaging>pom</packaging>
10+
<version>1.0-SNAPSHOT</version>
11+
<modules>
12+
<module>netty</module>
13+
</modules>
14+
15+
<name>code</name>
16+
<!-- FIXME change it to the project's website -->
17+
<url>http://www.example.com</url>
18+
19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<maven.compiler.source>1.7</maven.compiler.source>
22+
<maven.compiler.target>1.7</maven.compiler.target>
23+
</properties>
24+
25+
<dependencies>
26+
<dependency>
27+
<groupId>junit</groupId>
28+
<artifactId>junit</artifactId>
29+
<version>4.11</version>
30+
<scope>test</scope>
31+
</dependency>
32+
</dependencies>
33+
34+
<build>
35+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
36+
<plugins>
37+
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
38+
<plugin>
39+
<artifactId>maven-clean-plugin</artifactId>
40+
<version>3.1.0</version>
41+
</plugin>
42+
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
43+
<plugin>
44+
<artifactId>maven-resources-plugin</artifactId>
45+
<version>3.0.2</version>
46+
</plugin>
47+
<plugin>
48+
<artifactId>maven-compiler-plugin</artifactId>
49+
<version>3.8.0</version>
50+
</plugin>
51+
<plugin>
52+
<artifactId>maven-surefire-plugin</artifactId>
53+
<version>2.22.1</version>
54+
</plugin>
55+
<plugin>
56+
<artifactId>maven-jar-plugin</artifactId>
57+
<version>3.0.2</version>
58+
</plugin>
59+
<plugin>
60+
<artifactId>maven-install-plugin</artifactId>
61+
<version>2.5.2</version>
62+
</plugin>
63+
<plugin>
64+
<artifactId>maven-deploy-plugin</artifactId>
65+
<version>2.8.2</version>
66+
</plugin>
67+
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
68+
<plugin>
69+
<artifactId>maven-site-plugin</artifactId>
70+
<version>3.7.1</version>
71+
</plugin>
72+
<plugin>
73+
<artifactId>maven-project-info-reports-plugin</artifactId>
74+
<version>3.0.0</version>
75+
</plugin>
76+
</plugins>
77+
</pluginManagement>
78+
</build>
79+
</project>

0 commit comments

Comments
 (0)