#Shading

1 messages · Page 1 of 1 (latest)

mellow nest
#

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

vague girder
#

i did clean verify package compile but it only spat out one jar

mellow nest
#

your build thing has the little maven logo right?

vague girder
#

dont think so

mellow nest
#

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

vague girder
#

what's your exact maven args?

mellow nest
#

for the maven command?

vague girder
#

ye

mellow nest
#

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?

vague girder
#

also the error persists with those args

mellow nest
#

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?

vague girder
#

no

mellow nest
#

hmm

#

what does your maven shade plugin bit look like in pom.xml?

vague girder
#
<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

mellow nest
#

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

vague girder
#

nope

mellow nest
#

sorry man I am lost, hope you get it working

#

its obviously not shading for whatever reason, what that is idk

vague girder
#

ima asm mf