Questions tagged [maven-2]

Apache Maven is a software project management and comprehension tool. This is a tag for Maven related questions that are specific to Maven versions 2.x.

maven-2
Filter by
Sorted by
Tagged with
1 vote
1 answer
217 views

maven-assembly-descriptor include this very module

In a single-module project, I don't see how to get a 'classified' artifact from the project itself into the descriptor and thus the assembly. Do I list it as a dependency?
2 votes
2 answers
4k views

Maven does not resolve a local Grails plug-in

My goal is to take a Grails web application and build it into a Web ARchive (WAR file) using Maven, and the key is that it must populate the "plugins" folder without live access to the internet. An "...
1 vote
1 answer
167 views

Issue on maven 2.2.1

I wrote a small maven plugin and everything seems to work well with prior version of maven (2.0.9) but my build fails on version 2.2.1 The stack trace does not show anything from my end of the code ...
1 vote
1 answer
4k views

Maven doesn't compile target/hibernate3/generated-sources

Can someone tell me how to configure maven for it also to compile sources from the target/hibernate3/generated-sources directory? I have already read this and other posts but they don't seem to solve ...
2 votes
3 answers
2k views

Maven. What to do with "homeless" jars?

I have some proprietary.jar that I need to include in my project, but I don't wish to install it to the local repository. What I did initially was to put the jar into version control in my project's ...
10 votes
3 answers
21k views

Spring 3, Jersey (JSR-311) and Maven dependencies

im currently struggling to integrate a REST Service based on Jersey and Spring. I'm using Spring 3.0.2-RELEASE and jersey-spring 1.2. But jersey-spring adds a dependency to Spring 2.5.6 to my project ...
1 vote
3 answers
5k views

Source folders for a maven project in eclipse

I have a that uses maven... and I want to put it in my working environment with eclipse(Galileo)... the project is in a svn server, and I can create check out the project and everything looks OK. I ...
1 vote
1 answer
510 views

Unpacking an assembly inside of a war

I have another project which contains static content (css, images, JS, etc.), and I need that to be copied to the web root directory of jetty for testing. In that project, I output a zip file ...
1 vote
2 answers
162 views

hunting maven dependencies

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 a simple example, I need to add ...
4 votes
2 answers
4k views

UmlGraph vs APIViz for Maven javadoc generation

I'm wondering if there are any clear reasons to choose UmlGraph over APIViz for javadoc UML diagram generation in a Maven2 build. Are there any integration or features that one has over the other, ...
9 votes
2 answers
7k views

How can I deploy multiple wars using the tomcat plugin in maven?

I have two wars which I deploy in two maven projects using tomcat plugin. I want to do this in one step and be able to deploy more than one war in a single maven project. How can I do this? any ...
0 votes
1 answer
523 views

Maven Embedder - getting a list of profiles

How do I get a list of all the profiles for a project in maven inside of a maven plugin? Would it be: MavenEmbedder.readModel(new File("path to pom.xml")).getProfiles(); Walter
2 votes
1 answer
204 views

how to use BaseTokenStreamTestCase classe with maven

I want to unit test my lucene filter (which extends TokenFilter). I use maven. The "BaseTokenStreamTestCase" class looks perfect but I have no idea in which maven artifactId I can find it ? Any ...
1 vote
1 answer
845 views

Maven test failure xml FileNotFoundException

My Maven build is failing on Hudson with a FileNotFoundException, I do not get the same failure through NetBeans. The FileNotFoundException is for some xml files in the same packages as my test ...
1 vote
1 answer
374 views

How do I get artifacts from one Maven module included in the resources of another in my build?

I have Maven modules that produce a Flex application as an SWF file. I want to include that file in a web application that is made with another Maven module from the same build. I'm wondering how and ...
3 votes
1 answer
4k views

Maven2 compiles my tests, but doesn't run them

I have a simple Maven2 project with tests written for TestNG. When I say mvn test Maven2 compiles my test, but don't run them. I already checked this page: http://maven.apache.org/general.html#test-...
4 votes
2 answers
2k views

In a Maven project, what are reasons for either a nested or a flat directory layout?

As my Maven project grows, I'm trying to stay on top of the project structure. So far, I have a nested directory layout with 2-3 levels, where there's a POM on each level with module entries ...
0 votes
4 answers
501 views

Maven - how to put the build dependance jar files?

I run a simple CXF maven project http://cxf.apache.org/docs/using-cxf-with-maven.html, and get error below [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] [INFO] -------------------------...
0 votes
1 answer
530 views

m2eclipse/svn project with packaging of pom

I have a project with the following layout taac * taac-web * taac-backend-api * taac-scheduler all of this is checked into an SVN repository. When creating a new project in eclipse (originally) I ...
1 vote
1 answer
2k views

Why can I run JUnit tests for my Spring project, but not a main method?

I am using JDBC to connect to MySQL for a small application. In order to test without altering the real database, I'm using HSQL in memory for JUnit tests. I'm using Spring for DI and DAOs. Here is ...
1 vote
3 answers
1k views

Is there a way to prevent Maven Test from rebuilding the database?

I've recently been asked to, effectively, sell my department on unit testing. I can't tell you how excited this makes me, but I do have one concern. We're using JUnit with Spring and Maven, and ...
0 votes
2 answers
346 views

Maven: Unofficial artifact naming scheme?

I'm creating some Maven artifacts for various dependencies for our projects, and while I'm taking my best guess at group / artifact IDs, I'd like to add something to flag them as "unofficial" and ...
8 votes
3 answers
2k views

How can one determine the origin of a given Maven dependency?

Given a local Maven repository, can one determine the remote repository that is the source of a particular dependency? How?
2 votes
2 answers
3k views

Maven Surefire reports show multiple class entries rather than a suite

I've been asked to configure Maven's surefire report generator to include one entry for the test suite which in turn tests classes A,B and C but instead of seeing this: A B C MySuite I see this A B C ...
0 votes
1 answer
1k views

Add mojo to custom lifecycle defined by another maven plugin

I'm using a maven plugin that defines a custom packaging type and lifecycle for my projects. Lets call this packaging "foo", defined by the "foo-plugin". I have no control over said plugin, but I want ...
2 votes
1 answer
695 views

Building Flex/Java application in IntelliJ - HTML wrapper not writing correctly

I'm trying to build my Flex/Java web app from within IntelliJ rather than have to go to the command line to invoke the build from Maven. Everything is working and compiling fine from IntelliJ except ...
1 vote
1 answer
141 views

google salve - maven

I tried to install google salve http://code.google.com/p/salve/ by adding following statements in the project's pom file: However, when running mvn dependency:resolve it states "unable to find ...
1 vote
2 answers
980 views

Is it possible to build multi module structure with Maven for PHP?

I have to build an application using Maven for PHP that has multiple modules. The scenario in which the maven seems to not work is this: I have a common module and a client module depending on the ...
7 votes
2 answers
3k views

Webdevelopment with Jetty & Maven

I find it very frustrating doing web development with Maven & Jetty using Eclipse, compare with what I did using Visual Studio. Everytime I make a change, even a minor change in my view file, (*....
2 votes
2 answers
1k views

Reading POM's with its children

Based on the post it is mentioned (By Brett Porter) that a POM can be read. What i need is to read not only a single pom. I need to read the whole tree of pom's in a multimodule build. Starting with ...
7 votes
1 answer
9k views

Does maven-release-plugin push tags to remote Git repository?

When using the maven-release-plugin with Git, mvn release:prepare happily tags the release in the local repository. I'd expect mvn release:perform to push the tags to the remote repository, but this ...
5 votes
5 answers
1k views

What are the hidden features of Maven2? [closed]

What are the hidden features of Maven2?
1 vote
2 answers
5k views

Maven: properties not being substituted

I'm using a maven plugin for install4j in my project, located here. That plugin lets you pass variables to install4j using the <compilerVariables> section. Here's the relevant section of my pom: ...
5 votes
2 answers
23k views

How to configure hbm2java and hbm2dao to add packagename to generated classes

I'm trying to configure hbm2java with maven to generate POJO classes and DAO objects. One of the issues I'm dealing with is package names aren't generated. I'm using the following pom for that: <...
1 vote
2 answers
2k views

Customized generation/filtering resources with maven

I wonder what is the Maven way in my situation. My application has a bunch of configuration files, let's call them profiles. Each profile configuration file is a *.properties file, that contains keys/...
2 votes
2 answers
426 views

Maven Repository proxies third-party repositories, does this produce traffic?

We have a public Sonatype Nexus Maven Repository which is a proxy for several third-party repositories, such as JBOSS or the Scala-Repo. Does the downloading of artifacts which are located in one of ...
3 votes
3 answers
2k views

How to repeat a particular execution multiple times

The following snippet generates create / drop sql for a particular database, whenever there is a modification to JPA entity classes. How do I perform something equivalent of a 'for' operation where-...
2 votes
2 answers
2k views

Is there a SVN Maven?

Is there something for maven like http://subclipse.tigris.org/svnant.html ? Something to automate your project updates without having to click update?
1 vote
1 answer
722 views

Error while using JSFUnit/HtmlUnit/CSSParser

We've just recently converted our project to using Maven for builds and dependency management, and after the conversion I'm getting the following exception while trying to run any JSFUnit tests in my ...
3 votes
2 answers
1k views

Java environmental variable woes, maven also

So I re-installed java in a directory that doesn't have any spaces in it, as I was having issues with it before. Java JDK is installed in: E:\downloads\java\jdk I created a User variable: ...
1 vote
1 answer
2k views

Install Maven2 on Karmic

Is there a .deb for Maven2 on Karmic Koala? I see maven2, but it has 100+MB of dependencies (!). Is there a package that is only mvn and none of those dependencies?
1 vote
2 answers
246 views

How do I build a hello world class with maven?

Now the source code is ready, how can I build it with maven? Suppose the source file is hw.java I've googled some time, all the solutions requires me to set the directory in a fixed manner. But ...
2 votes
1 answer
5k views

How to generate an ear file from a maven-archetype-webapp artifact?

I currently have a project built with maven-archetype-webapp artifact. The default packaging for this project is war. Is it possible for me to insert the maven-ear-plugin in this webapp pom.xml ...
6 votes
1 answer
9k views

WSIT, Maven, and wsimport -- Can They Work Together?

I'm working on a small-ish multi-module project in Maven. We've separated the UI from the database layer using Web Services, and thanks to the jaxws-maven-plugin, the creation of the WSDL and WS ...
7 votes
2 answers
2k views

Standard Practice for Continuous Integration of Maven Multi-module projects

I checked around, and couldn't find a good answer to this: We have a multi-module Maven project which we want to continuously integrate. We thought of two strategies for handling this: Have our ...
8 votes
8 answers
3k views

Why is javac 1.5 running so slowly compared with the Eclipse compiler?

I have a Java Maven project with about 800 source files (some generated by javacc/JTB) which is taking a good 25 minutes to compile with javac. When I changed my pom.xml over to use the Eclipse ...
1 vote
2 answers
2k views

Why does the maven eclipse plugin break the maven jetty plugin?

I would like to have the maven eclipse plugin regenerate my .classpath whenever a build is run, and I did so by using the following configuration: <!-- Generate a new .classpath each ...
1 vote
1 answer
4k views

How to get hibernate3-maven-plugin hbm2ddl to find JDBC driver?

I have a Java project I am building with Maven. I am now trying to get the hibernate3-maven-plugin to run the hbm2ddl tool to generate a schema.sql file I can use to create the database schema from ...
2 votes
1 answer
1k views

How to make a custom ear file in maven

Here is my challenge, I need to make an ear file for a specific container. To be more specific on how this ear will be created: This is a standard j2ee ear file, with 1 WAR in it. The container it is ...
1 vote
2 answers
143 views

Build Process failed with maven package

I am working on a maven project to build a simple utility api. The same source code when build on my office win XP machine, was successful. Now i am at home and working with same source code on CentOS ...

1
100 101
102
103 104
114