Maven 2.x and 3.x Site Plugin

Site upload is not compatible with sourceforge.net changes

Details

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

Description

After last changes in sf.net infrastructure there are three ways of
uploading stuff to web area:

  1. sftp
  2. scp
  3. rsync over ssh

I've tried two first options and they both failed. Maven uploads zip
file (wagonXXXX.zip) and then tries to unzip it. However unzip
command is not available.
As far as I understand, Maven doesn't support site deployment via rsync.

So technically it is impossible to use Maven for site upload to sf.net

See http://sourceforge.net/community/forum/topic.php?id=3518&page for sf.net announcement on this changes.

Issue Links

Activity

Hide
Marat Radchenko added a comment -

Woops, should be in maven-site-plugin (or wagon, not sure)

Show
Marat Radchenko added a comment - Woops, should be in maven-site-plugin (or wagon, not sure)
Hide
Rainer W added a comment -

obvious 2.0.9 also has same problem. There should be a file by file upload method.

Show
Rainer W added a comment - obvious 2.0.9 also has same problem. There should be a file by file upload method.
Hide
Markus Klink added a comment -

Are there any updates or plans for this one? Is there a known workaround?
Markus

Show
Markus Klink added a comment - Are there any updates or plans for this one? Is there a known workaround? Markus
Hide
Thiago Lećo Moreira added a comment -

I am doing the following after a "mvn site":

scp -r target/site/* user_name,project_name@web.sourceforge.net:/home/groups/project_path/htdocs

At least my project is being updated until the problem isn't fixed

Show
Thiago Lećo Moreira added a comment - I am doing the following after a "mvn site": scp -r target/site/* user_name,project_name@web.sourceforge.net:/home/groups/project_path/htdocs At least my project is being updated until the problem isn't fixed
Hide
Markus Klink added a comment -

This does not work for me unfortunately - as I have a multiproject site and the staging does not produce valid pages locally.
I think a fix for this is urgent. As other users have pointed out before, it would be sufficient to have a flag for site:deploy to copy files one by one, instead of zipped. Markus

Show
Markus Klink added a comment - This does not work for me unfortunately - as I have a multiproject site and the staging does not produce valid pages locally. I think a fix for this is urgent. As other users have pointed out before, it would be sufficient to have a flag for site:deploy to copy files one by one, instead of zipped. Markus
Hide
johan lindquist added a comment -

Seems you can get a shell - you just need to create it first.

The below command creates a time-limited shell.

ssh -t <username>,<project>@shell.sourceforge.net create

maven site:deploy succeeded after this (just make sure you change the <username>,<project> to match your details).

One issue remains - even though I have copied my public key to the 'shell', it always asks me for a password.

Show
johan lindquist added a comment - Seems you can get a shell - you just need to create it first. The below command creates a time-limited shell. ssh -t <username>,<project>@shell.sourceforge.net create maven site:deploy succeeded after this (just make sure you change the <username>,<project> to match your details). One issue remains - even though I have copied my public key to the 'shell', it always asks me for a password.
Hide
Barrie Treloar added a comment -

Isn't web site deployment to web.sf.net instead?
And that is a restricted environment that does not allow shell access.

Show
Barrie Treloar added a comment - Isn't web site deployment to web.sf.net instead? And that is a restricted environment that does not allow shell access.
Hide
johan lindquist added a comment -

I hope I understand your question correctly - the create command will create a shell with the project directory mounted, allowing Wagon to do its job as usual

Show
johan lindquist added a comment - I hope I understand your question correctly - the create command will create a shell with the project directory mounted, allowing Wagon to do its job as usual
Hide
Barrie Treloar added a comment -

Documentation only fix.

The plugin will work AS IS to deploy to sourceforge.
Thanks to Johan for pointing out the steps.

See the examples/site-deploy-to-sourceforge.net.apt for complete instructions.

A new snapshot build has been deployed.

Snapshot documentation has been deployed to http://people.apache.org/~baerrach/maven-site-plugin-2.0-beta-8-SNAPSHOT/

The specific document you want to read is
http://people.apache.org/~baerrach/maven-site-plugin-2.0-beta-8-SNAPSHOT/examples/site-deploy-to-sourceforge.net.html

Show
Barrie Treloar added a comment - Documentation only fix. The plugin will work AS IS to deploy to sourceforge. Thanks to Johan for pointing out the steps. See the examples/site-deploy-to-sourceforge.net.apt for complete instructions. A new snapshot build has been deployed. Snapshot documentation has been deployed to http://people.apache.org/~baerrach/maven-site-plugin-2.0-beta-8-SNAPSHOT/ The specific document you want to read is http://people.apache.org/~baerrach/maven-site-plugin-2.0-beta-8-SNAPSHOT/examples/site-deploy-to-sourceforge.net.html
Hide
Herve Boutemy added a comment -

shell access had been removed
but it has been added again on 30/10/2008: see the "Interactive shell service launched" announce

Show
Herve Boutemy added a comment - shell access had been removed but it has been added again on 30/10/2008: see the "Interactive shell service launched" announce
Hide
Jared Bunting added a comment -

As per Johan's issue with the public key - if you go to your Account settings on the sf.net website, you can add keys in there. These seem to work for this shell.

Show
Jared Bunting added a comment - As per Johan's issue with the public key - if you go to your Account settings on the sf.net website, you can add keys in there. These seem to work for this shell.
Hide
Barrie Treloar added a comment -

johan lindquist says:
> One issue remains - even though I have copied my public key to the 'shell', it always asks me for a password.

Do you mean maven prompts you for your password?

Do you really mean the passphrase for your private key?
You have to save your private key out with no passphrase, otherwise maven must ask you for it in order to connect via ssh. I dont believe maven works with ssh-agents for password management.

Show
Barrie Treloar added a comment - johan lindquist says: > One issue remains - even though I have copied my public key to the 'shell', it always asks me for a password. Do you mean maven prompts you for your password? Do you really mean the passphrase for your private key? You have to save your private key out with no passphrase, otherwise maven must ask you for it in order to connect via ssh. I dont believe maven works with ssh-agents for password management.

People

Vote (22)
Watch (16)

Dates

  • Created:
    Updated:
    Resolved: