Looks to me that java source/target versions are not set properly on
maven-compiler-plugin block in pom.xml?

<build>
      <pluginManagement>
          <plugins>
              <plugin>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <version>2.3.2</version>
                  <configuration>
                      <source>1.6</source>
                      <target>1.6</target>
                      <compilerArgument></compilerArgument>
                  </configuration>
              </plugin>
          </plugins>
      </pluginManagement>
  </build>


On Sat, Nov 16, 2013 at 9:30 PM, Udara Liyanage <[email protected]> wrote:

> Hi,
>
> [INFO] Apache Stratos - HAProxy Extension ................ FAILURE [0.045s]
>
> ] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 29:26.423s
> [INFO] Finished at: Sat Nov 16 10:58:34 EST 2013
> [INFO] Final Memory: 305M/967M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project
> org.apache.stratos.load.balancer.extension.api: Compilation failure:
> Compilation failure:
> [ERROR]
> /home/udara/projects/stratos/components/org.apache.stratos.load.balancer.extension.api/src/main/java/org/apache/stratos/load/balancer/extension/api/LoadBalancerStatsNotifier.java:[53,5]
> annotations are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable annotations)
> [ERROR] @Override
> [ERROR]
> [ERROR]
> /home/udara/projects/stratos/components/org.apache.stratos.load.balancer.extension.api/src/main/java/org/apache/stratos/load/balancer/extension/api/LoadBalancerStatsNotifier.java:[61,19]
> generics are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable generics)
> [ERROR] Map<String, Integer> stats = new HashMap<String, Integer>();
> [ERROR]
> [ERROR]
> /home/udara/projects/stratos/components/org.apache.stratos.load.balancer.extension.api/src/main/java/org/apache/stratos/load/balancer/extension/api/LoadBalancerStatsNotifier.java:[62,37]
> for-each loops are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable for-each loops)
> [ERROR] for (Service service :
> TopologyManager.getTopology().getServices()) {
> [ERROR]
> [ERROR]
> /home/udara/projects/stratos/components/org.apache.stratos.load.balancer.extension.api/src/main/java/org/apache/stratos/load/balancer/extension/api/LoadBalancerExtension.java:[47,5]
> annotations are not supported in -source 1.3
> [ERROR] (use -source 5 or higher to enable annotations)
> [ERROR] @Override
> [ERROR] -> [Help 1]
> [ERROR] Failed to execute goal on project
> apache-stratos-haproxy-extension: Could not resolve dependencies for
> project
> org.apache.stratos:apache-stratos-haproxy-extension:jar:4.0.0-SNAPSHOT:
> Failure to find
> org.apache.stratos:org.apache.stratos.load.balancer.extension.api:jar:4.0.0-SNAPSHOT
> in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
> the local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced -> [Help 2]
> [ERROR]
>
>
> --
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Manoj Fernando
Director - Solutions Architecture

Contact:
LK -  +94 112 145345
Mob: +94 773 759340
www.wso2.com

Reply via email to