Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

One of the purposes of the new PDT file is to improve to speed to get the fully resolved POM. One of the downsides of the current pom model is that in case of multiple third-party artifacts with their own repository, Maven will always go top-down through the list of repositories. It would help if there's a reference to the location per artifact.

When the artifact is downloaded, Aether generates a _remote.repositories file, which contains the identifier of the repository when this artifact is coming from.

 

 

 

 

Code Block
languagexml
<project>
  <repositories>
    <repository>
      <id/>
      <url/>
    </repository>
  </repositories>

  <artifacts>
    <!-- 
    <artifact>
      <repository>central</repository> 
      <!-- GAV etc -->
      <<repository>central</artifact>repository> 
    <artifact></artifact>
      <repository>jboss</repository><artifact>
      <!-- GAV etc -->
    <  <repository>jboss</artifact>repository>
    </artifact>

    <artifact>
      <!-- no repository reference, which means it must isbe part of a multimodule project.
           When downloading this project, you can Useuse theits repository from thefor "this.project" is coming fromartifact too. -->
      <!-- GAV etc -->
    </artifact>

  </artifacts>
</project>

...