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

Build fails when project.description is not defined #213

Closed
mayerrobert opened this issue Jan 9, 2023 · 2 comments · Fixed by #216
Closed

Build fails when project.description is not defined #213

mayerrobert opened this issue Jan 9, 2023 · 2 comments · Fixed by #216

Comments

@mayerrobert
Copy link

My project was using launch4j-maven-plugin from 2.2.0 and the launch4j config was given in an external file (configuration->infile). project.description was not specified in any of my poms and was not needed. You may see where this is going :-)

After upgrading to 2.3.0 my build failed with

Failed to execute goal com.akathist.maven.plugins.launch4j:launch4j-maven-plugin:2.3.0:launch4j (l4j-clui) on project scripts: Cannot fill out VersionInfo by defaults: Please fill the missing configuration values. Error when trying to fulfill default value for VersionInfo parameter:'fileDescription' with formula params:'${project.description}'.

I was able to "fix" this "error" by adding a dscription to my toplevel pom which is a good idea anyways. But I think launch4j-maven-plugin should not fail if it was unable to set a default value that (at least in my case) turns out not to be needed in the end (maybe default to "unspecified" or "no description" or something?)

Feel free to ignore/ wontfix/ close this issue, I don't "need" a fix, I just thought you guys might want to know an observation I made.

Cheers!

@lukaszlenart
Copy link
Collaborator

@koksyn what do you think about this?

@koksyn
Copy link
Contributor

koksyn commented Jan 13, 2023

Thanks for reporting this issue and your observations ;) ! I think it is a good idea to introduce warnings instead of exceptions.

The main idea of defaults in version 2.3.0. was to make life easier for the library user who just wants to generate an executable file without worrying about the Metadata that is filled in there (which may not be relevant to him).
The default values were taken, among other things, from the general properties of the POM project configuration. Only if there is nothing to fill in the defaults with was an exception thrown.

Nevertheless, such a situation still requires additional actions from the user like filling in project.description etc.

Soon, I will introduce changes that will fill in the missing properties with dummy data and only warn about it in the logs, so that the user is aware of what happened, without preventing him from building the executable.

nbauma109 added a commit to nbauma109/jd-gui-duo that referenced this issue Jan 15, 2023
nbauma109 added a commit to nbauma109/jd-gui-duo that referenced this issue Jan 15, 2023
* Bump rsyntaxtextarea from 3.3.0 to 3.3.1

Bumps [rsyntaxtextarea](https://github.com/bobbylight/rsyntaxtextarea) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/bobbylight/rsyntaxtextarea/releases)
- [Commits](bobbylight/RSyntaxTextArea@3.3.0...3.3.1)

---
updated-dependencies:
- dependency-name: com.fifesoft:rsyntaxtextarea
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump launch4j-maven-plugin from 2.2.0 to 2.3.0

Bumps [launch4j-maven-plugin](https://github.com/orphan-oss/launch4j-maven-plugin) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/orphan-oss/launch4j-maven-plugin/releases)
- [Commits](orphan-oss/launch4j-maven-plugin@launch4j-maven-plugin-2.2.0...launch4j-maven-plugin-2.3.0)

---
updated-dependencies:
- dependency-name: com.akathist.maven.plugins.launch4j:launch4j-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump plantuml from 1.2022.14 to 1.2023.0

Bumps plantuml from 1.2022.14 to 1.2023.0.

---
updated-dependencies:
- dependency-name: net.sourceforge.plantuml:plantuml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump maven-dependency-plugin from 3.4.0 to 3.5.0

Bumps [maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/apache/maven-dependency-plugin/releases)
- [Commits](apache/maven-dependency-plugin@maven-dependency-plugin-3.4.0...maven-dependency-plugin-3.5.0)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Added project description

See orphan-oss/launch4j-maven-plugin#213

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nbauma109 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants