jlowenz / hypergraphdb

Automatically exported from code.google.com/p/hypergraphdb
0 stars 0 forks source link

Adding source and javadoc jars #88

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great, if you could include something like that in your pom.xmls:
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.1.2</version>
            <executions>
                <execution>
                    <id>attach-sources</id>
                    <goals>
                        <goal>jar-no-fork</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.7</version>
            <executions>
                <execution>
                    <id>attach-javadocs</id>
                    <goals>
                        <goal>jar</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

This will create source.jars and javadoc.jars and deploy them together with 
your binary jars. They can be loaded automatically by most IDEs and will 
therefore give a much better debugging experience.

Original issue reported on code.google.com by google-a...@gehrels.info on 17 Dec 2012 at 12:30

GoogleCodeExporter commented 9 years ago
Yes, good idea :)

Original comment by borislav...@gmail.com on 17 Dec 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Have you tried the above in the main pom.xml?

Original comment by borislav...@gmail.com on 15 Jan 2013 at 6:08

GoogleCodeExporter commented 9 years ago
You mean for multi-module Builds in the parent pom? I did not try it myself, 
but i used the sonatype parent pom they do it like that, so it seems to work.

Original comment by google-a...@gehrels.info on 15 Jan 2013 at 11:59