[ 
https://issues.apache.org/jira/browse/NIFI-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15973675#comment-15973675
 ] 

Bastian Bretagne edited comment on NIFI-3554 at 4/18/17 10:59 PM:
------------------------------------------------------------------

Hello, I am having trouble trying to build rpm with v1.1.2
Environment: centos6.7
java 1.8:
{quote}
[root@build-machine nifi-1.1.2]# java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
[root@build-machine nifi-1.1.2]# mvn -version
Maven home: /home/bbretagne/dupis/apache-maven-3.5.0
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b13.el6.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.102-1.el6.elrepo.x86_64", arch: "amd64", 
family: "unix"
{/quote}

{quote}
$ mvn clean install -Prpm
[...]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
on project nifi-standard-processors: Could not resolve dependencies for project 
org.apache.nifi:nifi-standard-processors:jar:1.1.2: Failure to find 
de.svenkubiak:jBcrypt:jar:0.4.1 in https://repo1.maven.org/maven2 was cached in 
the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced
[...]
Caused by: org.apache.maven.project.DependencyResolutionException: Could not 
resolve dependencies for project 
org.apache.nifi:nifi-standard-processors:jar:1.1.2: Failure to find 
de.svenkubiak:jBcrypt:jar:0.4.1 in https://repo1.maven.org/maven2 was cached in 
the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced
{/quote}



was (Author: bashtian):
Hello, I am having trouble trying to build rpm with v1.1.2
Environment: centos6.7
java 1.8:
{quote}
[root@build-machine nifi-1.1.2]# java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
[root@build-machine nifi-1.1.2]# mvn -version
Maven home: /home/bbretagne/dupis/apache-maven-3.5.0
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-1.b13.el6.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.102-1.el6.elrepo.x86_64", arch: "amd64", 
family: "unix"
{/quote}
{quote}
$ mvn clean install -Prpm
[...]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
on project nifi-standard-processors: Could not resolve dependencies for project 
org.apache.nifi:nifi-standard-processors:jar:1.1.2: Failure to find 
de.svenkubiak:jBcrypt:jar:0.4.1 in https://repo1.maven.org/maven2 was cached in 
the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced
[...]
Caused by: org.apache.maven.project.DependencyResolutionException: Could not 
resolve dependencies for project 
org.apache.nifi:nifi-standard-processors:jar:1.1.2: Failure to find 
de.svenkubiak:jBcrypt:jar:0.4.1 in https://repo1.maven.org/maven2 was cached in 
the local repository, resolution will not be reattempted until the update 
interval of central has elapsed or updates are forced
{/quote}


> Build does not work if pulling dependencies from a clean environment
> --------------------------------------------------------------------
>
>                 Key: NIFI-3554
>                 URL: https://issues.apache.org/jira/browse/NIFI-3554
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Tools and Build
>    Affects Versions: 0.7.1, 1.2.0
>         Environment: tested with a MacOS X 10.11.6  (El Capitan), but this 
> problem should happen also with linux based machines.
>            Reporter: Pere Urbon-Bayes
>            Assignee: Andre F de Miranda
>            Priority: Minor
>              Labels: beginner, maven
>             Fix For: 0.8.0, 1.2.0
>
>         Attachments: 
> 0001-NIFI-3554-Fixing-the-jBCrypt-dependency-name-from.patch
>
>
> When building NIFI from scratch the build process raised this issue to me:
> {noformat}
> [INFO] --- maven-surefire-plugin:2.18:test (default-test) @ 
> nifi-site-to-site-reporting-task ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Nothing to compile - all classes are up to date
> [INFO] Surefire report directory: 
> /Users/purbon/work/nifi/nifi/nifi-nar-bundles/nifi-site-to-site-reporting-bundle/nifi-site-to-site-reporting-task/target/surefire-reports
> [INFO] Using configured provider 
> org.apache.maven.surefire.junit4.JUnit4Provider
> -------------------------------------------------------
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ 
> nifi-gcp-processors ---
>  T E S T S
> -------------------------------------------------------
> [ERROR] Failed to execute goal on project nifi-standard-processors: Could not 
> resolve dependencies for project 
> org.apache.nifi:nifi-standard-processors:jar:1.2.0-SNAPSHOT: Failure to find 
> de.svenkubiak:jBcrypt:jar:0.4.1 in https://repo1.maven.org/maven2 was cached 
> in the local repository, resolution will not be reattempted until the update 
> interval of central has elapsed or updates are forced -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :nifi-standard-processors
> {noformat}
> showing a problem with a dependency that could not be retrieved. 
> After a bit of investigation I noticed that the dependency is using a 
> capitalised name, in contrast from the one currently being in the repository.
> {code:xml}
> <dependency>
>     <groupId>de.svenkubiak</groupId>
>     <artifactId>jBCrypt</artifactId>
>     <version>0.4.1</version>
> </dependency>
> {code}
> vs the definition now in nifi-standad-processors/pom.xml:
> {code:xml}
> <dependency>
>  <groupId>de.svenkubiak</groupId>
>  <artifactId>jBcrypt</artifactId>
>  <version>0.4.1</version>
> </dependency>
> {code}
> You can reproduce this issue by forcing maven to retrieve this dependency 
> from the repository, for example removing it from your .m2/repository 
> directory. 
> This is my first issue reported to the NIFI community, accept my apologies 
> beforehand if I did something not as expected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to