Maven 2.x and 3.x Site Plugin

Links on Modules are completely broken on site:stage

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-6
  • Fix Version/s: 2.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The latest maven-site-plugin 2.0-beta-6 seems to to introduce a new bug that was NOT present in 2.0-beta-5:
Now all my modules point to the same url which is "../../opt/project/build/development/projects/../dummyhost.de"
Something goes very wrong here:
1. The link should not contain pathnames specific for the environment where it was build (/opt/project/build/development/projects) nor the hostname and path of the distributionManagement.
2. The modulename itself is totally lost and all module-links in the menu have the same href

Whatever has happend here, made it a lot worse. The site is now totally unuseable.
It seems that only mvn site was tested before the 2.0-beta-6 was released. Multimodule-Builds need to be tested with site:stage or site:deploy.

Issue Links

Activity

Hide
Eric Dalquist added a comment -

I see this problem as well. Module links generated by site:stage and site-deploy are broken. Reverting to 2.0-beta-5 solves the issue:

Add the following plugin to the <build> in your root POM

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.0-beta-5</version>
</plugin>

Show
Eric Dalquist added a comment - I see this problem as well. Module links generated by site:stage and site-deploy are broken. Reverting to 2.0-beta-5 solves the issue: Add the following plugin to the <build> in your root POM <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>2.0-beta-5</version> </plugin>
Hide
John Allen added a comment -

stage does seem to now have difficulties since beta-6

Show
John Allen added a comment - stage does seem to now have difficulties since beta-6
Hide
Jörg Hohwiller added a comment -

I can NOT reopen MSITE-275 and got no response, so I reopen this one. This bug is still not fixed in 2.0.

Show
Jörg Hohwiller added a comment - I can NOT reopen MSITE-275 and got no response, so I reopen this one. This bug is still not fixed in 2.0.
Hide
Lukas Theussl added a comment -

This looks like a dupe of MSITE-404, but you didn't a attach a test project so I can't check. Please test with site-plugin-2.1-SNAPSHOT.

Show
Lukas Theussl added a comment - This looks like a dupe of MSITE-404, but you didn't a attach a test project so I can't check. Please test with site-plugin-2.1-SNAPSHOT.
Hide
Lukas Theussl added a comment -

This works in 2.1 as far as I could test. Please open another ticket with a specific test case if you still have problems.

Show
Lukas Theussl added a comment - This works in 2.1 as far as I could test. Please open another ticket with a specific test case if you still have problems.

People

Vote (3)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: