#Dependency problem

22 messages · Page 1 of 1 (latest)

humble terrace
#

Ok so I have this ```xml
<dependency>
<groupId>com.github.lunarclient</groupId>
<artifactId>bukkitapi</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>reflectasm</artifactId>
<version>1.11.9</version>
<scope>provided</scope>
</dependency>

how can I do to have reflectasm that adds to the final build, but not bukkitapi?
cold merlinBOT
#

This post has been reserved for your question.

Hey @humble terrace! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

tired seal
humble terrace
#

doesn't work

tired seal
#

huh?

humble terrace
#

i tried with what you send, doesn't work, tried changing some things, doesn't work

tired seal
#
  <groupId>com.github.lunarclient</groupId>
  <artifactId>bukkitapi</artifactId>
  <version>1.0.1</version>
  <scope>provided</scope>
  <exclusions>
    <exclusion>
      <groupId>com.esotericsoftware</groupId>
      <artifactId>reflectasm</artifactId>
    </exclusion>
  </exclusions>
</dependency>```
humble terrace
#

how can I do if I have more dependencies?

#

because you put the exclusions into <dependency>

tired seal
#

specify multiple exclusion elements within the exclusions element!

humble terrace
#

i'm lost

tired seal
humble terrace
#

like what is exclusion, how can I have multiple dependency elements (because you put exclusions inside the only one, and where do i place the dependency elements

tired seal
#

hahah

#
  <groupId>com.github.lunarclient</groupId>
  <artifactId>bukkitapi</artifactId>
  <version>1.0.1</version>
  <scope>provided</scope>
  <exclusions>
    <exclusion>
      <groupId>com.esotericsoftware</groupId>
      <artifactId>reflectasm</artifactId>
    </exclusion>
    <exclusion>
      <groupId>com.example</groupId>
      <artifactId>dependency1</artifactId>
    </exclusion>
    <exclusion>
      <groupId>com.example</groupId>
      <artifactId>dependency2</artifactId>
    </exclusion>
  </exclusions>
</dependency>```
humble terrace
#

still doesn't work

tired seal
#

i dont know whats stopping you?

#

have a go!

humble terrace
#

just it doesn't

#

i tried it, modifications, nothing