Skip to content

Commit dd37fac

Browse files
committed
update: deploy snapshot version
1 parent 68393f2 commit dd37fac

File tree

3 files changed

+113
-21
lines changed

3 files changed

+113
-21
lines changed

core/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>mock-java</artifactId>
6+
<artifactId>mock-parent</artifactId>
77
<groupId>com.luckypeng.mock</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

12-
<artifactId>mock-core</artifactId>
12+
<artifactId>mock-java</artifactId>
1313

1414
<dependencies>
1515
<!-- joda -->

flink-connector/pom.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<parent>
6-
<artifactId>mock-java</artifactId>
6+
<artifactId>mock-parent</artifactId>
77
<groupId>com.luckypeng.mock</groupId>
88
<version>1.0-SNAPSHOT</version>
99
</parent>
@@ -23,7 +23,7 @@
2323
<!-- mock-core -->
2424
<dependency>
2525
<groupId>com.luckypeng.mock</groupId>
26-
<artifactId>mock-core</artifactId>
26+
<artifactId>mock-java</artifactId>
2727
<version>1.0-SNAPSHOT</version>
2828
</dependency>
2929

@@ -35,4 +35,17 @@
3535
<scope>test</scope>
3636
</dependency>
3737
</dependencies>
38+
39+
<build>
40+
<plugins>
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-deploy-plugin</artifactId>
44+
<version>2.8.2</version>
45+
<configuration>
46+
<skip>true</skip>
47+
</configuration>
48+
</plugin>
49+
</plugins>
50+
</build>
3851
</project>

pom.xml

Lines changed: 96 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,39 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.luckypeng.mock</groupId>
8-
<artifactId>mock-java</artifactId>
8+
<artifactId>mock-parent</artifactId>
99
<packaging>pom</packaging>
1010
<version>1.0-SNAPSHOT</version>
11+
12+
<name>mock-java</name>
13+
<description>A Java version tool of Mock.js</description>
14+
<url>https://github.com/coalchan/Mock-Java</url>
15+
16+
<licenses>
17+
<license>
18+
<name>MIT License</name>
19+
<url>http://www.opensource.org/licenses/mit-license.php</url>
20+
</license>
21+
</licenses>
22+
<developers>
23+
<developer>
24+
<id>coalchan</id>
25+
<name>Coal Chan</name>
26+
<email>coalchan@gmail.com</email>
27+
<url>https://github.com/coalchan</url>
28+
</developer>
29+
</developers>
30+
<scm>
31+
<connection>scm:git:git@github.com:coalchan/Mock-Java.git</connection>
32+
<developerConnection>scm:git:git@github.com:coalchan/Mock-Java.git</developerConnection>
33+
<url>https://github.com/coalchan/Mock-Java</url>
34+
</scm>
35+
1136
<modules>
1237
<module>core</module>
1338
<module>flink-connector</module>
1439
</modules>
1540

16-
<name>mock-java</name>
17-
1841
<properties>
1942
<java.version>1.8</java.version>
2043
<flink.version>1.7.2</flink.version>
@@ -25,6 +48,7 @@
2548

2649
<build>
2750
<plugins>
51+
<!-- compile -->
2852
<plugin>
2953
<groupId>org.apache.maven.plugins</groupId>
3054
<artifactId>maven-compiler-plugin</artifactId>
@@ -36,20 +60,7 @@
3660
</configuration>
3761
</plugin>
3862

39-
<plugin>
40-
<groupId>org.apache.maven.plugins</groupId>
41-
<artifactId>maven-source-plugin</artifactId>
42-
<version>3.0.1</version>
43-
<executions>
44-
<execution>
45-
<id>attach-sources</id>
46-
<goals>
47-
<goal>jar</goal>
48-
</goals>
49-
</execution>
50-
</executions>
51-
</plugin>
52-
63+
<!-- javadoc -->
5364
<plugin>
5465
<groupId>org.apache.maven.plugins</groupId>
5566
<artifactId>maven-javadoc-plugin</artifactId>
@@ -68,4 +79,72 @@
6879
</plugin>
6980
</plugins>
7081
</build>
82+
83+
<profiles>
84+
<profile>
85+
<id>release</id>
86+
<build>
87+
<plugins>
88+
<!-- source -->
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-source-plugin</artifactId>
92+
<version>3.0.1</version>
93+
<executions>
94+
<execution>
95+
<id>attach-sources</id>
96+
<goals>
97+
<goal>jar-no-fork</goal>
98+
</goals>
99+
</execution>
100+
</executions>
101+
</plugin>
102+
103+
<!-- javadoc -->
104+
<plugin>
105+
<groupId>org.apache.maven.plugins</groupId>
106+
<artifactId>maven-javadoc-plugin</artifactId>
107+
<version>3.1.0</version>
108+
<executions>
109+
<execution>
110+
<id>attach-javadocs</id>
111+
<goals>
112+
<goal>jar</goal>
113+
</goals>
114+
</execution>
115+
</executions>
116+
<configuration>
117+
<encoding>UTF-8</encoding>
118+
</configuration>
119+
</plugin>
120+
121+
<!-- GPG -->
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-gpg-plugin</artifactId>
125+
<version>1.5</version>
126+
<executions>
127+
<execution>
128+
<id>sign-artifacts</id>
129+
<phase>verify</phase>
130+
<goals>
131+
<goal>sign</goal>
132+
</goals>
133+
</execution>
134+
</executions>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
<distributionManagement>
139+
<snapshotRepository>
140+
<id>oss</id>
141+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
142+
</snapshotRepository>
143+
<repository>
144+
<id>oss</id>
145+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
146+
</repository>
147+
</distributionManagement>
148+
</profile>
149+
</profiles>
71150
</project>

0 commit comments

Comments
 (0)