Questions tagged [build-helper-maven-plugin]

For questions relating to the Maven plugin build-helper-maven-plugin.

Documentation: http://www.mojohaus.org/build-helper-maven-plugin/index.html

38 questions
19
votes
1 answer

build-helper-maven-plugin add-test-resource error

I have this project structure: /src /main /java /resources /test /java /resources /it /java /resources test for unit tests and it for integration tests. I'm using…
6
votes
0 answers

"build-helper-maven-plugin" not found?

In my POM file I include: org.codehaus.mojo build-helper-maven-plugin 3.0.0
6
votes
1 answer

What's the latest version of build-helper-maven-plugin that requires JDK 1.6?

The latest version of the Build Helper Maven plugin (1.10 at the moment) requires Java 1.7, which broke my build. The plugin documentation page only shows Java version requirement for the latest version.
Randell
  • 6,112
  • 6
  • 45
  • 70
4
votes
1 answer

Why build-helper-maven-plugin throws the exception: 'Cannot find default setter in class org.apache.maven.model.Resource'?

This is my build-helper-maven-plugin configuration in pom.xml: org.codehaus.mojo build-helper-maven-plugin 1.12
tribbloid
  • 4,026
  • 14
  • 64
  • 103
4
votes
1 answer

Attach source directory with build-helper-maven

I tried to attach a source directory generated by jaxb or cxf in using the build-helper-maven plugin. Unfortunately, even though I got a success in the mvn generate-sources, my eclipse didn't add the target directory as a source folder.
user3460409
4
votes
1 answer

Unable to load the mojo 'add-source' (or one of its required components) from the plugin 'org.codehaus.mojo:build-helper-maven-plugin:1.9'

I am using the following Maven plugin: org.codehaus.mojo build-helper-maven-plugin 1.9
stefan.m
  • 1,912
  • 4
  • 20
  • 36
3
votes
1 answer

Clover 0% Coverage with multiple source directories + build-helper-maven-plugin

Our java application has multiple source folders, and use build-helper-maven-plugin to read source files from all the folders, But here when I run clover on the application it generates the clover.xml with coveredelements = 0 coveredconditionals = 0…
Nishanth
  • 317
  • 4
  • 16
3
votes
2 answers

Maven - Add Integration Tests

trying to split my tests in a Maven build into Unit & Integration tests. I am using the failsafe plugin to run the Integration Tests and attempting to use the build-helper-maven-plugin to add the Integration Tests from the src/it/java directory. I…
3
votes
1 answer

build-helper-maven-plugin report error sources is missing

I try to use build-helper-maven-plugin 1.9 to add integration test folder, Pom shows below: org.codehaus.mojo build-helper-maven-plugin
user1438980
  • 187
  • 1
  • 3
  • 13
2
votes
1 answer

maven-javadoc-plugin: How to update the module path dynamically

I have a Java (11.0.7) Maven (3.0.6) multi-module project that contains the following module declarations: jdrum-commons jdrum-datastore-base jdrum-datastore-simple
Roman Vottner
  • 12,213
  • 5
  • 46
  • 63
2
votes
1 answer

build-helper-maven-plugin: Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.2:set

We have a project and in the pom.xml we did not specify the groupId becuase we inherit it from the parent pom. If we then run mvn -B build-helper:parse-version versions:set…
Yashu
  • 485
  • 1
  • 10
  • 22
1
vote
0 answers

org.junit.platform.launcher.listeners.UniqueIdTrackingListener threw exception for method: testPlanExecutionStarted()

I am running my unit tests in my maven build but I am getting the below exception when I run it on GitHub Action and not locally. I am using maven-surefire-plugin and JUnit5. Any ideas what is going wrong here ? 2021-11-20T00:11:41.0420543Z [INFO]…
1
vote
2 answers

COMPILATION ERROR : package my.package.root.util does not exist

I have an Eclipse Java project for which I am trying to execute the unit tests using Maven. I have my unit tests as below so that it respects the expected hierarchy src/test/java/StringUtilsTests.java However, my unit test references the source…
1
vote
1 answer

How to use build-helper-maven-plugin to create extra directory?

I have a Java Maven project with the following structure. (This is a logical structure, not necessarily the exact directory structure.) Project |-Submodule | |-src/main/java | |-src/main/resources | |-src/test/java | |-src/test/resources |…
Mathew Alden
  • 1,458
  • 2
  • 15
  • 34
1
vote
1 answer

Maven command mvn clean verify does not activate Failsafe to run integration-tests

I'm trying to use the Maven plugin Failsafe to run my integration tests that are in the src/it/java directory. I was using the build-helper plugin to get my integration test resources I setup my failsafe plugin like...
1
2 3