Hi Volkan.

See several examples:
https://github.com/search?q=org%3Aapache+NEXUS_USER&type=code

1) Create a JIRA ticket for INFRA project to setup secrets.NEXUS_USER and
secrets.NEXUS_PW for your project.
1.1) use custom settings.xml that uses the above credentials
2) If your project uses org.apache:apache as a parent pom do nothing,
otherwise add to your pom.xml the following
 <distributionManagement>
    <snapshotRepository>
      <id>apache.snapshots.https</id>
      <name>Apache Development Snapshot Repository</name>
      <url>https://repository.apache.org/content/repositories/snapshots
</url>
    </snapshotRepository>
  </distributionManagement>
3) call 'mvn deploy` in your CI workflow

On Mon, May 2, 2022 at 11:58 AM Volkan Yazıcı <vol...@yazi.ci> wrote:

> Sorry, I have just noticed the repository address I have shared was wrong,
> the correct one should be
> https://repository.apache.org/content/repositories/snapshots instead.
>
> On Mon, May 2, 2022 at 10:55 AM Volkan Yazıcı <vol...@yazi.ci> wrote:
>
> > Hello,
> >
> > I am forwarded here from members@ by Gavin. Is it possible to upload
> > SNAPSHOT artifacts of a Maven-based project to
> > http://repository.apache.org/content/groups/snapshots repository from a
> > GitHub Actions workflow?
> >
> > Kind regards.
> >
> > ---------- Forwarded message ---------
> > From: Gavin McDonald <gmcdon...@apache.org>
> > Date: Sun, May 1, 2022 at 8:42 AM
> > Subject: Re: Publishing SNAPSHOTs via GitHub Actions
> > To: Apache Members <memb...@apache.org>
> >
> > On Sat, Apr 30, 2022 at 10:44 PM Volkan Yazıcı <vol...@yazi.ci> wrote:
> >
> >> Hello,
> >>
> >> Does anybody know how a Maven-based Java project can publish SNAPSHOT
> >> artifacts from a GitHub Actions workflow? I am aware of the release
> process
> >> that requires a human operator, etc. Since Jenkins builds were able to
> >> publish SNAPSHOTs, I guess the same relaxed measures would apply to
> GitHub
> >> Actions too. Has anybody ever managed to make this work?
> >>
> >> I have searched for some guidance in the Confluence, yet couldn't find
> >> anything that works. I am aware that Airflow flirted with the GitHub
> >> Actions for CD, though they were publishing Docker images, not
> artifacts,
> >> and later on they migrated to a more manual setup
> >> <
> https://cwiki.apache.org/confluence/display/INFRA/Github+Actions+to+DockerHub
> >.
> >> Nevertheless, feel free to point out any material I might have missed.
> >>
> >> Kind regards.
> >>
> >
> > This list is not for this sort of discussion, please email the builds@a.o
> > mailing list instead.
> > Also in that email, state where those SNAPSHOTS are being published 'to'
> >
>

Reply via email to