Skip to content

Commit ee922ee

Browse files
committed
3_6_multimodule
1 parent bfdf761 commit ee922ee

4 files changed

Lines changed: 140 additions & 109 deletions

File tree

‎common/pom.xml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
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+
<parent>
8+
<groupId>ru.javaops</groupId>
9+
<artifactId>parent</artifactId>
10+
<relativePath>../parent/pom.xml</relativePath>
11+
<version>1.0-SNAPSHOT</version>
12+
</parent>
13+
14+
<artifactId>common</artifactId>
15+
<version>1.0-SNAPSHOT</version>
16+
<packaging>jar</packaging>
17+
<name>Common</name>
18+
19+
<dependencies>
20+
</dependencies>
21+
</project>

‎parent/pom.xml‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
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>ru.javaops</groupId>
8+
<artifactId>parent</artifactId>
9+
<packaging>pom</packaging>
10+
<version>1.0-SNAPSHOT</version>
11+
<name>Parent</name>
12+
13+
<properties>
14+
<java.version>1.8</java.version>
15+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17+
</properties>
18+
19+
<build>
20+
<defaultGoal>install</defaultGoal>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>3.7.0</version>
26+
<configuration>
27+
<source>${java.version}</source>
28+
<target>${java.version}</target>
29+
</configuration>
30+
</plugin>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-surefire-plugin</artifactId>
34+
<version>2.20.1</version>
35+
<configuration>
36+
<argLine>-Dfile.encoding=UTF-8</argLine>
37+
</configuration>
38+
</plugin>
39+
</plugins>
40+
</build>
41+
42+
<dependencies>
43+
<dependency>
44+
<groupId>com.google.guava</groupId>
45+
<artifactId>guava</artifactId>
46+
<version>23.3-jre</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>one.util</groupId>
50+
<artifactId>streamex</artifactId>
51+
<version>RELEASE</version>
52+
</dependency>
53+
54+
<!--Test-->
55+
<dependency>
56+
<groupId>junit</groupId>
57+
<artifactId>junit</artifactId>
58+
<version>4.12</version>
59+
<scope>test</scope>
60+
</dependency>
61+
</dependencies>
62+
63+
<profiles>
64+
</profiles>
65+
66+
<dependencyManagement>
67+
</dependencyManagement>
68+
69+
</project>

‎pom.xml‎

Lines changed: 11 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -4,119 +4,21 @@
44

55
<groupId>ru.javaops</groupId>
66
<artifactId>masterjava</artifactId>
7-
<packaging>jar</packaging>
7+
<packaging>pom</packaging>
88

99
<version>1.0-SNAPSHOT</version>
1010

1111
<name>Master Java</name>
1212
<url>https://github.com/JavaOPs/masterjava</url>
1313

14-
<properties>
15-
<java.version>1.8</java.version>
16-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18-
</properties>
19-
20-
<build>
21-
<finalName>masterjava</finalName>
22-
<defaultGoal>install</defaultGoal>
23-
<plugins>
24-
<plugin>
25-
<groupId>org.apache.maven.plugins</groupId>
26-
<artifactId>maven-compiler-plugin</artifactId>
27-
<version>3.7.0</version>
28-
<configuration>
29-
<source>${java.version}</source>
30-
<target>${java.version}</target>
31-
</configuration>
32-
</plugin>
33-
<plugin>
34-
<groupId>org.apache.maven.plugins</groupId>
35-
<artifactId>maven-surefire-plugin</artifactId>
36-
<version>2.20.1</version>
37-
<configuration>
38-
<argLine>-Dfile.encoding=UTF-8</argLine>
39-
</configuration>
40-
</plugin>
41-
<plugin>
42-
<groupId>org.apache.maven.plugins</groupId>
43-
<artifactId>maven-shade-plugin</artifactId>
44-
<version>3.1.0</version>
45-
<executions>
46-
<execution>
47-
<phase>package</phase>
48-
<goals>
49-
<goal>shade</goal>
50-
</goals>
51-
<configuration>
52-
<finalName>benchmarks</finalName>
53-
<transformers>
54-
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
55-
<mainClass>org.openjdk.jmh.Main</mainClass>
56-
</transformer>
57-
</transformers>
58-
<filters>
59-
<filter>
60-
<!--
61-
Shading signed JARs will fail without this.
62-
http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
63-
-->
64-
<artifact>*:*</artifact>
65-
<excludes>
66-
<exclude>META-INF/*.SF</exclude>
67-
<exclude>META-INF/*.DSA</exclude>
68-
<exclude>META-INF/*.RSA</exclude>
69-
</excludes>
70-
</filter>
71-
</filters>
72-
</configuration>
73-
</execution>
74-
</executions>
75-
</plugin>
76-
</plugins>
77-
</build>
78-
79-
<dependencies>
80-
<dependency>
81-
<groupId>org.openjdk.jmh</groupId>
82-
<artifactId>jmh-core</artifactId>
83-
<version>RELEASE</version>
84-
</dependency>
85-
<dependency>
86-
<groupId>org.openjdk.jmh</groupId>
87-
<artifactId>jmh-generator-annprocess</artifactId>
88-
<version>RELEASE</version>
89-
<scope>provided</scope>
90-
</dependency>
91-
<dependency>
92-
<groupId>com.google.guava</groupId>
93-
<artifactId>guava</artifactId>
94-
<version>21.0</version>
95-
</dependency>
96-
<dependency>
97-
<groupId>one.util</groupId>
98-
<artifactId>streamex</artifactId>
99-
<version>RELEASE</version>
100-
</dependency>
101-
102-
<dependency>
103-
<groupId>com.j2html</groupId>
104-
<artifactId>j2html</artifactId>
105-
<version>RELEASE</version>
106-
</dependency>
107-
108-
<!--Test-->
109-
<dependency>
110-
<groupId>junit</groupId>
111-
<artifactId>junit</artifactId>
112-
<version>4.12</version>
113-
<scope>test</scope>
114-
</dependency>
115-
</dependencies>
116-
117-
<profiles>
118-
</profiles>
119-
120-
<dependencyManagement>
121-
</dependencyManagement>
14+
<modules>
15+
<module>upload</module>
16+
<module>common</module>
17+
<!--
18+
<module>webapp</module>
19+
<module>mail-service</module>
20+
<module>mail-api</module>
21+
<module>test</module>
22+
-->
23+
</modules>
12224
</project>

‎upload/pom.xml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
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+
<parent>
8+
<groupId>ru.javaops</groupId>
9+
<artifactId>parent</artifactId>
10+
<relativePath>../parent/pom.xml</relativePath>
11+
<version>1.0-SNAPSHOT</version>
12+
</parent>
13+
14+
<artifactId>upload</artifactId>
15+
<version>1.0-SNAPSHOT</version>
16+
<packaging>war</packaging>
17+
<name>Upload</name>
18+
19+
<build>
20+
<plugins>
21+
<plugin>
22+
<groupId>org.apache.maven.plugins</groupId>
23+
<artifactId>maven-war-plugin</artifactId>
24+
<version>3.2.0</version>
25+
<configuration>
26+
<failOnMissingWebXml>false</failOnMissingWebXml>
27+
</configuration>
28+
</plugin>
29+
</plugins>
30+
</build>
31+
32+
<dependencies>
33+
<dependency>
34+
<groupId>ru.javaops</groupId>
35+
<artifactId>common</artifactId>
36+
<version>${project.version}</version>
37+
</dependency>
38+
</dependencies>
39+
</project>

0 commit comments

Comments
 (0)