Finding the same issues mentioned in the thread. In my case, I am
building v1.3.0 which is the proposed release. I would have expected
build for development and release to work. Even though it is eassy to
work around the build glitches, would you think that proposed release
v1.3.0  should be passed with these issues?
Just building with "mvn clean install -DskipTests=false -Ppackage",
for example fails with:

[ERROR] Tests run: 12, Failures: 0, Errors: 2, Skipped: 0, Time
elapsed: 1.643 s <<< FAILURE! - in
org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest

[ERROR] 
testKeystoreForGateway(org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest)
 Time elapsed: 0.101 s  <<< ERROR!

java.lang.NullPointerException

at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest.testCreateGetAndCheckKeystoreForGateway(DefaultKeystoreServiceTest.java:566)

at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest.testKeystoreForGateway(DefaultKeystoreServiceTest.java:229)


[ERROR] 
testAddSelfSignedCertForGatewayLocalhost(org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest)
 Time elapsed: 0.189 s  <<< ERROR!

java.lang.NullPointerException

at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest.testAddSelfSignedCertForGateway(DefaultKeystoreServiceTest.java:520)

at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreServiceTest.testAddSelfSignedCertForGatewayLocalhost(DefaultKeystoreServiceTest.java:413)

I am a little bit concerned, but I don't know if you have build issues
like this.

Regards,
          Jeffrey E Rodriguez.

BTW my env:

mvn -version

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
2015-11-10T08:41:47-08:00)

Maven home: /Users/jrodrigu/build/apache-maven-3.3.9

Java version: 1.8.0_211, vendor: Oracle Corporation

Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre

Default locale: en_US, platform encoding: US-ASCII

OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"

On Mon, Jul 8, 2019 at 12:47 PM Kevin Risden <[email protected]> wrote:
>
> Well - that is weird since I was 90% sure that npm should have been locally
> picked up and not the system installed one...
>
> Kevin Risden
>
>
> On Mon, Jul 8, 2019 at 3:43 PM Colm O hEigeartaigh <[email protected]>
> wrote:
>
> > I just removed node locally and it seems to work fine now - thanks for all
> > your help!
> >
> > Colm.
> >
> > On Mon, Jul 8, 2019 at 7:19 PM Kevin Risden <[email protected]> wrote:
> >
> > > Colm and Larry - the installed version of NPM shouldn't matter. You
> > should
> > > be able to remove local NPM and it should work. The frontend-maven-plugin
> > > will download NPM so it is a clean build each time if necessary (and
> > > doesn't end up on global path). It shouldn't use the locally installed
> > NPM
> > > at all.
> > >
> > > You can check the log files for the Maven build and see which NPM is
> > used.
> > > This also shouldn't matter which Java version. I have been running on
> > > Ubuntu and Mac without issues.
> > >
> > > Colm - Can you see if this reproduces without Maven? (This assumes you
> > have
> > > run the Maven frontend plugin at least once)
> > >
> > > cd gateway-admin-ui
> > > ./npm install
> > > ./npm run build-prod
> > >
> > > The above npm script is a wrapper around the one installed locally just
> > for
> > > Knox and not the global one installed on the system.
> > >
> > > Kevin Risden
> > >
> > >
> > > On Mon, Jul 8, 2019 at 1:27 PM Colm O hEigeartaigh <[email protected]>
> > > wrote:
> > >
> > > > Hi Larry,
> > > >
> > > > Perhaps the problem is my newer version of NPM?
> > > >
> > > > > npm -version
> > > > 5.8.0
> > > > > mvn -version
> > > > Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555;
> > > > 2019-04-04T20:00:29+01:00)
> > > > Maven home: /home/coheig/.sdkman/candidates/maven/current
> > > > Java version: 1.8.0_212, vendor: Azul Systems, Inc., runtime:
> > > > /home/coheig/.sdkman/candidates/java/8.0.212-zulu/jre
> > > > OS name: "linux", version: "5.0.0-20-generic", arch: "amd64", family:
> > > > "unix"
> > > >
> > > > I get the same error with Java 11.
> > > >
> > > > Colm.
> > > >
> > > > On Thu, Jul 4, 2019 at 8:49 PM larry mccay <[email protected]> wrote:
> > > >
> > > > > I just built it successfully the same way as you on my Linux Mint
> > > machine
> > > > > with the following versions:
> > > > >
> > > > > lmccay@NordzLinux:~/Projects/knox$ npm --version
> > > > > *3.5.2*
> > > > > lmccay@NordzLinux:~/Projects/knox$ mvn --version
> > > > > *Apache Maven 3.6.0*
> > > > > Maven home: /usr/share/maven
> > > > > Java version: 10.0.2, vendor: Oracle Corporation, runtime:
> > > > > /usr/lib/jvm/java-11-openjdk-amd64
> > > > > Default locale: en_US, platform encoding: UTF-8
> > > > > OS name: "linux", version: "4.15.0-20-generic", arch: "amd64",
> > family:
> > > > > "unix"
> > > > > lmccay@NordzLinux:~/Projects/knox$ java -version
> > > > >
> > > > > Rather old version of NPM considering that I just installed it
> > > yesterday.
> > > > >
> > > > > On Thu, Jul 4, 2019 at 2:01 PM larry mccay <[email protected]>
> > wrote:
> > > > >
> > > > >> Hmmm - I've not seen that but I always do:
> > > > >>
> > > > >> mvn clean install -DskipTests=false -Ppackage
> > > > >>
> > > > >> Maybe the packaging is setting up something that we need for npm?
> > > > >>
> > > > >> On Wed, Jul 3, 2019 at 1:25 PM Colm O hEigeartaigh <
> > > [email protected]
> > > > >
> > > > >> wrote:
> > > > >>
> > > > >>> Hi Kevin,
> > > > >>>
> > > > >>> I was just building the source with "mvn clean install". I uploaded
> > > the
> > > > >>> error log here:
> > > > >>>
> > > > >>> https://paste.apache.org/Jbl8
> > > > >>>
> > > > >>> Colm.
> > > > >>>
> > > > >>> On Tue, Jul 2, 2019 at 6:50 PM Kevin Risden <[email protected]>
> > > > wrote:
> > > > >>>
> > > > >>> > Can you share more of the output? Specifically what command are
> > you
> > > > >>> > running?
> > > > >>> >
> > > > >>> > The maven build should not be using the local NPM install and
> > > instead
> > > > >>> use
> > > > >>> > one from the maven-frontend-plugin.
> > > > >>> >
> > > > >>> > Kevin Risden
> > > > >>> >
> > > > >>> >
> > > > >>> > On Tue, Jul 2, 2019 at 1:48 PM Colm O hEigeartaigh <
> > > > >>> [email protected]>
> > > > >>> > wrote:
> > > > >>> >
> > > > >>> >> Hi all,
> > > > >>> >>
> > > > >>> >> I can't build Knox master any more - I get some npm errors in
> > > > >>> >> gateway-admin-ui. I'm on Ubuntu using NPM 5.8.0. The errors are
> > > > along
> > > > >>> the
> > > > >>> >> lines of:
> > > > >>> >>
> > > > >>> >> [ERROR] npm ERR! code ELIFECYCLE
> > > > >>> >> [ERROR] npm ERR! errno 139
> > > > >>> >> [ERROR] npm ERR! [email protected] postinstall:
> > `node
> > > > >>> >> lib/post_install.js`
> > > > >>> >> [ERROR] npm ERR! Exit status 139
> > > > >>> >> [ERROR] npm ERR!
> > > > >>> >> [ERROR] npm ERR! Failed at the [email protected]
> > > > >>> postinstall
> > > > >>> >> script.
> > > > >>> >> [ERROR] npm ERR! This is probably not a problem with npm. There
> > is
> > > > >>> likely
> > > > >>> >> additional logging output above.
> > > > >>> >>
> > > > >>> >> Any ideas?
> > > > >>> >>
> > > > >>> >> Colm.
> > > > >>> >>
> > > > >>> >>
> > > > >>> >> --
> > > > >>> >> Colm O hEigeartaigh
> > > > >>> >>
> > > > >>> >> Talend Community Coder
> > > > >>> >> http://coders.talend.com
> > > > >>> >>
> > > > >>> >
> > > > >>>
> > > > >>> --
> > > > >>> Colm O hEigeartaigh
> > > > >>>
> > > > >>> Talend Community Coder
> > > > >>> http://coders.talend.com
> > > > >>>
> > > > >>
> > > >
> > > > --
> > > > Colm O hEigeartaigh
> > > >
> > > > Talend Community Coder
> > > > http://coders.talend.com
> > > >
> > >
> >
> >
> > --
> > Colm O hEigeartaigh
> >
> > Talend Community Coder
> > http://coders.talend.com
> >

Reply via email to