]
Aslak Knutsen commented on ARQ-1974:
------------------------------------
Could you provide a Test project for this?
addPackages method not ever succeeds
------------------------------------
Key: ARQ-1974
URL:
https://issues.jboss.org/browse/ARQ-1974
Project: Arquillian
Issue Type: Bug
Components: Deployable Containers SPI
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