[ 
https://issues.apache.org/jira/browse/LUCENE-4747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13605158#comment-13605158
 ] 

Steve Rowe edited comment on LUCENE-4747 at 3/18/13 2:28 PM:
-------------------------------------------------------------

bq. Before resolving the issue I wanted the confirmation by Steven Rowe, if the 
Maven build is setup correctly (e.g. maven-enforcer-plugin,...).

Enforcer seems to work fine.  forbiddenapis, compilation and enforcer all use 
the {{$\{java.compat.version}}} property that you changed to 1.7, so I think 
the Maven build is all set.

When I attempt {{mvn install}} with Java6, I see this:

{noformat}
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed 
with message:
Java 1.7+ is required.

...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.053s
[INFO] Finished at: Mon Mar 18 10:21:11 EDT 2013
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.2:enforce 
(enforce-java-compat-version-and-maven-2.2.1) on project 
lucene-solr-grandparent: Some Enforcer rules have failed. Look above for 
specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}
                
      was (Author: steve_rowe):
    bq. Before resolving the issue I wanted the confirmation by Steven Rowe, if 
the Maven build is setup correctly (e.g. maven-enforcer-plugin,...).

Enforcer seems to work fine.  forbiddenapis, compilation and enforcer all use 
the ${java.compat.version} property that you changed to 1.7, so I think the 
Maven build is all set.

When I attempt {{mvn install}} with Java6, I see this:

{noformat}
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed 
with message:
Java 1.7+ is required.

...

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.053s
[INFO] Finished at: Mon Mar 18 10:21:11 EDT 2013
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.2:enforce 
(enforce-java-compat-version-and-maven-2.2.1) on project 
lucene-solr-grandparent: Some Enforcer rules have failed. Look above for 
specific messages explaining why the rule failed. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
{noformat}
                  
> java7 as a minimum requirement for lucene 5
> -------------------------------------------
>
>                 Key: LUCENE-4747
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4747
>             Project: Lucene - Core
>          Issue Type: Task
>    Affects Versions: 5.0
>            Reporter: Robert Muir
>            Assignee: Uwe Schindler
>             Fix For: 5.0
>
>         Attachments: LUCENE-4747.patch, LUCENE-4747.patch
>
>
> Spinoff from LUCENE-4746. 
> I propose we make this change on trunk only. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to