Debian Codegraph @

src/site/apt/examples/disabling-generic-pom.apt.vm

raw
1 ----
2 Disable the generation of 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 Disable the generation of pom
30
31 By default, If no pom is specified during deployment of your 3rd party artifact, a generic pom will be generated
32 which contains the minimum required elements needed for the pom. In order to disable it, set the
33 <<generatePom>> parameter to <<<false>>>.
34
35 +---+
36 mvn ${project.groupId}:${project.artifactId}:${project.version}:deploy-file -Durl=file:///C:/m2-repo \
37 -DrepositoryId=some.id \
38 -Dfile=path-to-your-artifact-jar \
39 -DgroupId=your.groupId \
40 -DartifactId=your-artifactId \
41 -Dversion=version \
42 -Dpackaging=jar \
43 -DgeneratePom=false
44 +---+
45
46 <<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>>>
47 its version depends on its specification in the pom or the version of Apache Maven.