Hi, @Isuru JAVA_HOME is correct. The problem was with the maven as Imesh said. I installed it via apt-get When I installed it manually the build is successful. Thanks Imesh.
On Sun, Nov 17, 2013 at 1:42 PM, Isuru Perera <[email protected]> wrote: > Udara, can you check whether JAVA_HOME is correct? > > Imesh, we shouldn't specify versions in root pom.xml since we already > inherit the version from Apache parent pom. > > > On Sun, Nov 17, 2013 at 4:50 AM, Imesh Gunaratne <[email protected]> wrote: > >> Hi, >> >> @Udara: Were you using Maven 3.0.4 installed with Ubuntu repository? >> May be the maven-compiler-plugin version being used in your environment >> was less than 2.3 [1]. >> >> The root pom.xml has not specified a version for this plugin. Therefore >> the latest available may have been used. May be we could specify 2.5.1 here. >> >> Could you please try to download Maven 3.0.4 from Apache website and >> compile again? >> >> @Manoj: I do not think the source and target versions has caused this >> problem. >> >> [1] >> http://stackoverflow.com/questions/7597950/maven-error-generics-are-not-supported-in-source-1-3-i-am-using-1-6 >> >> Thanks >> Imesh >> >> >> On Sat, Nov 16, 2013 at 11:15 PM, Manoj Fernando <[email protected]> wrote: >> >>> 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 >>> >> >> > > > -- > Isuru Perera > Senior Software Engineer | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897
