「Spring5」MavenでsystemPathを使ってローカルjarを追加する

環境
Spring 5.2.4.RELEASE
JavaSE 11

書式
<scope>system</scope>
<systemPath>${basedir}/lib/xxx.jar</systemPath>
scope:system
sytemPath:${basedir}はプロジェクトのディレクトリパスを格納しています
使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>4.2.1</version>
<scope>system</scope>
<systemPath>${basedir}/lib/itext-4.2.1.jar</systemPath>
</dependency>
<dependency> <groupId>com.lowagie</groupId> <artifactId>itext</artifactId> <version>4.2.1</version> <scope>system</scope> <systemPath>${basedir}/lib/itext-4.2.1.jar</systemPath> </dependency>
<dependency>
    <groupId>com.lowagie</groupId>
    <artifactId>itext</artifactId>
    <version>4.2.1</version>
    <scope>system</scope>
    <systemPath>${basedir}/lib/itext-4.2.1.jar</systemPath>
</dependency>

 

SpringMVC

Posted by arkgame