[ https://issues.apache.org/jira/browse/RAT-474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philipp Ottlinger updated RAT-474: ---------------------------------- Description: Trying to open RAT in the current Eclipse release 2025-03 fails with various errors and warnings. The central problem seems to be that parts of the sources (that were generated during the build) are not properly wired in into the project, thus Eclipse spots various compilation errors: * BaseAntTask cannot be resolved * BaseRatMojo cannot be resolved Apart from that the m2-Integration fails to grab the generated classes. Its main error message is: {{{}Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: unpack testdata} (org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack:unpack testdata:generate-test-resources){}}}{{{}org.eclipse.core.runtime.CoreException: Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: unpack testdata}{{}}}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:404)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.lambda$2(MavenExecutionContext.java:355)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:354)}} {{ at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:57)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.lambda$2(MavenBuilderImpl.java:159)}} {{ at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:986)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:139)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:164)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$1(MavenBuilder.java:109)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:292)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$0(MavenBuilder.java:100)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:278)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:83)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:192)}} {{ at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1077)}} {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:296)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:352)}} {{ at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:441)}} {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:444)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:555)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:503)}} {{ at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:585)}} {{ at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:207)}} {{ at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:300)}} {{ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)}} {{Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98.}} {{ at org.apache.maven.plugins.dependency.utils.UnpackUtil.unpack(UnpackUtil.java:104)}} {{ at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:138)}} {{ at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.doExecute(UnpackMojo.java:121)}} {{ at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:114)}} {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:402)}} {{ ... 32 more}} {{}} In order to reproduce this behaviour just import RAT into Eclipse as an existing Maven project. was: Trying to open RAT in the current Eclipse release 2025-03 fails with various errors and warnings. The central problem seems to be that parts of the sources (that were generated during the build) are not properly wired in into the project, thus Eclipse spots various compilation errors: * BaseAntTask cannot be resolved * BaseRatMojo cannot be resolved Apart from that the m2-Integration fails to grab the generated classes. Its main error message is: {{{}Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: unpack testdata} (org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack:unpack testdata:generate-test-resources){}}}{{{}org.eclipse.core.runtime.CoreException: Failed to execute mojo org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: unpack testdata}{}}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:404)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.lambda$2(MavenExecutionContext.java:355)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:354)}} {{ at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:57)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.lambda$2(MavenBuilderImpl.java:159)}} {{ at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:986)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:139)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:164)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$1(MavenBuilder.java:109)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:292)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$0(MavenBuilder.java:100)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:278)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:83)}} {{ at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:192)}} {{ at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1077)}} {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:296)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:352)}} {{ at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:441)}} {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:444)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:555)}} {{ at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:503)}} {{ at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:585)}} {{ at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:207)}} {{ at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:300)}} {{ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)}} {{Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has not been packaged yet. When used on reactor artifact, unpack should be executed after packaging: see MDEP-98.}} {{ at org.apache.maven.plugins.dependency.utils.UnpackUtil.unpack(UnpackUtil.java:104)}} {{ at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:138)}} {{ at org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.doExecute(UnpackMojo.java:121)}} {{ at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:114)}} {{ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)}} {{ at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:402)}} {{ ... 32 more}} {{}} > Eclipse import of RAT fails since the newly generation mechanism was > introduced > ------------------------------------------------------------------------------- > > Key: RAT-474 > URL: https://issues.apache.org/jira/browse/RAT-474 > Project: Apache Rat > Issue Type: Bug > Components: Client - ant, core engine, Tools > Affects Versions: 0.17 > Reporter: Philipp Ottlinger > Priority: Blocker > Fix For: 0.17 > > > Trying to open RAT in the current Eclipse release 2025-03 fails with various > errors and warnings. > The central problem seems to be that parts of the sources (that were > generated during the build) are not properly wired in into the project, thus > Eclipse spots various compilation errors: > * BaseAntTask cannot be resolved > * BaseRatMojo cannot be resolved > > Apart from that the m2-Integration fails to grab the generated classes. Its > main error message is: > > {{{}Failed to execute mojo > org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: > unpack testdata} > (org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack:unpack > testdata:generate-test-resources){}}}{{{}org.eclipse.core.runtime.CoreException: > Failed to execute mojo > org.apache.maven.plugins:maven-dependency-plugin:3.8.1:unpack \{execution: > unpack testdata}{{}}}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:404)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.lambda$2(MavenExecutionContext.java:355)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:354)}} > {{ at > org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:57)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.lambda$2(MavenBuilderImpl.java:159)}} > {{ at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:986)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:139)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:164)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$1(MavenBuilder.java:109)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:292)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.lambda$0(MavenBuilder.java:100)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:458)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:339)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:278)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:83)}} > {{ at > org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:192)}} > {{ at > org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:1077)}} > {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} > {{ at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:296)}} > {{ at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:352)}} > {{ at > org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:441)}} > {{ at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)}} > {{ at > org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:444)}} > {{ at > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:555)}} > {{ at > org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:503)}} > {{ at > org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:585)}} > {{ at > org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:207)}} > {{ at > org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:300)}} > {{ at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)}} > {{Caused by: org.apache.maven.plugin.MojoExecutionException: Artifact has not > been packaged yet. When used on reactor artifact, unpack should be executed > after packaging: see MDEP-98.}} > {{ at > org.apache.maven.plugins.dependency.utils.UnpackUtil.unpack(UnpackUtil.java:104)}} > {{ at > org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.unpackArtifact(UnpackMojo.java:138)}} > {{ at > org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.doExecute(UnpackMojo.java:121)}} > {{ at > org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:114)}} > {{ at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)}} > {{ at > org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:402)}} > {{ ... 32 more}} > {{}} > > In order to reproduce this behaviour just import RAT into Eclipse as an > existing Maven project. -- This message was sent by Atlassian Jira (v8.20.10#820010)