English 中文(简体)
没有使用安装:install文档指挥系统,是否可将所有外部的J.jar纳入maven存放处。
原标题:Is there any way to include all the outside .jar into maven repository without using the install:install file command

In my project, a lot of .jar files are used and they are not in the maven repository(both local and web).

除使用安装指令将其逐个列入存放处外,还没有任何办法或假想将其置于存放处一段时间。

如果是的话,请告诉我如何这样做。

最佳回答

As Kal says in the comments, use a script. This is what we use - just modify the values in each of the set statements

set GROUP_ID=someNamespace
set ARTIFACT_ID=myartifact
set VERSION=1
set COMPONENT=%ARTIFACT_ID%-%VERSION%
set FILEPATH=D:my.jar

call mvn install:install-file ^
 -DgroupId=%GROUP_ID% ^
 -DartifactId=%ARTIFACT_ID% ^
 -Dversion=%VERSION% ^
 -Dfile=%FILEPATH% ^
 -Dpackaging=jar ^
 -DgeneratePom=true

set GROUP_ID=someNamespace2
set ARTIFACT_ID=myartifact2
set VERSION=1
set COMPONENT=%ARTIFACT_ID%-%VERSION%
set FILEPATH=D:my2.jar

call mvn install:install-file ^
 -DgroupId=%GROUP_ID% ^
 -DartifactId=%ARTIFACT_ID% ^
 -Dversion=%VERSION% ^
 -Dfile=%FILEPATH% ^
 -Dpackaging=jar ^
 -DgeneratePom=true
问题回答

暂无回答




相关问题
SVN Repository Structure

I am getting ready to set up an SVN repository, and was wondering if anyone had a good example for a repo structure. I am currently thinking: Development .. Applications .... App1 ...... ...

Is git worth for managing many files bigger than 500MB

I would put under version control a big amount of data, i.e. a directory structure (with depth<=5) with hundreds files with size about 500Mb). The things I need is a system that help me: - to ...

Building core shop framework in Rails. Suitable or not?

I work at an in-house IT department for company running 10 or so only shops of varying complexity. The shops code has been written over the last 8 years, each shop a new branch growing father and ...

Ruby gems repository

I m trying to set a gem repository on one of our local servers. Here are the steps I m running, that I ve followed from several guides. 1) I create the BASEDIR folder /var/www/html/gems 2) sudo cp -...

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

热门标签