maven - Grails Download zip file as dependency -




i have standalone custom code packed zip file(custom-1.0.zip) using maven-shade-plugin –uploaded company's artifactory

<dependency>     <groupid>com/mypackage/domain</groupid>     <artifactid>custom</artifactid>     <version>1.0</version>     <type>zip</type> </dependency> 

i want use zip file in grails 2.3.5 project configured use maven resolving dependencies. believe need following:

  1. download zip file artifactory local maven repository
  2. copy zip file local maven repository web-app/resources folder of project

i added following build.groovy download zip file:

grails.project.dependency.resolver = "maven"  dependencies {      compile ("com.mypackage.domain:custom:1.0") } 

… ..

plugins {      compile ("com.mypackage.domain:custom:1.0")  } 

above code downloads jar, pom , zip file local maven repository , fails

loading grails 2.3.5 |configuring classpath |downloading: com.mypackage.domain/custom/1.0/custom-1.0.pom |downloading: com.mypackage.domain/custom/1.0/custom-1.0.zip |downloading: com.mypackage.domain/custom/1.0/custom-1.0.jar . |environment set development ................................. |packaging grails application error | zip c:\users\userid\.m2\repository\com\mypackage\domain\custom\1.0\custom- 1.0.zip not valid plugin 

does has working example downloading zip using grails 2.3.5 , copying desired folder?

you not need following unless custom artifact built plugin. can remove

plugins {      compile ("com.mypackage.domain:custom:1.0") } 

and edit dependencies include type:

dependencies {      compile ("com.mypackage.domain:custom:1.0:zip") } 

then compile project.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -