build-dependencies

Maven + Spring Boot: Found multiple occurrences of org.json.JSONObject on the class path:

百般思念 提交于 2020-01-12 04:07:34
问题 When I run mvn test I get this warning. How can I fix it? Found multiple occurrences of org.json.JSONObject on the class path: jar:file:/C:/Users/Chloe/.m2/repository/org/json/json/20140107/json-20140107.jar!/org/json/JSONObject.class jar:file:/C:/Users/Chloe/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class You may wish to exclude one of them to ensure predictable runtime behavior Here is my pom.xml.

Struts2 confgured in netbeans 8 returning HTTP Status 404 - Not Found

故事扮演 提交于 2020-01-05 03:59:09
问题 I have tried everything to run my first Struts2 demo application but i am failed to run it. I have followed the tutorial on http://www.quickprogrammingtips.com/struts2/struts-2-netbeans-tutorial.html Here is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <session

How can I determine what dependencies I need in the gradle build file for my Android project

那年仲夏 提交于 2020-01-03 01:40:13
问题 So far Android studio has handled this, but it is not infallible. Given the information of target build version (27) and which components I require (TabViews with Fragments, but no need for swiping), where can I find the information required to determine what goes in the module build.gradle dependencies? 回答1: This might not be the solution, but a little help. Here are two links that list the libraries. Android Support libraries: https://developer.android.com/topic/libraries/support-library

Maven managed dependencies - resolving ${project.version} from parent pom

房东的猫 提交于 2019-12-18 12:45:16
问题 How is placeholder ${project.version} resolved for managed properties from parent pom? I've expected that it is resolved globally, so when the parent pom has version 2, ${project.version} would also be resolved to version 2. In parent pom I have: <groupId>my.group</groupId> <artifactId>parent</artifactId> <version>2</version> <packaging>pom</packaging> <dependencyManagement> <dependencies> <dependency> <groupId>my.group</groupId> <artifactId>dep</artifactId> <version>${project.version}<

classpath container for Grails in STS

非 Y 不嫁゛ 提交于 2019-12-12 15:03:30
问题 I have a problem with STS on Grails Dependencies. There is one entry, which is pointing to wrong directory. Internal STS build fails due to an error: Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". java.lang.NullPointerException at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.toRawType(JDTClassNodeBuilder.java:116) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.configureParameterizedType(JDTClassNodeBuilder.java:290)

Gradle, Tika - Exclude some dependency packages making a “fat jar” too fat

心已入冬 提交于 2019-12-12 01:25:17
问题 I'm making an app which creates Lucence indices on a handful of well-known document formats (.docx, .odt, .txt, etc.). Tika is ideal for extracting the text but it appears to be the culprit in making my fat jar balloon to 62 MB. To make the fat jar I'm doing this in my build.gradle: buildscript { repositories { jcenter() } dependencies { // fatjar classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4' } } apply plugin: 'com.github.johnrengelman.shadow' shadowJar { baseName = project

SCons dependencies between SConstruct-independent projects in different directories

怎甘沉沦 提交于 2019-12-11 03:12:17
问题 Right now I have a project structure similar to this one: project1/SConstruct (creates library1 and executable1) files project2/SConstruct (creates library2 and executable2) files project3/SConstruct (creates executable3 without libraries creates executable4 with library1 and library2) files I can build all projects with SCons without problems, but I'd like to add a dependency from projects 1 and 2 into project 3. When running scons in project 3, if projects 1 or 2 are not up-to-date, I'd

Xcode how to add an external project

泪湿孤枕 提交于 2019-12-10 12:58:11
问题 I need to add an external project to my Xcode project, the reason for this is I need to add a Target Dependency on that external projects static library. I can't seem to add it in the way I need, I would like it like this: However, when I add another project to my actual Xcode project I get the following which doesn't let me explore that project from my one and so I can't add the dependency I need. Note that these screenshots are from two different projects, and in the one which is showing me

How to install dependencies while creating a .deb installer?

ε祈祈猫儿з 提交于 2019-12-07 12:12:28
问题 I have created a deb package say abc.deb . Now there are few dependencies like python-dev, python-mysql etc., which are needed to be installed as a part of deb installation itself. (i.e. when user runs dpkg -i abc.deb , the dependencies should also get installed automatically). I am using a control file which contains few parameters like preinst, postinst etc. I tried to add Depends to the control file, but I guess, Depends only stops package installation if dependencies mentioned are not

Using --whole-archive in CMake on a library you build

江枫思渺然 提交于 2019-12-07 10:18:45
问题 I have a CMake project while builds a static library and links it with other code into an executable. For reasons I won't go into, I want this linking to happen with the --whole-archive linker flag. Now, this flag is tricky, since you can't just add it anywhere - you have to toggle it, then list the libraries for which you want it to apply, then untoggle it. I've read somewhere (the URL escapes me) that if you have a pre-existing library, you can effectively add this linker flags by doing the