Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root
- - libs
- - [companyname] <-- 3rd party libs
- - src
- - main
- - ....
- - pom.xml
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.5.RELEASE</version>
- </parent>
- <dependencies>
- <!-- Libs from official repos -->
- <dependency>
- ...
- </dependency>
- ...
- <!-- These 80+ secret 3rd party libs with no repo -->
- <dependency>
- <groupId>...</groupId>
- <artifactId>...<artifactId>
- <version>1.0.0.10</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/libs/[companyname]/artifactName-1.0.0.10.jar</systemPath>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource>
- <directory>libs/[companyname]/**</directory>
- <filtering>true</filtering>
- <includes>
- <include>*.jar</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>my main class name / namespace</mainClass>
- <layout>JAR</layout>
- </configuration>
- </plugin>
- <!--
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.1</version>
- <configuration>
- <minimizeJar>false</minimizeJar>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/spring.handlers</resource>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/spring.schemas</resource>
- </transformer>
- <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
- <resource>META-INF/spring.factories</resource>
- </transformer>
- </transformers>
- </configuration>
- </plugin>
- -->
- </plugins>
- </build>
Add Comment
Please, Sign In to add comment