-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathfaq.fml
More file actions
122 lines (117 loc) · 4.76 KB
/
faq.fml
File metadata and controls
122 lines (117 loc) · 4.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<faqs xmlns="http://maven.apache.org/FML/1.0.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd"
id="FAQ" title="Frequently Asked Questions">
<part id="General">
<faq id="question">
<question>I get an Unsupported Protocol Error when deploying a 3rd party jar. What should I do?</question>
<answer>
<p>
If you are using the <code>deploy:deploy-file</code> goal and encounter
this error:
</p>
<p>
<i>"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find
wagon which supports the requested protocol: ftp"</i>
</p>
<p>
Then you need to place the appropriate wagon provider in your
<code>%M2_HOME%/lib</code>. In this case the provider needed is ftp,
so we have to place the wagon-ftp jar in the lib directory of your
Maven 2 installation.
</p>
<p>
As an alternative to placing the wagon provider into the Maven distribution, you can also create a dummy
POM that declares the required wagon as an <code><extension></code> inside the current directory.
</p>
<p>
If the error description is something like this:
</p>
<p>
<i>"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find
wagon which supports the requested protocol: ftp
org/apache/commons/net/ftp/FTP"</i>
</p>
<p>
Then you need to place the commons-net jar in
<code>%M2_HOME%/lib</code>.
</p>
</answer>
</faq>
<faq id="skip">
<question>I don't want to deploy one of the artifacts in my multi-module build. Can I skip deployment?</question>
<answer>
<p>
Yes, you can skip deployment of individual modules by configuring the Deploy Plugin as follows:
</p>
<source>
<![CDATA[<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>X.Y</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>]]></source>
</answer>
</faq>
<faq id="skipAttachedArtifacts">
<question>I don't want to deploy some attached artifact on a specific module. Can I skip deployment for specific attached artifacts?</question>
<answer>
<p>
Yes, you can skip deployment of several attached artifacts by configuring the Deploy Plugin as follows:
</p>
<source>
<![CDATA[<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>X.Y</version>
<configuration>
<skipAttachedArtifacts>
<artifact>
<groupId>group</groupId>
<artifactId>id</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<classifier>classifier</classifier>
</artifact>
<artifact>
<groupId>group</groupId>
<artifactId>id</artifactId>
<version>1.0</version>
<packaging>zip</packaging>
</artifact>
</skipAttachedArtifacts>
</configuration>
</plugin>]]></source>
</answer>
</faq>
<faq id="deploy_deploy">
<question>What does the message "The packaging for this project did not assign a file to the build artifact" mean when I run <code>deploy:deploy</code>?</question>
<answer>
<p>
During the packaging-phase all gathered and placed in context.
With this mechanism Maven can ensure that the <code>maven-install-plugin</code> and <code>maven-deploy-plugin</code> are copying/uploading the same set of files.
So when you only execute <code>deploy:deploy</code>, then there are no files put in the context and there is nothing to deploy.
</p>
</answer>
</faq>
</part>
</faqs>