This is an automated email from the ASF dual-hosted git repository.
simonetripodi pushed a commit to branch apisjar_sources
in repository
https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git
The following commit(s) were added to refs/heads/apisjar_sources by this push:
new 12c3c5b SLING-8253 - Make the APIs JARs source collector able to
checkout SCMs if -sources artifacts are not available
12c3c5b is described below
commit 12c3c5b176351b29b9cf8dfe0997daffdc90edf4
Author: Simo Tripodi <[email protected]>
AuthorDate: Mon Jan 28 14:42:05 2019 +0100
SLING-8253 - Make the APIs JARs source collector able to checkout SCMs
if -sources artifacts are not available
added the ability to suppress profiles resolution when resolving POM
models
---
src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
index 2b56f36..477b64c 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
@@ -137,6 +137,9 @@ public class ApisJarMojo extends
AbstractIncludingFeatureMojo implements ModelRe
@Parameter
private Set<String> suppressSCMResolutions;
+ @Parameter
+ private List<String> suppressResolvedProfiles;
+
@Component(hint = "default")
private ModelBuilder modelBuilder;
@@ -344,8 +347,7 @@ public class ApisJarMojo extends
AbstractIncludingFeatureMojo implements ModelRe
ModelBuildingRequest request = new DefaultModelBuildingRequest();
request.setProcessPlugins(false);
request.setPomFile(pomFile);
- // check later if we still need to suppress profiles in order to
resolve models
- // request.setInactiveProfileIds(suppressResolvedProfiles);
+ request.setInactiveProfileIds(suppressResolvedProfiles);
request.setValidationLevel(ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL);
request.setModelResolver(this);