compiler errors - Maven : mvn install results to Compilation failure -


when running command "mvn clean", returns build success when running "mvn install", returns compilation failure. please me out trace causing error? in advance.

edit : added logs.

 [error] \users...\workspace\project\src\main\java\c om\project\interceptor.java:[30,22] cannot find symbo l symbol  : variable httpservletresponse location: class com.project.interceptor [info] 49 errors [info] ------------------------------------------------------------- [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 2.730s [info] finished at: thu mar 08 11:14:16 cst 2012 [info] final memory: 9m/24m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:2. 3.2:compile (default-compile) on project project: compilation failure: co mpilation failure: [error] \users...\workspace\project\src\main\java\c om\project\interceptor.java:[3,25] package javax.serv let.http not exist [error] \users...\workspace\project\src\main\java\c om\project\interceptor.java:[4,25] package javax.serv let.http not exist [error] \users...\workspace\project\src\main\java\c om\project\interceptor.java:[26,26] cannot find symbo l ...... [error] symbol  : variable httpservletresponse [error] location: class com.project.interceptor [error] -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal o rg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on  project mobile-gateway: compilation failure         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:213)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:153)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:145)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproje ct(lifecyclemodulebuilder.java:84)         @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproje ct(lifecyclemodulebuilder.java:59)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbu ild(lifecyclestarter.java:183)         @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecycl estarter.java:161)         @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:319)         @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156)         @ org.apache.maven.cli.mavencli.execute(mavencli.java:537)         @ org.apache.maven.cli.mavencli.domain(mavencli.java:196)         @ org.apache.maven.cli.mavencli.main(mavencli.java:141)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. java:39)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces sorimpl.java:25)         @ java.lang.reflect.method.invoke(method.java:597)         @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(laun cher.java:290)         @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.jav a:230)         @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(la uncher.java:409)         @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java: 352) caused by: org.apache.maven.plugin.compilationfailureexception: compilation fail ure         @ org.apache.maven.plugin.abstractcompilermojo.execute(abstractcompiler mojo.java:656)         @ org.apache.maven.plugin.compilermojo.execute(compilermojo.java:128)         @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(default buildpluginmanager.java:101)         @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor .java:209)         ... 19 more [error] [error] [error] more information errors , possible solutions, please rea d following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojofailureexc eption

edit 2 : way, i'm using eclipse indigo ide , glassfish 3.1.

you missing java ee dependencies, try adding following dependency pom.xml (you need more):

<dependency>   <groupid>javax.servlet</groupid>   <artifactid>servlet-api</artifactid>   <version>2.4</version> </dependency> 

hope helps.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -