On Wed, Jan 7, 2009 at 3:27 AM, David Blevins <[email protected]> wrote:

> When shading a package (changing the package name via byte code
> manipulation) you need to update the code in the package (ASM) and the code
> that refers to that package (xbean-finder).

Ah, right. So when shading asm in XBean as a separate module, say
xbean-asm-shaded, asm shading is needed only and whenever asm is
declared as dependency it should be changed to xbean-asm-shaded,
shouldn't it? What was the following for?

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <unzip
src="${project.build.directory}/asm-finder-${pom.version}.jar"
dest="${project.build.directory}/classes" />
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Reply via email to