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>
      <!-- GAV etc -->
      <repository>central</repository> 
    </artifact>
    <artifact>
      <!-- GAV etc -->
      <repository>jboss</repository>
    </artifact>

    <artifact>
      <!-- no repository reference, which means it must be part of a multimodule project.
           When downloading this project, you can use its repository for this artifact too. -->
      <!-- GAV etc -->
    </artifact>

  </artifacts>
</project>

...