-
Notifications
You must be signed in to change notification settings - Fork 824
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
upgrade bundled maven to 3.8.7 #5170
Conversation
5D9CE6ADD7B714B8095F0E3E396C5E9F8C5DCFEF org.apache.maven.shared:maven-dependency-tree:2.2 | ||
3ABB90E23BE975D397BBAA43773DD0861DAE26C6 org.apache.maven:apache-maven:3.8.6:bin@zip | ||
4CAAED06DFADFE54EA5C0DD8806EFC0B65812081 org.apache.maven:apache-maven:3.8.7:bin@zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note for later: maven-dependency-tree:2.2
is super old. Probably worth updating in separate PR
1637B7E8FC392E389752E79B827B883629285626;org.apache.maven:maven-artifact:3.8.7 | ||
4D22A3FAA8880EFEF2E960BB8A00C2A0B351C46A;org.apache.maven:maven-builder-support:3.8.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw I haven't updated a single hash in this file and everything is green for some reason. @ebarboni are some CI checks missing or did I forget something important?
verify-libs-and-licenses:
[verifylibsandlicenses] /home/runner/work/netbeans/netbeans/nbbuild/build/verifylibsandlicenses.xml: 0 failures out of 5 tests
BUILD SUCCESSFUL
Total time: 31 seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the hashes now after I noticed there is a manual checkhash
target.
The zip is hashed and checked as regular build step since its in the binaries-list
. I suppose the binariesembedded-list
isn't checked because it would be redundant? I am wondering why it exists, just to list the jars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is used to get the maven coodinates for the binaries in the zip. See here:
Lines 249 to 268 in 6afa3a9
<target name="getallmavencoordinates"> | |
<concat destfile="${nb_all}/nbbuild/build/external.info"> | |
<fileset dir="${nb_all}" includes="**/external/binaries-list" /> | |
<fileset dir="${nb_all}" includes="**/external/binariesembedded-list" /> | |
<filterchain> | |
<!-- remove comment inline not inline --> | |
<tokenfilter> | |
<replaceregex pattern="#(.*)$" replace="" flags="gim" /> | |
</tokenfilter> | |
<!-- : is sparator for maven coordinate --> | |
<linecontains> | |
<contains value=":"/> | |
</linecontains> | |
<!-- needed as separator --> | |
<tokenfilter> | |
<replacestring from=" " to=";"/> | |
</tokenfilter> | |
</filterchain> | |
</concat> | |
</target> |
That file is then further used by the build when the maven repository is generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I was just wondering if there is any reason to update the hashes for us. If there is: we could hook the check (checkhash
) into the build or call it directly from the paperwork job.
If there is no reason to update the hashes since the file is only used as list of jars and the zip is checked anyway, we could just leave a note to not bother with it and only update artifact name and version.
getting some warnings when running maven projects:
this isn't caused by #5111 so it must be this PR edit:
|
@mbien you are seeing a problem in the build process (or better the result of) Lines 58 to 65 in 604cf9d
I decompiled the resulting Please have a look here: https://github.com/matthiasblaesing/netbeans/tree/pr-5170. And/or here: matthiasblaesing@d9d1309. Feel free to pull it in. |
@matthiasblaesing oh I get it. I was trying to find where the event spy is supposed to go, found it now: Is it ok to squash and add you as co-author? |
Maven dist dropped commons-io as dependency. Fix building of ueber-jar for netbeans-eventspy: The shading applied by jarjar tool fails on JDK 8+. In consequence the classes from simple json are renamed, but the references to these classes are not fixed. This works as long as a copy of simple json is also on the classpath. Co-authored-by: Matthias Bläsing <mblaesing@doppel-helix.eu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me and a quick(!) test showed, that it seems to work.
tested it with several larger projects and saw no anomalies. Going to merge it once master is green again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to merge thanks for doing this. Maven 4 is on the way to not sure on how transition will be easy 😄
https://maven.apache.org/docs/3.8.7/release-notes.html
maven dropped the
commons-io
dependency, other then that everything should stay the same.some ignored overlaps files might need adjusting, lets see what CI says.