Mic*_*zuk 10 java lambda swing java-8
我正在尝试使用Java 1.8
lambda表达式Idea UI Designer
,我在maven中:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>ideauidesigner-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>javac2</goal>
</goals>
</execution>
</executions>
<configuration>
<fork>true</fork>
<debug>true</debug>
<failOnError>true</failOnError>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
和依赖
<dependency>
<groupId>com.intellij</groupId>
<artifactId>forms_rt</artifactId>
<version>7.0.3</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
当我尝试使用lambdas时,它返回编译错误:
Failed to execute goal org.codehaus.mojo:ideauidesigner-maven-plugin:1.0-beta-1:javac2 (default) on project stockbox-chart: Execution default of goal org.codehaus.mojo:ideauidesigner-maven-plugin:1.0-beta-1:javac2 failed: 52264 -> [Help 1]
Run Code Online (Sandbox Code Playgroud)
你有什么想法如何使用lambdas Idea UI Designer
?
一个解决方法,直到有人能够修复插件,是配置你的IntelliJ设置生成GUI作为源而不是二进制文件,然后在你做任何更改时,在运行Maven 之前手动重新生成GUI源在GUI设计器中:
GridLayoutManager
),请com.intellij:forms_rt:7.0.3
在您的内容中添加编译依赖项pom.xml
(如果它尚未存在). 归档时间: |
|
查看次数: |
1042 次 |
最近记录: |