build - Grails and Local Maven Dependencies -


I'm developing a small web frontend in Grails, it's basically a "ultra light-weight" client app that Async is connected through JMS.

I have two dependencies in the project which I would like to draw from a Mewen repository. They are activemq and acme-adapter-api , in-house dependencies are not available in the remote repository.

To reach my dependence, I am setting up my BuildConfig.groovy ( Grails 1.2M4 ) file like this:

  repository {grailsPlugins () grailsHome () mavenCentral () mavenRepo ('D: / maven-repo')} dependency {compile 'org.apache.activemq: Apache-Activate: 4.1.1' Compile ' Com.acme: Acme-adapter-api: 1.3-SNAPSHOT '}  

When I run grails dependency-report , then I will call this code as Acme-adapter-api , for example:

  com.acme 108 kB (0kB downloaded, 108 KB in cash) acme-adapter-api  

When I see grails compile I try not to be so fortunate, because I complain that it is unable to resolve sections from the com.acme group.

The interesting thing is that activemq dependency is not a problem ...

The difference is that acme dependence is not in mavenCentral () , but only in mavenRepo ("D: / maven-repo") . So I thought: "Maybe it's not picking up from the local disk ..." and turned the version into something weird (1.999-SNAPSHOT) value which is BuildConfig.groovy file < The command timed out while running Code> grails again compiled , saying that the version was not found:

  UNRESOLVED DEPENDENCIES D: / maven-repo: Received resources Unable to do com / acme # acme-adapter-api; 1.999-SNAPSHOT  

Therefore the local dependency is resolved, but somehow it does not apply in the next step, compilation ...

  dependency {runtime ('groupId: artifactId: version-SNAPSHOT') {changing = true}}  < / Pre> 

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -