Giter Club home page Giter Club logo

Comments (9)

jpraet avatar jpraet commented on September 27, 2024 1

The fix was reverted again just before the 2.0.1 release? 4d67a10

from wagon-maven-plugin.

dantran avatar dantran commented on September 27, 2024 1

@jpraet please help to verify again 2.0.2 currently at staging repo https://oss.sonatype.org/content/groups/staging/

from wagon-maven-plugin.

jpraet avatar jpraet commented on September 27, 2024 1

@dantran yes, it works with the 2.0.2

from wagon-maven-plugin.

jessefarinacci avatar jessefarinacci commented on September 27, 2024
bash$ mvn help:describe -Dplugin=org.codehaus.mojo:wagon-maven-plugin:1.0 -Dgoal=upload-single -Ddetail

wagon:upload-single
  Description: Upload a single file with option to change name
  Implementation: org.codehaus.mojo.wagon.UploadSingleMojo
  Language: java

  Available parameters:

    fromFile
      Required: true
      User property: wagon.fromFile
      Path to a local file to be uploaded

    serverId (Default: serverId)
      User property: wagon.serverId
      settings.xml's server id for the URL. This is used when wagon needs extra
      authentication information.

    skip (Default: false)
      User property: wagon.skip
      When true, skip the execution.

    toFile
      User property: wagon.toFile
      Relative path to the URL. When blank, default to fromFile's file name.

    url
      Required: true
      User property: wagon.url
      URL to upload to or download from or list. Must exist and point to a
      directory.

versus

bash$ mvn help:describe -Dplugin=org.codehaus.mojo:wagon-maven-plugin:2.0.0 -Dgoal=upload-single -Ddetail

wagon:upload-single
  Description: Upload a single file with option to change name
  Implementation: org.codehaus.mojo.wagon.UploadSingleMojo
  Language: java

  Available parameters:

    fromFile
      Required: true
      User property: wagon.fromFile
      Path to a local file to be uploaded.

    serverId (Default: serverId)
      User property: wagon.serverId
      settings.xml's server id for the URL. This is used when wagon needs extra
      authentication information.

    toFile
      User property: wagon.toFile
      Relative path to the URL. When blank, default to fromFile's file name.

    url
      Required: true
      User property: wagon.url
      URL to upload to or download from or list. Must exist and point to a
      directory.

from wagon-maven-plugin.

afel avatar afel commented on September 27, 2024

Same for "upload" goal

from wagon-maven-plugin.

dantran avatar dantran commented on September 27, 2024

fixed at 4b4f1d3

from wagon-maven-plugin.

jpraet avatar jpraet commented on September 27, 2024

Any ETA on release 2.0.1?

from wagon-maven-plugin.

dantran avatar dantran commented on September 27, 2024

It was accidentally reverted due to javadoc annotation no longer support and failed 2.0.1 release build
will put it back in 2.0.2 soon

from wagon-maven-plugin.

cdprete avatar cdprete commented on September 27, 2024

Hi.
I think the property is evaluated too early.

I've a (in version 2.0.2) a configuration like

<plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>wagon-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>deploy-rpm</id>
                                <phase>deploy</phase>
                                <goals>
                                    <goal>upload-single</goal>
                                </goals>
                                <configuration>
                                    <skip>${rpm.build.skip}</skip>
                                    <fromFile>${rpm.file-path}</fromFile>
                                    <serverId>${rpm.repository.id}</serverId>
                                    <url>${rpm.repository.url}/${rpm.file-name}/${rpm.file-version}</url>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

where rpm.build.skip is dynamically set in a Groovy script. I've other plugins reading the exact same property in other phases and they're all skipped correctly but the wagon-maven-plugin.

[2022-04-01T12:27:39.537Z] [ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:2.0.2:upload-single (deploy-rpm) on project parent: The parameters 'fromFile' for goal org.codehaus.mojo:wagon-maven-plugin:2.0.2:upload-single are missing or invalid -> [Help 1]

where such property (as well as the others) are unset since I want to skip the execution.

from wagon-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.