pom.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. <groupId>org.example</groupId>
  7. <artifactId>setdomain2</artifactId>
  8. <version>1.0</version>
  9. <dependencies>
  10. <dependency>
  11. <groupId>com.baidubce</groupId>
  12. <artifactId>api-explorer-sdk</artifactId>
  13. <version>1.0.0</version>
  14. </dependency>
  15. </dependencies>
  16. <build>
  17. <pluginManagement>
  18. <plugins>
  19. <plugin>
  20. <groupId>org.apache.maven.plugins</groupId>
  21. <artifactId>maven-eclipse-plugin</artifactId>
  22. <configuration>
  23. <downloadSources>true</downloadSources>
  24. </configuration>
  25. </plugin>
  26. </plugins>
  27. </pluginManagement>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-compiler-plugin</artifactId>
  32. <version>3.5</version>
  33. <configuration>
  34. <source>8</source>
  35. <target>8</target>
  36. </configuration>
  37. </plugin>
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-jar-plugin</artifactId>
  41. <version>3.2.0</version>
  42. <inherited>true</inherited>
  43. <configuration>
  44. <finalName>setdomain2</finalName>
  45. <archive>
  46. <manifest>
  47. <addClasspath>true</addClasspath>
  48. <classpathPrefix>lib/</classpathPrefix>
  49. <mainClass>TestMain</mainClass>
  50. </manifest>
  51. </archive>
  52. </configuration>
  53. </plugin>
  54. <plugin>
  55. <groupId>org.apache.maven.plugins</groupId>
  56. <artifactId>maven-dependency-plugin</artifactId>
  57. <executions>
  58. <execution>
  59. <id>copy-dependencies</id>
  60. <phase>package</phase>
  61. <goals>
  62. <goal>copy-dependencies</goal>
  63. </goals>
  64. <configuration>
  65. <excludeArtifactIds>junit,jasper-runtime,ant</excludeArtifactIds>
  66. <includeTypes>jar</includeTypes>
  67. <overWriteSnapshots>true</overWriteSnapshots>
  68. <type>jar</type>
  69. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  70. </configuration>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </project>