У меня есть настройка кластера зажигания.Существует база данных postgres, которая имеет схему.Я импортировал эту схему в ignite.Все имена таблиц дополнены работой «Кэш».Например, Account -> AccountCache
Если я поиграюсь с консолью и осмотрю свой ImportedCluster (это имя по умолчанию для импортируемого), я могу увидеть ссылку под экраном, чтобы увидеть структуру проекта.Здесь мне предлагается диалоговое окно, в котором я могу увидеть структуру проекта.
Используя опцию Save and Download
(т.е. синюю кнопку с названием «Сохранить») на рисунке ниже, я могу загрузить этот проект.Как мне запустить этот проект в intellij IDE?
Обновление:
В intellij ide я разобралсяКак настроить проект Maven.И в окне проектов maven я щелкнул по install> Run maven build, как показано на рисунке.
Вот результат, который он дал:
"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\code\java-intellij\ignite-project "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.6\lib\idea_rt.jar=53750:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.6\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.2.6 install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ImportedCluster-project 2.7.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-core/2.7.0/ignite-core-2.7.0.pom
[WARNING] The POM for org.apache.ignite:ignite-core:jar:2.7.0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-spring/2.7.0/ignite-spring-2.7.0.pom
[WARNING] The POM for org.apache.ignite:ignite-spring:jar:2.7.0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-indexing/2.7.0/ignite-indexing-2.7.0.pom
[WARNING] The POM for org.apache.ignite:ignite-indexing:jar:2.7.0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-rest-http/2.7.0/ignite-rest-http-2.7.0.pom
[WARNING] The POM for org.apache.ignite:ignite-rest-http:jar:2.7.0 is missing, no dependency information available
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-core/2.7.0/ignite-core-2.7.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-spring/2.7.0/ignite-spring-2.7.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-indexing/2.7.0/ignite-indexing-2.7.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/ignite/ignite-rest-http/2.7.0/ignite-rest-http-2.7.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.876 s
[INFO] Finished at: 2018-11-24T08:20:59+05:30
[INFO] Final Memory: 9M/85M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ImportedCluster-project: Could not resolve dependencies for project org.apache.ignite:ImportedCluster-project:jar:2.7.0: The following artifacts could not be resolved: org.apache.ignite:ignite-core:jar:2.7.0, org.apache.ignite:ignite-spring:jar:2.7.0, org.apache.ignite:ignite-indexing:jar:2.7.0, org.apache.ignite:ignite-rest-http:jar:2.7.0: Could not find artifact org.apache.ignite:ignite-core:jar:2.7.0 in central (https://repo.maven.apache.org/maven2) -> [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
Process finished with exit code 1
Возможно, двоичные файлы версии 2.7.0 недоступны?
Вот текущий файл pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file was generated by Ignite Web Console (11/23/2018, 14:12) -->
<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>org.apache.ignite</groupId>
<artifactId>ImportedCluster-project</artifactId>
<version>2.7.0</version>
<dependencies>
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-core</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-spring</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-indexing</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-rest-http</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.4.1212.jre7</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-libs</id>
<phase>test-compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<excludeGroupIds>org.apache.ignite</excludeGroupIds>
<outputDirectory>target/libs</outputDirectory>
<includeScope>compile</includeScope>
<excludeTransitive>true</excludeTransitive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>