(Sorry for necro, but for future reference if anyone is searching)
I have used maven-shade-plugin to pack all transitive dependencies into one jar, so that it is easy to re-generate and import into MPS as a Class Library/Class Stub.
<!-- package ONLY the non-provided dependencies, so they can be included as a single-file library of this project in MPS --> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <configuration> <artifactSet> <excludes> <exclude>${project.groupId}:${project.artifactId}</exclude> </excludes> </artifactSet> <finalName>${project.artifactId}-dependencies</finalName> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin>
Hi Christian,
no way that I know of. What kind of stubs do you have in mind? How would you use them?
Sergej
I'm thinking of JavaEE infrastructure: Hibernate, CDI, custom domain libraries, etc.
Currently I need to import each JAR file separately with its correct version, which is very tedious and error prone.
Christian
(Sorry for necro, but for future reference if anyone is searching)
I have used maven-shade-plugin to pack all transitive dependencies into one jar, so that it is easy to re-generate and import into MPS as a Class Library/Class Stub.