I've been using the Maven EAR plugin for creating my ear files for a new project. I noticed in the plugin documentation you can specify exclude statements for modules. For example the configuration for my plugin is as follows...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-pl...
Hi,for a project I'm working on, I've defined a custom maven packaging, and the associated lifecycle (through the definition of a components.xml and the definition of a LifecycleMapping).
Obviously, this packaging corresponds to a specific development, for which a plugin has been created in Eclipse. What I would like to do is configure ...
im developing a standalone application and it works fine when starting it from my ide(intellij idea), but after creating an uberjar and start the application from it javax.persistence.spi.PersistenceProvider is thrown saying "No Persistence provider for EntityManager named testPU"
here is my persistence.xml which is placed under meta-in...
I have defined a personalized jar-with-dependencies assembly descriptor. However, when I execute it with mvn assembly:assembly, I get :
...
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] javax/ already added, skipping
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.M...
I'm trying to build an application that builds a resource file into a jar, but I'd like to have the project runnable within eclipse. I have a basic maven 2 structure for my project, and I'm unsure how to read in the file such that it's found and used when run from the JAR or from within eclipse. Thought?
Structure:
src/main/java
src/ma...
What would be the mechanism to deploy rar artifacts if they are not present in the repository. (e.g. I would like to deploy jackrabbit to my j2ee application, but it is not available as part of the maven repositories. Should I have to store the binary locally in SVN and use the antrun plugin to copy it?
...
I have JDBC driver dependencies (e.g. h2, mysql ..) which have to be copied under ${jboss.home}/common/lib before it is used by my EAR application. What would be the best way to directly copy from a maven repository into the above location instead of doing a manual copy. I would not prefer to store copies of the drivers as part of my SVN...
I have a Java project that I build using an Ant script. I am trying to convert the project to Maven.
One of the tasks generates a Java source file called Version.java that contains a static String representation of the compilation timestamp, as follows:
package com.foo.bar;
public final class Version {
public static String VERSION="10...
trying to install a 3rd party jar into my repository (alfresco-repository.jar). I'm using the following command:
mvn install:install-file -DgroupId=alfresco -DartifactId=alfresco -Dversion=3.1 -Dpackaging=jar "-Dfile=C:/Users/xxx/Development/WIP/Alfresco/common/jars/alfresco/3.1/lib/alfresco-repository-3.1.jar" -DgeneratePom=true -e
a...
Hello everyone I was just going trough http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html spring tutorial, and I thought its old I'll think something better on my own. For starters how do I start spring project with maven, which archtype should I choose? I wanna create simple spring app, write class which I will deplo...
I understand that part of the appeal of setting up a Maven mirror, such as the following:
<mirror>
<id>nexus</id>
<name>Maven Repository</name>
<mirrorOf>*</mirrorOf>
<url>http://server:8081/nexus/content/groups/public</url>
</mirror>
... is that the documentation states, "You can force Maven to use a single repository b...
I would like to have a Maven goal trigger the execution of a java class. I'm trying to migrate over a Makefile with the lines:
neotest:
mvn exec:java -Dexec.mainClass="org.dhappy.test.NeoTraverse"
And I would like mvn neotest to produce what make neotest does currently.
Neither the exec plugin documentation nor the Maven Ant task...
i'm running into a problem in my maven build recently, that it downloads a jar file for the javamail-1.4.jar or something, but it turns out the file is not a real jar file, it's actually a html with a link to where to get the correct jar.
it seems to be the repo has changed for that. but in my maven setting everything is supposely to g...
I have a dozen configuration properties files for the ant script. These files are used for a customer customization. For example ant should rename *temp_context.xml* to *customer_name_context.xml* where *customer_name* is a property in the conf. file.
Now I would like to reuse the same files in the Maven project.
<plugin>
<groupId>o...
I have a maven project that has a set of library dependancies that are not available via any maven repository. How can I add those libraries to the pom? I want to do this so when I run 'mvn eclipse:eclipse' it doesnt remove those libraries from the eclipse classpath.
...
I'm using Hudson to build my application. I have several branches that come and go. Whenever there's a new branch, I have to set up the following builds for it:
a continuous build that runs after every change in SVN
a nightly build
a nightly site generation (I'm using Maven under the hood)
and a weekly integration build for some branch...
Hi
I am trying to doing some SQL queries out of Oracle 11g and am having issues using ora:contains. I am using Spring's JDBC implementation and my code generates the sql statement:
select *
from view_name
where column_a = ?
and column_b = ?
and existsNode(xmltype(clob_column),
'record/name [ora:contains...
I use the maven-properties-plugin during the initialization phase to read in a bunch of properties from a properties file.
I also have the jetty plugin configured to set a couple of the project properties - including those read in above - as system properties to jetty.
If I run the result as
mvn initialize jetty:run-war
it works.
I...
I am new in Maven. Do you know what I am doing wrong (see below)?
mvn -e clean:help.
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'clean'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] --...
I've got a big multi-module project, and I'd like to generate a report that shows all the licenses of all the things the project depends on.
I looked at tattletale, but it doesn't seem to do the trick. And I can easily find a plugin that will squirt a license into the top of each source file, but this exact thing is defying my googling...