dependency-management

How is JavaScript library bloat mitigated with Web Components?

廉价感情. 提交于 2019-12-03 06:36:30
问题 As someone who has tried to find a way to help content authors develop and maintain big web sites by creating (HTML) components for years, I'm really excited to see web components gaining tracction at w3c, google and mozilla. But it seems to me that, there is no measure against javascript library bloat in the specifications. Say that I develop component A which has a dependency for underscore.js and want to use components B and C which have dependencies on lodash.js version 1.*, etc. I don't

dependencies.dependency.version is missing even though the dependency is already declared in its parent's pom file's dependency management section

若如初见. 提交于 2019-12-03 06:26:52
As described, the dependency:tree goal on my my project complains that the dependency version is missing for a dependency that is already declared in the dependency management section of its parent pom. Please note the dependency in question is a new one and is just added in the management section. Hui Wang It's true that the parent pom has already included the dependency declaration in the dependency management section. But it's not taken into account. To do so, we should execute the command to install the pom file in the local maven repo. mvn -f <the absolute path to the parent's pom file>

How can I best share Ant targets between projects?

若如初见. 提交于 2019-12-03 05:53:24
Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far. I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy . For example: <project name="ant-ivy-tasks" default="init-ivy" xmlns:ivy="antlib:org.apache.ivy.ant"> ... <target name="ivy-download" unless="skip.ivy.download"> <mkdir dir="${ivy.jar.dir}"/> <echo message="Installing ivy..."/> <get src="http://repo1.maven.org/maven2

Algorithm for dependency resolution

人盡茶涼 提交于 2019-12-03 05:51:18
问题 I'm in the process of writing a package manager, and for that I want the dependency resolution to be as powerful as possible. Each package has a list of versions, and each version contains the following information: A comparable ID Dependencies (a list of packages and for each package a set of acceptable versions) Conflicts (a list of packages and for each package a set of versions that cause issues together with this version) Provides (a list of packages and for each package a set of

How to do deployment for php application

不打扰是莪最后的温柔 提交于 2019-12-03 05:11:17
问题 I am currently developing a php-application for a charity organization and I am now in the stage of defining the deployment practices. Our application is using both Zend Framework and Doctrine. The application will be rolled out to different servers, each with a different configuration file. The machines are both Windows and Linux (but all with Apache and php 5.2+). The source is available in a subversion repository and we want to build and store our packages on a Linux server. Preferably we

Why can't eclipse resolve class in same package?

一笑奈何 提交于 2019-12-03 04:43:59
问题 I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfectly fine, everything worked before. Clicking on "Import 'DoodleClient' ..." does nothing. What I did before this problem occured: I added *.class to .gitignore git rm *.class On the next pull, hunderts of .class files were deleted by git 回答1: Alternatively, you can highlight the project : Choose Clean ... from Project

Haskell Stack install package dependency from github

扶醉桌前 提交于 2019-12-03 04:14:25
问题 Is it possible to install a version of a package from github using Haskell stack? e.g. in a .cabal or a stack.yaml file, how can I point a dependency at a git repo/branch/revision? 回答1: The documentation for the stack.yaml packages section gives examples of referring to more complex package locations. packages: - location: . - location: dir1/dir2 - location: https://example.com/foo/bar/baz-0.0.2.tar.gz - location: http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f

dependencyManagement and scope

大城市里の小女人 提交于 2019-12-03 04:04:17
问题 I usually put a <dependencyManagement> section in parent-project/pom.xml . This <dependencyManagement> section contains declaration and version for all dependencies of my children modules like this (i.e. without the <scope> element): <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> </dependencies> </dependencyManagement> In all children modules (i.e. moduleX/pom.xml), I have: <dependencies>

Python package dependency tree

こ雲淡風輕ζ 提交于 2019-12-03 03:45:38
问题 I would like to analyze the dependency tree of Python packages. How can I obtain this data? Things I already know setup.py sometimes contains a requires field that lists package dependencies PyPi is an online repository of Python packages PyPi has an API Things that I don't know Very few projects (around 10%) on PyPi explicitly list dependencies in the requires field but pip/easy_install still manage to download the correct packages. What am I missing? For example the popular library for

Package Manager vs Dependency Manager

此生再无相见时 提交于 2019-12-03 03:41:36
问题 What are the differences? In many places they used interchangeably as synonyms but I think they are different. What is the key difference in short? 回答1: TLTR: Package Manager is used for SYSTEM and Dependency Manager for PROJECT Package Manager - is used to configure system, ie to setup your development environment and with these settings you can build many projects. Dependency Manager - Is specific to project. You manage all dependencies for a single project and those dependencies are going