logo
down
shadow

Why can Maven plugin dependencies only be specified within <build> and not <reporting>?


Why can Maven plugin dependencies only be specified within <build> and not <reporting>?

Content Index :

Why can Maven plugin dependencies only be specified within <build> and not <reporting>?
Tag : maven , By : richardD
Date : October 22 2020, 08:10 AM

Does that help I would say the situation is not so simple here - because are possible in the section!
I think the point is the plugin itself (so it might be different for each plugin).
<build>
  <plugins>
    <plugin>
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-maven-plugin</artifactId>
      <version>3.1.12.1</version>
      <configuration>
        <xmlOutput>true</xmlOutput>
        <spotbugsXmlWithMessages>true</spotbugsXmlWithMessages>
        <spotbugsXmlOutputDirectory>target/site</spotbugsXmlOutputDirectory>
        <failOnError>false</failOnError>
        <includeTests>true</includeTests>
        <dependencies>
          <dependency>
            <groupId>com.mebigfatguy.fb-contrib</groupId>
            <artifactId>fb-contrib</artifactId>
            <version>7.4.3.sb</version>
          </dependency>

          <plugin>
            <groupId>com.h3xstream.findsecbugs</groupId>
            <artifactId>findsecbugs-plugin</artifactId>
            <version>LATEST</version>
          </plugin>
        </dependencies>
      </configuration>
    </plugin>
  </plugins>
</build>


<reporting>
  <plugins>
    <plugin>
      <groupId>com.github.spotbugs</groupId>
      <artifactId>spotbugs-maven-plugin</artifactId>
      <version>3.1.12.1</version>
      <configuration>
        <xmlOutput>true</xmlOutput>
        <spotbugsXmlWithMessages>true</spotbugsXmlWithMessages>
        <spotbugsXmlOutputDirectory>target/site</spotbugsXmlOutputDirectory>
        <failOnError>false</failOnError>
        <includeTests>true</includeTests>
        <dependencies>
          <dependency>
            <groupId>com.mebigfatguy.fb-contrib</groupId>
            <artifactId>fb-contrib</artifactId>
            <version>7.4.3.sb</version>
          </dependency>

          <plugin>
            <groupId>com.h3xstream.findsecbugs</groupId>
            <artifactId>findsecbugs-plugin</artifactId>
            <version>LATEST</version>
          </plugin>

        </dependencies>
      </configuration>
    </plugin>
  </plugins>
</reporting>

Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies co


Tag : java , By : Edo
Date : March 29 2020, 07:55 AM
Hope that helps , I had the exact same problem.
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Failure to find org.apache.maven.plugins:maven-resources-plugin:pom:2.5 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
...
<proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>optional-proxyuser</username>
  <password>optional-proxypass</password>
  <host>proxy.host.net</host>
  <port>80</port>
  <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
telnet [proxy] [port number]
  <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-resources-plugin</artifactId>
              <version>2.7</version>
            </plugin>           
          </plugins>
        </pluginManagement>   
    </build>
The POM for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 is missing, no dependency information available

The POM for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 is missing, no dependency information available

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could


Tag : maven , By : sep
Date : March 29 2020, 07:55 AM
will be helpful for those in need I solved it now. However it only is solved in Netbeans. Not sure why eclipse still won't take the settings.xml that is changed. The solution is however to remove/comment the User/Password param in settings.xml
Before:
<proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxyserver.company.com</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies> 
<proxies>
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxyserver.company.com</host>
      <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
  </proxies> 

How to pass build number to maven-cucumber-reporting plugin


Tag : maven , By : 3NZ0
Date : March 29 2020, 07:55 AM
help you fix your problem In version 0.0.6 of plugin build number 1 was hardcoded. This commit fixed problem and now the build number is received from ${build.number} property or from parameter of plugin.

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies co


Tag : java , By : k19k
Date : March 29 2020, 07:55 AM
help you fix your problem When I am try to build the project it gives this error. , Try the following steps:

Share maven plugin configuration between build and reporting sections


Tag : java , By : KS9
Date : March 29 2020, 07:55 AM
I hope this helps you . I have a maven project where I use several plugins (pmd, checkstyle) in the build and in the reporting section of the pom.xml. The former for enforcing several constraints and the latter for the site report. These invocations of the plugins mostly share common elements and so far the only solution I found is to copy the respective XML fragments. Is there any way to avoid this duplication? ,
Is there any way to avoid this duplication?
Related Posts Related QUESTIONS :
  • Intellij IDEA jstl and taglibs not recognized even after adding dependency
  • maven assembly how to add a zip flie from nexus repository to the build
  • Xquery with SaxonXQDataSource: NoSuchMethodError
  • publish grails3 plugin to artifactory - differences in generated poms
  • Javascript file is missing after compilation with gwt-maven-plugin
  • Can anyone provide maven dependency for xmlparserv2.jar
  • How to run only one junit test case in maven?
  • How should be project structure using microservices with gradle or maven?
  • Nexus Jasper Repository
  • Maven site lifecycle failing while generating allure report
  • Maven assembly plugin: how to include provided dependencies of transitive dependencies
  • What is the color and number beside the line number in cobertura report
  • Rename files inside a jar using some maven plugin
  • Maven multi-module project - copying all dependencies into a single tar.gz
  • Why isn't mvn resources:resources picking up buildNumber?
  • Spring Boot application - build process with Angular does not update Angular part
  • How does Maven integrate with TAR?
  • Maven packages smooks edifact models under wrong folder in fat jar on mvn assembly
  • Something like “mvn undeploy” to remove artifacts from Nexus?
  • Jenkins Build failed - Sonar Maven
  • Are Maven surefire and failsafe versions always going to be the same
  • Getting one error in pom.xml
  • Jenkins Pipeline Plugin - withMaven Step leads to com.google.inject.CreationException
  • Prevent war file from being copied to .m2/repository when running mvn clean install
  • How do I map the largest files\folders in Artifactory
  • maven prevent denpendency compile
  • Invoke maven-invoker-plugin in a specific phase
  • Unable to deploy war on one particular server
  • unable to install maven in windows : "'mvn' is not recognized as internal or external command operable program or b
  • Maven dependency for LDAP library could not be resolved in OSGi
  • Build executable JAR with JavaFX11 from maven
  • java.lang.NoClassDefFoundError: org/junit/platform/commons/PreconditionViolationException when trying run junit5 test wi
  • Why "mvn deploy" command is rebuilding .jar?
  • deploy to Github Package Registry from Github Action
  • Some dependency <artifactId> items not found by Maven in a new Vaadin 14.0.4 project
  • How to pass private repository credentials to maven docker image when using Google Cloud Build
  • How to remove timestamp from artifacts uploaded to maven2 repository on nexus?
  • Maven surefire plugin Reports - File name too long
  • How configure Maven to Work Offline? Complete solution
  • Get dependency tree for a bazel target
  • How can I enforce activation of maven profiles with full bool logic?
  • How to create kubernetes configmap from properties file during maven build?
  • is there any compatible version of SonarQube with Java 13
  • Splitting unit and integration tests with Maven
  • HTML Page Doesn't Show Up on Springboot Application
  • how to install eclipse Ditto
  • Failure to find com.google.guava:listenablefuture:jar:sources:9999.0-empty-to-avoid-conflict-with-guava
  • Maven Release plugin not committing files others than pom.xml
  • maven transitive dependency wrong version
  • Can't remove version tag even having dependencyManagement in pom.xml
  • How do developers typically use Docker with a Java Maven project and AWS EC2?
  • Subproject does not fetch dependencies from Super POM
  • Use maven properties in persistence.xml
  • "Cannot find artifact org.openjfx" in leiningen project
  • maven version not recognized command
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com