Add sources to shaded-exificient 54/89454/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Apr 2020 13:34:55 +0000 (15:34 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 27 Apr 2020 20:43:11 +0000 (20:43 +0000)
Our shaded-exificient does not contain a source attachment, fix
that.

Change-Id: I5743c31266817dbaa71e46af30e5ab24c11b232d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 8cdfad793c63f870c44c7db717529cf59dbd5b21)

netconf/shaded-exificient/pom.xml

index b266b1761a2bcfd51487784aa4979b701ae33ec9..4467bfbd384bfc1fc15d7154a84b474013eb080e 100644 (file)
     <version>1.7.3-SNAPSHOT</version>
     <name>${project.artifactId}</name>
 
+    <properties>
+        <!-- We do not want to generate javadoc -->
+        <maven.javadoc.skip>true</maven.javadoc.skip>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>org.opendaylight.netconf</groupId>
                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
                         </configuration>
                     </execution>
+                    <execution>
+                        <id>unpack-sources</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>unpack-dependencies</goal>
+                        </goals>
+                        <configuration>
+                            <classifier>sources</classifier>
+                            <includeArtifactIds>shaded-exificient-jar</includeArtifactIds>
+                            <outputDirectory>${project.build.directory}/shaded-sources</outputDirectory>
+                        </configuration>
+                    </execution>
                 </executions>
             </plugin>
             <plugin>
                 <artifactId>build-helper-maven-plugin</artifactId>
                 <executions>
                     <execution>
-                        <phase>generate-sources</phase>
+                        <phase>prepare-package</phase>
                         <goals>
                             <goal>add-source</goal>
                         </goals>
                         <configuration>
                             <sources>
-                                <source>${project.build.directory}/generated-sources</source>
+                                <source>${project.build.directory}/shaded-sources</source>
                             </sources>
                         </configuration>
                     </execution>