'gradle eclipse'之后Spring项目中的空验证消息

Mat*_*zok 1 eclipse spring war gradle

从使用Maven构建Spring项目迁移到使用gradle构建它之后,我发现了奇怪的空验证错误.

我注意到该路径src/main/webapp/WEB-INF/classes位于Web App Libraries构建路径组下,但是使用Maven-import配置它只是在src目录中.

使用gradle cleanEclipse,清爽和结算项目,也没有删除所有.metadata,.settings,bin,.classpath,.project目录没有帮助.

除了WAR文件建立得很好.

组态:

//----------------------------------------------------------------------------
//                        SERVER'S TASKS' CONFIGURATION
//----------------------------------------------------------------------------

configure(serverProjects) {
    apply plugin : 'war'
    apply plugin : 'eclipse-wtp'

    sourceCompatibility = 1.7
    targetCompatibility = 1.7
}

project(':Server') {
    war {
        destinationDir serverDir
    }
}

...

//----------------------------------------------------------------------------
//                      SERVER'S PROJECTS' CONFIGURATION
//----------------------------------------------------------------------------

project(':Server') {
    eclipse {    
        project {
            natures "com.springsource.sts.gradle.core.nature"
        }

        classpath {
            containers "com.springsource.sts.gradle.classpathcontainer"
        }
    }
}

...

//----------------------------------------------------------------------------
//                    SERVER'S DEPENDENCIES' CONFIGURATION
//----------------------------------------------------------------------------

configure(serverProjects) {
    repositories {
        mavenCentral()
        maven { url 'https://repository.jboss.org/nexus/content/groups/public' }
    }
}

project(':Server') {
    dependencies {
        ...
    }
}
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能确保将项目导入Eclipse而不会出现此问题?

编辑:

我可以看到的唯一信息是这一个:空验证错误http://img689.imageshack.us/img689/2682/vaildationerror.png

据我所知,maven的项目构建没有任何错误,只有少量的警告.现在我看到<form:errors path="field"/>关于"List is generic"的简单呐喊.

EDIT2:

我设法通过将项目配置更改为:以解决一些问题:

//----------------------------------------------------------------------------
//                      SERVER'S PROJECTS' CONFIGURATION
//----------------------------------------------------------------------------

project(':Server') {
    eclipse {    
        project {
            natures      "org.springframework.ide.eclipse.core.springnature"
            buildCommand "org.springframework.ide.eclipse.core.springbuilder"
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

但主要问题 - 验证错误,没有关于它的相关信息 - 仍然存在.

den*_*djr 8

我有同样的问题(我认为).我通过右键单击项目并选择"验证"来解决它.这重新执行了验证并清除了错误.