dependencies

Why class declaration ordering still matters with prototyping?

梦想与她 提交于 2020-01-25 20:57:47
问题 I was struggling with a 'field "player" has incomplete type" error with my code. My class "game_session" contains a single "player" and I declare them both in the same header file as shown below: #ifndef HEADER_H #define HEADER_H #include <iostream> #include <vector> using std::vector; class Player; class GameSession; class GameSession{ private: ... Player player; public: GameSession(); ~GameSession(); ... }; class Player { public: Player( int maxdim ); ~Player(); ... }; The above code would

Choosing dependency version in maven and maven plugin

社会主义新天地 提交于 2020-01-25 07:25:08
问题 I have a maven plugin which is using hsqldb 1.8.0.10. In my pom.xml from the plugin, it is declared like this: <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.10</version> </dependency> But if I run that plugin from another maven project, and that project has a newer version of hsqldb (for instance 1.9.0), how can I configure my plugin that he will use the newest version of hsqldb, without changing it's pom.xml? And is it possible to do this the other way

Why does 'composer dumpautoload -o' fix 'Class not found' PHP error?

别等时光非礼了梦想. 提交于 2020-01-25 00:20:09
问题 I have a Laravel 5.8 project that is dependent on a private package. When I run composer install the package is installed and shows up in the vendor folder. project composer.json { ... "require": { "php": ">=7.0", "company/api-request": ">=1.0.0" } ... } package src/ApiRequest.php <?php namespace Company; class APIRequest { ... } package composer.json { ... "autoload": { "psr-4": { "Company\\": "src/" } } ... } When I call the package \Company\APIRequest::run(); I am getting Message: Class

Generating classpath file with Maven

守給你的承諾、 提交于 2020-01-24 10:59:09
问题 I'd like to generate a classpath file from pom.xml dependencies. I need it so during tests I have the classpath of all dependencies (that are later packaged into a bundle) maven-dependency-plugin does not suit me for two reasons: it generates paths to files in the repository, so to use other modules they first need to run install phase for them (I'd like to have paths like /some/root/othermodule/target/classes ) it doesn't include the artifact's own path ( target/classes ), which means I need

Local npm dependency “does not a contain a package.json file” in docker build, but runs fine with npm start

*爱你&永不变心* 提交于 2020-01-23 18:49:31
问题 I have an npm module I'm working on locally that is a dependency in a client app. Directory structure is basically the following: /app /client /src App.js package.json Dockerfile.dev /shared /contexts package.json test.js /hooks My package.json is the following: { "name": "web", "version": "0.1.0", "private": true, "dependencies": { "contexts": "file:../shared/contexts", "react": "^16.10.2", "react-dom": "^16.10.2", "react-scripts": "3.2.0" }, "scripts": { "start": "react-scripts start",

Unable to get unpack-dependencies to run before jar:jar,

落花浮王杯 提交于 2020-01-23 18:21:09
问题 I cannot get maven-dependency-plugin/unpack-dependencies to run before maven-jar-plugin/jar when running mvn clean install from the command line. Every time, I see it running jar:jar before the unpack stuff runs, I saw in my googling some talk of adding a pre-package phase to the maven lifecycle, doesn't seem to be working thought. Basically I want to create a single jar file containing all necessary classes (all 2600 of them). This jar gets a Manifest which enables it to be run in the manner

Koin sharing instances between modules

ε祈祈猫儿з 提交于 2020-01-23 18:18:09
问题 I'm using the Koin library for an Android project. I want to share some instances between modules since they are used a lot throughout the application. For instance: val moduleA = module { scope(named<FragmentA>()) { scoped { FirebaseFirestore.getInstance() } scoped { LocalDatabase.getInstance(App.sContext) } scoped { NetworkDataSourceA(get()) } } } val moduleB = module { scope(named<FragmentB>()) { scoped { FirebaseFirestore.getInstance() } scoped { LocalDatabase.getInstance(App.sContext) }

Koin sharing instances between modules

泪湿孤枕 提交于 2020-01-23 18:17:48
问题 I'm using the Koin library for an Android project. I want to share some instances between modules since they are used a lot throughout the application. For instance: val moduleA = module { scope(named<FragmentA>()) { scoped { FirebaseFirestore.getInstance() } scoped { LocalDatabase.getInstance(App.sContext) } scoped { NetworkDataSourceA(get()) } } } val moduleB = module { scope(named<FragmentB>()) { scoped { FirebaseFirestore.getInstance() } scoped { LocalDatabase.getInstance(App.sContext) }

Grails Project - Common Java Project Dependency in Eclipse

假装没事ソ 提交于 2020-01-23 06:48:28
问题 All, We have standard java projects that contain our common data model, common util classes, etc... What I can’t seem to figure out is how, to make my Grails project (in Eclipse) have a dependency on the other standard (non Grails) java project in the workspace. When I add the project in the “Java Build Path” the project doesn’t show any compiler errors, but it when I run “Grails Tools -> Refresh Dependencies” or attempt to run the project (run-app) it fails. This seems like it would be a

import all the functions of a package except one when building a package

老子叫甜甜 提交于 2020-01-23 01:14:27
问题 I'm building an R package ( mypackage ) that imports data.table and another package (let's call it myotherpackage ). Imports: data.table, myotherpackage is in the DESCRIPTION file of mypackage . myotherpackage imports dplyr, which has several functions named like the data.table functions, so I get warnings like this everytime I load mypackage : Warning: replacing previous import ‘data.table::first’ by ‘dplyr::first’ when loading ‘mypackage’ Is there a way to import all the functions of data