che icon indicating copy to clipboard operation
che copied to clipboard

getting dependencies error while running pom

Open dkapuganti opened this issue 10 years ago • 15 comments

result1

dkapuganti avatar Mar 25 '16 11:03 dkapuganti

What version do you use for <parent>? Also, can you elaborate on what you are trying to achieve?

ghost avatar Mar 25 '16 12:03 ghost

4.0.0-RC13 is parent version

dkapuganti avatar Mar 25 '16 13:03 dkapuganti

Worked for me. Are you sure your pom.xml is ok?

image

ghost avatar Mar 25 '16 13:03 ghost

@dkapuganti Is this the one you are trying to build https://github.com/che-samples/che-ide-extension.git

rnavagamuwa avatar Mar 26 '16 05:03 rnavagamuwa

yes i am trying to build the project brought from https://github.com/che-samples/che-ide-extension.git

dkapuganti avatar Mar 26 '16 05:03 dkapuganti

It builds without giving any errors. I think the problem here is, your forked branch is some commits behind the original branch Can you check that? I also got some errors when I was trying to build this once but now they have fixed those issues. Now works fine for me.

rnavagamuwa avatar Mar 26 '16 05:03 rnavagamuwa

what's the branch name u used?

dkapuganti avatar Mar 26 '16 06:03 dkapuganti

master branch

rnavagamuwa avatar Mar 26 '16 06:03 rnavagamuwa

used the same but still getting same errors can u post the pom.xml of it here?

dkapuganti avatar Mar 26 '16 06:03 dkapuganti

<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2012-2016 Codenvy, S.A.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v1.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v10.html

    Contributors:
      Codenvy, S.A. - initial API and implementation

-->
<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/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>che-parent</artifactId>
        <groupId>org.eclipse.che</groupId>
        <version>4.0.0-SNAPSHOT</version>
    </parent>
    <artifactId>che-examples-action</artifactId>
    <packaging>jar</packaging>
    <name>Che :: Examples :: Action</name>
    <dependencies>
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
        </dependency>
        <dependency>
            <groupId>org.eclipse.che.core</groupId>
            <artifactId>che-core-ide-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.vectomatic</groupId>
            <artifactId>lib-gwt-svg</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>codenvy-public-repo</id>
            <name>codenvy public</name>
            <url>https://maven.codenvycorp.com/content/groups/public/</url>
        </repository>
        <repository>
            <id>codenvy-public-snapshots-repo</id>
            <name>codenvy public snapshots</name>
            <url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>codenvy-public-repo</id>
            <name>codenvy public</name>
            <url>https://maven.codenvycorp.com/content/groups/public/</url>
        </pluginRepository>
        <pluginRepository>
            <id>codenvy-public-snapshots-repo</id>
            <name>codenvy public snapshots</name>
            <url>https://maven.codenvycorp.com/content/repositories/codenvy-public-snapshots/</url>
        </pluginRepository>
    </pluginRepositories>
    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.java</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
        </resources>
    </build>
</project>

rnavagamuwa avatar Mar 26 '16 06:03 rnavagamuwa

ya its same but getting following error re

dkapuganti avatar Mar 26 '16 06:03 dkapuganti

Did you build Che before building the extension. Seems like your parent pom is missing

rnavagamuwa avatar Mar 26 '16 06:03 rnavagamuwa

ya i am building it once again will look if error repeats again

dkapuganti avatar Mar 26 '16 07:03 dkapuganti

@dkapuganti looks like you cannot connect to maven.codenvycorp.com which is a public maven repository. As a result, parent pom cannot be resolved.

Take a look at my comment here - https://github.com/eclipse/che/issues/816

ghost avatar Mar 26 '16 07:03 ghost

thanks for the support guys now i am able to run the extension in the eclipse ide.

dkapuganti avatar Mar 26 '16 11:03 dkapuganti