question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

targetDir in assembly not working

See original GitHub issue

Description

When trying to set a custom targetDir in the assembly section like described int the docu, it’s getting ignored and /maven is used.

Info

  • d-m-p version : 0.18.1
  • Maven version (mvn -v) :
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_65, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
  • Docker version : 1.12.3
  • Sample project : git@github.com:mbacodes/docker-maven-plugin-test.git

<images>
    <image>
        <name>test/hello-world:latest</name>
        <build>
            <dockerFileDir>hello-world</dockerFileDir>
            <assembly>
                <mode>dir</mode>
                <targetDir>/</targetDir>
                <descriptor>assembly.xml</descriptor>
            </assembly>
        </build>
    </image>
</images>

Setting <targetDir>/foo</targetDir> does not change anything. The resulting targetDir still is target/docker/test/hello-world/latest/build/maven

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:12

github_iconTop GitHub Comments

1reaction
Madanorcommented, May 4, 2017

@rhuss That looks good to me. Thank you.

0reactions
rhusscommented, May 3, 2017

Just merged in to master. Happy to pickup still any feedback here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TARGETDIR="[TARGETDIR] " Requires Trailing Space - MSDN
This drives me crazy whenever I forget why there's a trailing space. TARGETDIR (or any other property that ends in "\") must not...
Read more >
How can get my VS2010 setup projects to NOT have errors ...
I found the issue. If the project is closed and the 'File' view of the setup package is open, then on the next...
Read more >
A Visual Studio script that saves time and pain - NDepend
It just moves the assembly file, the .pdb file and the .xml documentation file to a temporary location (if the .pdb or .xml...
Read more >
Post-Build Events and .NET Core - Jeremy Bytes
The "$(TargetDir)" macro expands to the fully-qualified location where the .exe file ... The problem arises when we leave Visual Studio.
Read more >
Register Assembly does not work reliably - InstallAware
If I install on my Vista machine, my assemblies get registered no problem. ... Hence, all I do is install the assembly into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found