[ 
https://issues.apache.org/jira/browse/MDEPLOY-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774978#comment-17774978
 ] 

Tamas Cservenak commented on MDEPLOY-312:
-----------------------------------------

Few pointers:
* Here is a resolver [demo of 
deploying|https://github.com/apache/maven-resolver/blob/master/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/DeployArtifacts.java]
* uses [this 
RepositoryListener|https://github.com/apache/maven-resolver/blob/master/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/util/ConsoleRepositoryListener.java]
* and produces console output like this (receives the timestamped version):
{noformat}
Deployed test:org.apache.maven.aether.examples:jar:0.1-20231013.161347-1 to 
org.apache.maven.aether.examples 
(file:/home/cstamas/Worx/apache-maven/maven-resolver/target/dist-repo, default, 
releases+snapshots)
{noformat}

> [REGRESSION] deploy no longer updates project model
> ---------------------------------------------------
>
>                 Key: MDEPLOY-312
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-312
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy, deploy:deploy-file
>    Affects Versions: 3.0.0
>            Reporter: Jared Stehler
>            Priority: Major
>
> Prior to 3.0.0, the maven-deploy-plugin would update artifacts on the Project 
> model:
>  * 
> [https://github.com/apache/maven/blob/master/maven-compat/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java#L147]
>  * 
> [https://github.com/apache/maven-deploy-plugin/blob/maven-deploy-plugin-2.8.2/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java#L276]
> This is no longer occurring with the migration to maven-resolver, which is 
> breaking our downstream plugins relying on the resolved SNAPSHOT version.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to