dependencies

Custom Plugin dependencies.groovy is ignored

元气小坏坏 提交于 2019-12-11 10:37:12
问题 The Problem: I've built a custom grails plugin, defined my dependencies on other plugins via BuildConfig.groovy and packaged my plugin into a zip file. I then added the zip to my local maven repository and all is well. The file dependencies.groovy within the zip has my dependent plugin entries as it should. Example: grails.project.dependency.resolution = { inherits 'global' log 'warn' repositories { grailsCentral() } dependencies { // runtime 'mysql:mysql-connector-java:5.1.5' } plugins {

Gradle not imported dependency with ext:pom

不羁的心 提交于 2019-12-11 10:05:39
问题 I want import library org.geotools. Added raw compile group: 'org.geotools', name: 'geotools', version: '16.1' or compile group: 'org.geotools', name: 'geotools', version: '16.1', ext: 'pom' and repo: repositories { mavenLocal() maven { url 'http://repo.boundlessgeo.com/main' } maven { url "http://download.osgeo.org/webdav/geotools/" } maven { url "http://download.java.net/maven/2" } maven { url "http://repo.opengeo.org" } mavenCentral() } BUILD SUCCESSFUL in 47s but in external libraries it

Hibernate ClassNotFound Exception - jars not compatible?

佐手、 提交于 2019-12-11 09:15:45
问题 I have an Hibernate Project with the following Hibernate relevant dependencies: <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>4.1.4.Final</version> </dependency> <!-- Because this is a web app, we also have a dependency on the servlet api. --> <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>servlet-api</artifactId> <version>6.0.35</version> </dependency> <!-- Hibernate uses slf4j for logging, for our purposes here use the simple

Arduino-like Makefile with dependencies…?

十年热恋 提交于 2019-12-11 09:14:47
问题 I am currently trying to develop C libraries and project templates for the STM8 microcontroller using the SDCC OS compiler. My target is a (nearly) NOOB-compatible setup similar to Arduino - but with make+shellscripts instead of an IDE (there are limits to my ambition...) Currently I am struggling with make to auto-detect dependencies. In Arduino the user only includes the relevant headers, e.g. "#include LCD-lib", and the build mechanism automatically detects dependency and links the

Play Framework: Add a dependency that points to a directory of local jar files

≯℡__Kan透↙ 提交于 2019-12-11 08:51:55
问题 Is it possible to add a dependency to the dependencies.yml that points to a directory? For example, using pseudo yml for the dependencies.yml, I want to do something like this: require: - mycooldirectory repositories: - mycooldirectory: type: local artifact: "${application.path}/jars/mycooldirectory/*.jar" contains: - mycooldirectory -> * In my make-believe-world, the above would include the mycooldirectory as a classpath folder and use any jars found in that directory. I'm just making stuff

Copy machine code from windows executable and run on linux

≯℡__Kan透↙ 提交于 2019-12-11 08:46:56
问题 I copy the machine code of a function on Windows. For example: void func() { printf("hello"); } In the above case, I would copy func() 's hex code segment data and printf() 's hex code data plus other dependencies and data and relinked it on a differnt machine running linux, would it be possible to run the code on a linux machine if properly relinked? And if so would it there be a licensing problem? (Is it legal?) P.S. The question regards to a distributed system question. 回答1: This is a

How Does npm --save Decide Which Version and SemVer Options?

馋奶兔 提交于 2019-12-11 08:36:51
问题 If I type the following into my computer $ echo '{}' > package.json $ npm install pug --save and then look at my package.json , I'll see that npm added a dependency for me. #File: package.json { "dependencies": { "pug": "^2.0.0-rc.1" } } Sweet! However -- how does npm decide to grab version 2.0.0-rc.1 ? And how does npm decide to use the ^ SemVer version modifier? As a user of npm can I configure or tell it to use a different SemVer modifier and/or download a different version? (both a

Node.js shrinkwrapped package.json causes npm install to update new versions regardless

扶醉桌前 提交于 2019-12-11 08:34:03
问题 I've got a npm-shrinkwrap.json and a package.json in a git branch called "deployment". On my servers, I fetch and merge this deployment branch from github. This ensures that my servers have the latest deployment version. Because the node_modules binaries etc. are not being shipped, I need to run npm install or npm update on the server side too, after the project repository has been pulled from the server. This is why I decided to use npm shrinkwrap . However, even when I have this npm

how to force maven install on dependent project?

一世执手 提交于 2019-12-11 08:33:47
问题 I have project B which depends on project A. On project B's pom.xml file, I have declared A dependency as: <dependency> <groupId></groupId> <artifactId>A</artifact> <version>1</version> <scope>compile</scope> </dependency> But every time I make any changes on project A, I have to run maven install on eclipse, to install the project to my user's repository. How can I make sure project A is built and installed before project B is built and ran? 回答1: Use a module with packaging=pom to control

Removing external dependencies to MFC DLL project

人盡茶涼 提交于 2019-12-11 08:19:04
问题 Im developing a MFC DLL project in VS2008. The dll compiles OK and I can call it fine from an GUI exe that a contractor has developed for me. Visual C++ Redistributables are required to be installed for my dll (and maybe the exe which is developed in C++ too) Another company wants to licence my dll to use with their C++ exe. They have requested that my dll have no external dependencies. Is it possible to compile my dll to remove all external dependencies like the Visual C++ Redistributables?