Hi I am new in maven technology I am trying to create and run maven project but I am getting an build failure error. while running a project compiler not able to find/load main class. I am not able to find what's the exact error is. please help me out in this.
Thanks in advance.
error:
[ERROR] Failed to execute goal on project Test: Could not resolve dependencies for project com.mavenProject:Test:jar:0.0.1-SNAPSHOT: Could not transfer artifact com.fasterxml.jackson.core:jackson-databind:jar:2.8.9 from/to prod (https://example.com/java-proxy/content/repositories/prod/): Access denied to https://example.com/java-proxy/content/repositories/prod/com/fasterxml/jackson/core/jackson-databind/2.8.9/jackson-databind-2.8.9.jar. Error code 403, Requested item is quarantined -> [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
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mavenProject</groupId>
<artifactId>Test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.9</version>
</dependency>
</dependencies>
</project>
Main Calss:
@SpringBootApplication
public class ProxyReportController {
public static void main(String[] args)
{
SpringApplication.run(com.example.grt.datacomp.proxy.controller.ProxyReportController.class, args);
InputStream inputStream;
try {
inputStream = new FileInputStream("C:\\Desktop\\Files\\report_sample_match_2018-10-19-230920.xls");
try {
Workbook wb1 = WorkbookFactory.create(inputStream);
Sheet sheet = wb1.getSheetAt(0);// getting sheet at 0
System.out.println("Sheet name is:>>>>"+sheet.getSheetName());
Row row1 = sheet.getRow(0);
Iterator cellIter=row1.cellIterator();
while(cellIter.hasNext()){
System.out.println(cellIter.next());
}
} catch (InvalidFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}