Skip to content

Commit

Permalink
Remove mit-public Maven repo (#347)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
jechague authored and iroqueta committed Oct 25, 2024
1 parent ddcf060 commit e5ac4fc
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
with:
java-version: 1.9

- name: Setup Maven settings
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'

- name: Calculate build variables
id: buildVariables
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
with:
java-version: 1.9

- name: Setup Maven settings
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: '[{ "id": "github-genexuslabs", "url": "https://maven.pkg.github.com/genexuslabs/Private-Maven-for-GX", "releases": { "enabled": "true" }, "snapshots": { "enabled": "true" } }]'
servers: '[{ "id": "github-genexuslabs", "username": "genexusbot", "password": "${{ secrets.SECURE_TOKEN }}" }]'

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ The dependencies between the projects are specified in each pom.xml within their
- JDK 9 or greater
- Maven 3.6 or greater

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).

In order to install the connector into the Maven local repository, open a terminal and execute:
``` powershell
mvn install:install-file -DgroupId=com.sap.conn.jco -DartifactId=sapjco3 -Dversion=3.0.14 -Dpackaging=jar -Dfile=sapjco3.jar
```
(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))

# Instructions

## How to build all projects?
Expand Down
1 change: 1 addition & 0 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<groupId>com.sap.conn.jco</groupId>
<artifactId>sapjco3</artifactId>
<version>3.0.14</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.ws.security</groupId>
Expand Down
8 changes: 0 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
<module>androidreports</module>
</modules>

<repositories>
<repository>
<id>mit-public</id>
<name>MIT Public</name>
<url>http://maven.mit.edu/nexus/content/repositories/public</url>
</repository>
</repositories>

<licenses>
<license>
<name>Apache 2.0</name>
Expand Down

0 comments on commit e5ac4fc

Please sign in to comment.