maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Smykuła (JIRA) <j...@apache.org>
Subject [jira] [Updated] (MDEPLOY-223) maven deploy-file do not evaluate ci friendly variables from pom.xml
Date Tue, 30 May 2017 21:02:04 GMT

     [ https://issues.apache.org/jira/browse/MDEPLOY-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mariusz Smykuła updated MDEPLOY-223:
------------------------------------
    Description: 
Sample command:

{code}
./mvnw deploy:deploy-file -Drevision=100 -Durl=file:///tmp/maven/ -DrepositoryId=foo-nexus
-DpomFile=pom.xml -Dfile=target/foo-stubs.jar   -Dclassifier=stubs
{code}

Version and other meta information should be read from pom.xml:

{code}
    <groupId>foo</groupId>
    <artifactId>foo</artifactId>
    <version>${revision}-SNAPSHOT</version>
    <packaging>jar</packaging>
{code}
And partially they are, but uploaded version is not:

{code}
[INFO] Building foo 100
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ git ---
[INFO] Uploading: http://foo.com//nexus/repository/maven-snapshot/foo/$%7Brevision%7D/foo-$%7Brevision%7D-stubs.jar
[INFO] Uploading: http://foo/nexus/repository/maven-snapshot/foo/$%7Brevision%7D/foo-$%7Brevision%7D.pom
{code}

Additionally, when -Dversion is provided from command line, then uploaded pom.xml is still
invalid:

{code}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>foo</groupId>
<artifactId>foo</artifactId>
<version>${revision}-SNAPSHOT</version>
{code}


What is expected?

Ci friendly variables like revision should be evaluated and used in upload url and pom.xml.

  was:
Sample command:

{code}
./mvnw deploy:deploy-file -Drevision=100 -Durl=file:///tmp/maven/ -DrepositoryId=devskiller-nexus
-DpomFile=pom.xml -Dfile=target/git-stubs.jar   -Dclassifier=stubs
{code}

Version and other meta information should be read from pom.xml:

{code}
    <groupId>com.devskiller.git</groupId>
    <artifactId>git</artifactId>
    <version>${revision}-SNAPSHOT</version>
    <packaging>jar</packaging>
{code}
And partially they are, but uploaded version is not:

{code}
[INFO] Building Devskiller GIT 100
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ git ---
[INFO] Uploading: http://ci.devskiller.com//nexus/repository/maven-snapshot/com/devskiller/git/git/$%7Brevision%7D/git-$%7Brevision%7D-stubs.jar
[INFO] Uploading: http://ci.devskiller.com//nexus/repository/maven-snapshot/com/devskiller/git/git/$%7Brevision%7D/git-$%7Brevision%7D.pom
{code}

Additionally, when -Dversion is provided from command line, then uploaded pom.xml is still
invalid:

{code}
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.devskiller.git</groupId>
<artifactId>git</artifactId>
<version>${revision}-SNAPSHOT</version>
{code}


What is expected?

Ci friendly variables like revision should be evaluated and used in upload url and pom.xml.


> maven deploy-file do not evaluate ci friendly variables from pom.xml
> --------------------------------------------------------------------
>
>                 Key: MDEPLOY-223
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-223
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>          Components: deploy:deploy-file
>    Affects Versions: 2.8.2
>         Environment: Maven 3.5.0, Java 1.8, Linux
>            Reporter: Mariusz Smykuła
>
> Sample command:
> {code}
> ./mvnw deploy:deploy-file -Drevision=100 -Durl=file:///tmp/maven/ -DrepositoryId=foo-nexus
-DpomFile=pom.xml -Dfile=target/foo-stubs.jar   -Dclassifier=stubs
> {code}
> Version and other meta information should be read from pom.xml:
> {code}
>     <groupId>foo</groupId>
>     <artifactId>foo</artifactId>
>     <version>${revision}-SNAPSHOT</version>
>     <packaging>jar</packaging>
> {code}
> And partially they are, but uploaded version is not:
> {code}
> [INFO] Building foo 100
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-deploy-plugin:2.8.2:deploy-file (default-cli) @ git ---
> [INFO] Uploading: http://foo.com//nexus/repository/maven-snapshot/foo/$%7Brevision%7D/foo-$%7Brevision%7D-stubs.jar
> [INFO] Uploading: http://foo/nexus/repository/maven-snapshot/foo/$%7Brevision%7D/foo-$%7Brevision%7D.pom
> {code}
> Additionally, when -Dversion is provided from command line, then uploaded pom.xml is
still invalid:
> {code}
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>foo</groupId>
> <artifactId>foo</artifactId>
> <version>${revision}-SNAPSHOT</version>
> {code}
> What is expected?
> Ci friendly variables like revision should be evaluated and used in upload url and pom.xml.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message