mojohaus / rpm-maven-plugin

http://www.mojohaus.org/rpm-maven-plugin/
Other
56 stars 48 forks source link

rpm.copyTo is unable to copy the generated rpm to different location #111

Closed Emran80 closed 5 years ago

Emran80 commented 5 years ago

I am using the rpm:rpm goal configured in pom, and when i use copy to option in pom or command line its failing . using command mvn clean package -Drpm.copyTo="/path...".

Emran80 commented 5 years ago

After modifying the code to print more log I realized it was expecting a destination file path instead of directory location. I was specifying a directory location for copyTo and it was expecting a destination file path.

gunslingor commented 3 years ago

Could you post an example on how to use this undocumented feature?

I am trying to copy the resulting RPM from buried in /target/rpm/project_name/RPMS/noarch to /target

target --> Fails target/test --> works but renames the file to test, like you indicate. Since the resulting RPM ID (which is dynamically assigned when using SNAPSHOT) is unknown, there is no way to copy it without renaming it blindly? Why is this called copyTo... shouldn't it be copyToAndForcedRename?