[ https://issues.apache.org/jira/browse/MPMD-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17632730#comment-17632730 ]
Andreas Dangel commented on MPMD-335: ------------------------------------- I was able to create a reproducer project (see [^MPMD-335-aggregate-private-repo.zip] ). The full stack trace is (in case somebody is searching on the internets): {code} Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.maven.plugins.pmd.it.mpmd335:dependency1:jar:1.0.0-SNAPSHOT at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:415) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:229) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies (DefaultRepositorySystem.java:340) at org.apache.maven.shared.transfer.dependencies.resolve.internal.Maven31DependencyResolver.resolveDependencies (Maven31DependencyResolver.java:216) at org.apache.maven.shared.transfer.dependencies.resolve.internal.Maven31DependencyResolver.resolveDependencies (Maven31DependencyResolver.java:198) at org.apache.maven.shared.transfer.dependencies.resolve.internal.DefaultDependencyResolver.resolveDependencies (DefaultDependencyResolver.java:60) at org.apache.maven.plugins.pmd.PmdReport.determineAuxClasspath (PmdReport.java:556) at org.apache.maven.plugins.pmd.PmdReport.executePmd (PmdReport.java:363) at org.apache.maven.plugins.pmd.PmdReport.canGenerateReport (PmdReport.java:315) at org.apache.maven.reporting.AbstractMavenReport.execute (AbstractMavenReport.java:143) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370) at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) {code} > PMD 3.15.0 and 3.16.0 do not use project repository > --------------------------------------------------- > > Key: MPMD-335 > URL: https://issues.apache.org/jira/browse/MPMD-335 > Project: Maven PMD Plugin > Issue Type: Bug > Reporter: Andre Kalamandeen > Assignee: Andreas Dangel > Priority: Major > Attachments: MPMD-335-aggregate-private-repo.zip > > > I've tried to upgrade PMD to 3.16.0 and noticed that when building it tries > to get artifacts from the default maven repository instead of the repository > configured in the project. > This causes issues with the build as certain artifacts are only available in > the custom repository. > > The build error: > {code:java} > Execution pmd of goal org.apache.maven.plugins:maven-pmd-plugin:3.16.0:pmd > failed: org.apache.maven.reporting.MavenReportException: > org.eclipse.aether.resolution.DependencyResolutionException: The following > artifacts could not be resolved: [REMOVED]: Failure to find [REMOVED] in > https://repo.maven.apache.org/maven2 was cached in the local repository, > resolution will not be reattempted until the update interval of central has > elapsed or updates are forced {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)