Skip to content

[MDEPLOY-251] generatePom=false not working with 3.0.0-M1 #567

@jira-importer

Description

@jira-importer

Robert Lieske opened MDEPLOY-251 and commented

Steps to reproduce:

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DgroupId=test1 -DartifactId=test1 -Dversion=1.0-SNAPSHOT

 

mvn clean package deploy:deploy-file -Dfile=target/test1-1.0-SNAPSHOT.jar -DgeneratePom=false -DgroupId=test1 -DartifactId=test1 -Dversion=1.0-SNAPSHOT -DrepositoryId=snapshotRepository -Durl=${snapshotRepositoryUrl}

produces:

[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ test1 ---
Downloading from snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshotRepository: http://de01-xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml (583 B at 2.0 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162443-2.jar
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162443-2.jar (2.4 kB at 8.1 kB/s)
Downloading from snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml
Downloaded from snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml (268 B at 1.8 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml (583 B at 3.3 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml (268 B at 1.4 kB/s)
[INFO] ------------------------------------------------------------------------

 

changing the version of the maven-deploy-plugin in pom.xml to 

<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>

 

the same call to

mvn clean package deploy:deploy-file -Dfile=target/test1-1.0-SNAPSHOT.jar -DgeneratePom=false -DgroupId=test1 -DartifactId=test1 -Dversion=1.0-SNAPSHOT -DrepositoryId=snapshotRepository -Durl=${snapshotRepositoryUrl}

produces:

[INFO] --- maven-deploy-plugin:3.0.0-M1:deploy-file (default-cli) @ test1 ---
Downloading from snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml (583 B at 1.6 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162607-3.jar
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162607-3.jar (2.4 kB at 7.7 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162607-3.pom
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/test1-1.0-20190204.162607-3.pom (2.7 kB at 9.6 kB/s)
Downloading from snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml
Downloaded from snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml (268 B at 2.6 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/1.0-SNAPSHOT/maven-metadata.xml (754 B at 4.0 kB/s)
Uploading to snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml
Uploaded to snapshotRepository: http://xxx/repository/snapshots/test1/test1/maven-metadata.xml (268 B at 1.5 kB/s)
[INFO] ------------------------------------------------------------------------

 

Which also deploys a POM - which is not what we want!

 

NOTE: there is a similar issue with the maven-install-plugin


Affects: 3.0.0-M1

Remote Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions