pom.xml build failure for https dependencies in Jenkins

Viewed 24

I am creating a jenkins job for running my testng code.When the pom.xml is building,all other dependencies are complied properly but the one having https reporsitory is blocked.Due to this i am unable to start chrome driver through webdriver manager too.

maven dependency :

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-email</artifactId>
    <version>20.3</version>
    <classifier>jdk16</classifier>
</dependency>

the exception is as follows

 Failed to collect dependencies at com.aspose:aspose-email:jar:jdk16:20.3: Failed to read artifact descriptor for com.aspose:aspose-email:jar:jdk16:20.3: Could not transfer artifact com.aspose:aspose-email:pom:20.3 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [AsposeJavaAPI (http://repository.aspose.com/repo/, default, releases+snapshots)] -> [Help 1]

P.S : this code works fine in eclipse

0 Answers
Related