You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Andrew C (JIRA)" <ji...@apache.org> on 2013/03/06 16:42:13 UTC

[jira] [Created] (SSHD-216) Can *-javadoc.jar and *-sources.jar please be added to the build

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