Skip to content

mvn clean build error #56

Open
Open

Description

@dischord01

I just pulled and tried to build this and got an error. Please be kind, I'm not a Java expert.

mvn --version                                                                                                                 
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T11:41:47-05:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac"
git clone https://github.com/codenvy/plugin-openshift
cd plugin-openshift
mvn clean install

.....

[INFO] Scanning for projects...
Downloading: https://maven.codenvycorp.com/content/groups/public/org/eclipse/che/depmgt/maven-depmgt-pom/5.2.0-SNAPSHOT/maven-metadata.xml
Downloading: https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/org/eclipse/che/depmgt/maven-depmgt-pom/5.2.0-SNAPSHOT/maven-metadata.xml
Downloading: https://maven.codenvycorp.com/content/groups/public/org/eclipse/che/depmgt/maven-depmgt-pom/5.2.0-SNAPSHOT/maven-depmgt-pom-5.2.0-SNAPSHOT.pom
Downloading: https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/org/eclipse/che/depmgt/maven-depmgt-pom/5.2.0-SNAPSHOT/maven-depmgt-pom-5.2.0-SNAPSHOT.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT: Could not find artifact org.eclipse.che.depmgt:maven-depmgt-pom:pom:5.2.0-SNAPSHOT in codenvy-public-repo (https://maven.codenvycorp.com/content/groups/public/) and 'parent.relativePath' points at wrong local POM @ line 16, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT (/Users/dischord01/.che/plugin-openshift/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT: Could not find artifact org.eclipse.che.depmgt:maven-depmgt-pom:pom:5.2.0-SNAPSHOT in codenvy-public-repo (https://maven.codenvycorp.com/content/groups/public/) and 'parent.relativePath' points at wrong local POM @ line 16, column 13 -> [Help 2]
[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
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Activity

  1. TylerJewell commented on Mar 3, 2017

    @TylerJewell

    It looks like the plugin is trying to depend upon Codenvy 5.2.0-SNAPSHOT, which was wiped from our dependency servers. In the branch that you have, there are some changes that need to be made to the pom.xml dependencies so that it's using the latest libraries that are located in our Maven repository, so pointing to either 5.4.0 or 5.5.0-SNAPSHOT.

    Did you have your branch on an older version perhaps?

  2. dischord01 commented on Mar 3, 2017

    @dischord01
    Author

    Not sure, I was just pulling from master. I will make updates and let you know.

  3. dischord01 commented on Mar 6, 2017

    @dischord01
    Author

    I updated the POM here

    <parent>
            <artifactId>maven-depmgt-pom</artifactId>
            <groupId>org.eclipse.che.depmgt</groupId>
            <version>5.5.0-SNAPSHOT</version>
    </parent>
    

    and here

    <properties>
            <che.version>5.5.0-SNAPSHOT</che.version>
            <com.openshift.restclient.version>4.0.5.Final</com.openshift.restclient.version>
            <dto-generator-out-directory>${project.build.directory}/generated-sources/dto/</dto-generator-out-directory>
    </properties>
    

    It seemed to go to the right places but failed compiling.

    1 error
    1 warning
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Openshift :: Plugin :: Parent ...................... SUCCESS [  3.235 s]
    [INFO] Che Plugin :: Openshift :: Parent .................. SUCCESS [  0.068 s]
    [INFO] Che Plugin :: Openshift :: Shared .................. SUCCESS [  6.884 s]
    [INFO] Che Plugin :: Openshift :: OAuth2 .................. SUCCESS [  4.820 s]
    [INFO] Che Plugin :: Openshift :: Server .................. SUCCESS [ 29.157 s]
    [INFO] Che Plugin :: Openshift :: Client .................. SUCCESS [ 35.053 s]
    [INFO] Che IDE :: Parent .................................. SUCCESS [  0.132 s]
    [INFO] Che Openshift Workspace Agent War Packaging ........ SUCCESS [ 19.820 s]
    [INFO] Che Assembly Workspace Agent Server ................ SUCCESS [  3.985 s]
    [INFO] Che Openshift IDE :: Compiling GWT Application ..... SUCCESS [03:23 min]
    [INFO] Che IDE :: Compiling WS Master WAR ................. FAILURE [  5.035 s]
    [INFO] Che IDE :: Assemblies Tomcat ....................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 05:13 min
    [INFO] Finished at: 2017-03-06T11:24:28-05:00
    [INFO] Final Memory: 153M/2696M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project openshift-plugin-assembly-wsmaster-war: Compilation failure -> [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/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :openshift-plugin-assembly-wsmaster-war
    

    I really have no idea what the issues is. Is there a prebuilt plugin somewhere I can use?

  4. TylerJewell commented on Mar 6, 2017

    @TylerJewell

    It's hard to say what the issue is because you cut off the primary error in your output - so we need more details. But in looking at it - you should not be changing this:

    <properties>
            <che.version>5.5.0-SNAPSHOT</che.version>
            <com.openshift.restclient.version>4.0.5.Final</com.openshift.restclient.version>
            <dto-generator-out-directory>${project.build.directory}/generated-sources/dto/</dto-generator-out-directory>
    </properties>
    
  5. dischord01 commented on Mar 6, 2017

    @dischord01
    Author

    Can you point me at a updated/correct POM? I have no idea what I need to change in the POM to get this to work. I don't want to keep bothering you but, I know zero Java and Im just going off what is says on the Che website https://www.eclipse.org/che/docs/openshift/config/.

    git clone https://github.com/codenvy/plugin-openshift
    cd plugin-openshift
    mvn clean install
    
  6. carljmosca commented on Apr 3, 2017

    @carljmosca

    Is there an update on this issue? I am unable to build the project.

    [INFO] Scanning for projects...
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT: Failure to find org.eclipse.che.depmgt:maven-depmgt-pom:pom:5.6.0-SNAPSHOT in https://maven.codenvycorp.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of codenvy-public-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 16, column 13
     @ 
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]   
    [ERROR]   The project org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT (/Users/moscac/dev/plugin-openshift/pom.xml) has 1 error
    [ERROR]     Non-resolvable parent POM for org.eclipse.che:openshift-plugin-parent:0.1.0-SNAPSHOT: Failure to find org.eclipse.che.depmgt:maven-depmgt-pom:pom:5.6.0-SNAPSHOT in https://maven.codenvycorp.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of codenvy-public-repo has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 16, column 13 -> [Help 2]
    [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
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
    
  7. sarancruzer commented on Jun 18, 2018

    @sarancruzer

    root@ctl57:/var/www/html/kurento/kurento-room# mvn clean package -am -pl kurento-room-demo -DskipTests
    [INFO] Scanning for projects...
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for org.kurento:kurento-room:[unknown-version]: Could not find artifact org.kurento:kurento-parent-pom:pom:6.6.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 10
    @
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]
    [ERROR] The project org.kurento:kurento-room:[unknown-version] (/var/www/html/kurento/kurento-room/pom.xml) has 1 error
    [ERROR] Non-resolvable parent POM for org.kurento:kurento-room:[unknown-version]: Could not find artifact org.kurento:kurento-parent-pom:pom:6.6.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]
    [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
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions