Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B96C97E6 for ; Fri, 19 Dec 2014 12:33:59 +0000 (UTC) Received: (qmail 49081 invoked by uid 500); 19 Dec 2014 12:33:59 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 49042 invoked by uid 500); 19 Dec 2014 12:33:59 -0000 Mailing-List: contact commits-help@nifi.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.incubator.apache.org Delivered-To: mailing list commits@nifi.incubator.apache.org Received: (qmail 49033 invoked by uid 99); 19 Dec 2014 12:33:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2014 12:33:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 19 Dec 2014 12:33:33 +0000 Received: (qmail 48497 invoked by uid 99); 19 Dec 2014 12:33:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2014 12:33:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6D066A31C32; Fri, 19 Dec 2014 12:33:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mcgilman@apache.org To: commits@nifi.incubator.apache.org Date: Fri, 19 Dec 2014 12:33:52 -0000 Message-Id: <59ce82dfd9d14b63b91886a6ddb1e418@git.apache.org> In-Reply-To: <650eeacded3e43908fb3878a5184ecda@git.apache.org> References: <650eeacded3e43908fb3878a5184ecda@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [23/43] incubator-nifi git commit: NIFI-173 changed meta-inf/dependencies to meta-inf/bundled-dependencies X-Virus-Checked: Checked by ClamAV on apache.org NIFI-173 changed meta-inf/dependencies to meta-inf/bundled-dependencies Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/8fb78d2a Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/8fb78d2a Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/8fb78d2a Branch: refs/heads/nifi-27 Commit: 8fb78d2a5862c7b147e652c1d69c0ba58b10c226 Parents: 3a4c6ed Author: joewitt Authored: Tue Dec 16 10:38:59 2014 -0500 Committer: joewitt Committed: Tue Dec 16 10:38:59 2014 -0500 ---------------------------------------------------------------------- .../src/main/java/org/apache/nifi/nar/NarClassLoader.java | 10 +++++----- nar-maven-plugin/src/main/java/nifi/NarMojo.java | 9 ++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/8fb78d2a/nar-bundles/framework-bundle/framework/nar/src/main/java/org/apache/nifi/nar/NarClassLoader.java ---------------------------------------------------------------------- diff --git a/nar-bundles/framework-bundle/framework/nar/src/main/java/org/apache/nifi/nar/NarClassLoader.java b/nar-bundles/framework-bundle/framework/nar/src/main/java/org/apache/nifi/nar/NarClassLoader.java index b3b7e7f..946c26e 100644 --- a/nar-bundles/framework-bundle/framework/nar/src/main/java/org/apache/nifi/nar/NarClassLoader.java +++ b/nar-bundles/framework-bundle/framework/nar/src/main/java/org/apache/nifi/nar/NarClassLoader.java @@ -50,7 +50,7 @@ import org.slf4j.LoggerFactory; * *
  *	+META-INF/
- *	+-- dependencies/
+ *	+-- bundled-dependencies/
  *	    +-- <JAR files>
  *	+-- MANIFEST.MF
  * 
@@ -186,9 +186,9 @@ public class NarClassLoader extends URLClassLoader { private void updateClasspath(File root) throws IOException { addURL(root.toURI().toURL()); // for compiled classes, META-INF/, etc. - File dependencies = new File(root, "META-INF/dependencies"); + File dependencies = new File(root, "META-INF/bundled-dependencies"); if (!dependencies.isDirectory()) { - LOGGER.warn(narWorkingDirectory + " does not contain META-INF/dependencies!"); + LOGGER.warn(narWorkingDirectory + " does not contain META-INF/bundled-dependencies!"); } addURL(dependencies.toURI().toURL()); if (dependencies.isDirectory()) { @@ -200,9 +200,9 @@ public class NarClassLoader extends URLClassLoader { @Override protected String findLibrary(final String libname) { - File dependencies = new File(narWorkingDirectory, "META-INF/dependencies"); + File dependencies = new File(narWorkingDirectory, "META-INF/bundled-dependencies"); if (!dependencies.isDirectory()) { - LOGGER.warn(narWorkingDirectory + " does not contain META-INF/dependencies!"); + LOGGER.warn(narWorkingDirectory + " does not contain META-INF/bundled-dependencies!"); } final File nativeDir = new File(dependencies, "native"); http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/8fb78d2a/nar-maven-plugin/src/main/java/nifi/NarMojo.java ---------------------------------------------------------------------- diff --git a/nar-maven-plugin/src/main/java/nifi/NarMojo.java b/nar-maven-plugin/src/main/java/nifi/NarMojo.java index 5196f73..9b70ec0 100644 --- a/nar-maven-plugin/src/main/java/nifi/NarMojo.java +++ b/nar-maven-plugin/src/main/java/nifi/NarMojo.java @@ -290,6 +290,9 @@ public class NarMojo extends AbstractMojo { */ @Parameter(property = "overWriteIfNewer", required = false, defaultValue = "true") protected boolean overWriteIfNewer; + + @Parameter( property = "projectBuildDirectory", required = false, defaultValue = "${project.build.directory}") + protected File projectBuildDirectory; /** * Used to look up Artifacts in the remote repository. @@ -499,12 +502,12 @@ public class NarMojo extends AbstractMojo { } private File getClassesDirectory() { - final File outputDirectory = new File(project.getBasedir(), "target"); + final File outputDirectory = projectBuildDirectory; return new File(outputDirectory, "classes"); } private File getDependenciesDirectory() { - return new File(getClassesDirectory(), "META-INF/dependencies"); + return new File(getClassesDirectory(), "META-INF/bundled-dependencies"); } private void makeNar() throws MojoExecutionException { @@ -518,7 +521,7 @@ public class NarMojo extends AbstractMojo { } public File createArchive() throws MojoExecutionException { - final File outputDirectory = new File(project.getBasedir(), "target"); + final File outputDirectory = projectBuildDirectory; File narFile = getNarFile(outputDirectory, finalName, classifier); MavenArchiver archiver = new MavenArchiver(); archiver.setArchiver(jarArchiver);