ITeye博客

maven 添加 本地 jar

cjx186 · 2013-09-10 23:31 · java · 操作系统 · Markdown

先在pom.xml中添加一个资源:

<repositories>
    <repository>
        <id>project.repo</id>
        <name>Local dependencies for project</name>
        <!-- <url>file://${project.basedir}/lib</url> -->
        <url>file:${project.basedir}/repo</url>
    </repository>
</repositories>

再在添加一个依赖:

    <dependency> 
        <groupId>com.sina</groupId> 
        <artifactId>sae-local</artifactId>
        <version>1.1.0</version>
    </dependency> 

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。