How to install library to external maven repository -


in company using archiva our maven repository. how can install there library not mavenized remotely ? in local repository can this:

mvn install:install-file -d groupid=cz.i -d artifactid=sql-processor \                          -d version=1.0 -d packaging=jar \                          -d file=~/programy/cro/lib/sql-processor.jar 

when want add maven project our archiva, can run command: mvn:deploy. have no idea how install library there

you're closer think - replace install:install-file deploy:deploy-file , add bit of sugar, can read here:

mvn deploy:deploy-file -dgroupid=cz.i \   -dartifactid=sql-processor \   -dversion=1.0 \   -dpackaging=jar \   -dfile=~/programy/cro/lib/sql-processor.jar \   -drepositoryid=<id-to-archiva-map-on-server-section-of-settings.xml> \   -durl=<your-archiva-url> 

as - correctly - state, should used "non-mavenized" external artifacts, otherwise mvn deploy way go.

cheers,


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -