[jboss-user] [JBoss Tools Users] - Web Resources folder is empty

htfv do-not-reply at jboss.com
Tue Dec 1 15:46:29 EST 2009


If I import a Maven Web-project in Eclipse 3.5.1 with JBoss Tools 3.1.0.M4 installed, I can see the "Web Resources : src/main/webapp" folder in Project Explorer, but it is always empty.

The same problem was in Eclipse 3.5.0 with JBoss Tools 3.1.0.M3. m2eclipse 0.9.9 Development release was used in both cases. If I use Eclipse 3.4.2 + JBoss Tools 3.0.1 + m2eclipse 0.9.8, I can expand the "Web Resources : src/main/webapp" folder in Project Explorer and see the files from the src/main/webapp folder.

Both Eclipse 3.5.1/JBoss Tools 3.1.0.M4 and Eclipse 3.4.2/JBoss Tools 3.0.1 generate the same .project, .classpath and .settings/* files. The only difference is that 3.1.0.M4 inserts the following line into org.eclipse.jdt.core.prefs and 3.0.1 does not:


  | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
  | 

The problem can be reproduced by importing a simple POM; no other files are needed:


  | <project xmlns="http://maven.apache.org/POM/4.0.0"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  | 
  | 	<modelVersion>4.0.0</modelVersion>
  | 
  | 	<groupId>org.htfv.test</groupId>
  | 	<artifactId>web-resources-test</artifactId>
  | 	<version>0.0.1-SNAPSHOT</version>
  | 	<packaging>war</packaging>
  | 
  | 	<build>
  | 		<plugins>
  | 			<plugin>
  | 				<groupId>org.apache.maven.plugins</groupId>
  | 				<artifactId>maven-compiler-plugin</artifactId>
  | 				<configuration>
  | 					<source>1.6</source>
  | 					<target>1.6</target>
  | 				</configuration>
  | 			</plugin>
  | 		</plugins>
  | 	</build>
  | </project>
  | 

Whose problem is this? Is this a problem of JBoss Tools, m2eclipse, or Eclipse? Do I do something wrong? Shall I file a bug against JBoss Tools or m2eclipse?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268395#4268395

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268395



More information about the jboss-user mailing list