Debian Codegraph @

src/site/apt/examples/deploying-with-customized-pom.apt.vm

raw
1 ----
2 Deploy an artifact with a customized pom
3 ------
4 Allan Ramirez
5 ------
6 2006-06-21
7 ------
8
9 ~~ Licensed to the Apache Software Foundation (ASF) under one
10 ~~ or more contributor license agreements. See the NOTICE file
11 ~~ distributed with this work for additional information
12 ~~ regarding copyright ownership. The ASF licenses this file
13 ~~ to you under the Apache License, Version 2.0 (the
14 ~~ "License"); you may not use this file except in compliance
15 ~~ with the License. You may obtain a copy of the License at
16 ~~
17 ~~ http://www.apache.org/licenses/LICENSE-2.0
18 ~~
19 ~~ Unless required by applicable law or agreed to in writing,
20 ~~ software distributed under the License is distributed on an
21 ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22 ~~ KIND, either express or implied. See the License for the
23 ~~ specific language governing permissions and limitations
24 ~~ under the License.
25
26 ~~ NOTE: For help with the syntax of this file, see:
27 ~~ http://maven.apache.org/doxia/references/apt-format.html
28
29 Deploy an artifact with a customized pom
30
31 If there is already an existing pom and want it to be deployed together with the 3rd party artifact,
32 set the <<pomFile>> parameter to the path of the pom.xml.
33
34 +---+
35 mvn ${project.groupId}:${project.artifactId}:${project.version}:deploy-file -Durl=file:///C:/m2-repo \
36 -DrepositoryId=some.id \
37 -Dfile=path-to-your-artifact-jar \
38 -DpomFile=path-to-your-pom.xml
39 +---+
40
41 Note that the groupId, artifactId, version and packaging informations are automatically retrieved from the
42 given pom.
43
44 <<Note>>: By using the fully qualified path of a goal, you're ensured to be using the preferred version of the maven-deploy-plugin. When using <<<mvn deploy:deploy-file>>>
45 its version depends on its specification in the pom or the version of Apache Maven.
46