Two Laptop Bag
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven giving compilation Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven giving compilation Problem" Watch "Maven giving compilation Problem" New topic
Author

Maven giving compilation Problem

Anil Pali
Greenhorn

Joined: Aug 24, 2004
Posts: 1
Created a Portlet Project and I am trying to use maven to compile it into a WAR file.
The WEB-INF/lib folder contains the library files used by the java classes.
When i execute the goal war it gives compilation problem " Cannot resolve symbol".
I tried putting the jars in the Home/.maven/repostiory and creating a dependency on the jar but to no avail.
Here is my Project.xml and project.properties file
Project.xml
<project>
<pomVersion>3</pomVersion>
<name>maven</name>
<id>maven</id>
<currentVersion>1.0-b4-dev</currentVersion>
<organization>
<name>QualComm Incorporated</name>
<url>http://www.qualcomm.com/</url>
</organization>
<inceptionYear>xxxx</inceptionYear>
<package>com.qualcomm.myqn.portlets.calculator</package>
<shortDescription>Java Project Management Tools</shortDescription>
<!-- Gump integration -->
<!-- <gumpRepositoryId>jakarta</gumpRepositoryId> -->
<description>
Maven is a project management and project comprehension
tool. Maven is based on the concept of a project object
model: builds, documentation creation, site publication,
and distribution publication are all controlled from the
project object model. Maven also provides tools to
create source metrics, change logs based directly on
source repository, and source cross-references.
</description>
<url>http://corpmetrodev.qualcomm.com/MyQualNet_NG/RUP/</url>
<issueTrackingUrl>
http://nagoya.apache.org/scarab/servlet/scarab/
</issueTrackingUrl>
<siteAddress>corpmetrodev.qualcomm.com</siteAddress>
<siteDirectory>
/MyQualNet_NG/RUP/
</siteDirectory>
<distributionDirectory>
corpmetrodev.qualcomm.com/MyQualNet_NG/RUP/
</distributionDirectory>
<mailingLists>
<mailingList>
<name>Maven User List</name>
<subscribe>
c_apali@qualcomm.com
</subscribe>
<unsubscribe>
c_apali@qualcomm.com
</unsubscribe>
</mailingList>
<mailingList>
<name>Maven Developer List</name>
<subscribe>
dev-subscribe@maven.apache.org
</subscribe>
<unsubscribe>
dev-unsubscribe@maven.apache.org
</unsubscribe>
<archive>
http://www.mail-archive.com/dev@maven.apache.org/
</archive>
</mailingList>
</mailingLists>

<developers>

<developer>
<name>Anil Pali</name>
<id>c_apali</id>
<email>c_apali@qualcomm.com</email>
<organization>Qualcomm</organization>
</developer>

<developer>
<name>Brad Boggess</name>
<id>bboggess</id>
<email>bboggess@qualcomm.com</email>
<organization>QualComm</organization>
</developer>
<developer>
<name>Robert Stone</name>
<id>t_rstone</id>
<email>t_rstone@qualcomm.com</email>
<organization>Qualcomm</organization>
</developer>
</developers>
<dependenies>
<dependency>
<groupId>jsf</groupId>
<artifactId>jsf</artifactId>
<version>1.0</version>
<type>jar</type>
<jar>jsf-api.jar,jsf-ibm.jar,jsf-impl.jar,jsf-portlet.jar</jar>
<properties>
<war.bundle>true</war.bundle>
<war.target.path>WEB-INF\lib</war.target.path>
</properties>
</dependency>
</dependenies>
<build>
<nagEmailAddress>
c_apali@qualcomm.com
</nagEmailAddress>
<sourceDirectory>/calc</sourceDirectory>
<jars>
</jars>
</build>
</project>

and my Project.properties file is
maven.multiproject.type=war
maven.war.src=C:\MavenProject\Calc\WebContent

Project structure is
JavaSource: Which contain the beans and java classes
WebContent: Containing the WEB-INF folder.

Its the standard portlet structure created by WSSD
Help needed guys!!!
 
 
subject: Maven giving compilation Problem
 
Threads others viewed
Maven + scala + java
An question about siteAddress?
jars in the custom ear not getting referenced at compile time
Hibernate Spring Integration problem
Javadoc using Maven
IntelliJ Java IDE