[ https://issues.apache.org/jira/browse/MRESOLVER-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17552174#comment-17552174 ]
ASF GitHub Bot commented on MRESOLVER-262: ------------------------------------------ grgrzybek commented on PR #182: URL: https://github.com/apache/maven-resolver/pull/182#issuecomment-1151057136 Another plugin doing its own resolution: `com.vaadin.integration.maven.UpdateWidgetsetMojo` - my listener is called, but there's only one RequestTrace available: ``` result = {org.eclipse.aether.RepositoryEvent@41639} "ARTIFACT_RESOLVED ant:ant:pom:1.6.5 (/data/tmp/.m2-ext2-df/ant/ant/1.6.5/ant-1.6.5.pom) @ central (https://repo.maven.apache.org/maven2, default, releases)" artifact: org.eclipse.aether.artifact.Artifact = {org.eclipse.aether.artifact.DefaultArtifact@41691} "ant:ant:pom:1.6.5" exceptions: java.util.List = {java.util.Collections$EmptyList@41694} size = 0 file: java.io.File = {java.io.File@41693} "/data/tmp/.m2-ext2-df/ant/ant/1.6.5/ant-1.6.5.pom" metadata: org.eclipse.aether.metadata.Metadata = null repository: org.eclipse.aether.repository.ArtifactRepository = {org.eclipse.aether.repository.RemoteRepository@41692} "central (https://repo.maven.apache.org/maven2, default, releases)" session: org.eclipse.aether.RepositorySystemSession = {org.eclipse.aether.DefaultRepositorySystemSession@41690} trace: org.eclipse.aether.RequestTrace = {org.eclipse.aether.RequestTrace@41695} "ant:ant:pom:1.6.5 < [apache-snapshots (https://repository.apache.org/content/groups/snapshots-group, default, snapshots), sonatype-ops4j-snapshots (https://oss.sonatype.org/content/repositories/ops4j-snapshots, default, snapshots), prime-repo (https://repository.primefaces.org, default, releases+snapshots), sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, default, snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]" data: java.lang.Object = {org.eclipse.aether.resolution.ArtifactRequest@41641} "ant:ant:pom:1.6.5 < [apache-snapshots (https://repository.apache.org/content/groups/snapshots-group, default, snapshots), sonatype-ops4j-snapshots (https://oss.sonatype.org/content/repositories/ops4j-snapshots, default, snapshots), prime-repo (https://repository.primefaces.org, default, releases+snapshots), sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, default, snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]" artifact: org.eclipse.aether.artifact.Artifact = {org.eclipse.aether.artifact.DefaultArtifact@41705} "ant:ant:pom:1.6.5" context: java.lang.String = {@41707} "" node: org.eclipse.aether.graph.DependencyNode = null repositories: java.util.List = {java.util.ArrayList@41706} size = 5 trace: org.eclipse.aether.RequestTrace = null parent: org.eclipse.aether.RequestTrace = null type: org.eclipse.aether.RepositoryEvent$EventType = {@41689} "ARTIFACT_RESOLVED" ``` > Provide contextual data in trace data for collector invoked requests > -------------------------------------------------------------------- > > Key: MRESOLVER-262 > URL: https://issues.apache.org/jira/browse/MRESOLVER-262 > Project: Maven Resolver > Issue Type: Task > Components: Resolver > Reporter: Tamás Cservenák > Priority: Major > Fix For: 1.8.1 > > > During collection several RepositoryEvents are fired, but they does not carry > any context related data regarding artifact collection. > Simplest solution would be to extend RequestTrace to provide: > * request context > * the artifact path (from root to leaf) > * leaf artifact being collected -- This message was sent by Atlassian Jira (v8.20.7#820007)