Latest Questions tagged Maven 2

Browse all latest questions tagged Maven 2

171
Votes
Published 07 Sep, 2022
Java - Maven: best way of linking custom external JAR to my project?

It's my first couple of days learning Maven and I'm still struggling with the basics. I have an external .jar file (not available in the public repos) that I need to reference in my project and I'm tr...

129
Votes
Published 26 Aug, 2022
Java - Using Java Advanced Imaging with Maven

The JAI setup is quite tedious, involving multiple jars and environment variables. It would aid the project's portability quite a lot if I could add it as a regular Maven dependency. The POM snippet...

552
Votes
Published 07 Sep, 2022
Java - Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn't seem to work.

31
Votes
Published 15 Sep, 2022
Java - How do I get Maven 2 to build 2 separate WAR files

When doing a mvn install I want to end up with 2 WAR files in my target directory. One will contain the production web.xml and the other will contain the test/uat web.xml. I've tried this: <build...

248
Votes
Published 07 Sep, 2022
Java - Maven: add a dependency to a jar by relative path

I have a proprietary jar that I want to add to my pom as a dependency. But I don't want to add it to a repository. The reason is that I want my usual maven commands such as mvn compile, etc, to work...

110
Votes
Published 03 Sep, 2022
Java - build maven project with propriatery libraries included

How to create maven pom, which will make project buildable, can I include propriatery jars with my project directly without having to take them from repository? anyone did this before ? EDIT : I do...

184
Votes
Published 13 Sep, 2022
Java - Can we start the maven build from the point where it failed

Suppose, I am doing a full build on my large project which has 7 modules and on the 6th module, the build failed because a test failed. Is there any way by which I can start the build from the point i...

55
Votes
Published 13 Sep, 2022
Java - How to read an external properties file in Maven

Does anyone know how to read a x.properties file in Maven. I know there are ways to use resource filtering to read a properties file and set values from that, but I want a way in my pom.xml like: &lt...

30
Votes
Published 21 Aug, 2022
Java - SSL Problem Downloading Resource in Maven

I am trying to create a Confluence plugin. I have been following theses instructions. However when I run the atlas-create-confluence-plugin command maven throws SSL errors trying to get resource from...

56
Votes
Published 12 Sep, 2022
Java - Maven and the JOGL library?

I've been studying Maven in my free time over the last several days but can't seem to figure out how to organize a project so that the JOGL libraries are used. I would preferably like the following:...

30
Votes
Published 10 Sep, 2022
Java - How can I export a FULL war file from eclipse that bundles maven dependencies?

I have an eclipse WTP app using the M2 plugin. I exported it and it runs fine on my machine, but I believe this is because it references my local maven repo. How can I get it to bundle the jars from...

105
Votes
Published 07 Sep, 2022
Java - How to get rid of Checkstyle message 'File does not end with a newline.'

I'm working with a Maven (jar) Project in Netbeans (Windows), which creates Checkstyle reports with the Maven Checkstyle plugin. No matter what I do, I always get the message: File does not end with...

95
Votes
Published 06 Sep, 2022
Java - Maven Modules + Building a Single Specific Module

I have a multi-module Maven project with a parent project P and three sub-modules A, B, and C. Both B and C are war projects and both depend on A. I can type mvn compile in P and have all of the s...

84
Votes
Published 06 Sep, 2022
Java - How do I add time-stamp information to Maven artifacts?

I am upgrading a large build-system to use Maven2 instead of Ant, and we have two related requirements that I'm stuck on: We need to generate a time-stamped artifact, so a part of the package phase...

104
Votes
Published 06 Sep, 2022
Java - How to configure settings.xml to pull from Artifactory private virtual repository?

I'm an Apache Archiva veteran who has recently switched over to Artifactory Pro. I've been attempting to replicate, in Artifactory, a setup where I implemented virtual, private repositories within Ar...