#Maven exclude file from another dependency

1 messages · Page 1 of 1 (latest)

full basin
#

Hello everyone, putting this under Java since a Maven tag doesn't exist. I have this snippet

           <plugin>
               <artifactId>maven-assembly-plugin</artifactId>
               <executions>
                   <execution>
                       <phase>package</phase>
                       <goals>
                           <goal>single</goal>
                       </goals>
                   </execution>
               </executions>
               <configuration>
                   <descriptorRefs>
                       <descriptorRef>jar-with-dependencies</descriptorRef>
                   </descriptorRefs>
               </configuration>
           </plugin>```
It's getting all the dependencies and creating just one, useful for testing purposes and automated things.
In the module where this `pom.xml` resides I have a `logback-test.xml` file that needs to be inserted, but it gets overridden apparently from the `logback-test.xml` that comes in another module.  How can I avoid that the other file has the priority over the actual `lgoback-test.xml` of my current module?
lament rootBOT
#

<@&987246399047479336> please have a look, thanks.

lament rootBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

lament rootBOT
#

Changed the category to Build Tools.

#

<@&987246554085740594> please have a look, thanks.

tight isle
#

Maven is a build tool