pom.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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-oss</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. <!-- https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss -->
  22. <dependency>
  23. <groupId>com.aliyun.oss</groupId>
  24. <artifactId>aliyun-sdk-oss</artifactId>
  25. <version>3.14.0</version>
  26. </dependency>
  27. </dependencies>
  28. <build>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-shade-plugin</artifactId>
  33. <version>3.2.1</version>
  34. <executions>
  35. <execution>
  36. <phase>package</phase>
  37. <goals>
  38. <goal>shade</goal>
  39. </goals>
  40. <configuration>
  41. <filters>
  42. <filter>
  43. <artifact>*:*</artifact>
  44. <excludes>
  45. <exclude>META-INF/*.SF</exclude>
  46. <exclude>META-INF/*.DSA</exclude>
  47. <exclude>META-INF/*.RSA</exclude>
  48. </excludes>
  49. </filter>
  50. </filters>
  51. </configuration>
  52. </execution>
  53. </executions>
  54. </plugin>
  55. </plugins>
  56. </build>
  57. <properties>
  58. <maven.compiler.target>11</maven.compiler.target>
  59. <maven.compiler.source>11</maven.compiler.source>
  60. <maven.test.skip>true</maven.test.skip>
  61. </properties>
  62. </project>