maven-2

Eclipse does not deploy jars into WEB-INF/lib directory

To integrate JSF with Spring I have added these lines in web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listen...

Maven won't deploy dependencies

Hi, I have a simple project with 3 dependencies but for some reason when i am running from the eclipse run as -> maven install. i don't get the dependencies. not inside the snapshot jar and not outside... any idea? this is my pom: <?xml version="1.0"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...

How do I make javadoc inheritance work for external APIs? (with Maven2)

When a class overrides a concrete method or implements and abstract method, the Javadoc is automatically inherited unless explicitly overwritten. Or, at least the tool tries to do this. It seems it does not work for linked external APIs. For instance, when I in my code implement java.util.Map, or something else from the JRE, the javadoc...

windows 7 maven 2 install

I'm about to work through a book, "Flex on Java" and it's asked me to install maven 2+ i downloaded maven from the apache site. Added : M2_HOME = C:\apache-maven-2.2.1 and M2 = %M2_HOME%\bin to the environment vars according to the instructions at http://maven.apache.org/download.html then it gets to number 6 which says "In the sa...

Maven getting stuck at a website

I use maven to build projects and it gets stuck at ftp.cica.es/mirrors/maven2 repository. What is the way around it? ...

maven release:prepare fails; seems to be confused about svn's UUID

When I try to use the Maven release plugin, it fails on mvn release:prepare with the following error: [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to tag SCM Provider message: The svn tag command failed. Command output: svn: Repository UUID '3da89ab5-aa79-4544-a1de-...

Deployed war in JBoss via cargo-maven2-plugin not accessible via JBoss AS Admin console

I'm deploying a war to a remote JBoss 5.1.0 using the following POM config <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> <type>...

How to use javadoc:aggregate properly in multi-module maven project?

This is my parent pom.xml file (part of it) in a multi-module project: ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> </plugins> </build> ... This plugin is inherited in all sub-modules and I don't think ...

Can I calculate and check java project code coverage through Maven?

Possible Duplicate: How to get Cobertura to fail M2 build for low code coverage I would like to calculate code coverage of my Java code base and fail building process if any package, class, or method has code coverage of 80% or less. Is it possible to achieve with some open source tool? Preferably through a maven2 plugin. ...

Can a multi-module m2eclipse/WTP project get utility modules deployed into WEB-INF/classes?

We currently use MyEclipse with its built-in Maven4MyEclipse integration and its built-in J2EE server support, but want to convert over to regular eclipse (Helios specifically) to be able to use its 64-bit install on windows. (MyEclipse does not yet support 64-bit on Windows.) So far I've got a working prototype of Helios eclipse using...

Maven install and deploy

Hello. I have some doubt regarding our setup in our ci server. The maven command used to build applications is configured in bamboo as "mvn install deploy". As of my understanding this would invoke all phases up to "install" and then invoke all phases again up to "deploy", which would mean and as I can see in our logs, that the applica...

why these functionalities i am missing,thought i have the correct spring 3.0 jar

Hi all, I am learning spring by reference documentation of 3.0 and i wanted to test the below functionality but these are not available.. @PostConstruct context.registershutdownhook P.S.: I am using jdk 5.0 when i type these in my eclipse,I am getting an error that these are not avaialble.. Below is my pom.xml: <projec...

Maven: How can I stop the deploy plugin from logging upload progress?

How can I make it so Maven doesn't spam upload progress in the Hudson console? Uploading: http://www.example.com/archiva/repository/snapshots/com/example/app/1.0-SNAPSHOT/app-1.0-20100804.175640-1.war 4/9430K 8/9430K 12/9430K 16/9430K 20/9430K 24/9430K 28/9430K ...

Maven: add a folder or jar file into currrent classpath

Hi I am using maven-compile plugin to compile classes. Now i would like to add one jar file into current classpath. that file stays in another location (let says c:/jars/abc.jar . i prefer to leave this file here). How can i do that. If i use classpath in the argument: <configuration> <compilerArguments> <classpath>c:/jars/abc.ja...

Buttons to run Maven targets in NetBeans

I'd like to have a button to run (custom) Maven targets in NetBeans 6.9. Hot-keys would also be nice. Is this possible? If it is not possible: is there something like a console where I could Maven commands directly? ...

How to use maven checkstyle plugin in multi-module project?

This is my parent pom.xml (part of it) in a multi-module project: ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <executions> <execution> <phase>compile</phase> ...

How do I compile a single module in a scenario of two multi-module Maven projects

How do I compile a single module in the following scenario of two multi-module Maven projects A and B. Both projects are located in the same directory so that the directory structure looks like this: root |-- A | |-- A1 | |-- A2 | `-- A3 `-- B |-- B1 `-- B2 All directories except root have their own pom.xml files and ea...

unit testing EJBs with Maven 2 and Glassfish 3

I've been trying to set my application up so that I can unit test it's EJBs all day but I can't seem to get past what seems like a really simple problem. I have a standard Maven web application set up in NetBeans 6.9. I've automatically generated a unit test for one of the EJBs but whenever I go to run it I get the error message: Testc...

How to include python compiler dependencies in maven web project?

I have a simple website that has some related python scripts that I use for maintenance of that website (note, the python code are util scripts that we execute manually for various tasks). I need to be able to share it with other developers who may want to edit it. What Maven dependencies do I need to include so that the python compile...

Petclinic spring-mvc example not building

I just co https://src.springframework.org/svn/spring-samples/ and tried to build petclinic. I did: mvn clean install mvn eclipse:eclipse I imported to eclipse but: The import org.aspectj cannot be resolved What are the odds that the pom.xml is wrong and I have to add the dependency myself? ...