Giter VIP home page Giter VIP logo

Comments (4)

hazendaz avatar hazendaz commented on September 25, 2024

from spotbugs-maven-plugin.

blacelle avatar blacelle commented on September 25, 2024

I initially get an issue with maven-deploy-plugin in its latest versiob (2.8.2). https://github.com/apache/maven-plugins/blob/c719f8da6d9380d2b9f3f0b311b1b2cbcb3f9cf7/maven-deploy-plugin/pom.xml shows it might be a best practise to align maven dependencies

<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-project</artifactId>
  <version>${mavenVersion}</version>
</dependency>

with prerequisites

<prerequisites>
  <maven>${mavenVersion}</maven>
</prerequisites>

I suppose spotbugs-maven-plugin should also follow this pattern.

The first concern raised with this ticket is the reproducibility of some of my builds (which relies on spotbugs) as it appeared OK in local (mvn 3.5.2) but KO in some of my customers Jenkins instances (which may lock mvn down to 3.2.5 3.3.9). Increasing the prerequisites to 3.5.2 would have been fine as it have been clearer what was the issue. About spotbugs-maven-plugin not being compatible with mvn 3.2.X and 3.3.X, I'm OK with this. In my own cases, I'm ready to introduce profiles in order to fully exclude spotbugs-maven-plugin in the environments where mvn 3.5 is not available.

Seems like some potential leaks in classloaders

It might be the root-cause. I recently encountered the same stacks (Error injecting: private org.eclipse.aether.spi.log.Logger org.apache.maven.repository.internal.DefaultVersionRangeResolver.logger) but on another project NOT relying on spotbugs. The errors appears on mvn install when inside a sub-module, while mvn install on the root module is OK which seems weird as mvn install in the root-module will also process the sub-module

from spotbugs-maven-plugin.

hazendaz avatar hazendaz commented on September 25, 2024

@BlasD I'm submitting a commit now that should provide backwards support. I'm trying not to enforce 3.5.2. I think generally that would not have been an issue had it not been for underlying injection changes which seem to conflict badly. Would it be possible for you to give the latest snapshot a try once that lands? It should be on there in next hour or so.

from spotbugs-maven-plugin.

hazendaz avatar hazendaz commented on September 25, 2024

Version 3.1.2 released fixing this issue.

from spotbugs-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.