[
https://issues.apache.org/jira/browse/STRATOS-232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
chris snow updated STRATOS-232:
-------------------------------
Attachment: 0001-added-parent-declaration-to-pom-to-fix-defect-STRATO.patch
> load.balancer.extension.api compilation failure on OpenJDK
> ----------------------------------------------------------
>
> Key: STRATOS-232
> URL: https://issues.apache.org/jira/browse/STRATOS-232
> Project: Stratos
> Issue Type: Bug
> Affects Versions: 4.0.0 M2, 4.0.0 M3
> Environment: OpenJDK 1.7
> Ubuntu 13.10
> Reporter: chris snow
> Attachments:
> 0001-added-parent-declaration-to-pom-to-fix-defect-STRATO.patch
>
>
> I'm hitting the following error when running 'mvn clean install':
> {code}
> [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
> [ERROR]
> /home/ubuntu/incubator-stratos/components/org.apache.stratos.load.balancer.extension.api/src/main/java/org/apache/stratos/load/balancer/extension/api/LoadBalancerExtension.java:[45,5]
> error: annotations are not supported in -source 1.3
> {code}
> It appears that the parent definition is missing from the LB extension API
> pom. This fixed the issue:
> {code}
> diff --git
> a/components/org.apache.stratos.load.balancer.extension.api/pom.xml
> b/components/org.apache.stratos.
> index 9ce6fd3..6ab07ab 100644
> --- a/components/org.apache.stratos.load.balancer.extension.api/pom.xml
> +++ b/components/org.apache.stratos.load.balancer.extension.api/pom.xml
> @@ -22,6 +22,12 @@
> 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>
> +
> + <parent>
> + <groupId>org.apache.stratos</groupId>
> + <artifactId>stratos-components-parent</artifactId>
> + <version>4.0.0-SNAPSHOT</version>
> + </parent>
> {code}
> Adding the parent declaration works on 4.0.0 M2. I haven't tested it on
> 4.0.0 M3.
--
This message was sent by Atlassian JIRA
(v6.1#6144)