Java 如何让IntelliJ IDEA正确地从Maven导入RinSim?
我正在尝试使用IntelliJ IDEA从Maven导入3.2.2。我正在运行Windows 8.1 x64。以下是我的POM文件:Java 如何让IntelliJ IDEA正确地从Maven导入RinSim?,java,maven,intellij-idea,rinsim,Java,Maven,Intellij Idea,Rinsim,我正在尝试使用IntelliJ IDEA从Maven导入3.2.2。我正在运行Windows 8.1 x64。以下是我的POM文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
<?xml version="1.0" encoding="UTF-8"?>
<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>be.kuleuven.cs</groupId>
<artifactId>Multi-Agent_Systems</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.github.rinde</groupId>
<artifactId>rinsim-example</artifactId>
<version>3.2.2</version>
</dependency>
</dependencies>
</project>
4.0.0
be.kuleuven.cs
我通过将POM文件修改为64位依赖项中的硬代码来绕过这个问题,但这不是一个干净的解决方案
<?xml version="1.0" encoding="UTF-8"?>
<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>be.kuleuven.cs</groupId>
<artifactId>Multi-Agent_Systems</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86_64</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>com.github.rinde</groupId>
<artifactId>rinsim-example</artifactId>
<version>3.2.2</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.win32.win32.x86</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>swt-repo</id>
<name>SWT Repo</name>
<url>https://swt-repo.googlecode.com/svn/repo/</url>
</repository>
</repositories>
</project>
4.0.0
be.kuleuven.cs
多Agent系统
1.0-快照
org.eclipse.swt
org.eclipse.swt.win32.win32.x86_64
4.4
com.github.rinde
rinsim示例
3.2.2
org.eclipse.swt
org.eclipse.swt.win32.win32.x86
假的
swt回购
SWT回购
https://swt-repo.googlecode.com/svn/repo/
我试图找出问题的原因,图书馆的POM文件似乎是正确的。也许IntelliJ有一个导致这种行为的bug,但我不确定是否是这样
我希望有人能为我提供这个问题的解决方案,或者帮助我找出问题的原因。问题是IntelliJ默认在捆绑的32位JVM上运行
使用idea64.exe
而不是idea.exe
。可执行文件可在C:\ProgramFiles(x86)\JetBrains\IntellijIDEA 14.x.x\bin
中找到
我试过了,它的工作原理和预期的一样。不完全确定,但我认为Idea可能运行在32位JVM中,该JVM将自动激活x86配置文件,因为。我怀疑如果您将Idea JRE更改为x64版本,它将选择正确的配置文件。否则,您应该能够从中选择活动配置文件