I have the following in my pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.6</version>
<configuration>
<excludes>
<!-- exclude integration tests -->
<exclude>**/IT*.j...
I'm building an executable jar for a maven java project I have. It works great but I have a problem in that I want my config directory to live outside the jar so that I can change things easily if needed.
I've got to the point where I have the jar being built without the config include and the the config directory is placed in the same ...
I am trying to deploy a webapplication using maven cargo plugin into tomcat server.
But i am getting the below error when i am running the command mvn cargo:deploy in the command prompt.
[INFO] Failed to deploy
[C:\Users\Ramesh\workspace\SimpleSpringMvcExample\target
\SimpleSpringMvcExample.war] FAIL -
Encountered exception
...
Hi,
I have a maven project which uses the shade plugin to create a jar from several projects.
In addition it is possible with this plugin to create a source jar from these several projects.
For legacy reason we need to have one jar which contains classes and sources, so the combination of the two jars created by the shade plugin.
Wha...
I'm having a strange problem when trying to run a maven build that uses the jaxb2 plugin to do JAXB codegen (see stacktrace below). The best that I can figure is that there's some implementation of DTMManager that's being class loaded from a different JAR than the one in xalan-2.7.1; however, I have verified that the classpath that is us...
I see that supports GlassFish v3, but the online examples is sparse. I continue to get the same error back from cargo:
Cannot find the GlassFish admin CLI JAR: admin-cli.jar
Here is my pom
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.3</version>
<configuration...
hello all,
i am new to maven and I am having what i'm sure is a config issue. i have my master pom and a child jar pom. inside the jar pom i declared this dependency:
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
however when i look in my $HOME/.m2/repo...
I have a project I'm building with maven and I need to generate a schema using the hbm2ddl tool from hibernate3-maven-plugin.
I need to create database with a table called Order like the SQL keyword and I don't know how to make maven to quote this table when it's generating the script. I've done a search and I found there is a property...
This may be more of a process then technology solution. I am currently working on a project that is split into a library and an implementation application. Doing this has been a very effective way to debug the library as the application is built. I would like to use Maven for both projects but I do not want to do a build and deploy for e...
Hi,
I am using yui compressor to compress the js files in my web app.
I have configured the plugin as indicated on yui maven plugin site yui compressor maven plugin.
This is the pom plugin conf
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>0.7.1</version>
...
I'm writing a Maven plugin that takes as a parameter the path to the .jar file built by the project. At the moment I'm using the following definition for my configuration variable within my Mojo class...
/**
* Location of the built artifact
* @parameter expression="${project.build.finalName}
* @required
*/
private File path;
The ...
I am considering converting an Ant/Ivy project to Ant/Maven-Ant-Tasks. I do not want to use Maven by itself because I need more control over the build process.
Is there any way for the Ant build.xml file inherit properties set in the pom.xml file?
I have been creating a generic build.xml file that can be used across several projects an...
I am converting a project to use Ant/maven-ant-tasks. I have a local repository in $HOME/.m2, an enterprise repository on a local machine on the LAN, and I have listed several global repositories (http://repo2.maven.org/, etc.).
If I am out of the office, is there a way to have Maven skip the enterprise repository in it searching for de...
None of the plugins in the reporting section of Maven execute if there is a unit test failure.
I found that I can set maven.test.failure.ignore=true here - http://jira.codehaus.org/browse/SUREFIRE-247 The problem to this approach is now our hudson builds are successful even if there are unit test failures.
What I would really like t...
I use maven and eclipse (with m2eclipse) for Java projects. I usually start with
$ mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DgroupId=com.whatever.app \
-DartifactId=wonderapp
$ mvn eclipse:eclipse
and then import the project into eclipse. The build path in eclipse now contains an "Excluded: **" pa...
I want to host my java project on a free project hosting site.
I want to use SVN (if possible integrated in NetBeans).
I want the site to be easy to use and offer an option like Hudson system to control my nightly build/test execution.
Is there such a site(s) ?
Thank you in advance for the answers.
If there is an alternative that you...
commons-lang 3.0 is still beta, but can it be found in some maven repository (I couldn't)
...
i must develop a java class that invoke maven command automaticly like install ,deploy , compile .... but i can't found the convinient java api any idea ???
...
UPDATE #2: The boys down at SpringRoo passed the buck over to the boys over at Google. See the ticket here. It was upgraded to critical priority as well.
UPDATE: I've logged a bug on the SpringRoo Issue Tracker. It looks like the boys are taking this seriously. They've upgraded the priority from minor to critical. See the issue here...
Hi all,
I'm trying to use jdbcdslog or log4jdbc with maven2. - I want to log all SQL that is executed by mvn-sql.
I installed slf4j-api (1.6.1), slf4j-log4j12 (1.6.1) and jdbcdslog (1.0.5) Jars to my local maven2-repo and configured in my pom.xml the following:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-mave...