maven版本管理修正

old-package
lensfrex 2 years ago
parent 5c94e98269
commit ebf06af1a7
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 17
      .flattened-pom.xml
  2. 58
      mywust-core/.flattened-pom.xml
  3. 8
      mywust-core/pom.xml
  4. 16
      mywust-model/.flattened-pom.xml
  5. 2
      mywust-model/pom.xml
  6. 16
      mywust-network-httpclient/.flattened-pom.xml
  7. 2
      mywust-network-httpclient/pom.xml
  8. 40
      mywust-network-okhttp/.flattened-pom.xml
  9. 6
      mywust-network-okhttp/pom.xml
  10. 22
      mywust-network/.flattened-pom.xml
  11. 4
      mywust-network/pom.xml
  12. 12
      mywust-test/src/test/java/ParseTest.java
  13. 28
      mywust-util/.flattened-pom.xml
  14. 2
      mywust-util/pom.xml
  15. 29
      pom.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust</artifactId>
<version>0.0.1-fixed</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-core</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-model</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.14.0-rc1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.0-rc1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -14,13 +14,13 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId> <artifactId>mywust-network</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
</dependency> </dependency>
<dependency> <dependency>
@ -39,7 +39,7 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-model</artifactId> <artifactId>mywust-model</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-model</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-network-httpclient</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -6,7 +6,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<artifactId>mywust-network-httpclient</artifactId> <artifactId>mywust-network-httpclient</artifactId>

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-network-okhttp</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.9</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -6,7 +6,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>mywust-network-okhttp</artifactId> <artifactId>mywust-network-okhttp</artifactId>
@ -36,12 +36,12 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId> <artifactId>mywust-network</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-network</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId>
<version>0.0.1-fixed</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -21,7 +21,7 @@
<dependency> <dependency>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId> <artifactId>mywust-util</artifactId>
<version>${parent.version}</version> <version>${project.parent.version}</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
</dependencies> </dependencies>

@ -0,0 +1,12 @@
import cn.linghang.mywust.core.exception.ParseException;
import cn.linghang.mywust.core.parser.undergraduate.ExamInfoParser;
import org.jsoup.Jsoup;
import java.io.IOException;
public class ParseTest {
public static void main(String[] args) throws IOException, ParseException {
ExamInfoParser parser = new ExamInfoParser();
System.out.println(parser.parse(Jsoup.connect("http://127.0.0.1/a.html").get().toString()));
}
}

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.linghang</groupId>
<artifactId>mywust-util</artifactId>
<version>0.0.1-fixed</version>
<dependencies>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.15</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<version>${rversion}</version> <version>${revision}</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

@ -7,7 +7,7 @@
<groupId>cn.linghang</groupId> <groupId>cn.linghang</groupId>
<artifactId>mywust</artifactId> <artifactId>mywust</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>${rversion}</version> <version>${revision}</version>
<modules> <modules>
<module>mywust-core</module> <module>mywust-core</module>
@ -28,7 +28,7 @@
</dependencies> </dependencies>
<properties> <properties>
<rversion>0.0.1</rversion> <revision>0.0.1-fixed</revision>
<lombok.version>1.18.22</lombok.version> <lombok.version>1.18.22</lombok.version>
@ -60,6 +60,31 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.3.0</version>
<configuration>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
Loading…
Cancel
Save