Note that there are some explanatory texts on larger screens.

plurals
  1. POEmpty validation message in Spring project after 'gradle eclipse'
    text
    copied!<p>After I migrated from building Spring project with Maven to building it with gradle I have weird empty validation errors.</p> <p>I noticed that path <code>src/main/webapp/WEB-INF/classes</code> is under <code>Web App Libraries</code> build path group, though with Maven-import configuration it was just in src directory.</p> <p>Using <code>gradle cleanEclipse</code>, refreshing and clearing project, nor removing all <code>.metadata</code>, <code>.settings</code>, <code>bin</code>, <code>.classpath</code>, <code>.project</code> directories didn't helped.</p> <p>Aside from that WAR file is built fine.</p> <p>Configuration:</p> <pre><code>//---------------------------------------------------------------------------- // 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 { ... } } </code></pre> <p>What can I do to ensure that project would be imported into Eclipse without this problem?</p> <p>EDIT:</p> <p>The only information visible to me is this one: <a href="http://img689.imageshack.us/img689/2682/vaildationerror.png" rel="nofollow noreferrer">empty validation error http://img689.imageshack.us/img689/2682/vaildationerror.png</a></p> <p>As far as I noticed project build by maven didn't have any errors and only a little amount of warnings. Right now I see that simple <code>&lt;form:errors path="field"/&gt;</code> cries about "List being generic".</p> <p>EDIT2:</p> <p>I managed to get rid of some of the issues by changing project configuration to:</p> <pre><code>//---------------------------------------------------------------------------- // SERVER'S PROJECTS' CONFIGURATION //---------------------------------------------------------------------------- project(':Server') { eclipse { project { natures "org.springframework.ide.eclipse.core.springnature" buildCommand "org.springframework.ide.eclipse.core.springbuilder" } } } </code></pre> <p>but the main problem - validation error with no information about what it is concerned - still remains.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload