maven - Adding a zip file to Nexus -


for reason i'm struggling wih following , looking @ examples on web not helping use case. i'm @ end of complex , odd build cycle delivers zip file desktop contains number of components. don't have control on creation of zip file. i'd upload zip file nexus, partly storage , release control. i'm trying use mvn deploy:deploy-file when try use zip in pom file following error :

[error]     unknown packaging: zip @ line 6, column 13 

a lot of example suggest using pom within pom file, doesn't error doesn't upload zip file.

command line i'm using :

d:\tmp3>mvn deploy:deploy-file -durl=http://localhost:8081/nexus/content/repositories/snapshots  -drepositoryid=snapshots -dfile=d:\tmp3\test.zip -dpomfile=pom.xml 

pom file simple make :

<project>   <modelversion>4.0.0</modelversion>   <groupid>com.test.app</groupid>   <artifactid>testzip</artifactid>   <version>1.0.0.0-snapshot</version>   <packaging>zip</packaging> </project> 

if ignore using pom file , specify groupid etc part of commandline works.

d:\tmp3>mvn deploy:deploy-file -durl=http://localhost:8081/nexus/content/repositories/snapshots -drepositoryid=snapshots -dfile=d:\tmp3\test.zip -dgroupid=com.test.app -dartifactid=testzip -dversion=1.0.0.0-snapshot 

if remove packaging tag pom, works, uploads zip jar !

eventually i'll need bubble jenkins, i'll happy work command line.

any ideas ?

zip files deployed jar nexus. javadoc , sources not jars well, handled such. technically, jar zip file anyway.

you can try deploy -dpackaging=zip on command line or deploy jar.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -