Add sources to shaded-exificient 51/89451/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Apr 2020 13:34:55 +0000 (15:34 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Apr 2020 18:24:58 +0000 (20:24 +0200)
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 722e1b3d033876a3442ff8cecbd77a6a782d4823..d0d033ef2c6a6cfb5fbb551b89003588a7695074 100644 (file)
@@ -26,6 +26,9 @@
         <!-- We are just juggling classes here -->
         <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
         <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
+
+        <!-- We do not want to generate javadoc -->
+        <maven.javadoc.skip>true</maven.javadoc.skip>
     </properties>
 
     <dependencies>
                             <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>