#Shading
1 messages · Page 1 of 1 (latest)
this is all I've got and this is what mine worked on, my pom looks very similair in terms of the relocation etc
then make sure you use the output that doesnt say "original" because that is not the shaded jar
@vague girder
i did clean verify package compile but it only spat out one jar
your build thing has the little maven logo right?
dont think so
click the drop down on build configurations and send a screenshot, I have 2, one ran outputs the jar to intelliJ and one that outputs to my server plugins file and runs the server
once it finishes maven building it tells me the location of the shade jar, which is the one with all the extra classes provided at compile time
what's your exact maven args?
for the maven command?
ye
all I have is 'clean package' in command line parameter, everything else I havent touched
what gets spat out in the console when you run your build?
do you get any messages like this in your logs?
[INFO] Including com.jeff_media:MorePersistentDataTypes:jar:1.1.0 in the shaded jar.
[INFO] Including com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.13.0-rc1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.13.0-rc1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.13.0-rc1 in the shaded jar.
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.13.0-rc1 in the shaded jar.```
telling you its putting the stuff in the shaded jar?
no
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<relocations>
<relocation>
<!--
<pattern>com.jeff_media.morepersistentdatatypes</pattern>
<shadedPattern>io.github.moterius.morepersistentdatatypes</shadedPattern>
-->
<pattern>com.jeff_media.customblockdata.CustomBlockData</pattern>
<shadedPattern>io.github.customblockdata.CustomBlockData</shadedPattern>
</relocation>
</relocations>
</configuration>
</plugin>```
tried both the comment and what's there
both cause the same error
looks identical to mine, I am using more persistent data types
just got it working last night
do you get this little window pop up?
where it says shade
nope
sorry man I am lost, hope you get it working
its obviously not shading for whatever reason, what that is idk
ima asm mf