You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tester <sp...@gmail.com> on 2016/12/13 16:31:15 UTC
Uploading of parent pom of third party library to nexus.
Hi,
I'm able to use the mvn deploy-file commando to upload all the child
libraries (powermock-core, powermock-reflect, ...), with for example, the
following command:
mvn deploy:deploy-file -DpomFile=xxx\powermock-core-1.2.5.pom
-Dfile=xxx\powermock-core-1.2.5.jar -DrepositoryId=third-party-repo -Durl=
http://xxx/repository/3rd_party/
However, I'm still missing the parent pom file powermock-1.2.5.pom on my
nexus. However, with deploy-file I'm unable to upload only the parent file.
Any idea how I can get the parent pom file uploaded as well?
Note: The reason why we need to upload it to our own nexus, is because
powermock 1.2.5 is not available on the maven repository anymore.
With kind regards,
Frederik
Re: Uploading of parent pom of third party library to nexus.
Posted by Mark Prins <mc...@gmail.com>.
On 13-12-16 17:31, Tester wrote:
> Hi,
>
> I'm able to use the mvn deploy-file commando to upload all the child
> libraries (powermock-core, powermock-reflect, ...), with for example, the
> following command:
>
> mvn deploy:deploy-file -DpomFile=xxx\powermock-core-1.2.5.pom
> -Dfile=xxx\powermock-core-1.2.5.jar -DrepositoryId=third-party-repo -Durl=
> http://xxx/repository/3rd_party/
>
> However, I'm still missing the parent pom file powermock-1.2.5.pom on my
> nexus. However, with deploy-file I'm unable to upload only the parent file.
>
> Any idea how I can get the parent pom file uploaded as well?
You probably want to specify the packaging option to upload a pom
artifact:
https://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#packaging
> Note: The reason why we need to upload it to our own nexus, is because
> powermock 1.2.5 is not available on the maven repository anymore.
>
> With kind regards,
>
> Frederik
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org