Aldrin,
That Docker image worked great for 1.5.0. When I tried to run it with
the latest master branch, however, I got the same error for
nifi-slack-processors I mentioned previously. But after reading the
response from Joe Percivall, which indicated that the slack processor
step had a test dependency, I re-ran clean again WITH tests using your
Docker image, and I finally got a complete build with the latest master.
Now on to building some custom processors.
Big thanks to Aldrin and Joe for helping me get started.
Scott
On 03/25/2018 07:32 PM, Aldrin Piri wrote:
Hmm, can't say I've seen those particular errors arise.
I just made a simple Dockerfile as a sanity check that is available here:
https://github.com/apiri/nifi-review-collateral/blob/master/docker-build/Dockerfile
A 'docker build .' against that file is all that is needed.
I ran this in a couple environments successfully inclusive of an older
laptop with Centos 7 and, the other, a more modern desktop running Debian
9. Could you let us know if this is also problematic?
Thanks!
--Aldrin
On Sun, Mar 25, 2018 at 2:02 PM, scott <[email protected]> wrote:
Thanks for the help Aldrin. I've tried many permutations to get this to
work. The two environments I've been trying to build in are Centos and
Ubuntu. I've tried disabling the tests and adjusting the memory, with
moderate success, but I still cannot get a complete compile.
export MAVEN_OPTS="-Xms2G -Xmx8G"
mvn clean install -Dmaven.test.skip=true
Env1:
Centos 7, Apache Maven 3.5.3, Open JDK 64bit 1.8.0_161
Farthest I've gotten is nifi-web-ui
[ERROR] Failed to extract goal com.github.eirslett:frontend-m
aven-plugin:1.1:install-node-and-npm (install-node-and-npm) on project
nifi-web-ui: Could not extract the Node archive:
'/home/scotty/.m2/repository/com/github/eirslett/node/5.7.0/node-5.7.0-linux-x64.tar.gz':
Operation not permitted
Env2:
Ubuntu 16.04 LTS, Apache Maven 3.3.9, Open JDK 64 bit 1.8.0_151
Farthest I've gotten is nifi-slack-processors
[ERROR] Failed to execute goal on project nifi-slack-processors: Could not
resolve dependencies for project
org.apache.nifi:nifi-slack-processors:jar:1.6.0-SNAPSHOT:
Could not find artifact org.apache.nifi:nifi-standard-
processors:jar:tests:1.6.0-SNAPSHOT in apache.snapshots (
https://repository.apache.org/snapshots)
Thanks,
Scott
On 03/24/2018 07:14 PM, Aldrin Piri wrote:
Hi Scott,
Are the issues with tests or something else? Could you share the error(s)
you are seeing during the build process? I just checked out Travis, and
it
looks like we are building normally.
Could you share more about your environment?
"mvn -version" would be a great start as well as letting us know what
distributions you attempted the build.
Hopefully we can smooth out whatever is amiss and get you to those custom
processors.
--aldrin
On Sat, Mar 24, 2018 at 9:41 PM, scott <[email protected]> wrote:
Hello Devs,
I've been struggling with building NiFi's latest version. I've tried
turning off the tests, building on two different Linux instances and
different versions of Maven and Java and even gave it more memory. It
always stops somewhere in the build before completing. I'm just wondering
if there is a secret handshake I'm missing. Is there a docker base image,
for instance, that has an environment that will build NiFi every time? It
takes a while to build/fail, so I'm just a bit frustrated. I'm not really
interested in becoming a Maven expert, just want to crank out some custom
processors.
Thanks for your time,
Scott