{"id":1296,"date":"2016-04-08T16:25:05","date_gmt":"2016-04-08T20:25:05","guid":{"rendered":"http:\/\/blog.jonesling.us\/?p=1296"},"modified":"2016-04-08T16:35:41","modified_gmt":"2016-04-08T20:35:41","slug":"nifi-build-error","status":"publish","type":"post","link":"https:\/\/blog.jonesling.us\/?p=1296","title":{"rendered":"NiFi Build Error"},"content":{"rendered":"<p>I&#8217;m testing <a href=\"https:\/\/nifi.apache.org\/\" target=\"_blank\">NiFi<\/a> out on my local Gentoo installation to prepare for an implementation at work, and after a rather lengthy build\/test process (&#8220;ten minutes&#8221; my fanny) ran into this error:<\/p>\n<p><code>$ mvn clean install<br \/>\n[INFO] Scanning for projects...<br \/>\n...<br \/>\n'Script Engine' validated against 'ECMAScript' is invalid because Given value not found in allowed set 'Groovy, lua, python, ruby'<\/code><\/p>\n<p>This error left me scratching my head.\u00a0 Nothing related to JavaScript\/ECMAScript dependencies were mentioned anywhere.\u00a0 How would you get it, anyway?\u00a0 Webkit, I suppose&#8230;<\/p>\n<p>Sudden epiphany: this is a new Gentoo installation, and this program, including the build script, is running Java.\u00a0 Gentoo doesn&#8217;t install <del>Sun<\/del> Oracle&#8217;s Java by default, but instead comes with <a href=\"http:\/\/icedtea.classpath.org\" target=\"_blank\">IcedTea<\/a> out of the box.\u00a0 It&#8217;s acceptable for some simple uses, but is buggy for any complex. (Minecraft is a great example where it just doesn&#8217;t work.)\u00a0 I haven&#8217;t used Java for anything yet, so I hadn&#8217;t installed the JDK yet.\u00a0 The build instructions specify JDK 1.7 or higher, but I didn&#8217;t think anything of it because I&#8217;m used to just having it installed.<\/p>\n<p><code>echo \"dev-java\/oracle-jdk-bin Oracle-BCLA-JavaSE\" \\<br \/>\n&nbsp;&nbsp;&gt;&gt; \/etc\/portage\/package.license\/file<br \/>\nemerge -av dev-java\/oracle-jdk-bin<br \/>\n...<br \/>\n$ mvn clean install<br \/>\n[INFO] Scanning for projects...<br \/>\n...<br \/>\n[INFO] BUILD SUCCESS<br \/>\n<\/code><\/p>\n<p>Finally!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m testing NiFi out on my local Gentoo installation to prepare for an implementation at work, and after a rather lengthy build\/test process (&#8220;ten minutes&#8221; my fanny) ran into this error: $ mvn clean install [INFO] Scanning for projects&#8230; &#8230; &#8216;Script Engine&#8217; validated against &#8216;ECMAScript&#8217; is invalid because Given value not found in allowed set &hellip; <a href=\"https:\/\/blog.jonesling.us\/?p=1296\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;NiFi Build Error&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[145,267],"class_list":["post-1296","post","type-post","status-publish","format-standard","hentry","category-linux","tag-gentoo","tag-nifi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4o3FW-kU","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1296"}],"version-history":[{"count":6,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1296\/revisions"}],"predecessor-version":[{"id":1302,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/1296\/revisions\/1302"}],"wp:attachment":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}