Forum Discussion

dumbuser's avatar
dumbuser
Occasional Contributor
5 years ago
Solved

Using maven plugin with GitLab - dependencies could not be resolved

Hi. I've been having some difficulties setting up my SoapUI test in Gitlab pipeline. At first I was successful getting them to run in principle. By now I added my real tests into the project and g...
  • dumbuser's avatar
    5 years ago

    If anyone is facing something similar then my problem, as it turned out, was that Gitlab runner didn't have permission to access the postgres database. It did get the driver, but couldn't connect due to security settings.

    Anyhow I still had problems with oracle driver, since it's not publically in smartbear repo. What I did is that I added the driver locally with the help of this tutorial: https://gist.github.com/timmolderez/92bea7cc90201cd3273a07cf21d119eb

    So in the end my pom looked something like this:

     

    <pluginRepositories>
        <pluginRepository>
            <id>SmartBearPluginRepository</id>
            <url>https://rapi.tools.ops.smartbear.io/nexus/content/groups/public/</url>
        </pluginRepository>
        <pluginRepository>
            <id>in-project</id>
            <name>In Project Repo</name>
            <url>file://${project.basedir}/lib</url>
        </pluginRepository>
    </pluginRepositories>

    and

                 <dependency>
                     <groupId>oracle</groupId>
                     <artifactId>ojdbc</artifactId>
                     <version>6.0</version>
                 </dependency>

    groupId, artifactId and version (also folder names and jar, pom files, of course) named like the tutorial said.