mojohaus / build-helper-maven-plugin

Build Helper Maven Plugin
https://www.mojohaus.org/build-helper-maven-plugin/
MIT License
113 stars 82 forks source link

1.12:attach-artifact: finalName not horored #45

Closed zosrothko closed 7 years ago

zosrothko commented 7 years ago

Hi

I am using attach-artifact to attach a jar produced by IzPack. The pom is using the element to specify the name of the jar produced by IzPack but attach-atifact mojo uses the artifactId instead of the finalName. See below, the artifactId is installer while finalName is MI-4.1.1

C:\MXW\DEMOS\MI-4.1.1\MI_Installer>mvn install -o -rf :installer

C:\MXW\DEMOS\MI-4.1.1\MI_Installer>setlocal

C:\MXW\DEMOS\MI-4.1.1\MI_Installer>set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_45

C:\MXW\DEMOS\MI-4.1.1\MI_Installer>set M2_HOME=C:\ASF\apache-maven-3.2.5

C:\MXW\DEMOS\MI-4.1.1\MI_Installer>C:\ASF\apache-maven-3.2.5\bin\mvn install -o -rf :installer
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Mainframe Integrator Installer Build with IzPack 4.1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven) @ installer ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-scripts) @ installer ---
[INFO] Using 'ISO-8859-15' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-izpack-config) @ installer ---
[INFO] Using 'ISO-8859-15' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-launch4j-config) @ installer ---
[INFO] Using 'ISO-8859-15' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-antrun-plugin:1.8:run (create-staging-area) @ installer ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
     [copy] Copying 1 file to C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target
[INFO] Executed tasks
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-product-dependencies) @ installer ---
[INFO] Copying izpack-4.1.1.jar to C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\lib\izpack.jar
[INFO] Copying commons-io-2.4.jar to C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\lib\commons-io.jar
[INFO] Copying izpack-standalone-compiler-4.3.5.jar to C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\lib\izpack-st
andalone-compiler.jar
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy-izpack-dependencies) @ installer ---
[INFO] Copying izpack-4.1.1.jar to C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\custom\izpack-4.1.1.jar
[INFO]
[INFO] --- izpack-maven-plugin:5.0.10:izpack (default) @ installer ---
24 mars 2017 14:46:13 com.izforge.izpack.core.container.PlatformProvider provide
INFO: Detected platform: windows,version=6.1,arch=x64,symbolicName=WINDOWS_7,javaVersion=1.6.0_45
[INFO] Logging initialized at level 'INFO'
[WARNING] Maven property izpack.version could not be overridden
[INFO] Setting the installer information
[INFO] Adding content of jar: /C:/MXW/DEMOS/MI-4.1.1/MI_Installer/installer/target/lib/izpack.jar
[INFO] Adding content of jar: /C:/MXW/DEMOS/MI-4.1.1/MI_Installer/installer/target/lib/commons-io.jar
[INFO] Adding uninstaller
[INFO] Setting the installer information
[INFO] Setting the console preferences
[INFO] Setting the GUI preferences
[INFO] Adding langpack: fra
[INFO] Adding resource: flag.fra
[INFO] Adding resource: LicencePanel.licence
[INFO] Adding resource: shortcutSpec.xml
[INFO] Adding resource: installer.langsel.img
[INFO] Adding resource: Installer.image
[INFO] Adding resource: userInputSpec.xml
[INFO] Adding resource: userInputLang.xml_eng
[INFO] Adding resource: userInputLang.xml_fra
[INFO] Adding resource: ProcessPanel.Spec.xml
[INFO] Adding panel: panel.helloPanel :: Classname : com.izforge.izpack.panels.checkedhello.CheckedHelloPanel
[ATTENTION] No automation helper found for class com.izforge.izpack.panels.checkedhello.CheckedHelloPanel, panel type wi
ll be skipped in automated installation
[INFO] Adding panel: panel.licencePanel :: Classname : com.izforge.izpack.panels.licence.LicencePanel
[ATTENTION] No automation helper found for class com.izforge.izpack.panels.licence.LicencePanel, panel type will be skip
ped in automated installation
[INFO] Adding panel: panel.targetDirPanel :: Classname : com.izforge.izpack.panels.target.TargetPanel
[INFO] Adding panel: panel.jdkChoicePanel :: Classname : com.izforge.izpack.panels.jdkpath.JDKPathPanel
[INFO] Adding panel: panel.packsPanel :: Classname : com.izforge.izpack.panels.packs.PacksPanel
[INFO] Adding panel: panel.licenseFileSelectionPanel :: Classname : com.izforge.izpack.panels.userinput.UserInputPanel
[INFO] Adding panel: panel.summaryPanel :: Classname : com.izforge.izpack.panels.summary.SummaryPanel
[ATTENTION] No automation helper found for class com.izforge.izpack.panels.summary.SummaryPanel, panel type will be skip
ped in automated installation
[INFO] Adding panel: panel.installPanel :: Classname : com.izforge.izpack.panels.install.InstallPanel
[INFO] Adding panel: panel.postintallActionsPanel :: Classname : com.izforge.izpack.panels.process.ProcessPanel
[INFO] Adding panel: panel.shortcutPanel :: Classname : com.izforge.izpack.panels.shortcut.ShortcutPanel
[INFO] Adding panel: panel.finishPanel :: Classname : com.izforge.izpack.panels.finish.FinishPanel
[INFO] Adding content from archive: C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\.\geronimo\geronimo-tomcat6-java
ee5-2.1.8-bin.zip
[INFO] Marked target file parsable: bin/miStart.sh
[INFO] Marked target file parsable: bin/miStop.sh
[INFO] Marked target file parsable: bin/vsVoyage.sh
[INFO] Adding pack Mainframe Integrator containing 9670 files
[INFO] Adding content from archive: C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\.\launch4j\launch4j-3.9-win32.zi
p
[INFO] Marked target file parsable: launch4j/MIStart_launch4j_config.xml
[INFO] Marked target file parsable: launch4j/MIStop_launch4j_config.xml
[INFO] Marked target file parsable: launch4j/VsVoyage_launch4j_config.xml
[INFO] Adding pack Windows pack containing 325 files
[INFO] [ Begin ]
[INFO]
[INFO] Copying the skeleton installer
[INFO] Copying 10 files into installer
[INFO] Merging 0 jars into installer
[INFO] Writing 2 Packs into installer
[INFO] Writing Pack 0: Mainframe Integrator
[INFO] Writing Pack 1: Windows pack
[INFO]
[INFO] [ End ]
[INFO]
[INFO] --- build-helper-maven-plugin:1.12:attach-artifact (attach-artifacts) @ installer ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ installer ---
[INFO] Installing C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\pom.xml to C:\Users\FrancisANDRE\.m2\repository\com\scort
\iz\mi\installer\4.1.1\installer-4.1.1.pom
[INFO] Installing C:\MXW\DEMOS\MI-4.1.1\MI_Installer\installer\target\MI-4.1.1.jar to C:\Users\FrancisANDRE\.m2\reposito
ry\com\scort\iz\mi\installer\4.1.1\installer-4.1.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:22 min
[INFO] Finished at: 2017-03-24T14:47:29+01:00
[INFO] Final Memory: 51M/691M
[INFO] ------------------------------------------------------------------------
C:\MXW\DEMOS\MI-4.1.1\MI_Installer>
khmarbaise commented 7 years ago

I expect that the izPack plugin should have done attaching already and there shouldn't be a need to do the attach manually...furthermore it would be helpful to have the pom file you are using?

zosrothko commented 7 years ago

You are right, the ispack should do the job....