-
Notifications
You must be signed in to change notification settings - Fork 408
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
Build failed on windows because of some LinkParser Tests #1147
Comments
Another point: |
It seems to be able to build sources now, but build jar package failure, error information is as follows: [INFO] Reactor Summary for leshan 2.0.0-SNAPSHOT: |
With the following configuration, I can build everything, but it seems that the jar file is not generated for "demo_" ---------------------< org.eclipse.leshan:leshan >---------------------- [INFO] Running org.eclipse.leshan.core.datatype.NumberUtilTest [INFO] Running org.eclipse.leshan.core.tlv.TlvDecoderTest |
The following log comes from command: #mvn clean install [INFO] Running org.eclipse.leshan.core.datatype.NumberUtilTest [INFO] Running org.eclipse.leshan.core.tlv.TlvDecoderTest |
I never build with maven in Eclipse. I don't get the purpose of this 🤔 unless you want to debug some maven plugin.
This should be done at root level (at least the first time). Personally, I don't need to build often and quickly because my developer flow is in eclipse.
Yes you need a JDK not a JRE.
I guess this is maybe an encoding issue with Anyway as a workaround you can also eventually use |
(I just get that was you trying to make it works with java16 (#1099) 😅) |
I'm already tested project building with java 16 and java 17 and I don't see any problems. I'm also linux user, so always I tried to build it on linux. I tried now to build project on windows with java 8 and I see similar problem with I chose this character in tests to validate functionality with non-standard encoding and till now it works ok. It needs more investigating. |
I found the problem: in tests there is used |
There is the fix: #1149 |
I guess there is same issue in : |
Good point. I ran all the tests (with only one fix) and all was ok. The LinkParserValidationTest should also be fixed but I didn't noticed that because we expect exception anyway. I'll fix it. |
Strangely @pioneerAlone get a :
@Michal-Wadowski thx you very much for the investigation and fix about that. 🙏 @pioneerAlone this should works now with |
Thanks everyone for support. When I skip the TEST unit,work fine. I'll try the latest master again. |
Dear developer,
When using eclipse IDE, I have encountered some problems, the environment seems to be no problem, but I am not sure how to build the project, I want to build the jar package for a certain demo separately, can I? Or do all builds on root dir leshan?
The error is as follows:
Execute maven install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] leshan [pom]
[INFO] leshan - core [bundle]
[INFO] leshan - core californium [bundle]
[INFO] leshan - server core [bundle]
[INFO] leshan - server californium [bundle]
[INFO] leshan - server redis [bundle]
[INFO] leshan - client core [bundle]
[INFO] leshan - client californium [bundle]
[INFO] leshan - integration tests [jar]
[INFO] leshan - core demo [jar]
[INFO] leshan - client demo [jar]
[INFO] leshan - server core demo [jar]
[INFO] leshan - server demo [jar]
[INFO] leshan - bootstrap server demo [jar]
[INFO]
[INFO] ---------------------< org.eclipse.leshan:leshan >----------------------
[INFO] Building leshan 2.0.0-SNAPSHOT [1/14]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-maven) @ leshan ---
[INFO]
[INFO] >>> maven-source-plugin:3.2.1:jar (attach-sources) > generate-sources @ leshan >>>
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-maven) @ leshan ---
[INFO]
[INFO] <<< maven-source-plugin:3.2.1:jar (attach-sources) < generate-sources @ leshan <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:3.2.1:jar (attach-sources) @ leshan ---
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.5.0/maven-archiver-3.5.0.pom
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/4.2.1/plexus-archiver-4.2.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for leshan 2.0.0-SNAPSHOT:
[INFO]
[INFO] leshan ............................................. FAILURE [ 43.532 s]
[INFO] leshan - core ...................................... SKIPPED
[INFO] leshan - core californium .......................... SKIPPED
[INFO] leshan - server core ............................... SKIPPED
[INFO] leshan - server californium ........................ SKIPPED
[INFO] leshan - server redis .............................. SKIPPED
[INFO] leshan - client core ............................... SKIPPED
[INFO] leshan - client californium ........................ SKIPPED
[INFO] leshan - integration tests ......................... SKIPPED
[INFO] leshan - core demo ................................. SKIPPED
[INFO] leshan - client demo ............................... SKIPPED
[INFO] leshan - server core demo .......................... SKIPPED
[INFO] leshan - server demo ............................... SKIPPED
[INFO] leshan - bootstrap server demo ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.631 s
[INFO] Finished at: 2021-11-10T03:08:40+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.2.1:jar (attach-sources) on project leshan: Execution attach-sources of goal org.apache.maven.plugins:maven-source-plugin:3.2.1:jar failed: Plugin org.apache.maven.plugins:maven-source-plugin:3.2.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-source-plugin:jar:3.2.1 -> org.apache.maven:maven-archiver:jar:3.5.0: Failed to read artifact descriptor for org.apache.maven:maven-archiver:jar:3.5.0: Could not transfer artifact org.apache.maven:maven-archiver:pom:3.5.0 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/maven/maven-archiver/3.5.0/maven-archiver-3.5.0.pom: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.52.215] failed: Connection timed out: connect -> [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/PluginResolutionException
In addition, for maven build,I don’t know what should be set in Goals / Profiles, any suggestions
![image](https://user-images.githubusercontent.com/29110198/140989734-f3284a2e-9cd8-402e-970e-7f760e8974e7.png)
The text was updated successfully, but these errors were encountered: