Bonjour,

J'ai un projet sur lequel je voudrais créer plusieurs livrables.

En fait, il faudrait que je puisse créer un livrable de type jar par package dans mon projet. Pour cela, j'ai fait un fichier descripteur pour créer un jar pour un premier package, or je n'y arrive pas.

Quelqu'un saurait-il me dire si c'est possible et si oui comment ?

Voici un aperçu de mon descripteur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
    <id>jar1</id>
 
    <formats>
        <format>jar</format>
    </formats>
 
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>
        <fileSet>
            <directory>build/com/coface/corp/frameworkTest/bindingServices/
            </directory>
            <outputDirectory>livrables</outputDirectory>
            <includes>
                <include>*.class</include>
            </includes>
        </fileSet>
    </fileSets>
 
    <dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <unpack>false</unpack>
        </dependencySet>
        <dependencySet>
            <scope>compile</scope>
            <useProjectArtifact>false</useProjectArtifact>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <outputDirectory>lib</outputDirectory>
        </dependencySet>
    </dependencySets>
</assembly>
Quand j'essaye de l'utiliser j'ai la sortie suivante
[INFO] <<< maven-assembly-plugin:2.2-beta-2:assembly (default-cli) @ framework3 <<<
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-2:assembly (default-cli) @ framework3 ---
[INFO] Reading assembly descriptor: src/assembly/jar1.xml
[INFO] Processing DependencySet (output=lib)
[WARNING] Artifact: com.coface.corp:framework3:jar:4.1.0 references the same file as the assembly destination file. Moving it to a temporary location
for inclusion.
[INFO] Processing DependencySet (output=lib)
[INFO] Building jar: D:\dev_2011\eclipse_workspaces\frameworkTest3\target\framework3-4.1.0.jar
[WARNING] Configuration options: 'appendAssemblyId' is set to false, and 'classifier' is missing.
Instead of attaching the assembly file: D:\dev_2011\eclipse_workspaces\frameworkTest3\target\framework3-4.1.0.jar, it will become the file for main pr
oject artifact.
NOTE: If multiple descriptors or descriptor-formats are provided for this project, the value of this file will be non-deterministic!
[WARNING] Replacing pre-existing project main-artifact file: D:\dev_2011\eclipse_workspaces\frameworkTest3\target\archive-tmp\framework3-4.1.0.jar
with assembly file: D:\dev_2011\eclipse_workspaces\frameworkTest3\target\framework3-4.1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.625s
[INFO] Finished at: Mon Dec 26 16:04:06 CET 2011
[INFO] Final Memory: 26M/63M
[INFO] ------------------------------------------------------------------------
D:\dev_2011\eclipse_workspaces\frameworkTest3>
Je ne comprends pas pourquoi ça ne fonctionne pas.

Merci par avance pour votre aide.