version « 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 » version 

1. How do I tell Maven to use the latest version of a dependency?    stackoverflow.com

In Maven, dependencies are usually set up like this:

<dependency>
  <groupId>wonderful-inc</groupId>
  <artifactId>dream-library</artifactId>
  <version>1.2.3</version>
</dependency>
Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can ...

2. maven look for new versions of dependencies    stackoverflow.com

Is there any way to make maven look for new versions of dependencies? for example, i have commons-lang ...

3. Maven 2 project versions, dependency versions, and perpetual releasing    stackoverflow.com

Scenario: The system has number of components, each with its own POM. There are some long dependency chains (A depends on B depends on C, etc.). I want each ...

4. Maven specific version of a snapshot dependency    stackoverflow.com

Is there a way to get Maven to download a specific snapshot version of a dependency? I know that specifying the dependency like this will download the lastest snapshot available:

<dependency>
<groupId>groupid</groupId>
<artifactId>artifact-id</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
Is it ...

5. Maven stuck on old version of system dependency    stackoverflow.com

My Maven project has a dependency on a non-Maven library, which is coded as a system dependency:

<dependency>
  <groupId>com.example</groupId>
  <artifactId>foo</artifactId>
  <version>${foo.version}</version>
  <scope>system</scope>
  <systemPath>${foo.jar}</systemPath>
</dependency>
where the location of the ...

6. Dependency version management in maven    stackoverflow.com

When declaring dependencies in maven, can you specify the minimum version the project depends on to, but have mvn exec use the latest binaries. When building a library, I would like to ...

7. Can I use maven to find but not download the latest version of a dependency?    stackoverflow.com

How can I use maven to determine if there are updates to any of the third party jars that the project uses without actually modifying the project?

8. How can I force maven to use my mock version of dependencies during the test phase    stackoverflow.com

so I have a Java application with a that accesses some web services. I want to mock out the appropriate classes so I can just use a few hard coded ...

9. Maven project dependecy against JDK version    stackoverflow.com

I have projects that need to be build with a specific version of the JDK. The problem isn't in the source and target parameters but in the jars of the runtime used ...

10. If the dependency is a unique snapshot version and install is called, what does maven select?    stackoverflow.com

Imagine two projects. The first is the framework-core project which is in version 1.1.0 and has several snapshot builds. The other is the example-business project which has the following dependency to ...

11. Managing maven dependancies - New Versions and Non-Repo libraries    stackoverflow.com

Warning: I have just picked up Maven, so things mentioned might be wrong or not best practice. I have a medium size open source project that I am migrating to Maven from ...

12. Different versions of the same dependency in Maven    stackoverflow.com

I have a maven project that depends on both Woodstox and XStream. Unfortunately XStream also depends on Woodstox, but a version slightly older than what I need. In the meantime though, ...

13. Why do a lot of Maven dependency versions end with SNAPSHOT?    stackoverflow.com

Is there any special meaning for snapshot in the Maven version?

14. maven: automatic upgrade version in all dependent projects    stackoverflow.com

Before the question I'd like to describe the methodology I use. I have a lot of projects under version control folder, some of them multi maven projects, some of them standalone bundles, ...

15. Maven 2 - different dependency versions in test and compile    stackoverflow.com

I have project that depends on commons-httpclient [2.0] (compile). I would like to write some jbehave tests - jbehave-core 3.4.5 (test). Both this dependencies depend on commons-lang but in different versions - 1.0.1 ...

16. two versions of dependencies in maven    stackoverflow.com

is there a way where i can pass a command switch to change my dependencies? meaning, i have

<dependency>
            <groupId>api</groupId>
  ...

17. Maven : Changing the versions of the jars inside the dependency Tag    stackoverflow.com

We are using Maven 2.2.1 version . I have an existing POM.xml file , in that i have observed a lot of jars were mentioned with the version 99.1 , look this ...

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.