Skip to content
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

Maven build improvements #119

Merged

Conversation

kriegaex
Copy link
Contributor

  • Use platform-independent path separators in exec:exec
  • Reorganise .gitignore, add IntelliJ IDEA

Also factor 4 identical classpaths out into property
'stylebook.classpath'.
Copy link
Contributor

@jkesselm jkesselm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable. A bit more organized. Can I feel encouraged that this is all you've called out so far?

@jkesselm jkesselm merged commit 06da2f2 into apache:xalan-java-mvn-refactored Nov 14, 2023
@kriegaex
Copy link
Contributor Author

Like I said on the mailing list, I just wanted to make the Maven build run and then noticed that there was no more error creating assemblies. So for now, I did not dig any deeper. I wanted your feedback first, focusing on solving any possible problems you are still encountering first, before eventually we might look into more cosmetical things - the proviso always being that I even have sparetime to look into it.

@kriegaex kriegaex deleted the xalan-java-mvn-refactored branch November 14, 2023 01:55
@kriegaex kriegaex restored the xalan-java-mvn-refactored branch November 14, 2023 01:55
@kriegaex kriegaex deleted the xalan-java-mvn-refactored branch November 14, 2023 01:58
@jkesselm
Copy link
Contributor

jkesselm commented Nov 14, 2023 via email

@kriegaex
Copy link
Contributor Author

kriegaex commented Nov 14, 2023

I suggest to make your parent POM just an aggregator with modules and not put any artifacts or artifact-creating plugins in there. It is better to create modules for things like docs generation or assembly building.

Edit: I misunderstood. My advice, while correct, does not apply to your situation with the distribution, because you already created a separate module for it. After reading your comment without readying the code, I was under the impression that you would build the distribution from the parent POM.

@kriegaex
Copy link
Contributor Author

When the binary-assembly module was set to run as type pom. It seemed to be overwriting its own pom.xml with one of the archive files. For now I've worked around that by setting the output type to jar even though it shouldn't be producing a jarfile we need, but at some point I will have to understand why that was happening.

No, it does not overwrite the POM. I tried with your latest commit. Maybe in a previous version, you experimented with output directories or with special path and name for the dependency-reduced POM and accidentally ended up putting it into the base instead of the build directory.

@jkesselm
Copy link
Contributor

jkesselm commented Nov 14, 2023 via email

@jkesselm
Copy link
Contributor

jkesselm commented Nov 14, 2023

Well... If I try to change distribution/pom.xml to <packaging>pom</packaging>, I do reproduce the problem of that file being overwritten. Revert that file, change it back to <packaging>pom</packaging>, and the problem goes away.

The workaround of producing a near-empty jarfile is good enough for me, for now. But it would be good to understand whether the overwrite is a Maven/plugin bug (possibly because I'm loading an archaic version of something fixed long ago), or is me having done something stupid.

jkesselm pushed a commit that referenced this pull request Jan 1, 2024
* Reorganise .gitignore, add IntelliJ IDEA
* Use platform-independent path separators in exec:exec
* Also factor 4 identical classpaths out into property 'stylebook.classpath'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants