che icon indicating copy to clipboard operation
che copied to clipboard

Unable to run mvn clean install successfully for sample project of che-ide-extending

Open dkapuganti opened this issue 10 years ago • 10 comments

getting following error:

result

dkapuganti avatar Mar 25 '16 10:03 dkapuganti

We discovered some Pom errors in the sample extensions yesterday. They will be fixed by Monday.

TylerJewell avatar Mar 25 '16 11:03 TylerJewell

The error says there's no connection to our public Maven repo. Can you repeatedly reproduce it?

ghost avatar Mar 25 '16 12:03 ghost

@eivantsov I think this is due to the bad groupid / artifactid. I am going to do some improvements / fixes to the sample extensions this weekend. Also, we are missing the third example (the one that connects the IDE + Server together) in /che-samples. So will add that, too.

TylerJewell avatar Mar 25 '16 13:03 TylerJewell

I have just compiled this extension in Che.

ghost avatar Mar 25 '16 14:03 ghost

@dkapuganti We have fixed these issues and should be ok now.

TylerJewell avatar Mar 25 '16 14:03 TylerJewell

@dkapuganti you seem to have no connection to maven.codenvycorp.com which is where parent pom is. Maven fails to download it, and thus considers this pom as non resolvable.

Make sure you can connect to maven.codenvycorp.com - try to build this extension locally, without Che - you will need JDK 1.8 and Maven

ghost avatar Mar 26 '16 07:03 ghost

In this thread you mentioned proxy https://github.com/eclipse/che/issues/810

I am sure this is the problem here. You may want to add the following to your settings.xml

<settings>
      <proxies>
       <proxy>
          <id>example-proxy</id>
          <active>true</active>
          <protocol>http</protocol>
          <host>proxy.example.com</host>
          <port>${port}</port>
          <username>proxyuser</username>
          <password>somepassword</password>
          <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
        </proxy>
      </proxies>
    </settings>

ghost avatar Mar 26 '16 07:03 ghost

where exactly is this settings.xml?

dkapuganti avatar Mar 26 '16 08:03 dkapuganti

it's in $M2_HOME/conf/settings.xml

ghost avatar Mar 26 '16 10:03 ghost

I suppose you fixed the problem by configuring Maven to use proxy - https://github.com/eclipse/che/issues/816

ghost avatar Mar 26 '16 14:03 ghost