We have a simple spring-hibernate application(console app) where in we have set the classpath in manifest file of the executable jar file. And the app connects to the database using jtds ... |
I've been looking at profiles in maven for selecting different sets of dependencies. This is fine when you want to build say a debug build differently from a release build. My ... |
If I have a maven profile activated by the presence of a property, how can I define another profile that is only activated when the other profile is not activated?
e.g.
...
|
Is there an easy way to figure out, preferably from the command line, what profiles are available for a particular project. I've got a big, multi-module project I'm trying to figure ... |
In our infrastructure, we have lots of little Java projects built by Maven2. Each project has its own pom.xml that ultimately inherits from our one company "master" parent pom.
We've recently started ... |
I'm trying to build an application starting from an Appfuse Archetype, but I get some strange problems. For once I'd like to use a hsqldb for automated unit tests and integration ... |
I have 2 maven2 profiles, selenium and jspc. Now for "selenium" id'd like to have an implicit activation of "jspc", so that I don't have to write mvn -Pselenium,jspc from the ... |
|
I have defined the following profile in pom.xml:
<profiles>
<profile>
<id>dev</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
...
|
I have a project that has several profiles. How do you make one of the profiles activate only if no other profiles are active?
|
I was wondering if anyone has found any plugins that attach a profiler to a JVM to automatically monitor performance during a unit or integration test. I would like to ... |
Scenario:
- Given
- Parent POM which defines a profile and a child (as module)
- Child project(s) that will be using the profile by referring to the parent POM.
- The intent is to skip profile ...
|
In pom.xml I have set o profiles like this:
<profile>
<id>profileId1</id>
<build>
<filters>
... |
I'm building a Flex application with Maven and the Flex Mojos plugin. I now want to compile an alternative version of the application with some extra libraries to enable automated functional ... |
We have three different maven2 profiles: prod, dev and test. One should be able to build with either one of those three profiles, or without any profile. In other words, following ... |
I want to create a custom profile for in my Maven2 pom.xml file to isolate test-related dependencies and settings, using the surefire plugin, but am somewhat confused by the documentation. Ultimately, ... |
<profile>
<id>test</id>
<activation>
<property>
...
|
I have a multimodule Maven2 project which builds a web application. The application is connected to a backend server and a DB. There are several server instances deployed in our environment, ... |
See the following Maven generated project
target
classes
test-classes
src
main
java
...
|
I'm looking for a way to create meta-profiles that just activate sub-profiles in Maven. Let's take a very concrete example. I have the following profiles:
- "server-jboss"
- "server-tomcat"
- "database-hsql"
- "database-oracle"
To build the project, you have to ... |
I have a properties file called ApplicationResources.properties in my application with a property that changes depending on the environment. Let us say the property is:
resources.location=/home/username/resources
and this ... |
So I'm not sure what the best way to accomplish this is, but basically I have a laptop that I use at work for Maven projects. It works fine when ... |
How do I get a list of all the profiles for a project in maven inside of a maven plugin?
Would it be:
MavenEmbedder.readModel(new File("path to pom.xml")).getProfiles();
Walter
|
I have a web application Maven project, and I want to customize the web.xml file depending on the Profile that is running. I am using the Maven-War-plugin, which allows me to ... |
Is it possible for a child POM to inherit profiles defined in the parent POM? If so, how?
|
I know I can profile my application with JProfiler using ANT target. Is there a way to do the same with maven??
Actually maven allows to run ant targets, using maven-ant plugin, ... |
How can I change a .properties file in maven depending on my profile? Depending on whether the application is built to run on a workstation or the datacenter parts of ... |
We're trying to migrate from current Ant build to Maven. In the current project, we've different properites files for each of the env say
qa.properties, prod.properties & dev.properties.
The property values present in ... |
I've seen several projects where I work that use profiles.xml and various {username}.properties in the project for developer sandbox settings like the deployment directory for the deploy script, the ports to ... |
In Maven 2, I was able to set profile properties like these:
<profiles>
<profile>
<id>test</id>
...
|
Ive got a Maven project ive inherited which has no profiles setup, however I need to set different different profiles for dev/int/staging etc.
From what ive read I can put in profile ... |
If I have Maven builds set up for an app with profiles set up for different environments (say like prod vs. dev, defining different DB settings and stuff like that) the ... |
I need to modify the maven build for a large project to skip certain steps during typical development builds (i.e. don't build the *-source.jar files). I've searched for "conditional execution" ... |
Is there a way to configure parallel build in Maven 3 without adding any command line options (e.g. configure a profile in settings.xml)?
|
Our application consists of various active profiles (say A1, A2, A3, A5 ...) which were separately defined in a profiles.xml file. Maven 3 expects all the profile information to be stored ... |
I have a POM file for a project that defines different classifiers for a project depending on the environment (test, production, development).
I would like to execute one time release:prepare and ... |
It is our policy to only build 1 deployable jar. all environment-specific configurations are kept separate, and we build them all together at once. so under our current Ant process, we ... |
I have two profiles in my pom.xml, dev and stage:
<profiles>
<profile>
<id>dev</id>
<properties>
...
|
I have a maven build that is extremely slow. I would like to know whether there is a way to profile maven execution in order to find out which are the ... |
We have a huge project with many submodules. A full build takes currently over 30mins.
I wonder how this time distributes over different plugins/goals, e.g. tests, static analysis (findbugs, pmd, checkstyle, etc ... |
I want to ignore some build errors at a specific directory by using maven's profile. I tried to do like below but it did not work. Any help will be appreciated?
============================================
[executed ...
|
I have a profile in my pom.xml which should be always active unless it is explicitely deactivated (-P !firstProfile).
I solved this by using the activeByDefault flag:
<profiles>
<profile>
...
|
I know it's impossible to "chain" profile declaration.
It's possible to do what I want (but not completely) with System properties in command line like mvn -Dvar=value .
And then use this:
...
|
I am creating a maven 2 build for a project and I came up with profiles since the build has to be created for both different locations (say Berlin, Paris, North ... |
I have a need to active a profile during release:prepare.
<build>
<plugins>
...
|
I'm trying to activate a maven profile using a property defined inside pom.xml:
<project>
[...]
<properties>
<run.it>true</run.it>
</properties>
[...]
<profiles>
<profile>
...
|
Hey, I'm talking about profiles within pom.xml of a project. Could please anybody explain to me, why if I have 2 profiles in pom definition and I run test phase from ... |
I have a multi-module maven build that requires a profile to be activated only on demand using the -P flag. But for some reason it is being ignored when doing a ... |
I'm currently setting up a development environment for osgi bundles.
I use maven 2 for building all my bundles using a multi project layout. Finally the bundles should be deployed to an ... |
Are there tools that will profile the Maven build process itself so that I can see where the build is spending most time?
We're having issues at work with respect to Maven ... |
I'm using Maven 3.0.3. I need to define a variable in my script ("env"). I have a section in my pom in which I define the variable per ... |
Does anyone know if it is possible to conditionally enable a proxy configuration in Maven when the host running Maven is on a certain network?
The scenario is this, if I'm on ... |
I have to Maven profiles profile-A and profile-B. "B" should only be activated if "A" is not activated.
So if I would call
mvn install
profile-B is executed (but not profile-A).
But if I ... |
I'm converting an Ant webapp project over to Maven. I have most of it working, but I'm stuck trying to figure out how to copy some resource files from different sources ... |
I have a project with a submodule a:jar which needs a different set of dependencies, depending for which platform it is compiled. The code is the same for all platforms. E.g. ... |
I'm trying to setup our build/deploy process for a project that uses Hippo, a Java / JCR CMS. The deployment strategy we want to achieve is:
- Local development: use the ...
|
I use a very complex maven project and I would like to know what maven profiles are activated when I do mvn install.
How to find this out?
|
I have two profiles that are nearly identical. Rather than duplicating the configuration in each, I'd like for one profile to "inherit" from the other, but I don't see an ... |
I'm using different maven profiles to deploy my application to different environments. (With the weblogic-maven-plugin, but I think this is not important)
In the application I use Spring Web Services. Now I'd ... |