Hi,

I am trying to build graylog2 from source.

git remote -v

origin https://github.com/Graylog2/graylog2-server (fetch)

origin https://github.com/Graylog2/graylog2-server (push)


And I am building from the 'master' branch (updated today).


On giving the command 'mvn clean install', build fails with 'package 
org.apache.lucene.analysis.standard does not exist'

So I add the maven dependency:

<dependency>

<groupId>org.apache.lucene</groupId>

<artifactId>lucene-analyzers-common</artifactId>

        <version>5.4.0</version>

</dependency>


Then it fails as: 

[ERROR] symbol:   class ParseException

[ERROR] location: package org.apache.lucene.queryparser.classic

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/rest/resources/search/SearchResource.java:[24,45]
 
cannot find symbol

[ERROR] symbol:   class QueryParser

[ERROR] location: package org.apache.lucene.queryparser.classic

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/rest/resources/search/SearchResource.java:[25,45]
 
cannot find symbol

[ERROR] symbol:   class Token

[ERROR] location: package org.apache.lucene.queryparser.classic


For which I have to add:

<dependency>

<groupId>org.apache.lucene</groupId>

<artifactId>lucene-queryparser</artifactId>

        <version>5.4.0</version>

</dependency>



Third time, it fails with 'package com.carrotsearch.hppc.cursors does not 
exist'

For which I add:

<dependency>

<groupId>com.carrotsearch</groupId>

<artifactId>hppc</artifactId>

<version>0.3.4</version>

</dependency>



I also have to add:
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.10.0-M3</version>
</dependency>


Finally, it is now failing as: 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.3:compile 
(default-compile) on project graylog2-server: Compilation failure: 
Compilation failure:

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[21,25]
 
sun.security.x509.AlgorithmId is internal proprietary API and may be 
removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[22,25]
 
sun.security.x509.CertificateAlgorithmId is internal proprietary API and 
may be removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[23,25]
 
sun.security.x509.CertificateIssuerName is internal proprietary API and may 
be removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[24,25]
 
sun.security.x509.CertificateSerialNumber is internal proprietary API and 
may be removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[25,25]
 
sun.security.x509.CertificateSubjectName is internal proprietary API and 
may be removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[26,25]
 
sun.security.x509.CertificateValidity is internal proprietary API and may 
be removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[27,25]
 
sun.security.x509.CertificateVersion is internal proprietary API and may be 
removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[28,25]
 
sun.security.x509.CertificateX509Key is internal proprietary API and may be 
removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[29,25]
 
sun.security.x509.X500Name is internal proprietary API and may be removed 
in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[30,25]
 
sun.security.x509.X509CertImpl is internal proprietary API and may be 
removed in a future release

[ERROR] 
graylog2-server/graylog2-server/src/main/java/org/graylog2/shared/security/tls/SelfSignedCertificate.java:[31,25]
 
sun.security.x509.X509CertInfo is internal proprietary API and may be 
removed in a future release


And I am stuck at this point.


Is this a problem with building graylog from source?

Or I am doing something wrong?

Do I need to specify some maven profile or option to build this?


Any help appreciated.



I need to build graylog2 from sources because it's crashing with our kafka 
input and we need to debug this.

I will submit a pull request for build/documentation to save others 
sometime once it builds up cleanly for myself.


Thanks !



-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/54aa1ebc-d6a9-407a-93a0-92c1be95c7f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to