maven


Maven profile properties not overriding values in springs configurations


I have a very weird problem with maven profiles.
In pom.xml we have profiles with some properties. We use those properties on pom.xml and in spring configurations. When building with specific profile only properties in pom.xml are affected, in spring configurations there are the defaults. Somehow it seems that profile isn't activated, althought properties in pom.xml are changed.
When I activate profile default like this:
<activation>
<activeByDefault>true</activeByDefault>
</activation>
All properties are changed as those should.
I run maven form command line and I'm using version 3.0.4 from Ubuntu 12.04 repositories. I also tested with standalone 3.0.5 version. Command I use:
mvn clean package -P profile-id
If this isn't weird enough, I'm only one who have this problem in this project so it has to be something with my computer, I just don't know where to look at.
Do you have any idea how to fix this?
It seems that this is bug in maven-resources-plugin versions 2.5 and 2.6. We fixed this issue by specifying version to 2.4.

Related Links

Running docker-maven-plugin on the very end of parent pom building
Intellij: How to create context-sensitive Maven shortcuts
How to use property values in postinstall scripts during Maven build
Maven: No source to compile
jgitflow start-release fails for https url with OAuth token
is there any alternative for maven reactor plugin?
Cannot capture network packets in storm spout using jNetpcap
How to create 'resources' folder in Intellij?
Gradle tells me ' Must specify a repository for deployment'
Grails Unit Testing occurring on Wrong Phase of Maven Life Cycle
Maven variables set after running goals cannot be resolved in IDEA [duplicate]
Release project with SNAPSHOT test dependency
Continuous Delivery with Maven: Why not just use the build number a the artifact's version?
Maven settings not working for all projects
Groovy install HTTPBuilder now that Codehaus shutdown?
Spring mvc #RequestMapping on class level and method level 404 Status

Categories

HOME
google-chrome-extension
hive
webpack
keycloak
dictionary
comparison
maven-3
yarn
rdf
jpeg
facebook-messenger-bot
kibana-4
windows-10-universal
ssl-client-authentication
leiningen
carthage
vaadin7
ghc
openrefine
normalizr
introduction
jtextfield
jquery-ajaxq
ehcache
sylius
wkwebview
javacv
tooltipster
fifo
log4js-node
compatibility
skia
bosh
preg-match-all
perlin-noise
avcapturesession
gammu
ghost4j
swisscomdev
space-complexity
occlusion
service-discovery
unspecified
trim
eclipse-scout
reportingservices-2005
nomethoderror
http-redirect
acoustics
reactive-cocoa-5
apple-news
rainbowtable
react-scripts
paxos
pnotify
winscp-net
pg-dump
pintos
yt-project
jquery-filter
setuptools
firmata
gridpane
database-optimization
goose
ora-00900
iis-arr
muse
ionic
mmc
census
kineticjs
oxwall
phalanger
mysql-error-1062
oam
listings
funscript
dbproviderfactories
parametric-equations
uiviewanimation-curve
jquery-ui-layout
zpt
blackberry-playbook
html-input
gallio
zend-tool
swing-app-framework
eqatec

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App