intellij-13

Intellij and sbt 0.13.5 “URI has an authority component”

谁都会走 提交于 2019-11-29 08:13:05
I'm working on a play framework project using Java as well as Amazon Web Services. This is my build.sbt: name := """RegistrationEndpoint""" version := "1.0" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.5" libraryDependencies ++= Seq( javaJdbc, cache, javaWs ) // Play provides two styles of routers, one expects its actions to be injected, the // other, legacy style, accesses its actions statically. //routesGenerator := InjectedRoutesGenerator It runs with activator if I call "activator run" on the command line. Intellij cannot build the project. It

Error: scala: No 'scala-library*.jar' in Scala compiler library

微笑、不失礼 提交于 2019-11-29 04:46:15
问题 Environment: Play 2.3.0/Scala 2.11.1/IntelliJ 13.1 I used Typesafe Activator 1.2.1 to create a new project with Scala 2.11.1. After the project was created, I ran gen-idea . The generated IDEA project fails to compile with the error: Error: scala: No 'scala-library*.jar' in Scala compiler library in test Am I doing something wrong? Workaround? 回答1: Since IDEA 13 you should use SBT support which is bundled with Scala plugin. With it there is no need to add third-party SBT plugins and run

Intellij IDEA artifact 'XXXX:war exploded' has invalid extension

僤鯓⒐⒋嵵緔 提交于 2019-11-28 21:14:10
问题 Every time I make even the tiniest change to my POM Intellij removes the .war extension for my exploded artifact in the Project Structure output directory setting. This causes an error in Intellij's Run/Debug configuration: Artifact 'XXXX:war exploded' has invalid extension. In order to resolve the issue I must manually override the Project Structure output directory setting. Every time I make even the tiniest change to the POM I must go back to the Output directory setting and manually

“Cannot start compilation: the output path is not specified for module…”

别等时光非礼了梦想. 提交于 2019-11-28 20:45:26
问题 I have a very simple Java + Gradle project. It builds fine. It runs fine from the shell with "gradle run". However, if I try to run inside of IntelliJ, I get: Cannot start compilation: the output path is not specified for module "xyz" Specify the output path in Configure Project. My "Compiler output" is set to "Inherit project compile output path". I don't want a custom output path, whatever that is, just do a normal gradle build and run. 回答1: You just have to go to your Module settings >

Selected directory is not a valid home for JDK - Intellij IDEA on Ubuntu

半城伤御伤魂 提交于 2019-11-28 18:41:14
问题 After installing Intellij Idea 14, with OracleJDK 1.8 u25 (64 bit) on my 14.04 Ubuntu system, I cannot configure the Java SDK to use any JDK. When I navigate to Module Settings->SDK and click configure SDK, the add button, and then select /usr/java/jdk1.8.0_25 in the dialog, I get an error popup stating that "The selected directory is not a valid home for JDK." I've checked the contents of the directory, which contains a bin folder with both java and javac inside, a lib folder and a jre

Intellij, project navigation. Expand all folder and file tree

天涯浪子 提交于 2019-11-28 17:24:36
Is it possible to expand the entire project tree in Intellij? I would like to do this so I can more easily search the structure and jump back and forth between files and folders. I know of double shift, and CTRL+SHIFT+N, but that is not what I am after. There is a Fully Expand Tree Node action, which is bound to Numpad * key ( * ) by default. But if you use this key, it doesn't expand the whole tree, rather it expands the first level and when you press it again it expands subsequent levels, and so on. But it can still do what you're trying to achieve. Just click the tree item you want to

`-Dmaven.multiModuleProjectDirectory not set` issue with Maven and IntelliJ

旧巷老猫 提交于 2019-11-28 06:21:36
I've spent quite some time trying to figure out what I'm doing wrong and hoping someone may be able to help. My current setup is running Maven 3.3.3 (via homebrew) and Java 1.8. IntelliJ 13 is the IDE of choice. Running mvn -version results in the following: Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04- 22T12:57:37+01:00) Maven home: /usr/local/Cellar/maven/3.3.3/libexec Java version: 1.8.0_45, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x",

IntelliJ IDEA 13.1 - Updating maven repository index authentication failure

徘徊边缘 提交于 2019-11-28 05:20:33
When I want to update indices from the central Maven repository, I always get an error: java.lang.RuntimeException: java.io.IOException: Authorization exception retrieving nexes-maven-repository-index.properties. What I am missing here? It's a known issue . The workaround is to disable an option to Use Maven 3 in IDEA Settings | Maven | Importing . Another workaround is to replace Maven jars in IDEA distribution with more recent versions. Original problem will be fixed in IDEA 13.1.2 (to be released soon). 来源: https://stackoverflow.com/questions/22593733/intellij-idea-13-1-updating-maven

Intellij and sbt 0.13.5 “URI has an authority component”

佐手、 提交于 2019-11-28 01:39:17
问题 I'm working on a play framework project using Java as well as Amazon Web Services. This is my build.sbt: name := """RegistrationEndpoint""" version := "1.0" lazy val root = (project in file(".")).enablePlugins(PlayJava) scalaVersion := "2.11.5" libraryDependencies ++= Seq( javaJdbc, cache, javaWs ) // Play provides two styles of routers, one expects its actions to be injected, the // other, legacy style, accesses its actions statically. //routesGenerator := InjectedRoutesGenerator It runs

Intellij, project navigation. Expand all folder and file tree

笑着哭i 提交于 2019-11-27 10:25:46
问题 Is it possible to expand the entire project tree in Intellij? I would like to do this so I can more easily search the structure and jump back and forth between files and folders. I know of double shift, and CTRL+SHIFT+N, but that is not what I am after. 回答1: There is a Fully Expand Tree Node action, which is bound to Numpad * key ( * ) by default. But if you use this key, it doesn't expand the whole tree, rather it expands the first level and when you press it again it expands subsequent