Spring と My Sql ライブラリ (mysql-connector) に依存する単純な Maven プロジェクト (パッケージ タイプ - Jar) を作成しました。このプロジェクトをパッケージ化すると$mvn package
、このコマンドが正常に実行された後に jar ファイルが取得されます。
また、すべての依存関係を出力 jar ファイルに含めようとしていたため、「jar-with-dependencies」アセンブリ記述子を追加しましたが、ドキュメントには次のように記載されています。
The `jar-with-dependencies` descriptor builds a JAR archive with the contents of the main project jar along with the unpacked contents of all the project’s runtime dependencies.
JAR
方法ではなく、依存関係をフォームに含めたいunpacked
。これどうやってするの?