Rahul Sharma created PROVISIONR-46:
--------------------------------------
Summary: Fix Jenkins Build
Key: PROVISIONR-46
URL: https://issues.apache.org/jira/browse/PROVISIONR-46
Project: Provisionr
Issue Type: Improvement
Reporter: Rahul Sharma
The failing build is due to the non-standard maven repository. The build is
made on a ubuntu-slave which has its own local repository at a custom location.
This setting is passed in the build eg in d build 45 the local repos was set
as :
-Dmaven.repo.local=/home/jenkins/jenkins-slave/maven-repositories/1
We need to pass this setting to pax exam which is responsible for determining
maven artifact. The way to do this is to pass this *maven.repo.local* variable
to *org.ops4j.pax.url.mvn.localRepository*. This should be done in the profile
that builds on jenkins.
Karaf has the similar situation the have a test case [1] which looks for
artifact using pax. Thus they build a profile in their pom.xml [2] which can
pick the local repo location and set the required varibale. Also it is easy to
reproduce on local just enable the <localRepositry> tag in
maven/conf/settings.xml.
[1]
https://svn.apache.org/repos/asf/karaf/trunk/itests/src/test/java/org/apache/karaf/itests/KarafTestSupport.java
[2]https://svn.apache.org/repos/asf/karaf/trunk/itests/pom.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira