apache / apache/maven-resources-plugin
Maven resources plugin does not honour maven.test.skip flag
- Dominant language
- Java
- Stars
- 61
- Forks
- 36
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 3
Description
### Affected version
4.0.0-beta-2-SNAPSHOT
### Bug description
The following integration test fails when Maven Resource Plugin 4.0.0-beta-2-SNAPSHOT is tested with Maven 4.0.0-rc-6:
* `src/it/MRESOURCES-131` (GitHub issue #217)
This integration test has the following configuration in its `pom.xml`:
```xml
maven-resources-plugin
@project.version@
true
```
The `ResourcesMojo` class has the following field:
```java
/**
* You can skip the execution of the plugin if you need to. Its use is NOT RECOMMENDED, but quite convenient on
* occasion.
*
* @since 3.0.0
*/
@Parameter(property = "maven.resources.skip", defaultValue = "false")
private boolean skip;
```
The `TestResourcesMojo` class has the following field:
```java
/**
* Set this to 'true' to bypass copying of test resources.
* Its use is NOT RECOMMENDED, but quite convenient on occasion.
* @since 2.6
*/
@Parameter(property = "maven.test.skip", defaultValue = "false")
private boolean skip;
```
I verified in the debugger that the `skip` flag is `true` in `ResourcesMojo` but not in `TestResourcesMojo`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the failing integration test in src/it/MRESOURCES-131 and its pom.xml, then compare the skip parameters in ResourcesMojo and TestResourcesMojo. Run the integration test with Maven 4.0.0-rc-6 and verify that maven.test.skip prevents test-resource copying as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100