Skip to content

Commit 216b00b

Browse files
authored
Merge pull request #796 from b2ihealthcare/improvement/use-mvn-uri-target-definition
Use mvn:uri for b2i hosted p2 dependencies
2 parents effd526 + 879df7c commit 216b00b

File tree

4 files changed

+40
-24
lines changed

4 files changed

+40
-24
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ Required Eclipse plug-ins (install the listed features via `Help` -> `Install Ne
105105
* MWE 2 language SDK 2.11.3 (MWE)
106106
* Groovy Development Tools (https://dist.springsource.org/release/GRECLIPSE/3.9.0/e4.17)
107107
* Eclipse Groovy Development Tools 3.9.0 (Main Package)
108+
* M2Eclipse (https://download.eclipse.org/technology/m2e/releases/latest/)
109+
* m2e 1.17.2
110+
* m2e PDE 1.17.2
108111

109112
### Eclipse Preferences
110113

@@ -118,6 +121,10 @@ Make sure you have the following preferences enabled/disabled.
118121

119122
* Make sure the Git line endings are set to *input* (Preferences->Team->Git->Configuration - add key if missing *core.autocrlf = input*)
120123

124+
### Maven Settings
125+
126+
* Make sure the `settings.xml` in your ~/.m2/settings.xml location is updated with the content from the `settings.xml` from this repository's root folder.
127+
121128
## First steps
122129

123130
1. Import all projects into your Eclipse workspace and wait for the build to complete

pom.xml

-17
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939
<failsafe.version>2.3.1</failsafe.version>
4040
<osgi.versionRange>[3.16.0,3.17.0]</osgi.versionRange>
4141

42-
<!-- p2 repositories -->
43-
<snomed.ecl.version>1.4.1</snomed.ecl.version>
44-
<snomed.ecl.site>mvn:com.b2international:com.b2international.snomed.ecl.update:${snomed.ecl.version}:zip</snomed.ecl.site>
45-
46-
<snomed.ql.version>0.1.1</snomed.ql.version>
47-
<snomed.ql.site>mvn:com.b2international:com.b2international.snomed.ql.update:${snomed.ql.version}:zip</snomed.ql.site>
48-
4942
<!-- Build tool/compiler versions -->
5043
<tycho.version>2.2.0</tycho.version>
5144
<tycho-extras.version>2.2.0</tycho-extras.version>
@@ -130,16 +123,6 @@
130123
<enabled>true</enabled>
131124
</snapshots>
132125
</repository>
133-
<repository>
134-
<id>snomed-ecl</id>
135-
<url>${snomed.ecl.site}</url>
136-
<layout>p2</layout>
137-
</repository>
138-
<repository>
139-
<id>snomed-ql</id>
140-
<url>${snomed.ql.site}</url>
141-
<layout>p2</layout>
142-
</repository>
143126
</repositories>
144127

145128
<dependencies>

releng/target-platform/target-platform.target

+10
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,15 @@
6060
<unit id="org.eclipse.emf.mwe2.language.sdk.feature.group" version="2.11.3.v20200520-0756"/>
6161
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.11.3/"/>
6262
</location>
63+
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
64+
<repository location="mvn:com.b2international:com.b2international.snomed.ecl.update:1.4.1:zip"/>
65+
<unit id="com.b2international.snomed.ecl.feature.feature.group" version="1.4.1"/>
66+
<unit id="com.b2international.snomed.ecl.ui.feature.feature.group" version="1.4.1"/>
67+
</location>
68+
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
69+
<repository location="mvn:com.b2international:com.b2international.snomed.ql.update:0.1.1:zip"/>
70+
<unit id="com.b2international.snomed.ql.feature.feature.group" version="0.1.1"/>
71+
<unit id="com.b2international.snomed.ql.ui.feature.feature.group" version="0.1.1"/>
72+
</location>
6373
</locations>
6474
</target>

settings.xml

+23-7
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,32 @@
44
http://maven.apache.org/xsd/settings-1.0.0.xsd">
55
<profiles>
66
<profile>
7-
<id>repositories</id>
87
<activation>
98
<activeByDefault>true</activeByDefault>
109
</activation>
11-
<properties>
12-
<!-- Nexus instance URL, example: http://example:8081/nexus -->
13-
<nexus.url>url/to/local/nexus/instance</nexus.url>
14-
<nexus.snapshots.url>${nexus.url}/content/repositories/snapshots</nexus.snapshots.url>
15-
<nexus.releases.url>${nexus.url}/content/repositories/releases</nexus.releases.url>
16-
</properties>
10+
<repositories>
11+
<repository>
12+
<id>b2i-releases</id>
13+
<url>https://nexus.b2i.sg/repository/maven-releases</url>
14+
<releases>
15+
<enabled>true</enabled>
16+
</releases>
17+
<snapshots>
18+
<enabled>false</enabled>
19+
</snapshots>
20+
</repository>
21+
<repository>
22+
<id>b2i-snapshots</id>
23+
<url>https://nexus.b2i.sg/repository/maven-snapshots</url>
24+
<releases>
25+
<enabled>false</enabled>
26+
</releases>
27+
<snapshots>
28+
<enabled>true</enabled>
29+
<updatePolicy>always</updatePolicy>
30+
</snapshots>
31+
</repository>
32+
</repositories>
1733
</profile>
1834
</profiles>
1935
<servers>

0 commit comments

Comments
 (0)