mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew C (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SSHD-216) Can *-javadoc.jar and *-sources.jar please be added to the build
Date Wed, 06 Mar 2013 15:42:13 GMT
Andrew C created SSHD-216:
-----------------------------

             Summary: Can *-javadoc.jar and *-sources.jar please be added to the build
                 Key: SSHD-216
                 URL: https://issues.apache.org/jira/browse/SSHD-216
             Project: MINA SSHD
          Issue Type: Bug
    Affects Versions: 0.8.0
            Reporter: Andrew C
            Priority: Minor


(mina-core seems to do this already).  Can rules be added to pom.xml so it generates *-sources.jar
and *-javadoc.jar - being able to add those to another project's lib makes life much easier
:-)

Seems, all that is needed is to add:

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

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

to the <plugins> section and then "package" (from memory) builds them.  I got this from
http://maven.apache.org/plugin-developers/cookbook/attach-source-javadoc-artifacts.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message