[ 
https://issues.apache.org/jira/browse/STRATOS-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

chris snow updated STRATOS-170:
-------------------------------

    Attachment: pomEnforcer.patch

If Oracle JDK is a build pre-requisite, then it is much kinder to developers if 
we verify that the Oracle JDK it is being used for the build.

See attached patch which checks for either Oracle JDK or Sun JDK.

The build output from the enforcer plugin when using Open JDK:

...
[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-property) @ 
stratos-parent ---
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireProperty failed with 
message:
JAVA_HOME does not point to a Sun JDK or Oracle JDK.  Only Sun and Oracle JDKs 
are supported for building Stratos.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.422s
[INFO] Finished at: Sat Nov 09 07:29:39 GMT 2013
[INFO] Final Memory: 24M/215M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-property) 
on project stratos-parent: Some Enforcer rules have failed. Look above for 
specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 

> `mvn install` issue - LoadBalancerExtension.java:[45,5] error: annotations 
> are not supported in -source 1.3
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: STRATOS-170
>                 URL: https://issues.apache.org/jira/browse/STRATOS-170
>             Project: Stratos
>          Issue Type: Bug
>    Affects Versions: 4.0.0 M1
>         Environment: Linux Ubuntu 13.10
> OpenJDK 1.7
> Maven 3.0.4
>            Reporter: chris snow
>         Attachments: pomEnforcer.patch
>
>
> `mvn install` results in:
> [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/snowc/apache_stratos/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



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to