[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-492) addPackages method not ever succeeds

G. Richard Bellamy (JIRA) issues at jboss.org
Tue Dec 22 15:31:00 EST 2015


    [ https://issues.jboss.org/browse/SHRINKWRAP-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143815#comment-13143815 ] 

G. Richard Bellamy commented on SHRINKWRAP-492:
-----------------------------------------------

Sorry for the noise - something else is going on for me. Nothing I use (neither {{addPackage(s)}} or {{addClasses}}) is succeeding.

> addPackages method not ever succeeds
> ------------------------------------
>
>                 Key: SHRINKWRAP-492
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-492
>             Project: ShrinkWrap
>          Issue Type: Bug
>          Components: impl-base
>         Environment: shrinkwrap-impl-base 1.2.2
>            Reporter: Luca Stancapiano
>
> there are cases where the addPackages method doesn't succeed to load the packages also if they are in the current classloader. An example can be the com.h2database library. This library is registered as resource in the classloader with the name com.h2database and ambigously it contains the package org.h2. 
> If I try to include the library in my shrinkwrap java archive with the expression addPackages(true, "com") or with the expression addPackages(true, "org") , the h2 packages are not loaded because shrinkwrap need the name of the resource starting with the same name of the package. 
> So seems that shrinkwrap can load only something as a resource called com.h2database combined with the package com.h2 or a resource called org.h2database combined with the package org.h2. 
> I presume this ambiguous name should be managed in shrinkwrap 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the shrinkwrap-issues mailing list