Hi all,
I have created a dynamic web app with a servlet and jsp. The application works fine and I had downloaded and included the jars manually in the project. I want to integrate with Maven so i converted it into Maven project using eclipse. I have the pom include the dependency for servlet-api.jar but when I clean install I get the following error:
Apache Maven 3.1.0 (893ca28a1da9d5f51ac03827af98bb730128f9f2; 2013-06-27 21:15:32-0500)
Maven home: /Users/tkmaid5/Downloads/apache-maven-3.1.0
Java version: 1.7.0_40, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: US-ASCII
OS name: "mac os x", version: "10.8.4", arch: "x86_64", family: "mac"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /Users/tkmaid5/Downloads/apache-maven-3.1.0/conf/settings.xml
[DEBUG] Reading user settings from /Users/tkmaid5/.m2/settings.xml
[DEBUG] Using local repository at /Users/tkmaid5/.m2/repository
[pache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<directory default-value="${project.build.directory}"/>
<excludeDefaultDirectories default-value="false">${clean.excludeDefaultDirectories}</excludeDefaultDirectories>
<failOnError default-value="true">${maven.clean.failOnError}</failOnError>
<followSymLinks default-value="false">${clean.followSymLinks}</followSymLinks>
<outputDirectory default-value="${project.build.outputDirectory}"/>
<reportDirectory default-value="${project.reporting.outputDirectory}"/>
<retryOnError default-value="true">${maven.clean.retryOnError}</retryOnError>
<skip default-value="false">${clean.skip}</skip>
<testOutputDirectory default-value="${project.build.testOutputDirectory}"/>
<verbose>${clean.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default-resources)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<buildFilters default-value="${project.build.filters}"/>
<encoding default-value="${project.build.sourceEncoding}">${encoding }</encoding>
<escapeString>${maven.resources.escapeString}</escapeString>
<escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths} </escapeWindowsPaths>
<includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
<outputDirectory default-value="${project.build.outputDirectory}"/>
<overwrite default-value="false">${maven.resources.overwrite}</overwrite>
<project default-value="${project}"/>
<resources default-value="${project.resources}"/>
<session default-value="${session}"/>
<supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFi ltering}</supportMultiLineFiltering>
<useBuildFilters default-value="true"/>
<useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<basedir default-value="${basedir}"/>
<buildDirectory default-value="${project.build.directory}"/>
<classpathElements default-value="${project.compileClasspathElements}"/>
<compileSourceRoots default-value="${project.compileSourceRoots}"/>
<compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
<compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerR euseStrategy}</compilerReuseStrategy>
<compilerVersion>${maven.compiler.compilerVersion} </compilerVersion>
<debug default-value="true">${maven.compiler.debug}</debug>
<debuglevel>${maven.compiler.debuglevel}</debuglevel>
<encoding default-value="${project.build.sourceEncoding}">${encoding }</encoding>
<executable>${maven.compiler.executable}</executable>
<failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
<forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerU se}</forceJavacCompilerUse>
<fork default-value="false">${maven.compiler.fork}</fork>
<generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
<maxmem>${maven.compiler.maxmem}</maxmem>
<meminitial>${maven.compiler.meminitial}</meminitial>
<mojoExecution>${mojoExecution}</mojoExecution>
<optimize default-value="false">${maven.compiler.optimize}</optimize>
<outputDirectory default-value="${project.build.outputDirectory}"/>
<projectArtifact default-value="${project.artifact}"/>
<showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
<showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
<skipMain>${maven.main.skip}</skipMain>
<skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarn ing}</skipMultiThreadWarning>
<source default-value="1.5">1.7</source>
<staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
<target default-value="1.5">1.7</target>
<useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompil ation}</useIncrementalCompilation>
<verbose default-value="false">${maven.compiler.verbose}</verbose>
<mavenSession default-value="${session}"/>
<session default-value="${session}"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.6:testResources (default-testResources)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<buildFilters default-value="${project.build.filters}"/>
<encoding default-value="${project.build.sourceEncoding}">${encoding }</encoding>
<escapeString>${maven.resources.escapeString}</escapeString>
<escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths} </escapeWindowsPaths>
<includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
<outputDirectory default-value="${project.build.testOutputDirectory}"/>
<overwrite default-value="false">${maven.resources.overwrite}</overwrite>
<project default-value="${project}"/>
<resources default-value="${project.testResources}"/>
<session default-value="${session}"/>
<skip>${maven.test.skip}</skip>
<supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFi ltering}</supportMultiLineFiltering>
<useBuildFilters default-value="true"/>
<useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<basedir default-value="${basedir}"/>
<buildDirectory default-value="${project.build.directory}"/>
<classpathElements default-value="${project.testClasspathElements}"/>
<compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
<compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
<compilerReuseStrategy default-value="${reuseCreated}">${maven.compiler.compilerR euseStrategy}</compilerReuseStrategy>
<compilerVersion>${maven.compiler.compilerVersion} </compilerVersion>
<debug default-value="true">${maven.compiler.debug}</debug>
<debuglevel>${maven.compiler.debuglevel}</debuglevel>
<encoding default-value="${project.build.sourceEncoding}">${encoding }</encoding>
<executable>${maven.compiler.executable}</executable>
<failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
<forceJavacCompilerUse default-value="false">${maven.compiler.forceJavacCompilerU se}</forceJavacCompilerUse>
<fork default-value="false">${maven.compiler.fork}</fork>
<generatedTestSourcesDirectory default-value="${project.build.directory}/generated-test-sources/test-annotations"/>
<maxmem>${maven.compiler.maxmem}</maxmem>
<meminitial>${maven.compiler.meminitial}</meminitial>
<mojoExecution>${mojoExecution}</mojoExecution>
<optimize default-value="false">${maven.compiler.optimize}</optimize>
<outputDirectory default-value="${project.build.testOutputDirectory}"/>
<showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
<showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
<skip>${maven.test.skip}</skip>
<skipMultiThreadWarning default-value="false">${maven.compiler.skipMultiThreadWarn ing}</skipMultiThreadWarning>
<source default-value="1.5">1.7</source>
<staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
<target default-value="1.5">1.7</target>
<testSource>${maven.compiler.testSource}</testSource>
<testTarget>${maven.compiler.testTarget}</testTarget>
<useIncrementalCompilation default-value="true">${maven.compiler.useIncrementalCompil ation}</useIncrementalCompilation>
<verbose default-value="false">${maven.compiler.verbose}</verbose>
<mavenSession default-value="${session}"/>
<session default-value="${session}"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<argLine>${argLine}</argLine>
<basedir default-value="${basedir}"/>
<childDelegation default-value="false">${childDelegation}</childDelegation>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
<disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
<enableAssertions default-value="true">${enableAssertions}</enableAssertions>
<excludedGroups>${excludedGroups}</excludedGroups>
<failIfNoSpecifiedTests>${surefire.failIfNoSpecifi edTests}</failIfNoSpecifiedTests>
<failIfNoTests>${failIfNoTests}</failIfNoTests>
<forkMode default-value="once">${forkMode}</forkMode>
<forkedProcessTimeoutInSeconds>${surefire.timeout} </forkedProcessTimeoutInSeconds>
<groups>${groups}</groups>
<junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
<jvm>${jvm}</jvm>
<localRepository default-value="${localRepository}"/>
<objectFactory>${objectFactory}</objectFactory>
<parallel>${parallel}</parallel>
<parallelMavenExecution default-value="${session.parallel}"/>
<perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
<pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
<pluginDescriptor default-value="${plugin}"/>
<printSummary default-value="true">${surefire.printSummary}</printSummary>
<projectArtifactMap>${project.artifactMap}</projectArtifactMap>
<redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFil e}</redirectTestOutputToFile>
<remoteRepositories default-value="${project.pluginArtifactRepositories}"/>
<reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
<reportNameSuffix default-value="">${surefire.reportNameSuffix}</reportNameSuffix>
<reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
<runOrder default-value="filesystem"/>
<skip default-value="false">${maven.test.skip}</skip>
<skipExec>${maven.test.skip.exec}</skipExec>
<skipTests default-value="false">${skipTests}</skipTests>
<test>${test}</test>
<testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
<testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
<testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
<testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
<threadCount>${threadCount}</threadCount>
<trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
<useFile default-value="true">${surefire.useFile}</useFile>
<useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
<useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
<useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
<workingDirectory>${basedir}</workingDirectory>
<project default-value="${project}"/>
<session default-value="${session}"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<archiveClasses default-value="false">${archiveClasses}</archiveClasses>
<attachClasses default-value="false"/>
<cacheFile default-value="${project.build.directory}/war/work/webapp-cache.xml"/>
<classesClassifier default-value="classes"/>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<containerConfigXML>${maven.war.containerConfigXML }</containerConfigXML>
<escapeString>${maven.war.escapeString}</escapeString>
<escapedBackslashesInFilePath default-value="false">${maven.war.escapedBackslashesInFile Path}</escapedBackslashesInFilePath>
<failOnMissingWebXml default-value="true">false</failOnMissingWebXml>
<filteringDeploymentDescriptors default-value="false">${maven.war.filteringDeploymentDescr iptors}</filteringDeploymentDescriptors>
<outputDirectory default-value="${project.build.directory}"/>
<primaryArtifact default-value="true">${primaryArtifact}</primaryArtifact>
<recompressZippedFiles default-value="false"/>
<resourceEncoding default-value="${project.build.sourceEncoding}">${resource Encoding}</resourceEncoding>
<useCache default-value="false">${useCache}</useCache>
<warName default-value="${project.build.finalName}"/>
<warSourceDirectory default-value="${basedir}/src/main/webapp">WebContent</warSourceDirectory>
<warSourceIncludes default-value="**"/>
<webXml>${maven.war.webxml}</webXml>
<webappDirectory default-value="${project.build.directory}/${project.build.finalName}"/>
<workDirectory default-value="${project.build.directory}/war/work"/>
<project default-value="${project}"/>
<session default-value="${session}"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<artifact default-value="${project.artifact}"/>
<attachedArtifacts default-value="${project.attachedArtifacts}"/>
<createChecksum default-value="false">${createChecksum}</createChecksum>
<localRepository>${localRepository}</localRepository>
<packaging default-value="${project.packaging}"/>
<pomFile default-value="${project.file}"/>
<skip default-value="false">${maven.install.skip}</skip>
<updateReleaseInfo default-value="false">${updateReleaseInfo}</updateReleaseInfo>
</configuration>
[DEBUG] ================================================== =====================
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=0, ConflictMarker.markTime=0, ConflictMarker.nodeCount=1, ConflictIdSorter.graphTime=0, ConflictIdSorter.topsortTime=0, ConflictIdSorter.conflictIdCount=0, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=4, ConflictResolver.conflictItemCount=0, DefaultDependencyCollector.collectTime=1, DefaultDependencyCollector.transformTime=7}
[DEBUG] SimpleCatalogImageTest:SimpleCatalogImageTest:war: 0.0.1-SNAPSHOT
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ SimpleCatalogImageTest ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.eclipse.aether.impl < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.eclipse.aether.version < plexus.core
[DEBUG] Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG] Imported: org.eclipse.aether.collection < plexus.core
[INFO] Deleting file /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/target/classes/log4j.properties
[INFO] Deleting directory /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/target/classes
[INFO] Deleting directory /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/target
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[10,21] package javax.servlet does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[11,21] package javax.servlet does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[12,32] package javax.servlet.annotation does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[13,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[14,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[15,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[19,23] package org.apache.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[20,30] package org.apache.http.client does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[21,38] package org.apache.http.client.methods does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[22,35] package org.apache.http.impl.client does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[23,24] package org.apache.log4j does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[24,16] package org.json does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[25,16] package org.json does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[26,16] package org.json does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[32,42] cannot find symbol
symbol: class HttpServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[31,2] cannot find symbol
symbol: class WebServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[35,17] cannot find symbol
symbol: class Logger
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[49,30] cannot find symbol
symbol: class HttpServletRequest
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[49,58] cannot find symbol
symbol: class HttpServletResponse
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[49,95] cannot find symbol
symbol: class ServletException
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/util/JsonConverter.java:[6,16] package org.json does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/util/JsonConverter.java:[7,16] package org.json does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[35,54] cannot find symbol
symbol: method getClass()
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[35,33] cannot find symbol
symbol: variable Logger
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[52,19] cannot find symbol
symbol: class HttpClient
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[52,43] cannot find symbol
symbol: class DefaultHttpClient
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[55,19] cannot find symbol
symbol: class HttpGet
location: class mshah.catalog.CatalogImageServlet
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[55,41] cannot find symbol
symbol: class HttpGet
location: class mshah.catalog.CatalogImageServlet
[INFO] 39 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.631s
[INFO] Finished at: Fri Oct 11 01:51:46 CDT 2013
[INFO] Final Memory: 12M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SimpleCatalogImageTest: Compilation failure: Compilation failure:
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[10,21] package javax.servlet does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[11,21] package javax.servlet does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[12,32] package javax.servlet.annotation does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[13,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[14,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[15,26] package javax.servlet.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[19,23] package org.apache.http does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[20,30] package org.apache.http.client does not exist
[ERROR] /Users/tkmaid5/Documents/workspaceEclipse/SimpleCatalogImageTest/src/mshah/catalog/CatalogImageServlet.java:[21,38] package org.apache.http.client.methods does not exist
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project SimpleCatalogImageTest: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 84)
at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 59)
at org.apache.maven.lifecycle.internal.LifecycleStart er.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStart er.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.jav a:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java :214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:1 58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher. launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher. mainWithExitCode(Launcher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher. main(Launcher.java:357)
at org.codehaus.classworlds.Launcher.main(Launcher.ja va:47)
Caused by: org.apache.maven.plugin.compiler.CompilationFailur eException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerM ojo.execute(AbstractCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.CompilerMojo.exec ute(CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager. executeMojo(DefaultBuildPluginManager.java:106)
at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:208)
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ilureException

Here is the pom file I am using:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>SimpleCatalogImageTest</groupId>
<artifactId>SimpleCatalogImageTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Product Matrix Test</name>
<description>PMP Test</description>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-servlet-api</artifactId>
<version>7.0.42</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>

Please advise on what I am doing wrong. I have been stuck here for the last couple days and need your input.

Thanks,

Moni