Hi 
when I create package for war project it duplicates whole project to
WEB-INF/classes. 
So it looks like:

Project.war:
*css
*jsp
*META-INF
*WEB-INF
           *lib
                *all dependency jars
           *classes
                 *classes
                          *compiled java classes (THIS IS ON CORRECT PLACE)
                 *css             (SHOULD'NT BE HERE)
                 *jsp             (SHOULD'NT BE HERE)
                 *META-INF   (SHOULD'NT BE HERE)
                 *WEB-INF     (SHOULD'NT BE HERE)
                           *classes  (SHOULD'NT BE HERE)
                                    *compiled java classes  (SHOULD'NT BE
HERE)



Here is my pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project>
        <parent>
                <artifactId>Report</artifactId>
                <groupId>com.xyz.Report</groupId>
                <version>0.0.1</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.xyz.Report</groupId>
        <artifactId>ReportGeneratorLogic</artifactId>
        <description></description>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>xdoclet-maven-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>generate-sources</phase>
                                                <goals>
                                                        <goal>xdoclet</goal>
                                                </goals>
                                                <configuration>
                                                        <tasks>
                                                                <ejbdoclet 
verbose="true" ejbSpec="2.1"
                                                                        
force="true"
destDir="${project.build.sourceDirectory}/generated-sources/xdoclet">
                                                                        <fileset
                                                                                
dir="${project.build.sourceDirectory}">
                                                                                
<include name="**/*Bean.java"></include>
                                                                                
<include name="**/*MDB.java"></include>
                                                                        
</fileset>
                                                                        
<packageSubstitution packages="ejb"
                                                                                
substituteWith="interfaces3">
                                                                        
</packageSubstitution>
                                                                        
<homeinterface></homeinterface>
                                                                        
<remoteinterface></remoteinterface>
                                                                        
<localhomeinterface></localhomeinterface>
                                                                        
<localinterface></localinterface>
                                                                        
<utilobject></utilobject>
                                                                        
<session></session>
                                                                        
<deploymentdescriptor
                                                                                
destDir="${project.build.outputDirectory}/META-INF">
                                                                        
</deploymentdescriptor>
                                                                </ejbdoclet>
                                                        </tasks>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate</artifactId>
                        <version>3.1rc2</version>
                </dependency>
                <dependency>
                        <groupId>com.xyz.Report</groupId>
                        <artifactId>ReportGeneratorHibernate</artifactId>
                </dependency>
                <dependency>
                        <groupId>com.xyz.Report</groupId>
                        <artifactId>ReportGeneratorCommon</artifactId>
                </dependency>
                <dependency>
                        <groupId>com.xyz.Report</groupId>
                        <artifactId>ReportMPress</artifactId>
                </dependency>
                <dependency>
                        <groupId>jboss</groupId>
                        <artifactId>jboss-j2ee</artifactId>
                        <version>4.0.0</version>
                </dependency>
        </dependencies>
</project>


Can you help me find out what is wrong? 

Marek
-- 
View this message in context: 
http://www.nabble.com/war-created-duplicated-project-in-web-inf-classes-tf2423188.html#a6755714
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to