I've added the following to the plugins section of my top-level POM to get source jars generated with the Maven build:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Disclaimer: I'm not a Maven maven by any means.

Jim

James M Snell wrote:
Remy, if you build using ant with the zips target, a source zip is created.

 export ABDERA_SPRING=true
 export ABDERA_XMLSECURITY=true
 ant -f build/build.xml zips

- James

Remy Gendron (JIRA) wrote:
Source files distribution
-------------------------

                 Key: ABDERA-96
                 URL: https://issues.apache.org/jira/browse/ABDERA-96
             Project: Abdera
          Issue Type: Wish
    Affects Versions: 0.4.0
            Reporter: Remy Gendron
            Priority: Minor


As we are starting developement with Abdera, it would be nice to automate, as part of the build, the creation of the source files zip packages.


Reply via email to