File tree 1 file changed +24
-0
lines changed
src/main/java/org/apache/maven/plugins/deploy
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ public class DeployMojo
98
98
@ Parameter ( property = "altDeploymentRepository" )
99
99
private String altDeploymentRepository ;
100
100
101
+ @ Parameter ( property = "altDeploymentRepositoryId" )
102
+ private String altDeploymentRepositoryId ;
103
+
104
+ @ Parameter ( property = "altDeploymentRepositoryURL" )
105
+ private java .net .URL altDeploymentRepositoryURL ;
106
+
101
107
/**
102
108
* The alternative repository to use when the project has a snapshot version.
103
109
*
@@ -148,6 +154,24 @@ public void execute()
148
154
{
149
155
failIfOffline ();
150
156
157
+ if ( altDeploymentRepository == null
158
+ && altDeploymentRepositoryURL != null
159
+ //&& altDeploymentRepositoryURL.toString().length() > 0
160
+ && altDeploymentRepositoryId != null
161
+ //&& altDeploymentRepositoryId.length() > 0
162
+ )
163
+ {
164
+ getLog ().info ( "altDeploymentRepositoryId is: " + altDeploymentRepositoryId );
165
+ getLog ().info ( "altDeploymentRepositoryURL is: " + altDeploymentRepositoryURL );
166
+ altDeploymentRepository =
167
+ String .format ( "%s::%s" , altDeploymentRepositoryId , altDeploymentRepositoryURL );
168
+ getLog ().info ( "combined altDeploymentRepository is: " + altDeploymentRepository );
169
+ }
170
+ else
171
+ {
172
+ getLog ().info ( "altDeploymentRepository is: " + altDeploymentRepository );
173
+ }
174
+
151
175
// CHECKSTYLE_OFF: LineLength
152
176
// @formatter:off
153
177
ProjectDeployerRequest pdr = new ProjectDeployerRequest ()
You can’t perform that action at this time.
0 commit comments