Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Document the problems with file permissions that can occur when publishing a snapshot

...

You also need to be a member of the group apcvs on people.apache.org.

Due to a bug in Maven there may be problems with the file permissions on the server after a snapshot has been published. Please read this page on how to fix your own files.

If someone else has not cleaned up after themselves you can run these commands on the shell to fix it. Important: don't run it all in one batch, as it uses the -f flag for rm. Make sure the files have been copied before you remove them.

Code Block
titleRestore file permissions on maven-metadata files in the current directory

cp maven-metadata.xml maven-metadata.xml.bak
cp maven-metadata.xml.md5 maven-metadata.xml.md5.bak
cp maven-metadata.xml.sha1 maven-metadata.xml.sha1.bak
chmod 664 maven-metadata.xml*.bak
# Stop here and check that the files have been copied and that the copies have the correct permissions
rm -f maven-metadata.xml
rm -f maven-metadata.xml.md5
rm -f maven-metadata.xml.sha1
mv maven-metadata.xml.bak maven-metadata.xml
mv maven-metadata.xml.md5.bak maven-metadata.xml.md5
mv maven-metadata.xml.sha1.bak maven-metadata.xml.sha1

Publishing websites

To publish a website for some part of Maven you need to tell Maven what your Apache username is. This is how you do it:

...