[JIRA] (IDP-1757) Generate sp-metadata.xml on install
Philip Smart (Jira)
jira at shibboleth.atlassian.net
Wed Sep 22 13:22:52 UTC 2021
Philip Smart ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=5afecdc1eb3ffa0c596652c4 ) *commented* on IDP-1757 ( https://shibboleth.atlassian.net/browse/IDP-1757?atlOrigin=eyJpIjoiMGYzOGQzMGQ5MjcwNDJhNGFmOGYxMzcwZjRjMTUzYjYiLCJwIjoiaiJ9 )
Re: Generate sp-metadata.xml on install ( https://shibboleth.atlassian.net/browse/IDP-1757?atlOrigin=eyJpIjoiMGYzOGQzMGQ5MjcwNDJhNGFmOGYxMzcwZjRjMTUzYjYiLCJwIjoiaiJ9 )
Deploy version 1.0.0
# for interactive passphrase entry (maybe not required for others)
export GPG_TTY=$(tty)
# somewhere to store a tmp maven repo
export REPO=/tmp/philsrepo
cd /tmp
git clone git at git.shibboleth.net:java-idp-plugin-metadatagen
cd java-idp-plugin-metadatagen
git checkout main
mvn -Dmaven.repo.local=$REPO -Pcentral-disabled,release clean verify
## Change plugin properties if required and push
vi metadatagen-impl/src/main/resources/net/shibboleth/idp/plugin/metadatagen/impl/plugin.properties
mvn -Dmaven.repo.local=$REPO -DgenerateBackupPoms=false -DnewVersion=1.0.0 -Pcentral-disabled versions:set
# Edit pom.xml, bump dependency versions to release
vim pom.xml
# Be sure there are not SNAPSHOT deps in any pom (from base dir).
find . -name 'pom.xml' -exec grep SNAPSHOT {} \;
# If the output contains SNAPSHOTs change to release
mvn -Dmaven.repo.local=$REPO -Pcentral-disabled,release clean verify
git add -A
git commit -m 'Update files to be tagged for release'
git tag -s -m 'Tag 1.0.0 release' 1.0.0
mvn -Dmaven.repo.local=$REPO -DgenerateBackupPoms=false -DnewVersion=1.0.1-SNAPSHOT -Pcentral-disabled versions:set
# Do not bump or unlocked dependency versions
# Be sure there are SNAPSHOTs in the right places.
find . -name 'pom.xml' -exec grep SNAPSHOT {} \;
git add -A
git commit -m 'Bump version after release'
git push
git push origin 1.0.0
git checkout 1.0.0
mvn -Dmaven.repo.local=$REPO -Pcentral-disabled,release,sign clean verify
mvn -Dmaven.repo.local=$REPO -DskipTests -DdeployAtEnd=true -Pcentral-disabled,release,sign deploy
mvn -Dmaven.repo.local=/tmp/repo-release -DskipTests -Pcentral-disabled site site:stage site:deploy
## Move it in.
cp -v /home/nexus/sonatype-work/nexus/storage/releases/net/shibboleth/idp/plugin/metadatagen/idp-plugin-metadatagen-dist/1.0.0/idp-plugin-metadatagen-dist-1.0.0.tar.gz .
cp -v /home/nexus/sonatype-work/nexus/storage/releases/net/shibboleth/idp/plugin/metadatagen/idp-plugin-metadatagen-dist/1.0.0/idp-plugin-metadatagen-dist-1.0.0.tar.gz.asc .
cp -v /home/nexus/sonatype-work/nexus/storage/releases/net/shibboleth/idp/plugin/metadatagen/idp-plugin-metadatagen-dist/1.0.0/idp-plugin-metadatagen-dist-1.0.0.zip .
cp -v /home/nexus/sonatype-work/nexus/storage/releases/net/shibboleth/idp/plugin/metadatagen/idp-plugin-metadatagen-dist/1.0.0/idp-plugin-metadatagen-dist-1.0.0.zip.asc .
sha256sum idp-plugin-metadatagen-dist-1.0.0.tar.gz > idp-plugin-metadatagen-dist-1.0.0.tar.gz.sha256
sha256sum idp-plugin-metadatagen-dist-1.0.0.zip > idp-plugin-metadatagen-dist-1.0.0.zip.sha256
sha256sum -c idp-plugin-metadatagen-dist-1.0.0.tar.gz.sha256
sha256sum -c idp-plugin-metadatagen-dist-1.0.0.zip.sha256
sudo cp -v -p idp-plugin-metadatagen-dist-1.0.0* /home/shibwww/html/downloads/identity-provider/plugins/metadatagen/1.0.0
( https://shibboleth.atlassian.net/browse/IDP-1757#add-comment?atlOrigin=eyJpIjoiMGYzOGQzMGQ5MjcwNDJhNGFmOGYxMzcwZjRjMTUzYjYiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/IDP-1757#add-comment?atlOrigin=eyJpIjoiMGYzOGQzMGQ5MjcwNDJhNGFmOGYxMzcwZjRjMTUzYjYiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100178- sha1:b472421 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20210922/434dc2f7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-8e9a0ee5-ebe4-457a-84e5-1a3d8a2c7b82
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210922/434dc2f7/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-42abc4b0-fc2b-4033-b6f3-a9590d92c288
Type: image/png
Size: 457 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210922/434dc2f7/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-37a5155b-23b0-4d9a-a51d-65ada6329cc0
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20210922/434dc2f7/attachment-0005.png>
More information about the commits
mailing list