Details

      Description

      Generate a zip that contains the sources of a given version of the project.
      The source distribution is needed only in the packaging build. Need add release profile to the main reactor (root POM) with following configuration:
      <profiles>
      <profile>
      <id>release</id>
      <build>
      <plugins>
      <plugin>
      <artifactId>maven-assembly-plugin</artifactId>
      <dependencies>
      <dependency>
      <groupId>org.apache.apache.resources</groupId>
      <artifactId>apache-source-release-assembly-descriptor</artifactId>
      <version>1.0.2</version>
      </dependency>
      </dependencies>
      <executions>
      <execution>
      <id>source-release-assembly</id>
      <phase>package</phase>
      <goals>
      <goal>single</goal>
      </goals>
      <configuration>
      <runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
      <descriptorRefs>
      <descriptorRef>source-release</descriptorRef>
      </descriptorRefs>
      <tarLongFileFormat>gnu</tarLongFileFormat>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>
      </build>
      </profile>
      </profiles>

      This sources will be used in products distribution.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dkuleshov Dmitry Kuleshov
                Reporter:
                quangexoplatform nguyen hong quang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h