File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
src/test/java/org/hibernate/validator/osgi/integrationtest Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 169
169
<configuration >
170
170
<reuseForks >false</reuseForks >
171
171
<systemPropertyVariables >
172
+ <maven .settings.localRepository>${settings.localRepository} </maven .settings.localRepository>
172
173
<maven .mavencentral.repo.url>${mavencentral.repo.url} </maven .mavencentral.repo.url>
173
174
</systemPropertyVariables >
174
175
</configuration >
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public Option[] config() {
67
67
.type ( "xml" )
68
68
.versionAsInProject ();
69
69
70
+ String mavenLocalRepository = System .getProperty ( "maven.settings.localRepository" );
70
71
String mavenCentralRepository = System .getProperty ( "maven.mavencentral.repo.url" );
71
72
72
73
return options (
@@ -94,6 +95,26 @@ public Option[] config() {
94
95
"featuresBoot" ,
95
96
"system"
96
97
),
98
+ /*
99
+ * Use the same local Maven repository as the build job.
100
+ * This allows to retrieve the just-installed artifacts in case
101
+ * the local repo was overridden from the command line.
102
+ *
103
+ * See https://ops4j1.jira.com/wiki/spaces/paxurl/pages/3833866/Mvn+Protocol for more information
104
+ * on the configuration below.
105
+ */
106
+ editConfigurationFilePut (
107
+ "etc/org.ops4j.pax.url.mvn.cfg" ,
108
+ "org.ops4j.pax.url.mvn.defaultRepositories" ,
109
+ "file://" + mavenLocalRepository
110
+ + "@snapshots"
111
+ + "@id=local-repo-from-maven-settings"
112
+ ),
113
+ editConfigurationFilePut (
114
+ "etc/org.ops4j.pax.url.mvn.cfg" ,
115
+ "org.ops4j.pax.url.mvn.localRepository" ,
116
+ mavenLocalRepository
117
+ ),
97
118
editConfigurationFilePut ( // Erase the defaults: Maven Central uses HTTP by default...
98
119
"etc/org.ops4j.pax.url.mvn.cfg" ,
99
120
"org.ops4j.pax.url.mvn.repositories" ,
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ public Option[] config() {
90
90
.type ( "xml" )
91
91
.versionAsInProject ();
92
92
93
+ String mavenLocalRepository = System .getProperty ( "maven.settings.localRepository" );
93
94
String mavenCentralRepository = System .getProperty ( "maven.mavencentral.repo.url" );
94
95
95
96
return options (
@@ -117,6 +118,26 @@ public Option[] config() {
117
118
"featuresBoot" ,
118
119
"system"
119
120
),
121
+ /*
122
+ * Use the same local Maven repository as the build job.
123
+ * This allows to retrieve the just-installed artifacts in case
124
+ * the local repo was overridden from the command line.
125
+ *
126
+ * See https://ops4j1.jira.com/wiki/spaces/paxurl/pages/3833866/Mvn+Protocol for more information
127
+ * on the configuration below.
128
+ */
129
+ editConfigurationFilePut (
130
+ "etc/org.ops4j.pax.url.mvn.cfg" ,
131
+ "org.ops4j.pax.url.mvn.defaultRepositories" ,
132
+ "file://" + mavenLocalRepository
133
+ + "@snapshots"
134
+ + "@id=local-repo-from-maven-settings"
135
+ ),
136
+ editConfigurationFilePut (
137
+ "etc/org.ops4j.pax.url.mvn.cfg" ,
138
+ "org.ops4j.pax.url.mvn.localRepository" ,
139
+ mavenLocalRepository
140
+ ),
120
141
editConfigurationFilePut ( // Erase the defaults: Maven Central uses HTTP by default...
121
142
"etc/org.ops4j.pax.url.mvn.cfg" ,
122
143
"org.ops4j.pax.url.mvn.repositories" ,
You can’t perform that action at this time.
0 commit comments