1416 links
  • Animal
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
2 results tagged Assembly x
  • Apache Maven Assembly Plugin – Sharing Assembly Descriptors

    Pour mémoire.

    Thu Nov 26 10:25:42 2020 * - permalink -
    QRCode
    - https://maven.apache.org/plugins/maven-assembly-plugin/examples/sharing-descriptors.html
    Assembly Descripteur Factorisation Maven Packaging Plugin
  • cross platform - Maven assembly plugin warning "The assembly descriptor contains a filesystem-root relative reference" - Stack Overflow

    Pour indiquer une destination dans le descripteur de maven assembly et ne pas avoir le warning suivant :

    [INFO] --- maven-assembly-plugin:3.1.1:single (create-archive) @ monArchive ---
    [INFO] Reading assembly descriptor: assembly.xml
    [WARNING] The assembly descriptor contains a filesystem-root relative reference, which is not cross platform compatible /dir1
    [WARNING] The assembly descriptor contains a filesystem-root relative reference, which is not cross platform compatible /dir2

    Il faut utiliser la variable de maven ${file.separator} ainsi :

    <fileSets>
            <fileSet>
                <directory>${project.basedir}/dir1</directory>
                <outputDirectory>${file.separator}dir1</outputDirectory>
            </fileSet>
            <fileSet>
                <directory>${project.basedir}/dir2</directory>
                <outputDirectory>${file.separator}dir2</outputDirectory>
            </fileSet>
    </fileSets>

    Ainsi les répertoires dir1 et dir2, situés à la racine du projet, seront placés à la racine du répertoire de destination

    Thu May 28 19:52:57 2020 * - permalink -
    QRCode
    - https://stackoverflow.com/a/36935050
    Assembly Chemins Maven Séparateur
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation