[forge-dev] System-Scoped Dependency in Plugin

Ryan Bradley rbradley at redhat.com
Fri Jan 20 15:35:27 EST 2012


The original artefact I was using was not in any repositories.  However, 
I found a copy of the JAR that was included in the Maven Central 
Repository, so no issues anymore!

Thanks,
Ryan

On 01/20/2012 12:38 PM, Lincoln Baxter, III wrote:
> Actually, the best thing to do here is probably to add that dependency 
> to the JBoss Nexus itself so that you don't need to do this kind of 
> packaging.
>
> I should have thought of that earlier. Before we do that, however, are 
> you sure this artifact is not available in any repositories?
>
> ~Lincoln
>
> On Fri, Jan 20, 2012 at 12:25 PM, Ryan Bradley <rbradley at redhat.com 
> <mailto:rbradley at redhat.com>> wrote:
>
>     Hi all,
>
>     I am trying to package the org.jvnet:inflector:0.7.0 JAR with a Forge
>     plugin that I am developing.  So that it is available to all users of
>     the plugin, I have added it to a folder (src/main/resources/lib)
>     of the
>     plugin, and added it to the plugin's POM with the following
>     system-scoped dependency:
>
>     <dependency>
>     <groupId>org.jvnet</groupId>
>     <artifactId>inflector</artifactId>
>     <version>0.7.0</artifactId>
>     <scope>system</scope>
>     <systemPath>${project.basedir}/src/main/resources/lib/inflector-0.7.0.jar</systemPath>
>     </dependency>
>
>     However, when I build the plugin with this dependency, the JAR is not
>     added to the plugin module's dependencies, and is thus not
>     available at
>     run-time, as I needed it to be.  Are there any suggestions as to how I
>     can package this dependency with my plugin and include it as a
>     dependency at run-time, without compromising the usability of the
>     plugin?
>
>     Thanks,
>     Ryan
>
>     _______________________________________________
>     forge-dev mailing list
>     forge-dev at lists.jboss.org <mailto:forge-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
>
> -- 
> Lincoln Baxter, III
> http://ocpsoft.com
> http://scrumshark.com
> "Keep it Simple"
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120120/dd1a7cb2/attachment.html 


More information about the forge-dev mailing list