でMavenのアセンブリのプラグインを使用してファイルの空の私のpom.xmlが、私はジップポンポン
.......
..........
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<descriptor>assembly.xml</descriptor>
</configuration>
<executions>
<execution>
<id>create-archive</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
..........
.......
マイassembly.xmlが
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
<id>${project.version}</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>${project.basedir}/${create.stage.directory}</directory>
<includes>
<include>*.*</include>
</includes>
<outputDirectory>${project.basedir}/${create.release.directory}</outputDirectory>
</fileSet>
</fileSets>
</assembly>
これは、ターゲットでEMPTY foldername.zipを作成しているようなものを書かれています!!私が乗っている出力フォルダーの場所にではありません。それは常に目標ですか?私は上書きできませんか? しかし、私は3つのフォルダ(いくつかのファイル)とreadme.txtを持っています。* .txtをインクルードタグの中に入れようとしましたが、まだ空のzipフォルダがあります。私は当初、私のディレクトリパスと出力ディレクトリのパスが間違っている可能性があると推測しました。
詳細については(この質問が重複していないが、類似した、と私はthis.theyに関連stackoverflowの質問には何も解決していないほとんどすべて試してみましたが)助け
達成したいことはありますか? '$ {create.stage.directory}'とは何ですか?プロジェクトのソースパッケージを作成しますか? – khmarbaise