Add sources to shaded-exificient 44/89444/4
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 16:36:20 +0000 (18:36 +0200)
Our shaded-exificient does not contain a source attachment, fix
that.

Change-Id: I5743c31266817dbaa71e46af30e5ab24c11b232d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/shaded-exificient/pom.xml

index 807cb317a5ecaefd363b971ba2a94d789579d7d9..166ce152c7c61faf4de966e8bbb85639d8f2cc01 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>