I also tried the maven deploy command and got the authentication error
below. :(


[tw-mbp-nwang heron-api (release/v0.20.1-incubating-rc1)]$ mvn
deploy:deploy-file -Dfile=heron-api-v0.20.1-incubating-rc1.jar
-Dsources=heron-api-v0.20.1-incubating-rc1-sources.jar
-Djavadoc=heron-api-v0.20.1-incubating-rc1-javadoc.jar -DpomFile=pom.xml
-Durl=https://repository.apache.org/content/repositories/snapshots
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for org.apache.heron:heron-api:jar:v0.20.1-incubating-rc1
[WARNING] 'build.plugins.plugin.version' for
com.theoryinpractise:clojure-maven-plugin is missing. @ line 155, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------< org.apache.heron:heron-api
>---------------------
[INFO] Building heron-api v0.20.1-incubating-rc1
[INFO] --------------------------------[ jar
]---------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ heron-api
---
Uploading to remote-repository:
https://repository.apache.org/content/repositories/snapshots/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.jar
Uploading to remote-repository:
https://repository.apache.org/content/repositories/snapshots/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.006 s
[INFO] Finished at: 2019-02-08T15:46:24-08:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file
(default-cli) on project heron-api: Failed to deploy artifacts: Could not
transfer artifact org.apache.heron:heron-api:jar:v0.20.1-incubating-rc1
from/to remote-repository (
https://repository.apache.org/content/repositories/snapshots): Failed to
transfer file:
https://repository.apache.org/content/repositories/snapshots/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.jar.
Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

On Fri, Feb 8, 2019 at 11:10 AM Ning Wang <[email protected]> wrote:

> Hi, mentors,
>
> I am trying to figure out the way to publish Heron artifacts (api, spi,
> storm-compatibility, simulator) to repository.apache.org.
>
> After the Apache migration, the repository and scripts are different from
> before. I am trying to find information about the process. This are the
> steps I am following:
> http://www.apache.org/dev/publishing-maven-artifacts.html
>
>
> The "maven deploy" command seems to be successful (log is at the end of
> this email), but I couldn't find the files in the repository, and the next
> command gave me a "file not found in snapshot dir" error message.
>
> I thought it's a permissions issue so I filed a ticket to Apache
> Infrastructure: https://issues.apache.org/jira/browse/INFRA-17813
>
> And Chris said I have the right role and need to work with mentors to set
> up nexus. Could you take a look?
>
> BTW I believe I have configured maven encryption following this doc:
> http://maven.apache.org/guides/mini/guide-encryption.html
>
> Thanks in advance!
> --ning
>
>
>
> Maven deploy output:
>
> [tw-mbp-nwang heron-api (release/v0.20.1-incubating-rc1)]$ mvn deploy
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective
> model for org.apache.heron:heron-api:jar:v0.20.1-incubating-rc1
> [WARNING] 'build.plugins.plugin.version' for
> com.theoryinpractise:clojure-maven-plugin is missing. @ line 155, column 21
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
> [INFO] ---------------------< org.apache.heron:heron-api
> >---------------------
> [INFO] Building heron-api v0.20.1-incubating-rc1
> [INFO] --------------------------------[ jar
> ]---------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @
> heron-api ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process
> (process-resource-bundles) @ heron-api ---
> [INFO]
> [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
> heron-api ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /Users/nwang/workspace/heron_clean/artifacts/v0.20.1-incubating-rc1/heron-api/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
> heron-api ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-resources-plugin:3.1.0:testResources
> (default-testResources) @ heron-api ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /Users/nwang/workspace/heron_clean/artifacts/v0.20.1-incubating-rc1/heron-api/src/test/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @
> heron-api ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ heron-api ---
> [INFO]
> [INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ heron-api ---
> [INFO] Building jar:
> /Users/nwang/workspace/heron_clean/artifacts/v0.20.1-incubating-rc1/heron-api/target/heron-api-v0.20.1-incubating-rc1.jar
> [INFO]
> [INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @
> heron-api ---
> [INFO] Skipping because packaging 'jar' is not pom.
> [INFO]
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @
> heron-api ---
> [INFO] Installing
> /Users/nwang/workspace/heron_clean/artifacts/v0.20.1-incubating-rc1/heron-api/target/heron-api-v0.20.1-incubating-rc1.jar
> to
> /Users/nwang/.m2/repository/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.jar
> [INFO] Installing
> /Users/nwang/workspace/heron_clean/artifacts/v0.20.1-incubating-rc1/heron-api/pom.xml
> to
> /Users/nwang/.m2/repository/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.pom
> [INFO]
> [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ heron-api
> ---
> Uploading to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.jar
> Uploaded to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.jar
> (7.6 kB at 5.1 kB/s)
> Uploading to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.pom
> Uploaded to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/v0.20.1-incubating-rc1/heron-api-v0.20.1-incubating-rc1.pom
> (7.4 kB at 8.1 kB/s)
> Downloading from apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/maven-metadata.xml
> Downloaded from apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/maven-metadata.xml
> (339 B at 790 B/s)
> Uploading to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/maven-metadata.xml
> Uploaded to apache.releases.https:
> https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/heron/heron-api/maven-metadata.xml
> (339 B at 418 B/s)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7.652 s
> [INFO] Finished at: 2019-02-06T09:00:01-08:00
> [INFO]
> ------------------------------------------------------------------------
> [tw-mbp-nwang heron-api (release/v0.20.1-incubating-rc1)]$
>

Reply via email to