Compile, Provided, APK – Android dependency scope

provided – compile-time only dependency package – package-time only dependency compile – compile-time and package-time dependency provided is commonly used for annotation processing based libraries. Usually these libraries are separated in two artifacts – “annotation” and “compiler”. “compiler” is provided dependency because you do not need to use it in application, only for compilation; and … Read more

How does Copy-local work? log4net.dll is not being copied to MyProject output directory

Unfortunately it appears that according to the following statement taken from the MSDN documentation the CopyLocal functionality does not work as expected for assemblies already in the GAC. If you deploy an application that contains a reference to a custom component that is registered in the GAC, the component will not be deployed with the … Read more

How do I include a dependency’s test jar into a Maven project’s deployment?

Better to configure maven pom file in your first module <project> <groupId>com.example</groupId> <artifactId>foo</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>jar</packaging> <build> <plugins> … <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <goals> <goal>test-jar</goal> </goals> </execution> </executions> </plugin> After this a mvn install/release will also deploy an artifact foo-1.0.0-SNAPSHOT-tests.jar Then configure the dependency on the test jar with classifier (like suggested in other responses) … Read more

Conflicting library version in a Java Maven project

You can use the tree goal of the Maven dependency plugin to display all transitive dependencies in your project and look for dependencies that say “omitted for conflict”.1 mvn dependency:tree -Dverbose mvn dependency:tree -Dverbose | grep ‘omitted for conflict’ Once you know which dependency has version conflicts, you can use the includes parameter to show … Read more

Any good advice about how to avoid import cycle in Go?

go list -f ‘{{join .Deps “\n”}}’ <import-path> Will show import dependencies for package at <import-path> – or in current directory if <import-path> is left empty. Alternatively go list -f ‘{{join .DepsErrors “\n”}}’ <import-path> hopefully shows some useful information in your case. See also the output of go help list for additional information about the go … Read more

Maven: Packaging dependencies alongside project JAR?

I’ve like Maven to package a project with run-time dependencies. This part is unclear (it’s not exactly what you describe just after). My answer covers what you described. I expect it to create a JAR file with the following manifest (…) Configure the Maven Jar Plugin to do so (or more precisely, the Maven Archiver): … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)