Maven source attachment

10 views
Skip to first unread message

JasonB

unread,
Oct 11, 2011, 9:25:00 PM10/11/11
to Gremlin-users
Would it be possible to attach the source code to the deployed maven
artifact? I've downloaded the source from GitHub, and can attach that
in Eclipse easily enough, but it would be helpful for Maven to handle
the source code for the jar, and thus do automatic updates.

Appreciate it....

jason

Joshua Shinavier

unread,
Oct 12, 2011, 12:19:03 PM10/12/11
to gremli...@googlegroups.com
That's possible. I believe we could just add something like this to
the plugin configuration in our POMs:

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

Arguments against?

Josh

Marko Rodriguez

unread,
Oct 12, 2011, 1:12:45 PM10/12/11
to gremli...@googlegroups.com
Hey,

I know Konrad (on this list) wanted this functionality as well, but I didn't know how to do it. If you can augment the TinkerPop project pom.xml's accordingly Josh, that would be fantabulous.

Thanks,
Marko.

http://markorodriguez.com

Joshua Shinavier

unread,
Oct 12, 2011, 1:47:34 PM10/12/11
to gremli...@googlegroups.com
Yeah, I think we might as well do this for all of our projects. Makes
it easy to find the source code for any given release, without digging
through git logs. I'm not clear about the "automatic updates" which
Jason mentions, but here is what this will get us: alongside the
binary JAR for each module, e.g. blueprints-core-1.1.jar, we will also
have a source JAR, e.g. blueprints-core-1.1-sources.jar which expands
to the source code directory tree of the module.

Josh

JasonB

unread,
Oct 12, 2011, 2:03:14 PM10/12/11
to Gremlin-users
Thanks, Josh.

All I meant was that, with the source attached in maven, I don't have
to go to GitHub and download new source every time there is a release;
I just get it from Maven.

jason
Reply all
Reply to author
Forward
0 new messages