File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
tools/esmf-aspect-model-maven-plugin/src/main/java/org/eclipse/esmf/aspectmodel Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ public abstract class AspectModelMojo extends AbstractMojo {
92
92
@ Parameter ( defaultValue = "${session}" , readonly = true )
93
93
protected MavenSession mavenSession ;
94
94
95
+ @ Parameter
96
+ protected Map <String , String > resolutionConfiguration = new HashMap <>();
97
+
95
98
protected GithubModelSourceConfig gitHubConfig ;
96
99
97
100
private Map <AspectModel , Aspect > aspects ;
@@ -126,6 +129,11 @@ protected Set<AspectModel> loadModels() throws MojoExecutionException {
126
129
private AspectModelLoader createAspectModelLoader () throws MojoExecutionException {
127
130
final List <ResolutionStrategy > strategies = new ArrayList <>();
128
131
132
+ if ( resolutionConfiguration != null && !resolutionConfiguration .isEmpty () ) {
133
+ for ( final Map .Entry <String , String > config : resolutionConfiguration .entrySet () ) {
134
+ System .setProperty ( config .getKey (), config .getValue () );
135
+ }
136
+ }
129
137
for ( final ResolutionStrategy strategy : ServiceLoader .load ( ResolutionStrategy .class ) ) {
130
138
strategies .add ( strategy );
131
139
}
You can’t perform that action at this time.
0 commit comments