[jira] [Commented] (OFBIZ-10228) Build Failed Apache OFBiz with Build failed with an exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-10228) Build Failed Apache OFBiz with Build failed with an exception

Nicolas Malin (Jira)

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

Asil commented on OFBIZ-10228:
------------------------------

I tried ofbiz 15.12 it also failed to build.

[javac18] Compiling 8 source files to /.../ofbiz.15.12/specialpurpose/lucene/build/classes

  [javac18] /.../ofbiz.15.12/specialpurpose/lucene/src/org/ofbiz/content/search/DocumentIndexer.java:42: error: cannot find symbol

  [javac18]     public static final String module = DocumentIndexer.class.getName();

  [javac18]                                                      ^

  [javac18]   symbol:   variable LUCENE_5_3_1

  [javac18]   location: class Version

  [javac18] /.../ofbiz.15.12/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java:302: error: cannot find symbol

  [javac18]             field.setBoost(weight);

  [javac18]                  ^

  [javac18]   symbol:   method setBoost(float)

  [javac18]   location: variable field of type Field

  [javac18] 2 errors

 

BUILD FAILED

/.../ofbiz.15.12/build.xml:422: The following error occurred while executing this line:

/.../ofbiz.15.12/build.xml:445: The following error occurred while executing this line:

/.../ofbiz.15.12/macros.xml:39: The following error occurred while executing this line:

/.../ofbiz.15.12/common.xml:91: Compile failed; see the compiler error output for details.

 

> Build Failed Apache OFBiz with Build failed with an exception
> -------------------------------------------------------------
>
>                 Key: OFBIZ-10228
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10228
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: 16.11.04
>            Reporter: Asil
>            Priority: Major
>
> I tried to install and run OFBiz on MacOs High Sierra. I installed Gradle 4.5.1 and Java 1.8. I followed the official tutorial. When I tried to build and start OFBiz using ./gradlew cleanAll loadDefault ofbiz, the following error occurred.
> [...]/ofbiz.16.11/specialpurpose/lucene/src/main/java/org/apache/ofbiz/content/search/SearchWorker.java:44: error: cannot find symbol
>     private static final Version LUCENE_VERSION = Version.LUCENE_5_3_1;
>                                                          ^
>   symbol:   variable LUCENE_5_3_1
>   location: class Version
>  
> [...]/ofbiz.16.11/specialpurpose/lucene/src/main/java/org/apache/ofbiz/content/search/ProductDocument.java:302: error: cannot find symbol
>             field.setBoost(weight);
>                  ^
>   symbol:   method setBoost(float)
>   location: variable field of type Field
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
> :compileJava {color:#8eb021}FAILED{color}
>  
> {color:#d04437}FAILURE: Build failed with an exception.{color}
> * What went wrong:
> Execution failed for task ':compileJava'.
> > Compilation failed; see the compiler error output for details.
>  
> * Try:
> Run with *--stacktrace* option to get the stack trace. Run with *--info* or *--debug* option to get more log output.
>  
> {color:#d04437}BUILD FAILED{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)