When I build using maven I see it checking all sort of foreign repositories for artifacts which only my local build should produce. How can I tell it that the com.myorg group can only be found in the local repository? Basically I want to do what m2eclipse does with workspace resolution but on the command line.
[INFO] snapshot com.myor...
Hi,
I have this project made of multiple jars and war to make an ear. I build everything in snapshot and it works great. Then I made a release for every single project and saw that the jars and the war were slightly different in size than the snapshot ones.
Comparing file to file I realized that the .class files were all there, but sli...
I have a parent project with 5 children having also dependencies between each other. I used both inheritence with <parent> element in the children pom.xml and aggregation with <module> element in the parent.
My parent pom looks like this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins...
I saw recently that Sun/a third party had released a maven dependency containing only the interfaces for e.g. EJB3 and JPA.
Does anyone know the groupId, artifactId, repository etc where they are?
I would prefer to not use the OpenEJB, Glassfish counterparts etc.
...
I already found an answer here on Stack Overflow how to include a 3rd party JAR in a project without installing it to a "local repository":
http://stackoverflow.com/questions/364114/can-i-add-jars-to-maven-2-build-classpath-without-installing-them
But, when I use the Maven Shade Plugin to create a JAR that includes all the dependencies...
I want to distribute the war of my web application generated with Maven with the source code inside it. How to do that with Maven?
...
Hello All,
I have been trying to integrate JMeter test with Maven and Hudson. I came across this beautiful post on Maven JMeter and got it set up easily.
And then I got to know that Hudson has a performance plugin using with JMeter results could be directly displayed on Hudson dashboard.
Now problem I face is in using Performance plugi...
What's the recommended way to use Maven for a project that might grow large in the future?
I work with Eclipse and I see different approaches. Some use one project with no sub modules, and some Like mahout for example, have different sub-projects for different modules (e.g., core, math, examples, etc.). You can see it in this link:
http...
I'm working on a mainly Java based project, that also has a couple of components written in C++.
The project is currently built using Ant scripts which invoke Nant to build the C++ components.
We are in the process of moving to Maven and I was wondering if anyone could recommend the best way to build Nant scripts using Maven.
I'm awar...
I want to create a build info file into the specific location of the project's target folder (especially in target/abc_project/META-INF folder) through maven-2.
Following is what I am doing in the pom.xml
<build>
<finalName>abc_project</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId...
I am able to compile and start my Spring project using Maven:
mvn -e clean compile exec:java -Dexec.mainClass=de.fraunhofer.fkie.tet.vmware.manager.Test
However, when i assemble all jars in a single file using the maven-assembly-plugin (including applicationContext.xml), i always get an Exception during the java call:
java -cp tar...
Hello, i want to create a Maven project in eclipse. I have install the m2eclipse plugin in my eclipse, i have create a new Maven Project, now i'm stuck with archetype, i want to create a project with Struts 2, Hibernate 3, MySql and JUnit
...
I'm trying to get the Maven release plugin working with a Jazz.net source control system and Rational Application Developer (RAD, based on Eclipse), but I seem to have run into a catch-22 - I expect I've misunderstood something.
So - I'm working on the command-line in the project directory that has the .pom file. I have to shut RAD down...
I am trying to add aspectj to a maven project using java 6.0. Browsing around I found 2 maven plugins, none of which works the way I would expect.
The first one http://mojo.codehaus.org/aspectj-maven-plugin did not work at first through netbeans because I could not get the code to compile 5.0 or later source (it complained about annotat...
i search a maven archetype for hibernate 3 (Struts 2 application)
...
I have a situation where our unit tests take a long time to execute for our business domain project as it sets up a database to a known state then proceeds to execute each step. I understand this can be done with "-Dmaven.test.skip=true" on the command line but wish to configure this within NetBeans for the project only, globally would b...
I'm trying to create a filter, for some reason I am not seeing autocompletion when I create a class that implements a Filter.
When I type:
import javax.servlet
IDEA doesn't seem to pickup the namespace.
Is this a separate .jar that I have to setup in maven?
Update
My filter mappings look like:
<filter>
<filter-name>perfo...
Hi,
We are working with Maven and Hudson for unit testing and war building. Copying sources (java and resources) to WEB-INF/src is required by our customer.
There is a simple way to do this with maven?
Thank you in advance.
...
I have to use libraries in tools.jar and have therefor added this dependency:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
Now I would like to attach the sources in Eclipse, ...
Hi,
i'm trying to run a number of classes which reside in the Maven 'test' folder from the command line which i will later combine to run in a ksh script.
The issue i am having is that i can run files which are in the 'main' folder but i want to run another which is in the 'test' folder.
Does anyone know, or have any ideas as to how t...