You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in my already prepared Maven projects for the tests under src/test/resources-its/MPMD-386/. They are all clear Maven projects, meaning no target folder (obviously).
I have not yet written a test!
When I now run a mvn clear verify to make sure that I have no typos in XML setup, dependecy violations etc the build breaks with the following message
[ERROR] Failed to execute goal com.soebes.itf.jupiter.extension:itf-maven-plugin:0.13.1:resources-its (installing) on project maven-pmd-plugin: filtering D:\Github\Maven\maven-pmd-plugin\src\test\resources-its\MPMD-386\3_14\MultiSubFolder\subfolder\moduleA\target\pmd\pmd.cache to D:\Github\Maven\maven-pmd-plugin\target\test-classes\MPMD-386\3_14\MultiSubFolder\subfolder\moduleA\target\pmd\pmd.cache failed with MalformedInputException: Input length = 1 -> [Help 1]
While I don't understand why the extension is trying to access files from the (second in folder) project it's quite clear that the MalformedInputException is thrown as there is no pmd folder inside the target folder of that project (which seems to be generated by the extension) and therefore no pmd.cache file.
Current behavior
Builds breaks with MalformedInputException
[ERROR] Failed to execute goal com.soebes.itf.jupiter.extension:itf-maven-plugin:0.13.1:resources-its (installing) on project maven-pmd-plugin: filtering D:\Github\Maven\maven-pmd-plugin\src\test\resources-its\MPMD-386\3_14\MultiSubFolder\subfolder\moduleA\target\pmd\pmd.cache to D:\Github\Maven\maven-pmd-plugin\target\test-classes\MPMD-386\3_14\MultiSubFolder\subfolder\moduleA\target\pmd\pmd.cache failed with MalformedInputException: Input length = 1 -> [Help 1]
Expected behavior
Build runs without problems as no IT has yet been created which could be picked up by the extension.
*Log files/Information
See To Reproduce
Full Working Example
To follow your issue it is really needed to have a full working example
of the behaviour which shows the problem otherwise it's really hard to
find the problem or even more to fix issues.
@Bukama I had this issue before and discovered that my IDE was building the test projects and creating a target folder inside them. I deleted the target folder from each project, and the error went away.
Describe the bug
Running a maven build with the extension configured but without any test results in
MalformedInputException
.To Reproduce
Steps to reproduce the behavior:
In short:
src/test/resources-its/
mvn clean verify
In long
to reproduce your issue.
That's my current setup
apache/maven-pmd-plugin@5fae1f6
Description
I've started setting up the setup for using the MavenJupiterExtension on the Maven PMD plugin (to then trying to recreate a bug).
Following the user guide I've added the dependencies
and plugin configuration
and in my already prepared Maven projects for the tests under
src/test/resources-its/MPMD-386/
. They are all clear Maven projects, meaning notarget
folder (obviously).I have not yet written a test!
When I now run a
mvn clear verify
to make sure that I have no typos in XML setup, dependecy violations etc the build breaks with the following messageWhile I don't understand why the extension is trying to access files from the (second in folder) project it's quite clear that the
MalformedInputException
is thrown as there is nopmd
folder inside thetarget
folder of that project (which seems to be generated by the extension) and therefore nopmd.cache
file.Current behavior
Builds breaks with MalformedInputException
Expected behavior
Build runs without problems as no IT has yet been created which could be picked up by the extension.
*Log files/Information
See To Reproduce
Full Working Example
To follow your issue it is really needed to have a full working example
of the behaviour which shows the problem otherwise it's really hard to
find the problem or even more to fix issues.
apache/maven-pmd-plugin@5fae1f6
The used versions
The version of tools you have used.
Maven home: C:\apache-maven-4.0.0-beta-3
Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: C:\JDK\Java17
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "winnt"
IDE: command line
ITF: 0.13.1 (newest as time of writing)
The text was updated successfully, but these errors were encountered: