I have the following snippet in my pom.xml
<dependency>
<groupId>aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.5.3</version>
</dependency>
and in one of my Java files I refer a class org.aspectj.lang.ProceedingJoinPoint. When I do a "mvn clean install" it compiles and…
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x.
I need to use c:forEach for some primefaces component like dynamic number of p:tab but i have problem with the c:forEach. All the other tag of JSTL work nice.
I have the following error :
java.lang.NoClassDefFoundError:
javax/servlet/jsp/jstl/core/LoopTagStatus
I…
I'm using SSH to deploy my Java artifacts to a server. I have the keys set up so that I can interactively SSH to the server without requiring a password, but when I try to run the "mvn deploy" or "mvn release:perform" commands, it hangs (at what I assume is the password prompt).
My ~/.m2/settings.xml file contains the username for the server…
Hi, I have an issue when reading properties from a dependent project.
I have a core project, and my application has a dependency on it.
under classpath of core, it has file core.properties.
and my application need to read this property file, but it couldn't. It requires the core.properties in my classpath of my application, instead of…
I'm running into trouble with having multiple class with the same path (i.e. same name, same package!!!).
For some reason, gwt-dev comes with its own version of org.apache.xerces.jaxp.DocumentBuilderFactoryImpl and javax.xml.parsers.DocumentBuilderFactory.
At the same time, spring also depends on these classes but from different jar. I…
I have multi module web application(m1,m2, m3, final). Module "final" is a web module and dependants on m1,m2 and m3. "m1,m2 and m3" are web modules. I need modules m1,m2, m3 resources and jsps should be copied "final" module's target dir. Need your help.
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
I use that dependency import at my project's pom.xml. My question is I declared 2.5 as version.…
I have a parent POM that uses a gmaven script to do some stuff:
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.4</version>
<configuration combine.children="override">
…
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?
Hi there,
I have a whole bunch of mavenised projects, and I want to check that each project has the correct version of a parent pom.
One way could be to checkout each project in turn, and then have a script that reads the parent section.
Or is these some way of determining this from looking at the…
A POM dependency contains native libraries (DLLs inside a JAR file). How do I programmatically look up the path of the downloaded JAR file so I can pass it into "java.library.path"?
If I have 6 modules in my project is it possible to build only one out of six ? without commenting out others ?
EDIT
Submodule will not work itselft because or parent tags. I need to install the parent first to make it build. how can I do it without installing parent
I have a multiple module project
The first module contains my hibernate xml files and data java beans and
packages as har.
The second module defines my DAO classes. This module has a dependancy on
data java beans with in the har and is defined in pom.xml.
<dependency>
…
Hi there.
I'm having major issues with getting Hudson up and running on a gentoo server with Tomcat 6. I'm able to deploy Hudson just fine, and I can browse the web-application, configure it and set up builds etc.
However, when I try to run a build (in example "clean test" on a Maven2…
Hi,
i've a Java project managed by Maven2. The scenario i'm trying to solve is the following:
in development mode i need to use some configuration files (for example, a hibernate.cfg.xml configured for the dev environment), while in production i need to exclude all the development…
If your project requirements for a large application with many 3rd party dependencies included:
1) Maintain a configuration
management system capable of
reproducing from source bit-for-bit
identical copies of any build for 25
years after the original build was run…
GlassFish Server 3.1.2.2 was released a few weeks ago. This micro release fixed a couple of important bugfixes - one in JAX-WS (JAX-WS-1059) and another one related to JK listener with Apache + mod_ajp_proxy (GLASSFISH-18446). This release is already…
I attempted to add an <admin-console> section to my appengine-web.xml and I got the exception below. The <admin-console> element is a valid element according to the appengine-web.xsd. It's also documented in the app engine docs. Any ideas…
The OPS4J repository is down at present and I am trying to run pax-provision using a profile for spring-dm. My question is how do I tell maven to locate the profile information from a site other than ops4j.org.
Is this possible? ideally I would like…
Hi,
when building a jar-with-dependencies with the assembly plugin, I get many, many messages like this:
META-INF/ already added, skipping
It seems to mee, that maven is warning me, that I already have a META-INF in my to-be-created jar, and…
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 the root pom and it should read automatically…