Hi everyone... I'm trying to migrate a project with Ant for build tasks to Maven2.
� Oracle 9i and Oracle 10g � Java 1.4 � Web Logic 8.1 SP3 � Maven The project depends on some related projects like: +paretProject --+project1 ----+src --+project2 ----+src --+project3 ----+src .... The first step I did was to change the structure to maven standard directory structure and add some dependencies like junit, log4j, etc. Currently I have this plug-ins within a parent pom.xml: log4j, junit, servlet-api and jsp-api. And I have the first project child with a pom.xml child. Now, with this one, I have copied the others projects form the original project directory to the new structure to resolve errors in the source files of the new project. Also, I have copied the web.xml to the WEB_INF directory. But, when I try to execute: >mvn compile I got the next error: ************************ D:\dev\workspace\kronos-migration\ampc>mvn clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building ampc Maven Webapp [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory D:\dev\workspace\kronos-migration\ampc\target [INFO] [resources:resources] [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [compiler:compile] [INFO] Compiling 62 source files to D:\dev\workspace\kronos-migration\ampc\target\classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[17,18] package javax.mail does not exist D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[18,18] package javax.mail does not exist . . [ many "no exist packages" ] . D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[76,18] cannot resolve symbol symbol : class InternetAddress location: class com.posadas.amp.support.MailAlert D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[81,33] cannot resolve symbol symbol : class InternetAddress location: class com.posadas.amp.support.MailAlert D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[82,52] package Message does not exist D:\dev\workspace\kronos-migration\ampc\src\main\java\com\posadas\amp\support\MailAlert.java:[91,18] cannot resolve symbol symbol : variable Transport location: class com.posadas.amp.support.MailAlert . . [many "cannot resolve symbol" ] . [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Thu May 07 16:25:40 GMT 2009 [INFO] Final Memory: 9M/16M [INFO] ------------------------------------------------------------------------ D:\dev\workspace\kronos-migration\ampc> ************************ The fact is, the compiler can't find any packages... Googling, I found that the error can be in the version of java, but I change it to version 1.4, because that is the version of the compiler for the project, but the error still appears... Can anybody help me? What am I doing wrong? Thanks in advance... -- View this message in context: http://www.nabble.com/Other-problem-like-%22cannot-resolve-symbol%22%2C-please-help...-tp23435591p23435591.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
