Move OSGi metadata generation to apache-release profile

Jenkins is failing because Java 8 is enforced. Now, we need Java 8 at
release time only.
diff --git a/maven-resolver-api/pom.xml b/maven-resolver-api/pom.xml
index 5bac02b..605673e 100644
--- a/maven-resolver-api/pom.xml
+++ b/maven-resolver-api/pom.xml
@@ -1,79 +1,83 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-api</artifactId>

-

-  <name>Maven Artifact Resolver API</name>

-  <description>

-    The application programming interface for the repository system.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}.api</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.mockito</groupId>

-      <artifactId>mockito-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-api</artifactId>
+
+  <name>Maven Artifact Resolver API</name>
+  <description>
+    The application programming interface for the repository system.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}.api</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.mockito</groupId>
+      <artifactId>mockito-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-connector-basic/pom.xml b/maven-resolver-connector-basic/pom.xml
index e10a8e9..5346f87 100644
--- a/maven-resolver-connector-basic/pom.xml
+++ b/maven-resolver-connector-basic/pom.xml
@@ -1,115 +1,125 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-connector-basic</artifactId>

-

-  <name>Maven Artifact Resolver Connector Basic</name>

-  <description>

-      A repository connector implementation for repositories using URI-based layouts.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.connector.basic</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-util</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-api</artifactId>

-    </dependency>

-    <dependency>

-       <groupId>org.slf4j</groupId>

-       <artifactId>slf4j-simple</artifactId>

-       <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-connector-basic</artifactId>
+
+  <name>Maven Artifact Resolver Connector Basic</name>
+  <description>
+      A repository connector implementation for repositories using URI-based layouts.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.connector.basic</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-util</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+    <dependency>
+       <groupId>org.slf4j</groupId>
+       <artifactId>slf4j-simple</artifactId>
+       <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-impl/pom.xml b/maven-resolver-impl/pom.xml
index 207faf0..7d0d0f7 100644
--- a/maven-resolver-impl/pom.xml
+++ b/maven-resolver-impl/pom.xml
@@ -1,127 +1,137 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-impl</artifactId>

-

-  <name>Maven Artifact Resolver Implementation</name>

-  <description>

-    An implementation of the repository system.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.impl</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-util</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.commons</groupId>

-      <artifactId>commons-lang3</artifactId>

-      <version>3.8.1</version>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.eclipse.sisu</groupId>

-      <artifactId>org.eclipse.sisu.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-simple</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-impl</artifactId>
+
+  <name>Maven Artifact Resolver Implementation</name>
+  <description>
+    An implementation of the repository system.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.impl</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-util</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.commons</groupId>
+      <artifactId>commons-lang3</artifactId>
+      <version>3.8.1</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.sisu</groupId>
+      <artifactId>org.eclipse.sisu.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-spi/pom.xml b/maven-resolver-spi/pom.xml
index 2b0d15c..28db23b 100644
--- a/maven-resolver-spi/pom.xml
+++ b/maven-resolver-spi/pom.xml
@@ -1,77 +1,82 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-spi</artifactId>

-

-  <name>Maven Artifact Resolver SPI</name>

-  <description>

-    The service provider interface for repository system implementations and repository connectors.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.spi</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-spi</artifactId>
+
+  <name>Maven Artifact Resolver SPI</name>
+  <description>
+    The service provider interface for repository system implementations and repository connectors.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.spi</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-synccontext-global/pom.xml b/maven-resolver-synccontext-global/pom.xml
index adaef66..ee9607c 100644
--- a/maven-resolver-synccontext-global/pom.xml
+++ b/maven-resolver-synccontext-global/pom.xml
@@ -73,19 +73,29 @@
         <groupId>org.eclipse.sisu</groupId>
         <artifactId>sisu-maven-plugin</artifactId>
       </plugin>
-      <plugin>
-        <groupId>biz.aQute.bnd</groupId>
-        <artifactId>bnd-maven-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
-          </archive>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
diff --git a/maven-resolver-synccontext-redisson/pom.xml b/maven-resolver-synccontext-redisson/pom.xml
index 2d21773..ab21a1c 100644
--- a/maven-resolver-synccontext-redisson/pom.xml
+++ b/maven-resolver-synccontext-redisson/pom.xml
@@ -82,19 +82,29 @@
         <groupId>org.eclipse.sisu</groupId>
         <artifactId>sisu-maven-plugin</artifactId>
       </plugin>
-      <plugin>
-        <groupId>biz.aQute.bnd</groupId>
-        <artifactId>bnd-maven-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
-          </archive>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>
diff --git a/maven-resolver-test-util/pom.xml b/maven-resolver-test-util/pom.xml
index 92716ee..e4efc95 100644
--- a/maven-resolver-test-util/pom.xml
+++ b/maven-resolver-test-util/pom.xml
@@ -1,81 +1,86 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-test-util</artifactId>

-

-  <name>Maven Artifact Resolver Test Utilities</name>

-  <description>

-    A collection of utility classes to ease testing of the repository system.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.testutil</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-test-util</artifactId>
+
+  <name>Maven Artifact Resolver Test Utilities</name>
+  <description>
+    A collection of utility classes to ease testing of the repository system.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.testutil</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-transport-classpath/pom.xml b/maven-resolver-transport-classpath/pom.xml
index 4f4d4df..655c554 100644
--- a/maven-resolver-transport-classpath/pom.xml
+++ b/maven-resolver-transport-classpath/pom.xml
@@ -1,106 +1,116 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-transport-classpath</artifactId>

-

-  <name>Maven Artifact Resolver Transport Classpath</name>

-  <description>

-      A transport implementation for repositories using classpath:// URLs.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.transport.classpath</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-util</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-transport-classpath</artifactId>
+
+  <name>Maven Artifact Resolver Transport Classpath</name>
+  <description>
+      A transport implementation for repositories using classpath:// URLs.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.transport.classpath</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-util</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-transport-file/pom.xml b/maven-resolver-transport-file/pom.xml
index 4ab0308..d64a8df 100644
--- a/maven-resolver-transport-file/pom.xml
+++ b/maven-resolver-transport-file/pom.xml
@@ -1,111 +1,121 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-transport-file</artifactId>

-

-  <name>Maven Artifact Resolver Transport File</name>

-  <description>

-      A transport implementation for repositories using file:// URLs.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.transport.file</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-simple</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-transport-file</artifactId>
+
+  <name>Maven Artifact Resolver Transport File</name>
+  <description>
+      A transport implementation for repositories using file:// URLs.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.transport.file</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-transport-http/pom.xml b/maven-resolver-transport-http/pom.xml
index 7c44b4c..dcd7803 100644
--- a/maven-resolver-transport-http/pom.xml
+++ b/maven-resolver-transport-http/pom.xml
@@ -1,164 +1,174 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-transport-http</artifactId>

-

-  <name>Maven Artifact Resolver Transport HTTP</name>

-  <description>

-      A transport implementation for repositories using http:// and https:// URLs.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.transport.http</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-    <jettyVersion>9.2.26.v20180806</jettyVersion>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-util</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.httpcomponents</groupId>

-      <artifactId>httpclient</artifactId>

-      <version>4.5.12</version>

-      <exclusions>

-        <exclusion>

-          <!-- using jcl-over-slf4j instead -->

-          <groupId>commons-logging</groupId>

-          <artifactId>commons-logging</artifactId>

-        </exclusion>

-      </exclusions>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.httpcomponents</groupId>

-      <artifactId>httpcore</artifactId>

-      <version>4.4.13</version>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>jcl-over-slf4j</artifactId>

-      <version>${slf4jVersion}</version>

-      <scope>runtime</scope>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.eclipse.jetty</groupId>

-      <artifactId>jetty-server</artifactId>

-      <version>${jettyVersion}</version>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.eclipse.jetty</groupId>

-      <artifactId>jetty-util</artifactId>

-      <version>${jettyVersion}</version>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.eclipse.jetty</groupId>

-      <artifactId>jetty-http</artifactId>

-      <version>${jettyVersion}</version>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-simple</artifactId>

-      <version>${slf4jVersion}</version>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>javax.servlet</groupId>

-      <artifactId>javax.servlet-api</artifactId>

-      <version>3.1.0</version>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-transport-http</artifactId>
+
+  <name>Maven Artifact Resolver Transport HTTP</name>
+  <description>
+      A transport implementation for repositories using http:// and https:// URLs.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.transport.http</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+    <jettyVersion>9.2.26.v20180806</jettyVersion>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-util</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.httpcomponents</groupId>
+      <artifactId>httpclient</artifactId>
+      <version>4.5.12</version>
+      <exclusions>
+        <exclusion>
+          <!-- using jcl-over-slf4j instead -->
+          <groupId>commons-logging</groupId>
+          <artifactId>commons-logging</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.httpcomponents</groupId>
+      <artifactId>httpcore</artifactId>
+      <version>4.4.13</version>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>jcl-over-slf4j</artifactId>
+      <version>${slf4jVersion}</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty</groupId>
+      <artifactId>jetty-server</artifactId>
+      <version>${jettyVersion}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty</groupId>
+      <artifactId>jetty-util</artifactId>
+      <version>${jettyVersion}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty</groupId>
+      <artifactId>jetty-http</artifactId>
+      <version>${jettyVersion}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <version>${slf4jVersion}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>javax.servlet-api</artifactId>
+      <version>3.1.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-transport-wagon/pom.xml b/maven-resolver-transport-wagon/pom.xml
index 430adc2..1c2497f 100644
--- a/maven-resolver-transport-wagon/pom.xml
+++ b/maven-resolver-transport-wagon/pom.xml
@@ -1,137 +1,147 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-transport-wagon</artifactId>

-

-  <name>Maven Artifact Resolver Transport Wagon</name>

-  <description>

-    A transport implementation based on Maven Wagon.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.transport.wagon</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-spi</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-util</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.wagon</groupId>

-      <artifactId>wagon-provider-api</artifactId>

-      <version>3.4.0</version>

-    </dependency>

-    <dependency>

-      <groupId>javax.inject</groupId>

-      <artifactId>javax.inject</artifactId>

-      <scope>provided</scope>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.codehaus.plexus</groupId>

-      <artifactId>plexus-classworlds</artifactId>

-      <version>2.6.0</version>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.codehaus.plexus</groupId>

-      <artifactId>plexus-utils</artifactId>

-      <version>3.3.0</version>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.eclipse.sisu</groupId>

-      <artifactId>org.eclipse.sisu.plexus</artifactId>

-      <optional>true</optional>

-    </dependency>

-    <dependency>

-      <groupId>org.sonatype.sisu</groupId>

-      <artifactId>sisu-guice</artifactId>

-      <classifier>no_aop</classifier>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.slf4j</groupId>

-      <artifactId>slf4j-simple</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>org.eclipse.sisu</groupId>

-        <artifactId>sisu-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-transport-wagon</artifactId>
+
+  <name>Maven Artifact Resolver Transport Wagon</name>
+  <description>
+    A transport implementation based on Maven Wagon.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.transport.wagon</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-spi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-util</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.wagon</groupId>
+      <artifactId>wagon-provider-api</artifactId>
+      <version>3.4.0</version>
+    </dependency>
+    <dependency>
+      <groupId>javax.inject</groupId>
+      <artifactId>javax.inject</artifactId>
+      <scope>provided</scope>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-classworlds</artifactId>
+      <version>2.6.0</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>3.3.0</version>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.sisu</groupId>
+      <artifactId>org.eclipse.sisu.plexus</artifactId>
+      <optional>true</optional>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <classifier>no_aop</classifier>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.sisu</groupId>
+        <artifactId>sisu-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/maven-resolver-util/pom.xml b/maven-resolver-util/pom.xml
index 989405f..698580f 100644
--- a/maven-resolver-util/pom.xml
+++ b/maven-resolver-util/pom.xml
@@ -1,82 +1,87 @@
-<?xml version="1.0" encoding="UTF-8"?>

-

-<!--

-  Licensed to the Apache Software Foundation (ASF) under one

-  or more contributor license agreements.  See the NOTICE file

-  distributed with this work for additional information

-  regarding copyright ownership.  The ASF licenses this file

-  to you under the Apache License, Version 2.0 (the

-  "License"); you may not use this file except in compliance

-  with the License.  You may obtain a copy of the License at

-

-  http://www.apache.org/licenses/LICENSE-2.0

-

-  Unless required by applicable law or agreed to in writing,

-  software distributed under the License is distributed on an

-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

-  KIND, either express or implied.  See the License for the

-  specific language governing permissions and limitations

-  under the License.

--->

-

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-

-  <parent>

-    <groupId>org.apache.maven.resolver</groupId>

-    <artifactId>maven-resolver</artifactId>

-    <version>1.6.2-SNAPSHOT</version>

-  </parent>

-

-  <artifactId>maven-resolver-util</artifactId>

-

-  <name>Maven Artifact Resolver Utilities</name>

-  <description>

-    A collection of utility classes to ease usage of the repository system.

-  </description>

-

-  <properties>

-    <Automatic-Module-Name>org.apache.maven.resolver.util</Automatic-Module-Name>

-    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>

-  </properties>

-

-  <dependencies>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-api</artifactId>

-    </dependency>

-    <dependency>

-      <groupId>org.apache.maven.resolver</groupId>

-      <artifactId>maven-resolver-test-util</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>junit</groupId>

-      <artifactId>junit</artifactId>

-      <scope>test</scope>

-    </dependency>

-    <dependency>

-      <groupId>org.hamcrest</groupId>

-      <artifactId>hamcrest-core</artifactId>

-      <scope>test</scope>

-    </dependency>

-  </dependencies>

-

-  <build>

-    <plugins>

-      <plugin>

-        <groupId>biz.aQute.bnd</groupId>

-        <artifactId>bnd-maven-plugin</artifactId>

-      </plugin>

-      <plugin>

-        <groupId>org.apache.maven.plugins</groupId>

-        <artifactId>maven-jar-plugin</artifactId>

-        <configuration>

-          <archive>

-            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

-          </archive>

-        </configuration>

-      </plugin>

-    </plugins>

-  </build>

-</project>

+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.maven.resolver</groupId>
+    <artifactId>maven-resolver</artifactId>
+    <version>1.6.2-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>maven-resolver-util</artifactId>
+
+  <name>Maven Artifact Resolver Utilities</name>
+  <description>
+    A collection of utility classes to ease usage of the repository system.
+  </description>
+
+  <properties>
+    <Automatic-Module-Name>org.apache.maven.resolver.util</Automatic-Module-Name>
+    <Bundle-SymbolicName>${Automatic-Module-Name}</Bundle-SymbolicName>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.resolver</groupId>
+      <artifactId>maven-resolver-test-util</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-core</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>bnd-maven-plugin</artifactId>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-jar-plugin</artifactId>
+            <configuration>
+              <archive>
+                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+              </archive>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/pom.xml b/pom.xml
index 448b2bb..7b6e8c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -383,27 +383,6 @@
         </plugin>
       </plugins>
     </pluginManagement>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-enforcer-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>enforce-minimum-java-version</id>
-            <goals>
-              <goal>enforce</goal>
-            </goals>
-            <configuration>
-              <rules>
-                <requireJavaVersion>
-                  <version>1.8.0</version><!-- for bnd-maven-plugin -->
-                </requireJavaVersion>
-              </rules>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
   </build>
 
   <profiles>
@@ -519,6 +498,10 @@
                       <version>(,9)</version>
                       <message>Release with Java 7 or 8 due to changed signatures of java.nio.ByteBuffer (MRESOLVER-67)</message>
                     </requireJavaVersion>
+                    <requireJavaVersion>
+                      <version>1.8.0</version>
+                      <message>bnd-maven-plugin requires at least Java 8 to run</message>
+                    </requireJavaVersion>
                   </rules>
                 </configuration>
               </execution>