The root cause seems to be embedded in your output: Could not transfer artifact org.apache.apex:malhar-library:pom:3.5.0 from/to central ( https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
Could this be because a corporate firewall is stopping this access? You can check this out http://stackoverflow.com/questions/25911623/problems-using-maven-and-ssl-behind-proxy On Mon, Feb 27, 2017 at 3:15 PM, Dongming Liang <dongming.li...@gmail.com> wrote: > It was running well with 3.4, but now failing with Apex 3.5 > > ➜ log-aggregator git:(apex-tcp) ✗ mvn package -DskipTests > [INFO] Scanning for projects... > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Aggregator 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > Downloading: > https://repo.maven.apache.org/maven2/org/apache/apex/malhar- > library/3.5.0/malhar-library-3.5.0.pom > Downloading: > https://repo.maven.apache.org/maven2/org/apache/apex/apex- > api/3.5.0/apex-api-3.5.0.pom > Downloading: > https://repo.maven.apache.org/maven2/org/apache/apex/apex- > common/3.5.0/apex-common-3.5.0.pom > Downloading: > https://repo.maven.apache.org/maven2/org/apache/apex/apex- > engine/3.5.0/apex-engine-3.5.0.pom > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 10.435 s > [INFO] Finished at: 2017-02-27T15:03:06-08:00 > [INFO] Final Memory: 11M/245M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal on project log-aggregator: Could not resolve > dependencies for project > com.capitalone.vault8:log-aggregator:jar:1.0-SNAPSHOT: Failed to collect > dependencies at org.apache.apex:malhar-library:jar:3.5.0: Failed to read > artifact descriptor for org.apache.apex:malhar-library:jar:3.5.0: Could > not > transfer artifact org.apache.apex:malhar-library:pom:3.5.0 from/to > central ( > https://repo.maven.apache.org/maven2): > sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to find > valid certification path to requested target -> [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 > ➜ log-aggregator git:(apex-tcp) ✗ > > The pom file is: > > <?xml version="1.0" encoding="UTF-8"?> > <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.mycom.teamx</groupId> > <artifactId>log-aggregator</artifactId> > <packaging>jar</packaging> > <version>1.0-SNAPSHOT</version> > > <!-- change these to the appropriate values --> > <name>Aggregator</name> > <description>Log Aggregator</description> > > <properties> > <!-- change this if you desire to use a different version of Apex Core > --> > <apex.version>3.5.0</apex.version> > <apex.apppackage.classpath>lib/*.jar</apex.apppackage.classpath> > </properties> > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-eclipse-plugin</artifactId> > <version>2.9</version> > <configuration> > <downloadSources>true</downloadSources> > </configuration> > </plugin> > <plugin> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.3</version> > <configuration> > <encoding>UTF-8</encoding> > <source>1.7</source> > <target>1.7</target> > <debug>true</debug> > <optimize>false</optimize> > <showDeprecation>true</showDeprecation> > <showWarnings>true</showWarnings> > </configuration> > </plugin> > <plugin> > <artifactId>maven-dependency-plugin</artifactId> > <version>2.8</version> > <executions> > <execution> > <id>copy-dependencies</id> > <phase>prepare-package</phase> > <goals> > <goal>copy-dependencies</goal> > </goals> > <configuration> > <outputDirectory>target/deps</outputDirectory> > <includeScope>runtime</includeScope> > </configuration> > </execution> > </executions> > </plugin> > > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <executions> > <execution> > <id>app-package-assembly</id> > <phase>package</phase> > <goals> > <goal>single</goal> > </goals> > <configuration> > <finalName>${project.artifactId}-${project.version} > -apexapp</finalName> > <appendAssemblyId>false</appendAssemblyId> > <descriptors> > <descriptor>src/assemble/appPackage.xml</descriptor> > </descriptors> > <archiverConfig> > <defaultDirectoryMode>0755</defaultDirectoryMode> > </archiverConfig> > <archive> > <manifestEntries> > <Class-Path>${apex.apppackage.classpath}</Class-Path> > <DT-Engine-Version>${apex.version}</DT-Engine-Version> > > <DT-App-Package-Group-Id>${project.groupId}</DT-App-Package-Group-Id> > > <DT-App-Package-Name>${project.artifactId}</DT-App-Package-Name> > > <DT-App-Package-Version>${project.version}</DT-App-Package-Version> > > <DT-App-Package-Display-Name>${project.name}</DT-App-Package-Display-Name> > > <DT-App-Package-Description>${project.description}</DT-App- > Package-Description> > </manifestEntries> > </archive> > </configuration> > </execution> > </executions> > </plugin> > > <plugin> > <artifactId>maven-antrun-plugin</artifactId> > <version>1.7</version> > <executions> > <execution> > <phase>package</phase> > <configuration> > <target> > <move > file="${project.build.directory}/${project.artifactId}-${project.version} > -apexapp.jar" > > tofile="${project.build.directory}/${project. > artifactId}-${project.version}.apa" > /> > </target> > </configuration> > <goals> > <goal>run</goal> > </goals> > </execution> > </executions> > </plugin> > > > > </plugins> > > </build> > > <dependencies> > <!-- add your dependencies here --> > <dependency> > <groupId>org.apache.apex</groupId> > <artifactId>malhar-library</artifactId> > <version>${apex.version}</version> > <exclusions> > <exclusion> > <groupId>*</groupId> > <artifactId>*</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.apache.apex</groupId> > <artifactId>apex-api</artifactId> > <version>${apex.version}</version> > </dependency> > <dependency> > <groupId>org.apache.apex</groupId> > <artifactId>apex-common</artifactId> > <version>${apex.version}</version> > <exclusions> > <exclusion> > <groupId>*</groupId> > <artifactId>*</artifactId> > </exclusion> > </exclusions> > </dependency> > > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.10</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.apache.apex</groupId> > <artifactId>apex-engine</artifactId> > <version>${apex.version}</version> > <scope>test</scope> > <exclusions> > <exclusion> > <groupId>*</groupId> > <artifactId>*</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>joda-time</groupId> > <artifactId>joda-time</artifactId> > <version>2.9.1</version> > </dependency> > <dependency> > <groupId>javax.validation</groupId> > <artifactId>validation-api</artifactId> > <version>1.1.0.Final</version> > </dependency> > <dependency> > <groupId>org.apache.hadoop</groupId> > <artifactId>hadoop-common</artifactId> > <version>2.3.0</version> > </dependency> > </dependencies> > > </project> > > > Thanks, > - Dongming >