我正在使用Flexmojos在IntelliJ设置中运行多项目构建.
所有flex模块都有一个共同的父pom文件,该文件从Artifactory下载.这种依赖似乎得到了妥善解决,但当我点击"重新导入所有Maven项目",或对任何子pom文件进行更改时,我收到错误
Flexmojos Project Import
**Failed to generate Flex compiler configuration file.**
The pipe has been ended
Flexmojos Project Import
**Failed to generate Flex compiler configuration file.**
exit code: 1
Run Code Online (Sandbox Code Playgroud)
在父pom中定义的Globals(使用maven'define'标签)在任何子项目中都不可见,如果我进入"Project Structure",那么
"Build configurations '[child artifactId]': additional compiler configuration file not found: [absolute path]"
Run Code Online (Sandbox Code Playgroud)
,这是缺少配置文件的症状.
我认为这是一个设置(IntelliJ?Maven?Java?)问题,因为我的同事拥有来自SVN的相同代码并且没有相同的问题.
关于从哪里开始寻找的任何线索?
编辑:
摘自idea.log
2013-08-13 16:35:34,213 [1978178] INFO - #org.jetbrains.idea.maven - Generating flex configs pathToBundledJar: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\plugins\flex\lib\flexmojos-flex-configs-generator-server.jar
2013-08-13 16:35:34,214 [1978179] INFO - #org.jetbrains.idea.maven - Generate Flex Configs Task:"c:\program files\java\jdk1.7.0_25\jre\bin\java" -Dfile.encoding=windows-1252 -classpath "C:\Program …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一组具有不同抽象级别的类.我将在这里使用Vector示例.
我的目标是我的类的用户可以选择要使用的抽象级别,即他们可能或可能不想使用更多派生类.
interface IVector
{
Vector A();
}
interface ISparseVector : IVector
{
new SparseVector A();
}
Run Code Online (Sandbox Code Playgroud)
现在,我实现这样的类:
class Vector : IVector
{
public Vector A() { return new Vector(); }
}
class SparseVector : Vector,ISparseVector
{
public new SparseVector A() { return new SparseVector(); }
}
Run Code Online (Sandbox Code Playgroud)
这一切都很好,花花公子.但是,当基类是抽象的时,例如:
abstract class Vector : IVector
{
public abstract Vector A();
}
class SparseVector : Vector,ISparseVector
{
public SparseVector A() { return new SparseVector(); } // Hides abstract member.
}
Run Code Online (Sandbox Code Playgroud)
我得到一个编译错误,说派生的方法隐藏了Vector中的抽象方法.知道怎么解决这个问题吗?