pom.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>example</groupId>
  5. <artifactId>java11-mongodb</artifactId>
  6. <packaging>jar</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>HelloFCJava</name>
  9. <dependencies>
  10. <dependency>
  11. <groupId>junit</groupId>
  12. <artifactId>junit</artifactId>
  13. <version>3.8.1</version>
  14. <scope>test</scope>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.aliyun.fc.runtime</groupId>
  18. <artifactId>fc-java-core</artifactId>
  19. <version>1.4.1</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.mongodb</groupId>
  23. <artifactId>mongodb-driver-sync</artifactId>
  24. <version>4.6.1</version>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-shade-plugin</artifactId>
  32. <version>3.2.1</version>
  33. <executions>
  34. <execution>
  35. <phase>package</phase>
  36. <goals>
  37. <goal>shade</goal>
  38. </goals>
  39. <configuration>
  40. <filters>
  41. <filter>
  42. <artifact>*:*</artifact>
  43. <excludes>
  44. <exclude>META-INF/*.SF</exclude>
  45. <exclude>META-INF/*.DSA</exclude>
  46. <exclude>META-INF/*.RSA</exclude>
  47. </excludes>
  48. </filter>
  49. </filters>
  50. </configuration>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. </plugins>
  55. </build>
  56. <properties>
  57. <maven.compiler.target>11</maven.compiler.target>
  58. <maven.compiler.source>11</maven.compiler.source>
  59. <maven.test.skip>true</maven.test.skip>
  60. </properties>
  61. </project>