What are the main benefits of using maven compared to let's say ant ?
It seems to be more of a annoyance than a helpful tool.
I use maven 2, with plain eclipse-jee (no m2eclipse), and tomcat.
Supporters of maven believe that
Maven lets you get your package dependencies easily
Maven forces you to have a standard directory structure
...
I'm looking for a public Maven repository that has the Voldemort libraries. Anyone?
...
Hello everyone!
I have a java project consisting of three modules
project-common
project-a
project-b
Project a and b use -common as dependency.
I use a simple assembly configuration to put project-a, project-b and all dependent libraries (spring and so on) in a single archive.
I also want to provide startscripts for different plat...
Need some help thinking in TestNG terms. I have a large third party test suite written in TestNG and I'd like to be able to compose tests from it and run them from Intellij or Maven
Is it possible to compose tests together programmatically and still leverage the runners built into these other frameworks. In JUnit you could do this:
...
I use Magnolia CMS and Blossom.
When I add annotations to my classes I get something like this:
annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations)
@Template(value="Blossom Template")*
Spring annotation(like @Controller) doesn't compaile too.
Where is my mistake?
My pom.xml dependenc...
Hi all,
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 with those dependencies, it appears when I declare dependencies of scope, provided, those aren't included.
Is it possible to include provided dependencies in dependency P...
We have several maven projects, which are built on the build server. In some cases we want to sign our deliverables. We use Maven Jarsigner Plugin to do that.
We face the following questions:
Where we should store the passwords for signing?
What is a good strategy for signing maven projects?
We don't want to put our keystore somewhere ...
I want to use the commons-lang by maven,but apache repository isn't ,I down commons-lang-src publish in local repository ,but is warning.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.3:test (default-test) on project commons-lang: There are test failures.
how to solve?
...
Hi all,
I would like to filter some files using a different file in every execution, this obviously implies multiple executions.
But it doesn't seems to filter anything.
It seems to be ignoring the filters entry.
Thank you!
Here is a fragment from my pom.xml file:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net....
Hi,
using Maven surefire, I'm unable to fork parallel test execution. That is, each of my test cases hs to run in a serapate JVM, hence the forking. In addition, I want my test cases to run in parallel. the first part is working without problem: I'm able to run each test case in its own JVM. the second part, however is still a challene ...
I'm using Ubuntu with Gnome where I can set network proxy settings (with authentication).
The question is: how I can run maven in command line and make it use this proxy?
...
Hi, I would like something like the following.
I want just an utility that is able to download jars and their dependencies from the Maven Repository without imposing no constraints on how my project should be built.
I would like something like this:
download-jar --dest=lib/ 'commons-io:commons-io:jar:1.4'
It should be able to downlo...
Project 1: Foo
Project 2: Bar
If Foo depends on Bar, and both are in Maven, how do you work on Bar and Foo, so that if you need to make a small tweak in Bar, in order to fix something in Foo you can make that change to Bar and then run Foo and see that change?
Right now I have the Maven dependency, but I feel like deploying to maven an...
Hi, I'm translating an Ant script to Maven 2 and I have this problem: the Ant script use a pretty simple java class to encrypt files this way:
<target name="encrypt">
<java classname="DESEncrypter">
<classpath>
<pathelement path="...classpath for this thing..." />
</classpath>
<arg line="fileToEnc...
I am new to maven. The main feature I benefit from, yet, is the automatic dependency management. The standardized directory structure seems also to be nice, but Eclipse has a standard directory structure, too. The directory structure is now independent from Eclipse, but now it is dependent from maven. OK, I see, both programs seem to be ...
Hello,
I've been trying to get the gwt-maven-plugin to work for me. Hopefully someone can help me.
I'm using gwt-maven-plugin 1.2 and trying to get it to work with gwt 2.1.0.M3. We have a nexus repo at work and I've put the latest gwt jars there. The plugin fails when trying to download the gwt-dev jar.
The gwt-dev jar is located at 2...
I have already two questions out there on updating Maven project version. Now I have an issue with updating the dependency version of dependant sibling projects.
My simplified project setup is following:
root
|--parent
|--tool-core
|--tool
|--functional-tests
The parent project holds all the global properties and dependency managemen...
I want to use the apache commons configuration jars in my Maven project.
When I add it using m2Eclipse it produces this:
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>20041012.002804</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
This seems fi...
For continuous integration I am using Maven 2 and TeamCity 5.1.2. My builder number is defined by the pattern %maven.project.version%.{0}, and this is exported to Maven build script as ${build.number}
When the build creates the jar file I would like the jar to contain a property file with this information inside:
build.number=#1.1-SNA...
So I'm working on a java project (an exitsing java project that uses maven2, not mine). Everything works fine.
I add a new class to the source directory.
I do mvn compile and get success.
I then do `mvn exec:java -Dexec.mainClass="package.NewClass"
and get classNotFoundException.
It does compile the new file, and I can see the NewCla...