I have a standalone custom code packed as a zip file(custom-1.0.zip) using maven-shade-plugin –uploaded to my company's artifactory
<dependency>
<groupId>com/mypackage/domain</groupId>
<artifactId>custom</artifactId>
<version>1.0</version>
<type>zip</type>
</dependency>
I want to use this zip file in my Grails 2.3.5 project which is configured to use maven for resolving dependencies. I believe I need to do following:
- Download the zip file from artifactory to local maven repository
- Copy the zip file from local maven repository to web-app/resources folder of my project
I added following to Build.groovy to download the 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 the jar, pom and zip file to my local maven repository and then 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 to development
.................................
|Packaging Grails application
Error |
Zip C:\Users\userid\.m2\repository\com\mypackage\domain\custom\1.0\custom-
1.0.zip is not a valid plugin
Does anyone has a working example for downloading zip using Grails 2.3.5 and copying to desired folder?