A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/classgraph/classgraph/wiki/Shading-ClassGraph below:

Shading ClassGraph · classgraph/classgraph Wiki · GitHub

Shading with maven-shade-plugin

It is important to shade both io.github.classgraph. and nonapi.io.github.classgraph., otherwise you may get a ClassCastException when ClassGraph starts up.

<plugin>
  <artifactId>maven-shade-plugin</artifactId>
  <executions>
    <execution>
      <phase>package</phase>
      <goals>
        <goal>shade</goal>
      </goals>
      <configuration>
        <artifactSet>
          <includes>
            <include>io.github.classgraph:classgraph</include>
          </includes>
        </artifactSet>
        <relocations>
          <relocation>
            <pattern>io.github.classgraph.</pattern>
            <shadedPattern>some.prefix.shaded.io.github.classgraph.</shadedPattern>
          </relocation>
          <relocation>
            <pattern>nonapi.io.github.classgraph.</pattern>
            <shadedPattern>some.prefix.shaded.nonapi.io.github.classgraph.</shadedPattern>
          </relocation>
        </relocations>
      </configuration>
    </execution>
  </executions>
</plugin>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4