it is not downloading the jasperrreports dependency.
Summary
Summarize the bug encountered concisely
Steps to reproduce
A project that has as a dependency:
<!-- Jasper Reports -->
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>5.1.0</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
<exclusion>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</exclusion>
<exclusion>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
Actual behavior
In the console of the Job is presenting the following error:
[ERROR] Failed to execute goal on project pyme-backend-utils: Could not resolve dependencies for project pe.bbvacontinental.pyme.backend.utils:pyme-backend-utils:jar:1.0.0: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:5.1.0 -> com.lowagie:itext:jar:2.1.7.js2: Failed to read artifact descriptor for com.lowagie:itext:jar:2.1.7.js2: Could not transfer artifact com.lowagie:itext:pom:2.1.7.js2 from/to jasperreports (http://jasperreports.sourceforge.net/maven2): Connect to jasperreports.sourceforge.net:80 [jasperreports.sourceforge.net/216.34.181.96] failed: Connection timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :pyme-backend-utils
ERROR: Job failed: exit code 1
Expected behavior
I hope that everything is successful and in the end can download the artifact.
Relevant logs and/or screenshots
Environment description
I am use .gitlab-ci.yml
image: maven:3.2.5-jdk-6
stages:
- test
test:
stage: test
script:
- echo "Corriendo los ears de front y back"
- ls
- cd ./pyme_2_0
- mvn -version
- mvn clean install -P test -DskipTests
- cd ..
- cp pyme_2_0/pyme-backend/pyme-backend-ear/target/pyme_backend_rest.ear ./
- cp pyme_2_0/pyme-frontend/pyme-frontend-ear/target/pyme_frontend_web.ear ./
when: manual
artifacts:
paths:
- pyme_backend_rest.ear
- pyme_frontend_web.ear
expire_in: 1 week
name: "EARs"
Used GitLab Runner version
Running with gitlab-runner 10.0.0-rc.1 (6331f360)
on docker-auto-scale (e11ae361)
Using Docker executor with image maven:3.2.5-jdk-6 ...
Using docker image sha256:5634bca65f8402ab65ff9fd2fe0d9305a57bf8c08f3ff0a01cea4f61aed656d4 for predefined container...
Pulling docker image maven:3.2.5-jdk-6 ...
Using docker image maven:3.2.5-jdk-6 ID=sha256:aad0d16b733437897d17d42afa46c677a0c5b4cb1250c2c06208df7cc1005b1f for build container...
Running on runner-e11ae361-project-3927671-concurrent-0 via runner-e11ae361-machine-1506613417-1e3730ab-digital-ocean-2gb...
Cloning repository...
Cloning into '/builds/bbvape/holding-sys/webpymes'...
Checking out f2a21a12 as Performance...
Skipping Git submodules setup
$ echo "Corriendo los ears de front y back"
Corriendo los ears de front y back
$ ls
bitbucket-pipelines.yml
pyme_2_0
readme.md
web.xml
web_pyme_quartz
$ cd ./pyme_2_0
$ mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/share/maven
Java version: 1.6.0_34, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.11.12-coreos-r1", arch: "amd64", family: "unix"
$ mvn clean install -P test -DskipTests
Edited by Tomasz Maczukin
