-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find artifact native-src #2558
Comments
@Lekanich that is pretty strange... what os do you use ? Also did you try: |
@normanmaurer When I try do this, I take: Maybe it's because version is SNAPSHOT? P.S. |
@Lekanich run with -X and paste the stacktrace please |
I run: "-U -X clean package" Dclassworlds.conf=/usr/lib/apache-maven/apache-maven-3.1.1/bin/m2.conf -Didea.launcher.port=7533 -Didea.launcher.bin.path=/home/alex/IDEA/idea-IU-135.475/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/apache-maven/apache-maven-3.1.1/boot/plexus-classworlds-2.5.1.jar:/home/alex/IDEA/idea-IU-135.475/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=13.1.3 -U -X clean package Downloading: https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-transport-native-epoll/4.0.20.Final-SNAPSHOT/netty-transport-native-epoll-4.0.20.Final-SNAPSHOT-native-src.zip Process finished with exit code 1 |
@Lekanich try maven 3.2.1 |
@normanmaurer [ERROR] Failed to execute goal me.normanmaurer.maven.autobahntestsuite:autobahntestsuite-maven-plugin:0.1.3:fuzzingclient (default) on project netty-testsuite: Unable to start server: io.netty.testsuite.websockets.autobahn.AutobahnServer -> [Help 1] Stack trace = 2Mb, maybe you want something concrete, I can't paste 2MB) |
@Lekanich please upload it somewhere where I can get it without download a exe first. I'm on osx and linux ;) |
@normanmaurer http://s000.tinyupload.com/download.php?file_id=51858906031455324584&t=5185890603145532458498639 |
@normanmaurer No ideas? |
Maybe this better describes the problem. [INFO] |
@normanmaurer i just upgraded to netty 4.0.20 i also got below error from netty jar in maven central Exception in thread "main" java.lang.UnsatisfiedLinkError: no netty-transport-native-epoll in java.library.path Is this related to same issue? |
@JatinderSingh what OS you try to use the native transport with ? |
@normanmaurer I got this error on ubuntu and centos, |
Which versions?
|
Ubuntu 12.04 and CentOS release 6.4 (Final). Same are working fine with 4.0.17. |
@normanmaurer in 4.0.20.Final jar the epoll native library file .so is missing (which caused above issue for me) was it moved to a different location? |
Yes, you have to specify the classifier when you pull it in, since 4.0.20. I've just update the wiki page. Sorry for the confusion: http://netty.io/wiki/native-transports.html |
BTW, I cannot reproduce the problem @Lekanich reported. |
Thanks @trustin I think this will solve issue i mentioned. |
@trustin |
@Lekanich I tried on ubuntu 14 and centos 6.5 ... worked so far. |
Thanks for all. Debian/Ubuntu: |
isn't this what is explained in our docs ;) ? |
Yeh, but for me it was not so obvious.) |
And now I have new Error( maybe I again didn't readsomething?): INFO] --- maven-hawtjni-plugin:1.10:build (build-native-lib) @ netty-transport-native-epoll --- |
you need to have kernel >= 3.x to compile the native stuff. What kernel version you have ? |
You mean this? |
@normanmaurer Maybe we are missing a '.h' file in the includes? The kernel folks might have moved SO_REUSEPORT to a different header file for example. @Lekanich Could you try to build it after adding the following line: #include <asm/socket.h> to #include <sys/socket.h> |
@trustin |
@Lekanich can you tell me the exact version of debian/ubuntu you use so I can install on a vm and reproduce ? |
@trustin where do you read that it is deprecated ? I don't think this is true... the stackoverflow article is from 2010 |
Ugh, I misread it. No deprecation. We should do this anyways: #ifndef SO_REUSEPORT
#define SO_REUSEPORT 15
#endif |
Motivation: Currently it is impossible to build netty on linux system that not define SO_REUSEPORT even if it is supported. Modification: Define SO_REUSEPORT if not defined. Result: Possible to build on more linux dists.
Motivation: Currently it is impossible to build netty on linux system that not define SO_REUSEPORT even if it is supported. Modification: Define SO_REUSEPORT if not defined. Result: Possible to build on more linux dists.
Motivation: Currently it is impossible to build netty on linux system that not define SO_REUSEPORT even if it is supported. Modification: Define SO_REUSEPORT if not defined. Result: Possible to build on more linux dists.
@trustin done... Thanks to all of you for the comments ! |
hello,I downloads os-maven-plugin-1.2.3.Final.jar to eclipse plugins folder, all projects works well except above node is red color....it's seems tell me is something wrong~ |
execution node is wrong.... |
could you please format your comment? I also would like to know the exact OS, JDK, and Maven version. |
sorry,how can I format the xml. OS is mac os X 10.9.5,jdk is 1.7.0_67, maven is apache 3.1.1 |
eclipse tips 'Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property (execution: regex-combined-sendmmsg, phase: |
@jiangzhangzhi - You can also take a screen shot of the relevant error and post it if that is easier. Also what version of eclipse and m2e are you running? |
@jiangzhangzhi - Also as an experiment can you make a few changes in Try to change all of the |
thinks, It's OK now, I try to ignore the errors then run Maven->Update Project. |
@jiangzhangzhi - Glad to hear things are working for you. Just to clarify...are things working after you made the changes to |
I'd the following maven output, after run: mvn -X -U clean package under the transport-native-epoll dir:
My Ubuntu box with Linux K27 3.2.0-69-generic-pae #103-Ubuntu SMP Tue Sep 2 05:15:53 UTC 2014 i686 i686 i686 GNU/Linux, |
Please upgrade your Maven to the latest stable version. 3.0 is way too old. |
mvn -version:
|
@junjiemars like @trustin said you need to upgrade. 3.2.1 or later works great |
@normanmaurer yes, I'd upgraded to maven 3.2.x, the issue gone, but I can not resolve this issue |
@normanmaurer @trustin thanks, i meet the same problem before i upgraded to maven 3.3.9 |
@normanmaurer I meet the same problem. After run mvn -U clean package -e under transport-native-epoll dir: Try downloading the file manually from the project website. Then, install it using the command: Alternatively, if you host your own repository you can deploy the file there: io.netty:netty-transport-native-epoll:zip:4.1.22.Final-SNAPSHOT from the specified remote repositories:
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact io.netty:netty-transport-native-epoll:zip:native-src:4.1.22.Final-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) |
Motivation: Currently it is impossible to build netty on linux system that not define SO_REUSEPORT even if it is supported. Modification: Define SO_REUSEPORT if not defined. Result: Possible to build on more linux dists.
Hello,
When I try to build Netty I see this error. It wants native-src.zip. Where do I can get it?
Error log:
[ERROR] Failed to execute goal org.fusesource.hawtjni:maven-hawtjni-plugin:1.10:build (build-native-lib) on project netty-transport-native-epoll: build failed: org.apache.maven.plugin.MojoExecutionException: Requested download does not exist. Could not find artifact io.netty:netty-transport-native-epoll:zip:native-src:4.0.20.Final-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots)
The text was updated successfully, but these errors were encountered: