dependencies

How to automatically collect all related class into one jar (use maven)?

a 夏天 提交于 2020-01-16 02:06:45
问题 I have a class ClassA in package packageA and ClassA import ClassB in packageB.(in fact ClassA import a lot of java file) Then the directory is : root pom.xml src packageA classA pom.xml packageB classB My goal is to generate a jar include classA and classB by only telling maven that I input classA. the pom.xml in the root directory is like <groupId>org.abc</groupId> <artifactId>all-code</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>\src\packageA<

How to automatically collect all related class into one jar (use maven)?

旧巷老猫 提交于 2020-01-16 02:05:23
问题 I have a class ClassA in package packageA and ClassA import ClassB in packageB.(in fact ClassA import a lot of java file) Then the directory is : root pom.xml src packageA classA pom.xml packageB classB My goal is to generate a jar include classA and classB by only telling maven that I input classA. the pom.xml in the root directory is like <groupId>org.abc</groupId> <artifactId>all-code</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>\src\packageA<

Does EmberJS Support Composed Components With Transitive Version Conflicts?

夙愿已清 提交于 2020-01-16 01:28:58
问题 I'm wondering whether I can build apps with EmberJS and browserify using components that may have child component dependencies with different versions? For example suppose component's A and B are used. Component A depends on component C:1.0.4 and component B depends on Component C:2.0.6. The reason I'm curious is that the Polymer registry does not support transitive dependencies that have version conflicts: https://github.com/Polymer/polymer/issues/326 Would a emberjs / browserify builds run

SVN Repo in vendor with Composer

蹲街弑〆低调 提交于 2020-01-15 13:33:00
问题 Currently, I have a private SVN repo checked out in my vendor directory that works with Composer. It works pretty fine, but only as long as I don't change/commit stuff. When I composer update after committing a change to the SVN repo I get the clear message that my way of working is not recommended, along with the message my .svn directory is missing. (The missing .svn directory may be because I have a checkout of multiple vendor packages from a single repo) I understand that having a

SVN Repo in vendor with Composer

自作多情 提交于 2020-01-15 13:29:12
问题 Currently, I have a private SVN repo checked out in my vendor directory that works with Composer. It works pretty fine, but only as long as I don't change/commit stuff. When I composer update after committing a change to the SVN repo I get the clear message that my way of working is not recommended, along with the message my .svn directory is missing. (The missing .svn directory may be because I have a checkout of multiple vendor packages from a single repo) I understand that having a

Maven: Why does it need dependency modules' .jars for `mvn initialize`?

此生再无相见时 提交于 2020-01-15 11:38:05
问题 I have a Maven-based project with modules, say, root modA modB Now modB depends on modA . When I run mvn initialize help:effective-pom it fails because modB wants modA.jar . My question is, Why does it need the jar? All the information needed should be in pom.xml, which is available in the module. Who want's to try, check out e.g. Hibernate Core 3.3.2. Thanks, Ondra 回答1: Tried this locally on a multi-module project and see that maven does not need dependency module .jars for either initialize

OracleCommand execution blocks if has OracleDependency

我的未来我决定 提交于 2020-01-15 09:51:28
问题 I have the following code: OracleConnection conn = new OracleConnection(connString); OracleCommand command = new OracleCommand("select * from testtable", conn); conn.Open(); OracleDependency.Port = 2010; OracleDependency dependency = new OracleDependency(command); command.AddRowid = true; command.Notification.IsNotifiedOnce = false; dependency.OnChange += new OnChangeEventHandler(dependency_OnChange); command.CommandTimeout = 1000; DataTable t = new DataTable(); OracleDataAdapter adapter =

Maven: How do I include a dependency in test phase and exclude it in integration-test phase?

空扰寡人 提交于 2020-01-15 03:29:08
问题 I'm using Maven 3.0.3. Is it possible to include a dependency for my test phase only, and then another dependency for my integration-phase only? When these two dependencies are included together <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-dev</artifactId> <version>${gwtVersion}</version> <scope>test</scope> </dependency> ... <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.13.0</version> <scope>test</scope> <

How to whitelist all subdependencies with webpack-node-externals

半世苍凉 提交于 2020-01-14 12:32:34
问题 I'm using webpack to bundle server assets using the target property. This results in a usable client bundle, and a usable server, which is working great. However it seems that even for the server code, webpack is bundling everything within node_modules . I am attempting to use webpack-node-externals to solve this problem, seen below: module.exports = [ { name: "server code, output to ./server", entry: "./servertest.js", output: { filename: "./server/index.js" }, target: "node", externals: [

Switching branches in Git with external dependencies

拥有回忆 提交于 2020-01-14 10:37:19
问题 Has anyone had to deal with the issues of switching git branches in a project that has Maven (or any other external) dependencies? For example, suppose that in one branch I have a maven dependency, and in another I don't (or have a different version required). Would I have to re-import maven dependencies each time I switch branches or is there a better approach? 回答1: It actually depends on an IDE you're using. I haven't noticed any issue with this when using IntelliJ IDEA. It handles any pom