Mercurial > hg > Blog
comparison content/Maven/deploying-files.md @ 98:1d9382b0329b
Specify the syntax on markdown blocks to avoid broken output that has class=err
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 19 Dec 2019 10:04:33 +0100 |
parents | 2156317e4779 |
children |
comparison
equal
deleted
inserted
replaced
97:e99db3bc53c1 | 98:1d9382b0329b |
---|---|
16 | 16 |
17 All these files need to be uploaded together at once. It took me a little while to understand how to build the commandline for the deploy plugin to accomplish this. | 17 All these files need to be uploaded together at once. It took me a little while to understand how to build the commandline for the deploy plugin to accomplish this. |
18 | 18 |
19 The `file` parameter takes the main jar. The `pomFile` paramenter taks the pom file. That's easy. The other files have to be specified using a more convoluted format. Each file name has to specify its classifier and its type, appended to the separate `classifiers` and `types` lists. Finally the `files` list must specify the full file names. A look at the example will make more sense: | 19 The `file` parameter takes the main jar. The `pomFile` paramenter taks the pom file. That's easy. The other files have to be specified using a more convoluted format. Each file name has to specify its classifier and its type, appended to the separate `classifiers` and `types` lists. Finally the `files` list must specify the full file names. A look at the example will make more sense: |
20 | 20 |
21 :::shell | |
21 mvn deploy:deploy-file \ | 22 mvn deploy:deploy-file \ |
22 -Dmaven.repo.local=/tmp/maven-repo \ | 23 -Dmaven.repo.local=/tmp/maven-repo \ |
23 -Durl=http://nexus.local/repository/releases \ | 24 -Durl=http://nexus.local/repository/releases \ |
24 -DrepositoryId=releases \ | 25 -DrepositoryId=releases \ |
25 -Dfile=my-lib-1.0.jar \ | 26 -Dfile=my-lib-1.0.jar \ |