The pom.xml is in my original mail. See
https://lists.apache.org/thread.html/rda29028b2c8985f3b94e721d3014a948b312fbddf95ffaa4971acc03%40%3Cusers.maven.apache.org%3E

Then
```
mvn -N io.takari:maven:wrapper -Dmaven=3.8.2
./mvnw initialize
```

And then

[ERROR] Failed to execute goal
org.codehaus.mojo:flatten-maven-plugin:1.2.7:flatten (flatten) on project
dummy: failed to create a clean pom: unable to create flattened
dependencies: caught exception when flattening dependencies: Failed to read
artifact descriptor for javax.enterprise:cdi-api::1.0: Could not transfer
artifact org.jboss.weld:weld-parent:pom:6 from/to
maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for
repositories: [repository.jboss.org (http://repository.jboss.org/maven2,
default, releases), snapshots.jboss.org (http://snapshots.jboss.org/maven2,
default, snapshots), oss.sonatype.org/jboss-snapshots (
http://oss.sonatype.org/content/repositories/jboss-snapshots, default,
snapshots)] -> [Help 1]

For my purposes I don't need the flatten plugin resolving
parents/transitive dependencies so I changed <flattenDependencyMode> from
all to direct. But maybe someone else would?
Delany

On Sat, 14 Aug 2021 at 16:41, Michael Osipov <micha...@apache.org> wrote:

> This doesn't add up. It runs on your project, not Maven Core.
> Provide a sample project to reproduce.
>
> Am 2021-08-14 um 14:06 schrieb Delany:
> > Hi Michael,
> > Do this `./mvnw dependency:list-repositories`
> > I see
> >
> >    [INFO] --- maven-dependency-plugin:2.8:list-repositories
> (default-cli) @
> > dummy ---
> >    [INFO] Repositories Used by this build:
> >    [INFO]       id: central
> >          url: https://repo.maven.apache.org/maven2
> >       layout: default
> >    snapshots: [enabled => false, update => daily]
> >     releases: [enabled => true, update => daily]
> >       blocked: false
> >
> >    [INFO]       id: maven-default-http-blocker
> >          url: http://0.0.0.0/
> >       layout: default
> >    snapshots: [enabled => false, update => daily]
> >     releases: [enabled => true, update => daily]
> >       blocked: true
> >
> > dependency:tree doesn't show parents, but dependency:list and
> > dependency:resolve do if you ask: `./mvnw dependency:list
> > -DincludeParents=true | grep jboss`.
> >
> > If I delete ~/.m2/repository/org/jboss and do
> > `./mvnw dependency:resolve -DincludeParents=true`
> > it resolves the parent from central
> >
> >    Downloading from central:
> >
> https://repo.maven.apache.org/maven2/org/jboss/weld/weld-parent/6/weld-parent-6.pom
> >
> > Thanks,
> > Delany
> >
> >
> > On Sat, 14 Aug 2021 at 10:30, Michael Osipov <micha...@apache.org>
> wrote:
> >
> >> Am 2021-08-14 um 09:25 schrieb Delany:
> >>> The new org.apache.maven:maven-core:3.8.2 has a transitive dependency
> >>> org.jboss.weld:weld-parent:pom:6, but its source repository is
> >>> http://repository.jboss.org/maven2
> >>>
> >>> When I run flatten-plugin with <flattenDependencyMode> set to "all", it
> >>> fails to resolve.
> >>>
> >>> [ERROR] Failed to execute goal
> >>> org.codehaus.mojo:flatten-maven-plugin:1.2.7:flatten (default-cli) on
> >>> project dummy: failed to create a clean pom: unable to create flattened
> >>> dependencies: caught exception when flattening dependencies: Failed to
> >> read
> >>> artifact descriptor for javax.enterprise:cdi-api::1.0: Could not
> transfer
> >>> artifact org.jboss.weld:weld-parent:pom:6 from/to
> >>> maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for
> >>> repositories: [repository.jboss.org (
> http://repository.jboss.org/maven2,
> >>> default, releases), snapshots.jboss.org (
> >> http://snapshots.jboss.org/maven2,
> >>> default, snapshots), oss.sonatype.org/jboss-snapshots (
> >>> http://oss.sonatype.org/content/repositories/jboss-snapshots, default,
> >>> snapshots)] -> [Help 1]
> >>>
> >>> Shouldn't the maven-core dependency tree at least not contradict
> itself?
> >>
> >> Call me stupid, I don't see it:
> >>> [INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @
> maven-core
> >> ---
> >>> [INFO] org.apache.maven:maven-core:jar:3.8.3-SNAPSHOT
> >>> [INFO] +- org.apache.maven:maven-model:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +- org.apache.maven:maven-settings:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +-
> >> org.apache.maven:maven-settings-builder:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] |  +- org.codehaus.plexus:plexus-interpolation:jar:1.25:compile
> >>> [INFO] |  \- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:compile
> >>> [INFO] +-
> >> org.apache.maven:maven-builder-support:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +-
> >> org.apache.maven:maven-repository-metadata:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +- org.apache.maven:maven-artifact:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +- org.apache.maven:maven-plugin-api:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +-
> org.apache.maven:maven-model-builder:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] +-
> >> org.apache.maven:maven-resolver-provider:jar:3.8.3-SNAPSHOT:compile
> >>> [INFO] |  \- org.slf4j:slf4j-api:jar:1.7.32:compile
> >>> [INFO] +-
> org.apache.maven.resolver:maven-resolver-impl:jar:1.6.3:compile
> >>> [INFO] +-
> org.apache.maven.resolver:maven-resolver-api:jar:1.6.3:compile
> >>> [INFO] +-
> org.apache.maven.resolver:maven-resolver-spi:jar:1.6.3:compile
> >>> [INFO] +-
> org.apache.maven.resolver:maven-resolver-util:jar:1.6.3:compile
> >>> [INFO] +- org.apache.maven.shared:maven-shared-utils:jar:3.3.4:compile
> >>> [INFO] |  \- commons-io:commons-io:jar:2.6:compile
> >>> [INFO] +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.4:compile
> >>> [INFO] |  \- javax.enterprise:cdi-api:jar:1.0:compile
> >>> [INFO] |     \- javax.annotation:jsr250-api:jar:1.0:compile
> >>> [INFO] +- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.4:compile
> >>> [INFO] +- com.google.inject:guice:jar:no_aop:4.2.2:compile
> >>> [INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
> >>> [INFO] |  \- com.google.guava:guava:jar:25.1-android:compile
> >>> [INFO] |     +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
> >>> [INFO] |     +-
> >> org.checkerframework:checker-compat-qual:jar:2.0.0:compile
> >>> [INFO] |     +-
> >> com.google.errorprone:error_prone_annotations:jar:2.1.3:compile
> >>> [INFO] |     +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
> >>> [INFO] |     \-
> >> org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
> >>> [INFO] +- javax.inject:javax.inject:jar:1:compile
> >>> [INFO] +- org.codehaus.plexus:plexus-utils:jar:3.2.1:compile
> >>> [INFO] +- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile
> >>> [INFO] +-
> >> org.codehaus.plexus:plexus-component-annotations:jar:2.1.0:compile
> >>> [INFO] +- org.codehaus.plexus:plexus-cipher:jar:1.8:test
> >>> [INFO] +- org.apache.commons:commons-lang3:jar:3.8.1:compile
> >>> [INFO] +- commons-jxpath:commons-jxpath:jar:1.3:test
> >>> [INFO] +- org.mockito:mockito-core:jar:2.21.0:test
> >>> [INFO] |  +- net.bytebuddy:byte-buddy:jar:1.8.15:test
> >>> [INFO] |  +- net.bytebuddy:byte-buddy-agent:jar:1.8.15:test
> >>> [INFO] |  \- org.objenesis:objenesis:jar:2.6:test
> >>> [INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
> >>> [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
> >>> [INFO] \- junit:junit:jar:4.12:test
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to