Skip to content

Commit e5ac4fc

Browse files
jechagueiroqueta
authored andcommitted
Remove mit-public Maven repo (#347)
* Make com.sap.conn.jco:sapjco3 an optional dependency * Setup GitHub Packages as Maven repository * Add instructions for installing SAP's JCo in Maven (cherry picked from commit 84b1d36)
1 parent ddcf060 commit e5ac4fc

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

.github/workflows/Build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
with:
3535
java-version: 1.9
3636

37+
- name: Setup Maven settings
38+
uses: whelk-io/maven-settings-xml-action@v14
39+
with:
40+
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
41+
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'
42+
3743
- name: Calculate build variables
3844
id: buildVariables
3945
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ jobs:
5353
with:
5454
java-version: 1.9
5555

56+
- name: Setup Maven settings
57+
uses: whelk-io/maven-settings-xml-action@v14
58+
with:
59+
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
60+
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'
61+
5662
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5763
# If this step fails, then you should remove it and run the build manually (see below)
5864
- name: Autobuild

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ The dependencies between the projects are specified in each pom.xml within their
3232
- JDK 9 or greater
3333
- Maven 3.6 or greater
3434

35+
In order to compile the *java* submodule, the [SAP JCo (SAP Java Connector)](https://support.sap.com/en/product/connectors/jco.html) needs to be installed in a Maven repository accessible while compiling (eg. the local Maven repository). This JAR can be downloaded from SAP's website (please note that a valid SAP Developer license may be required).
36+
37+
In order to install the connector into the Maven local repository, open a terminal and execute:
38+
``` powershell
39+
mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.0.14 -Dpackaging=jar -Dfile=sapjco3.jar
40+
```
41+
(The required version of the JCo jar can be found in [the POM file of the java submodule](https://github.com/genexuslabs/JavaClasses/blob/master/java/pom.xml))
42+
3543
# Instructions
3644

3745
## How to build all projects?

java/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
<groupId>com.sap.conn.jco</groupId>
147147
<artifactId>sapjco3</artifactId>
148148
<version>3.0.14</version>
149+
<optional>true</optional>
149150
</dependency>
150151
<dependency>
151152
<groupId>org.apache.ws.security</groupId>

pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
<module>androidreports</module>
3838
</modules>
3939

40-
<repositories>
41-
<repository>
42-
<id>mit-public</id>
43-
<name>MIT Public</name>
44-
<url>http://maven.mit.edu/nexus/content/repositories/public</url>
45-
</repository>
46-
</repositories>
47-
4840
<licenses>
4941
<license>
5042
<name>Apache 2.0</name>

0 commit comments

Comments
 (0)