dependencymanagement « dependency « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » dependency » dependencymanagement 

1. maven dependencies groovy    stackoverflow.com

I'm running a project that has a dependency on groovy 1.7-beta-1. The gmaven plugin uses groovy version 1.6 as a dependency. In my pom, I specify in the dependency management section ...

2. why does maven release plugin allow for SNAPSHOT version in dependency managment?    stackoverflow.com

We have 1 company parent pom. This uses dependencyManagement to manage the versions for all the dependencies of all the artifacts used. What is alarming, is that SNAPSHOT ...

3. hunting maven dependencies    stackoverflow.com

I want to start using maven in code I distribute but I can't find an efficient way to work with dependencies. Every new dependency takes me far too long to add. As ...

4. Maven2 sharing dependencies across parent and children (without redeclaring dependencies in children)    stackoverflow.com

With maven1 I was using the extend tag to tell my children project to use their parent configuration. All dependencies declared in the parent were available in extending (children) projects. Now with maven2 ...

5. Maven - Dependency Inheritance - Provided    stackoverflow.com

I make use of dependency POMs which I will then go and include into another projects as as dependency. The problem I am having is while it aggregates the POM ...

6. Missing maven dependency using nexus setup    stackoverflow.com

I am trying to build a maven project to test out some testing software - Arquillian. I setup nexus and added the jboss repositories to the bottom of the public group. When ...

7. Maven MOJO transitive dependency resolution ordering from the bottom of the graph    stackoverflow.com

I'm resolving transitive dependencies in my MOJO and wish to have them returned in order from the bottom of the dependency tree up. Is this possible using Maven2? Here's my code ...

8. Sort maven dependencies in Eclipse    stackoverflow.com

Just wanted to know if it is possible in Eclipse to sort Maven dependencies by alphabetical order? It's bothering me to have a list of 200 jars not ordered... :(

9. Maven: How to remove dependencies if they are already transitive?    stackoverflow.com

For example, if there are dependencies:

a -> b
a -> c
b -> c
I want to remove the dependency a -> c, because there is a -> b -> c. I know ...

10. Maven : Should I keep or remove declared dependencies that are also transitives dependencies?    stackoverflow.com

Do you think it is a good practice to remove every transitive dependencies that can be found in a maven pom? Example:
My project depends on A and B.
B is also ...

11. Maven dependency resolution    stackoverflow.com

I would like to use Maven for dependency resolution only in my Grails application, i.e. I will continue to use Grails commands such as grails war and grails test-app to build ...

12. Maven - System Jar provoded by Websphere Library    stackoverflow.com

I have two questions regarding dependencies: Q1: I have a j2ee.jar on my unix box (provided by Websphere Library). This is how I refer it in ANT:

<path id="was.lib">
 <fileset dir="${was.home}/lib">
  <include ...

13. eliminate maven dependency duplication    stackoverflow.com

In my Maven build, I use the antrun plugin to invoke an ant task.

        <plugin>
         ...

14. What is the meaning of type "bundle" in a maven dependency?    stackoverflow.com

What is the meaning of "bundle" e.g in this dependency:

<dependency>
    <groupId>org.apache.abdera</groupId>
    <artifactId>abdera-core</artifactId>
    <version>1.1.2</version>
    <type>bundle</type>
    <scope>compile</scope>
</dependency>

15. Maven 1.0 Missing Dependency    stackoverflow.com

I'm trying to setup a development environment for developing Atlassian Jira 3.13 plug-ins. The process is described on Atlassian's website, here. Unfortunately, Jira 3.13 is ...

16. "optional" dependency in Maven    stackoverflow.com

Maven is a bit over my head sometimes... I have created a library which has an optional dependency on slf4j and on log4j. By optional, I mean:

  • My library needs those logging ...

17. grails maven dependency resolution    stackoverflow.com

I have a grails plugin with following BuildCofnig.groovy

grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {

 ...

18. Do you know the maven profile for mvnrepository.com?    stackoverflow.com

I am trying to include some dependencies in my maven project. These dependencies are not available in the default Mven 2 repository http://repo1.maven.org/maven2/. They are available at http://mvnrepository.com/ But ...

19. Eclipse Maven dependency doesn't find    stackoverflow.com

I have add to pom.xml of my project repository:

        <repository>
        <id>java.net</id>
       ...

20. Exclude unused parts of dependencies from jar (Maven)    stackoverflow.com

We have a small project with some heavy-weight dependencies (e.g. Spring) of which we only use small parts. Therefore, the JAR we get when packing with all dependencies weighs several megabytes, ...

21. How can I make the test jar include dependencies in Maven?    stackoverflow.com

I have a project with src/main/java and src/test/java structure, and I managed to use maven-jar-plugin to build a jar of the test branch. However, I want to package the test jar ...

22. Maven dependency resolution and scope overriding (not just another newbie question)    stackoverflow.com

(I originally asked the question in a very detailed manner over here. I've excerpted it here as the maven-users mailing list has gone quiet on this question.) My reference ...

23. Using Maven to download dependencies without mavenising my project    stackoverflow.com

I am looking at using Spring Batch, which seems to mainly be distributed/managed using Maven. I am not a Maven user (I've always got away with using ...

24. Interpreting "omitted for conflict" in maven 2 dependency tree    stackoverflow.com

This is a dependency tree generated by Maven 2.2.1 with mvn -o dependency:tree -Dverbose -Dincludes=log4j

[INFO] [dependency:tree {execution: default-cli}]
[INFO] com.openboxes.renderingservice:common:jar:1.0
[INFO] +- org.springframework:spring:jar:2.0.4:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1:compile
[INFO] |     \- log4j:log4j:jar:1.2.12:compile
[INFO] ...

25. How can I tell maven's dependency:analyze it's wrong?    stackoverflow.com

Maven's dependency:analyze is telling me that I need com.google.collections:google-collections, when in fact I'm not using it. It's probably getting tripped up by either java.util.Collections or org.apache.commons.collections.MapUtils. I'd like the ...

26. Verify dependencies in a Maven build    stackoverflow.com

Is there a way to write a test that checks Maven dependencies? In our project, we found these problems:

  • Some parts of the project use commons-io:commons-io, others used org.apache.commons:commons-io
  • The wrong version of a ...

27. Eclipse maven to manage only dependencies and nothing more    stackoverflow.com

Is it possible for maven plugin to manage only dependencies and nothing more. I work with "strange" maven project, and want Eclipse/maven plugin only to read dependencies from pom.xml and add it ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.