Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented FORGE-863 #310

Closed
wants to merge 2 commits into from
Closed

Implemented FORGE-863 #310

wants to merge 2 commits into from

Conversation

myannou
Copy link

@myannou myannou commented Apr 23, 2013

No description provided.

List<Repository> repositories = profile.getRepositories();
for (Repository repository : repositories)
{
settingsRepos.add(RepositoryUtils.convertFromMavenSettingsRepository(repository));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this handled by "populateDefaults()" ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be more precise, it is handle by the method "processRepositoriesInSettings" in DefaultMavenExecutionRequestPopulator

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the code present in DefaultMavenExecutionRequestPopulator.populateDefaults, I see that mirrors are also handled. Could you check if the code below is really needed yet ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we need to set the mirrorSelector on the repositorySession
and repositorySession is not handled by populateDefaults
otherwise maven.getMavenProject().getRemoteProjectRepositories(); won't have the correct repositories...

to avoid setting the mirror stuff on the repositorySession we would need to use org.apache.maven.DefaultMaven.newRepositorySession( MavenExecutionRequest request )
But I don't know how we can use this method inside forge...see my other comment on that subject

@gastaldi
Copy link
Member

Merged. Thanks !!!

@gastaldi gastaldi closed this Apr 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants