title: how to fix compilation failure in maven 2
body: <p>I am trying to build a maven projet on ubuntu but I got some compilation failure and this is the first time that I use Maven I can't undrestand what's the problem !!!!</p>
  
  <pre><code>  [DEBUG] Trace
    org.apache.maven.BuildFailureException: Compilation failure
  at     org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
  at    org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
  at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:622)
  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
  at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
  at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
  </code></pre>
  
  <p>Besides I got an error like missing symbol also </p>
  
  <pre><code>  [INFO] Compilation failure
  
     /home/user/oscars_dist1/oscars-0.6-sdk-01.11.11/eomplsPSS/src/main/java/net/es/oscars/pss/eompls/ios/IOSConfigGen.java:[15,28] cannot find symbol
    symbol  : class DeviceConfigGenerator
    location: package net.es.oscars.pss.api
  </code></pre>
  
  <p>Please help me any idea how to fix that !!!</p>
  
  <p>thgis is the pom.xml file : </p>
  
  <pre><code>       &lt;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/maven-v4_0_0.xsd"&gt;
             &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
                &lt;parent&gt;
                   &lt;artifactId&gt;OSCARS&lt;/artifactId&gt;
                   &lt;groupId&gt;net.es.oscars&lt;/groupId&gt;
                   &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
                &lt;/parent&gt;
  
           &lt;artifactId&gt;eomplsPSS&lt;/artifactId&gt;
               &lt;name&gt;Ethernet over MPLS PSS&lt;/name&gt;
                &lt;properties&gt;
                     &lt;spring.version&gt;3.2.3.RELEASE&lt;/spring.version&gt;
                &lt;/properties&gt;
            &lt;!-- puts all code &amp; libraries in one jar --&gt;
           &lt;pluginRepositories&gt;
                &lt;pluginRepository&gt;
                     &lt;id&gt;onejar-maven-plugin.googlecode.com&lt;/id&gt;
                     &lt;url&gt;http://onejar-maven-plugin.googlecode.com/svn/mavenrepo&lt;/url&gt;
              &lt;/pluginRepository&gt;
              &lt;/pluginRepositories&gt;
  
  
  
  &lt;dependencies&gt;
      &lt;!-- specific database --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;mysql&lt;/groupId&gt;
          &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
          &lt;version&gt;5.1.26&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- common SOAP interfaces (from local repository) --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.es.oscars&lt;/groupId&gt;
          &lt;artifactId&gt;common-soap&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- OSCARS utilities (from local repository) --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.es.oscars&lt;/groupId&gt;
          &lt;artifactId&gt;utils&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- OSCARS utilities (from local repository) --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.es.oscars&lt;/groupId&gt;
          &lt;artifactId&gt;pss&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- testing --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.testng&lt;/groupId&gt;
          &lt;artifactId&gt;testng&lt;/artifactId&gt;
          &lt;version&gt;5.8&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
          &lt;classifier&gt;jdk15&lt;/classifier&gt;
      &lt;/dependency&gt;
  
      &lt;!-- database (from local repository) --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.es.oscars&lt;/groupId&gt;
          &lt;artifactId&gt;database&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!--  issue 93 --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;xerces&lt;/groupId&gt;
          &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
          &lt;version&gt;2.9.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- configuration --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.jyaml&lt;/groupId&gt;
          &lt;artifactId&gt;jyaml&lt;/artifactId&gt;
          &lt;version&gt;1.3&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- logging --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j&lt;/artifactId&gt;
          &lt;version&gt;1.2.9&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
          &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
          &lt;version&gt;1.5.6&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;!-- database for unit tests --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
          &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
          &lt;version&gt;1.8.0.10&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;!-- command-line parsing --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;net.sf.jopt-simple&lt;/groupId&gt;
          &lt;artifactId&gt;jopt-simple&lt;/artifactId&gt;
          &lt;version&gt;3.0.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;jaxen&lt;/groupId&gt;
          &lt;artifactId&gt;jaxen&lt;/artifactId&gt;
          &lt;version&gt;1.1.1&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.freemarker&lt;/groupId&gt;
          &lt;artifactId&gt;freemarker&lt;/artifactId&gt;
          &lt;version&gt;2.3.16&lt;/version&gt;
      &lt;/dependency&gt;
  
  
       &lt;dependency&gt;
          &lt;groupId&gt;commons-collections&lt;/groupId&gt;
          &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
          &lt;version&gt;3.2&lt;/version&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- spring --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-beans&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context&lt;/artifactId&gt;
          &lt;version&gt;${spring.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- CXF --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-frontend-jaxws&lt;/artifactId&gt;
          &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http&lt;/artifactId&gt;
          &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
          &lt;artifactId&gt;cxf-rt-transports-http-jetty&lt;/artifactId&gt;
          &lt;version&gt;${cxf.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;plugins&gt;
  
          &lt;!-- puts all code &amp; libraries in one jar --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.dstovall&lt;/groupId&gt;
              &lt;artifactId&gt;onejar-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.4.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;configuration&gt;
                                               &lt;mainClass&gt;net.es.oscars.pss.eompls.common.Invoker&lt;/mainClass&gt;
                          &lt;classifier&gt;onejar&lt;/classifier&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;one-jar&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  
          &lt;!-- specifically use java 1.5 to compile --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>