Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ee4j-build] how to release staged artifacts?

Have a look at the nexus-staging-maven-plugin.

            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                </configuration>
            </plugin>

You can configure the plugin to automatically release the staging repository (autoReleaseAfterClose=true).
I.e, this makes the nexus workflow transparent.

You could also implement the workflow manually. (skipStagingRepositoryClose=true) 
It would look like something like this:

# Create the nexus staging repository
STAGING_DESC="Project ACME v${FULL_VERSION}"
mvn nexus-staging:rc-open \
  -DstagingProfileId=6026dab46eed94 \
  -DstagingDescription="${STAGING_DESC}"

STAGING_REPO_ID=$(mvn nexus-staging:rc-list | \
  egrep "^\[INFO\] orgacme\-[0-9]+[ ]+OPEN[ ]+${STAGING_DESC}" | \
  awk '{print $2}' | head -1)

# Perform deployment
mvn deploy -DstagingRepositoryId=${STAGING_REPO_ID}

# Close and release the nexus staging repository
mvn nexus-staging:rc-close nexus-staging:rc-release \
  -DstagingRepositoryId=${STAGING_REPO_ID} \
  -DstagingDescription="${STAGING_DESC}"




On Fri, Oct 12, 2018 at 12:39 PM Bill Shannon <bill.shannon@xxxxxxxxxx> wrote:
I've asked this several times but never gotten an answer...

After I do "mvn deploy", my artifacts are staged.  How do I "release" them?
How do I discard them if I decide I don't want them to be released?

I believe there's some Maven plugin I need to do this, but I don't know
what that is or how to set up a Jenkins job to use it.

Can someone explain this?  Perhaps create a wiki page with the information?

Thanks.
_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ee4j-build

Back to the top