maven-plugin

How to fail a maven build, when quality gate fails?

こ雲淡風輕ζ 提交于 2021-01-27 13:21:38
问题 Earlier I use sonar-maven-plugin version 3.2 then when a Sonar quality gate fails the build also used to fail. Now I am using sonar-maven-plugin version 3.7.0.1746 , it does not happen so. Even if quality gate fails maven build succeeded. Now when I use version 3.2 in pom.xml it gives the error [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project maven-webapp: Unable to execute SonarQube: Fail to download libraries from server ->

Maven2: How to be sure Maven build is using a specific plugin version?

对着背影说爱祢 提交于 2021-01-27 06:51:56
问题 I just found something that sounds weird with Maven plugin management. While working on the site generation I wanted to use a specific version of the maven site plugin in order to have a specific functionnalty working. Let's say I want to use version 2.0.1 of this plugin. If I use the reporting section of my POM in order to generate my project's site with the command: mvn site this works well. I mean the plugin version used is 2.0.1 as I wanted. Here is an extract from my POM configuring the

Maven2: How to be sure Maven build is using a specific plugin version?

萝らか妹 提交于 2021-01-27 06:49:48
问题 I just found something that sounds weird with Maven plugin management. While working on the site generation I wanted to use a specific version of the maven site plugin in order to have a specific functionnalty working. Let's say I want to use version 2.0.1 of this plugin. If I use the reporting section of my POM in order to generate my project's site with the command: mvn site this works well. I mean the plugin version used is 2.0.1 as I wanted. Here is an extract from my POM configuring the

How do I run a maven plugin's integration tests?

核能气质少年 提交于 2021-01-04 20:27:49
问题 I've generated a maven plugin project using the maven-archetype-plugin archetype. I've altered the generated integration test src/it/simple-it/verify.groovy to fail: assert false I then invoked: $ mvn clean install invoker:integration-test invoker:verify And my assert false test passed: [INFO] Installing /home/peter/ownCloud/Personal/eclipse-workspace/my-plugin/target/my-plugin-1.0-SNAPSHOT.jar to /home/peter/.m2/repository/org/example/my-plugin/1.0-SNAPSHOT/my-plugin-1.0-SNAPSHOT.jar [INFO]

Find classes that implement interfaces or being subclasses/superclasses in maven CLASSPATH?

廉价感情. 提交于 2021-01-01 07:33:31
问题 VisualVM OQL queries can't query for interfaces because current heap dump format doesn't preserve this info. To workaround this issue it is possible to find classes that implements interface and further perform heap dump analysis. I have an application managed by Maven. During build Maven know full application CLASSPATH . Is it possible to query via mvn command which classes in which package implements selected interface? Or even more - to find classes and packages in application build

Isn't maven-deploy-plugin aware of the pom in which I declared it as a build plugin? [duplicate]

試著忘記壹切 提交于 2020-08-05 06:14:18
问题 This question already has answers here : repository element was not specified in the POM inside distributionManagement element or in -DaltDep loymentRepository=id::layout::url parameter (3 answers) Closed 2 years ago . I have a maven project. In the pom I declared the group id, artifact id, version. I declared for maven-deploy-plugin as a build plugin, with goal of deploy:deploy-file. Then I launched maven from eclipse with the same goal, wuth -Durl declared as jvm arg. Maven build fails