[ https://issues.apache.org/jira/browse/MNG-6822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16996492#comment-16996492 ]
Karl Heinz Marbaise edited comment on MNG-6822 at 12/14/19 5:45 PM: -------------------------------------------------------------------- I've tried to build submarine from GitHub master (239db3abed54a98516a70a4b95145bdb3df192c9) which does not even work... furthermore I've taken a look into your {{.travis.yml}} file which is a little bit complex. Furthermore I've spotted a thing which is simply wrong cause you are using {{mvn clean install package}} this means you are repeating several steps. Apart if the {{install}} is really necessary. Usually a {{mvn clean install}} or most of the times even better {{mvn clean verify}}. This wastes many time for building... {code} submarine (master)$ mvn clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module /Users/khmarbaise/ws-git-apache/submarine/submodules/tony/pom.xml of /Users/khmarbaise/ws-git-apache/submarine/pom.xml does not exist @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.apache.submarine:submarine:0.3.0-SNAPSHOT (/Users/khmarbaise/ws-git-apache/submarine/pom.xml) has 1 error [ERROR] Child module /Users/khmarbaise/ws-git-apache/submarine/submodules/tony/pom.xml of /Users/khmarbaise/ws-git-apache/submarine/pom.xml does not exist [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/ProjectBuildingException {code} Please describe which exact state of the project you have referencing and which exact calling parameters (profiles etc.) you have used. Updater: So after I've read about that you are using submodule {{git submodule update --init --recursive}} which makes it now possible to build but it failed via a simply {{mvn clean package}} {code} ... [INFO] Submarine: Dist 0.3.0-SNAPSHOT ..................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:10 min [INFO] Finished at: 2019-12-14T18:40:10+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project commons-metastore: Could not resolve dependencies for project org.apache.submarine:commons-metastore:jar:0.3.0-SNAPSHOT: Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde in nexus (http://localhost:8081/nexus/content/groups/public) -> [Help 1] {code} By having a short look into your pom file you are using very old plugin versions...very old apache parent ... http://maven.apache.org/pom/asf/ was (Author: khmarbaise): I've tried to build submarine from GitHub master (239db3abed54a98516a70a4b95145bdb3df192c9) which does not even work... furthermore I've taken a look into your {{.travis.yml}} file which is a little bit complex. Furthermore I've spotted a thing which is simply wrong cause you are using {{mvn clean install package}} this means you are repeating several steps. Apart if the {{install}} is really necessary. Usually a {{mvn clean install}} or most of the times even better {{mvn clean verify}}. This wastes many time for building... {code} submarine (master)$ mvn clean [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Child module /Users/khmarbaise/ws-git-apache/submarine/submodules/tony/pom.xml of /Users/khmarbaise/ws-git-apache/submarine/pom.xml does not exist @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.apache.submarine:submarine:0.3.0-SNAPSHOT (/Users/khmarbaise/ws-git-apache/submarine/pom.xml) has 1 error [ERROR] Child module /Users/khmarbaise/ws-git-apache/submarine/submodules/tony/pom.xml of /Users/khmarbaise/ws-git-apache/submarine/pom.xml does not exist [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/ProjectBuildingException {code} Please describe which exact state of the project you have referencing and which exact calling parameters (profiles etc.) you have used. > Maven build error when upgrade to 3.6.3 > --------------------------------------- > > Key: MNG-6822 > URL: https://issues.apache.org/jira/browse/MNG-6822 > Project: Maven > Issue Type: Bug > Affects Versions: 3.6.2, 3.6.3 > Reporter: kevin su > Priority: Minor > > We use maven-3.6.2 or 3.6.3 to build Apache submarine,but got below error > {code:java} > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce) on > project tony-mini: org.apache.maven.plugins.enforcer.DependencyConvergence > failed with message: > [ERROR] Failed while enforcing releasability the error(s) are [ > [ERROR] Dependency convergence error for io.netty:netty:3.7.0.Final paths to > dependency are: > [ERROR] +-com.linkedin.tony:tony-mini:0.3.21 > [ERROR] +-org.apache.hadoop:hadoop-common:2.7.3 > [ERROR] +-org.apache.zookeeper:zookeeper:3.4.6 > [ERROR] +-io.netty:netty:3.7.0.Final > [ERROR] and > [ERROR] +-com.linkedin.tony:tony-mini:0.3.21 > [ERROR] +-org.apache.hadoop:hadoop-hdfs:2.7.3 > [ERROR] +-io.netty:netty:3.6.2.Final > [ERROR] and > [ERROR] +-com.linkedin.tony:tony-mini:0.3.21 > [ERROR] +-org.apache.hadoop:hadoop-hdfs:2.7.3 > [ERROR] +-io.netty:netty:3.6.2.Final > [ERROR] and{code} > command : > {code:java} > mvn clean install package -DskipTests{code} > OS: macOS Mojave 10.14.4 > JDK: "1.8.0_221" > Maven: 3.6.2 > latest submarine version > If we use maven-3.6.1, it can successfully build the project. > We can't resolve this problem in our community , so I post here and try to > figure out the error. -- This message was sent by Atlassian Jira (v8.3.4#803005)