Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
875 views
in Technique[技术] by (71.8m points)

octave - maven how to install artifact other than packaged by assembly plugin?

I use assembly plugin in conjunction with install/deploy plugin to deploy an octave (a matlab clone) package. That is some file artifactid-version.tar.gz packaged in a specific way. Unfortunately, assembly plugin forces me to have the name artifactid-version-assId.tar.gz and there seems no way to remove the assId.

Thus i decided to use exec-plugin to move the package artifactid-version-assId.tar.gz after assembly accordingly to artifactid-version.tar.gz. This seems to work fine, but install plugin insists in installing the original artifactid-version-assId.tar.gz which of course is no longer present. The error message is

INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ ArithIntOctave ---
[INFO] Installing /home/ernst/Software/ArithIntOctave/target/ArithIntOctave-1.0-SNAPSHOT.jar to /home/ernst/.m2/repository/eu/simuline/ArithIntOctave/1.0-SNAPSHOT/ArithIntOctave-1.0-SNAPSHOT.jar
[INFO] Installing /home/ernst/Software/ArithIntOctave/pom.xml to /home/ernst/.m2/repository/eu/simuline/ArithIntOctave/1.0-SNAPSHOT/ArithIntOctave-1.0-SNAPSHOT.pom
[INFO] Installing /home/ernst/Software/ArithIntOctave/target/ArithIntOctave-1.0-SNAPSHOT-octave-package.tar.gz to /home/ernst/.m2/repository/eu/simuline/ArithIntOctave/1.0-SNAPSHOT/ArithIntOctave-1.0-SNAPSHOT-octave-package.tar.gz
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  37.276 s
[INFO] Finished at: 2020-12-30T13:16:23+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install (default-install) on project ArithIntOctave: ArtifactInstallerException: Failed to install artifact eu.simuline:ArithIntOctave:tar.gz:octave-package:1.0-SNAPSHOT: /home/ernst/Software/ArithIntOctave/target/ArithIntOctave-1.0-SNAPSHOT-octave-package.tar.gz (No such file or directory) -> [Help 1]

My question is, how can install plugin know, which of the artifacts to install? I found no hint in the target directory. Can I configure it? I found no hint. I hope it is not hardcoded.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...