You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by gg...@apache.org on 2017/11/08 11:05:47 UTC
[karaf] branch master updated: localRepositoryPath works now for
maven-invoker-plugin tests (real local repository as remote in it/
This is an automated email from the ASF dual-hosted git repository.
ggrzybek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/master by this push:
new d4ed5e5 localRepositoryPath works now for maven-invoker-plugin tests (real local repository as remote in it/
d4ed5e5 is described below
commit d4ed5e5f47be5ce52adee57b04b2d6726908af84
Author: Grzegorz Grzybek <gr...@gmail.com>
AuthorDate: Wed Nov 8 12:05:37 2017 +0100
localRepositoryPath works now for maven-invoker-plugin tests (real local repository as remote in it/
---
tooling/karaf-maven-plugin/pom.xml | 16 +++++++-
.../src/test/filtered-resources/settings.xml | 43 ++++++++++++++++++++++
2 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/tooling/karaf-maven-plugin/pom.xml b/tooling/karaf-maven-plugin/pom.xml
index fc91e9b..4ea78ab 100644
--- a/tooling/karaf-maven-plugin/pom.xml
+++ b/tooling/karaf-maven-plugin/pom.xml
@@ -35,6 +35,8 @@
<properties>
<appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
<mvn.opts />
+ <invoker.skip />
+ <compiler.fork />
<jacoco-class-line-covered-ratio>0.00</jacoco-class-line-covered-ratio>
<jacoco-class-instruction-covered-ratio>0.00</jacoco-class-instruction-covered-ratio>
<jacoco-class-missed-count-maximum>1</jacoco-class-missed-count-maximum>
@@ -229,6 +231,15 @@
<filtering>true</filtering>
</resource>
</resources>
+ <testResources>
+ <testResource>
+ <directory>${project.basedir}/src/test/resources</directory>
+ </testResource>
+ <testResource>
+ <directory>${project.basedir}/src/test/filtered-resources</directory>
+ <filtering>true</filtering>
+ </testResource>
+ </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -250,8 +261,9 @@
<pomExclude>test-assembly-prop-edits/pom.xml</pomExclude>
</pomExcludes>
<postBuildHookScript>verify</postBuildHookScript>
- <!--<localRepositoryPath>${project.build.directory}/system</localRepositoryPath>-->
- <!--<settingsFile>src/it/settings.xml</settingsFile>-->
+ <localRepositoryPath>${project.build.directory}/system</localRepositoryPath>
+ <settingsFile>${project.build.testOutputDirectory}/settings.xml</settingsFile>
+ <mergeUserSettings>true</mergeUserSettings>
<mavenOpts>${mvn.opts}</mavenOpts>
<skipInstallation>${invoker.skip}</skipInstallation>
<skipInvocation>${invoker.skip}</skipInvocation>
diff --git a/tooling/karaf-maven-plugin/src/test/filtered-resources/settings.xml b/tooling/karaf-maven-plugin/src/test/filtered-resources/settings.xml
new file mode 100644
index 0000000..4be67ea
--- /dev/null
+++ b/tooling/karaf-maven-plugin/src/test/filtered-resources/settings.xml
@@ -0,0 +1,43 @@
+<?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.
+-->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+ <profiles>
+ <profile>
+ <id>maven-invoker-tests</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <repositories>
+ <repository>
+ <id>real-local-repository</id>
+ <url>${session.localRepository.url}</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>real-local-repository</id>
+ <url>${session.localRepository.url}</url>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+ </profiles>
+
+</settings>
--
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <co...@karaf.apache.org>'].