Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Control published files and folders in app classes folder in wtpwebapps
Control published files and folders in app classes folder in wtpwebapps [message #742371] Thu, 20 October 2011 12:39 Go to next message
Mahmoud Saleh is currently offline Mahmoud SalehFriend
Messages: 23
Registered: September 2011
Junior Member
hi, i am using eclipse helios 3.6.1 and WTP 3.2 with tomcat 7
and i am using maven 2 as build tool, m2eclipse plugin
when trying to run project on server, i get endless exceptions
this is opposite to running my project from maven tomcat plugin, everything works very fine

so i compared between the extracted war in target folder generated in my project (workspace/project/target/warFolder)

and the extracted war in (wtpwebapps/myapp)

and here are the contents:

1- (workspace/project/target/warFolder) contents:

com
messages
MET-INF
import.sql
log4j.properties

2- (wtpwebapps/myapp)

com
messages
MET-INF
import.sql
log4j.properties

.settings
src
target
.classpath
.project
file.txt
pom.xml


why it generates those additional unneeded folders?
when i remove those additional folders and try to run project on server from eclipse it runs fine

so question is how to control eclipse not to generate those folders, and why i get them in first place.


UPDATE: POM file plugins


<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>install</id>
						<phase>install</phase>
						<goals>
							<goal>sources</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			
			<plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-resources-plugin</artifactId>
               <version>2.5</version>
               <configuration>
               <encoding>UTF-8</encoding>
               </configuration>
            </plugin>
            
            <plugin>
               
               <groupId>org.apache.tomcat.maven</groupId>
               <artifactId>tomcat7-maven-plugin</artifactId>
               <version>2.0-SNAPSHOT</version>
               <configuration>
               <path>/${project.build.finalName}</path>
               </configuration>
               
               
            </plugin>
            
		</plugins>

[Updated on: Thu, 20 October 2011 14:11]

Report message to a moderator

Re: Control generated folders in wtpwebapps [message #742499 is a reply to message #742371] Thu, 20 October 2011 14:45 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 20-Oct-11 06:39, Mahmoud Saleh wrote:
> hi, i am using eclipse helios 3.6.1 and WTP 3.2 with tomcat 7
> when trying to run project on server, i get endless exceptions
> this is opposite to running my project from maven tomcat plugin,
> everything works very fine
>
> so i compared between the extracted war in target folder generated in my
> project (workspace/project/target/warFolder)
>
> and the extracted war in (wtpwebapps/myapp)
>
> and here are the contents:
>
> 1- [b](workspace/project/target/warFolder)[/b contents:
>
> com
> messages
> MET-INF
> import.sql
> log4j.properties
>
> 2- (wtpwebapps/myapp)
>
> com
> messages
> MET-INF
> import.sql
> log4j.properties
>
> settings
> src
> target
> classpath
> project
> file.txt
> pom.xml
>
> why it generates those additional unneeded folders?
> when i remove those additional folders and try to run project on server
> from eclipse it runs fine
>
> so question is how to control eclipse not to generate those folders, and
> why i get them in first place.
>
> i am using maven 2 and m2eclipse plugin.

Best asked in the Eclipse WTP forum.
Previous Topic:Indigo: debug on Tomcat
Next Topic:Defaults for Organize Imports
Goto Forum:
  


Current Time: Thu Apr 25 17:32:34 GMT 2024

Powered by FUDForum. Page generated in 0.08813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top