The homepage URL is wrongly generated

Description

The URL shown in the plugin manager is wrongly generated by the nbm-maven-plugin. This leads to an invalid URL.

See forum: https://forum.step.esa.int/t/checking-for-updates-failed/1874/36?u=marpet

The property homePageUrl should be set explicitly and the default value should not be used. Also the variable $project.url} should not be used.
This has been reported to netbeans:
http://mail-archives.apache.org/mod_mbox/netbeans-users/202104.mbox/browser

As a workaround the URL can be set explicitly.
Pull-requests are created:

https://github.com/senbox-org/s2tbx/pull/86

https://github.com/senbox-org/s1tbx/pull/85

Environment

None

GitHub Work

None

Activity

Show:

Marco Peters29 April 2021 at 08:19

Now learned that this is intended behavior of maven.

See: https://maven.apache.org/ref/3-LATEST/maven-model/maven.html

url: The URL to the project's homepage.
Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if project's child.project.url.inherit.append.path="false"

But actually I would expect that the URL is not modified by default by maven.

So we could set the property to false, then it work too. But now we solved it differently already.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created 27 April 2021 at 08:51
Updated 19 August 2022 at 13:37
Resolved 27 April 2021 at 13:26

Flag notifications