GitLab AutoDevops with Oracle artifacts

rafael.braga

I've set up a GitLab project that uses Oracle JDBC. The Oracle driver is not in Maven Central Repository, so I've added it on my project manually. That means that, locally, my builds run just fine.

The catch: I want to use GitLab's devops feature. However, my project won't build on GitLab because of this dependency issue, giving me the following error on maven build:

Could not find artifact com.oracle:ojdbc7:jar:12.1.0.2 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

I want to know how can I supply this dependency so that my project can be built successfully.

Has anyone experienced a similar issue?

POM.xml contains:

<dependency>
  <groupId>com.oracle</groupId>
  <artifactId>ojdbc7</artifactId>
  <version>12.1.0.2</version>
</dependency>
Dmitriy Yankin

If your pom.xml contains a dependency - then you should provide it or delete it.

If you're not trying to understand "maven" way of doing things and just want to make it work - try this "lazy" solution:

<repository>
 <id>code-lds</id>
 <url>https://code.lds.org/nexus/content/groups/main-repo</url>
</repository>

Add this repository to your section. It's a widely-used third-party repository that contains several common artifacts like Oracle drivers and etc.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Building different images for each environment with Gitlab-CI AutoDevOps

Gitlab Autodevops How to always keep one pod alive

Gitlab: missing pages artifacts

Gitlab ci artifacts not found

Gitlab CI Angular Artifacts not accessible

Get artifacts of included gitlab template

Artifacts between pipeline tasks in Gitlab

Upload Gitlab CI artifacts to a storage outside Gitlab

Gitlab's autodevops: Herokuish buildpack test can't find chrome binary

Oracle and GitLab

Saving gitlab job artifacts with different conditions (when)

Gitlab ci - differences in artifacts app jar

Managing (older) CI artifacts in GitLab CE Omnibus

What is the correct usage of cache/artifacts in Gitlab CI?

GitLab CI Build not uploading artifacts of codeception

Python GitLab - Getting artifacts result in list error

Is there a way to upload GitLab CI artifacts to an Openshift container?

Gitlab Ci saving artifacts after running gulp

Gitlab runner artifacts : 405 Method Not allowed

Gitlab's artifacts zip file is empty

Download the latest artifacts of failed gitlab pipeline

How to delete artifacts directory on gitlab runner after uploading them to gitlab?

Maven Oracle artifacts pom dependencies configuration

gitlab - trying to upload files from shared docker volume as artifacts

GitLab CI-Build Artifacts command line download

Where does Gitlab CI build stores artifacts into runner?

How to run gitlab-runner job locally that requires artifacts

How to specify wildcard artifacts subdirectories in .gitlab-ci.yml?

gitlab-pages: no files (artifacts) to archive, so no website