Guest User

Untitled

a guest
Dec 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. root
  2. - libs
  3. - [companyname] <-- 3rd party libs
  4. - src
  5. - main
  6. - ....
  7. - pom.xml
  8.  
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.0.5.RELEASE</version>
  13. </parent>
  14.  
  15. <dependencies>
  16. <!-- Libs from official repos -->
  17. <dependency>
  18. ...
  19. </dependency>
  20.  
  21. ...
  22.  
  23. <!-- These 80+ secret 3rd party libs with no repo -->
  24. <dependency>
  25. <groupId>...</groupId>
  26. <artifactId>...<artifactId>
  27. <version>1.0.0.10</version>
  28. <scope>system</scope>
  29. <systemPath>${project.basedir}/libs/[companyname]/artifactName-1.0.0.10.jar</systemPath>
  30. </dependency>
  31. </dependencies>
  32.  
  33. <build>
  34. <resources>
  35. <resource>
  36. <directory>libs/[companyname]/**</directory>
  37. <filtering>true</filtering>
  38. <includes>
  39. <include>*.jar</include>
  40. </includes>
  41. </resource>
  42. </resources>
  43. <plugins>
  44. <plugin>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-maven-plugin</artifactId>
  47. <configuration>
  48. <mainClass>my main class name / namespace</mainClass>
  49. <layout>JAR</layout>
  50. </configuration>
  51. </plugin>
  52. <!--
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-shade-plugin</artifactId>
  56. <version>3.2.1</version>
  57. <configuration>
  58. <minimizeJar>false</minimizeJar>
  59. <transformers>
  60. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  61. <resource>META-INF/spring.handlers</resource>
  62. </transformer>
  63. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  64. <resource>META-INF/spring.schemas</resource>
  65. </transformer>
  66. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  67. <resource>META-INF/spring.factories</resource>
  68. </transformer>
  69. </transformers>
  70.  
  71. </configuration>
  72. </plugin>
  73. -->
  74. </plugins>
  75. </build>
Add Comment
Please, Sign In to add comment