|
24 | 24 |
|
25 | 25 | <build> |
26 | 26 | <plugins> |
| 27 | + <!-- Unpack sources and javadoc of dependencies --> |
| 28 | + <plugin> |
| 29 | + <groupId>org.apache.maven.plugins</groupId> |
| 30 | + <artifactId>maven-dependency-plugin</artifactId> |
| 31 | + <version>3.6.1</version> |
| 32 | + <executions> |
| 33 | + <execution> |
| 34 | + <id>unpack-dependency-sources</id> |
| 35 | + <phase>process-resources</phase> |
| 36 | + <goals> |
| 37 | + <goal>unpack-dependencies</goal> |
| 38 | + </goals> |
| 39 | + <configuration> |
| 40 | + <classifier>sources</classifier> |
| 41 | + <includeScope>compile</includeScope> |
| 42 | + <outputDirectory>${project.build.directory}/bundle-sources</outputDirectory> |
| 43 | + <excludeTransitive>false</excludeTransitive> |
| 44 | + </configuration> |
| 45 | + </execution> |
| 46 | + <execution> |
| 47 | + <id>unpack-dependency-javadocs</id> |
| 48 | + <phase>process-resources</phase> |
| 49 | + <goals> |
| 50 | + <goal>unpack-dependencies</goal> |
| 51 | + </goals> |
| 52 | + <configuration> |
| 53 | + <classifier>javadoc</classifier> |
| 54 | + <includeScope>compile</includeScope> |
| 55 | + <outputDirectory>${project.build.directory}/bundle-javadoc</outputDirectory> |
| 56 | + <excludeTransitive>false</excludeTransitive> |
| 57 | + </configuration> |
| 58 | + </execution> |
| 59 | + </executions> |
| 60 | + </plugin> |
| 61 | + |
| 62 | + <!-- Create aggregated sources and javadoc jars --> |
| 63 | + <plugin> |
| 64 | + <groupId>org.apache.maven.plugins</groupId> |
| 65 | + <artifactId>maven-jar-plugin</artifactId> |
| 66 | + <version>3.3.0</version> |
| 67 | + <executions> |
| 68 | + <execution> |
| 69 | + <id>bundle-aggregated-sources</id> |
| 70 | + <phase>package</phase> |
| 71 | + <goals> |
| 72 | + <goal>jar</goal> |
| 73 | + </goals> |
| 74 | + <configuration> |
| 75 | + <classifier>sources</classifier> |
| 76 | + <classesDirectory>${project.build.directory}/bundle-sources</classesDirectory> |
| 77 | + <archive> |
| 78 | + <manifest> |
| 79 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 80 | + </manifest> |
| 81 | + </archive> |
| 82 | + </configuration> |
| 83 | + </execution> |
| 84 | + <execution> |
| 85 | + <id>bundle-aggregated-javadoc</id> |
| 86 | + <phase>package</phase> |
| 87 | + <goals> |
| 88 | + <goal>jar</goal> |
| 89 | + </goals> |
| 90 | + <configuration> |
| 91 | + <classifier>javadoc</classifier> |
| 92 | + <classesDirectory>${project.build.directory}/bundle-javadoc</classesDirectory> |
| 93 | + <archive> |
| 94 | + <manifest> |
| 95 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 96 | + </manifest> |
| 97 | + </archive> |
| 98 | + </configuration> |
| 99 | + </execution> |
| 100 | + </executions> |
| 101 | + </plugin> |
| 102 | + |
27 | 103 | <plugin> |
28 | 104 | <groupId>org.apache.maven.plugins</groupId> |
29 | 105 | <artifactId>maven-shade-plugin</artifactId> |
|
0 commit comments