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

Extend maven cargo plugins jvmargs
bamboo plan generates rpm appended with snapshot and time stamp
Maven loads wrong version of dependency
No appenders could be found for logger (org.springframework.web.context.ContextLoader)
CircleCI circle.yml file - how to checkout differently with different branches
Maven: find usage of dependency by dependencies? [duplicate]
Maven structure with a single exposed artifact and internal dependencies
Automatically bumping up pom.xml with Maven release plugin
Use Maven to start programs
Sonatype Nexus endpoint for artifact's version number
Springboot with Maven running a react with webpack
Compile hadoop 2.7.2 have a error and I don't know why
Sonarqube dependencies page alternative?
Unable to insert into cloud Google SQL through endpoints
How to intercept maven plugin build log
Maven Release plugin: Doing the git push via https

Categories

HOME
log4j
testng
pypi
pycharm
installshield
angular-ui-bootstrap
ebean
yum
medical
kibana-4
metatrader4
reveal.js
kentor-authservices
offline
mapserver
correlation
timeout
phaser
orchardcms
dtrace
decomposition
libtiff
apache-metamodel
propel
oxyplot
beyondcompare
google-cloud-speech
firefox-webextensions
conemu
errorlevel
kvc
format-specifiers
smb
qhull
dynamic-featured-image
url-scheme
vision
contact-form
http-get
avcapturesession
event-driven
tasker
sql-server-agent
segment
websphere-mq-fte
scrollable
pango
qsslsocket
mplayer
nstextview
tactic
boost-preprocessor
arrow-keys
lync-client-sdk
dynamics-sl
webdriverjs
synchronous
or-tools
elements
persist
bluemix-app-scan
srand
service-accounts
twirl
dundas
lustre
xc16
camanjs
asp.net-dynamic-data
issuu
openexr
ceil
elliptic-curve
poller
bundles
balanced-payments
mbr
ivyde
gridfs
tidy
android-screen-support
drools-planner
android-hardware
factory-method
typoscript2
hamiltonian-cycle
jquery-knob
dotnethighcharts
adk
nsobject
servicehost
actionview
imac
sortable-tables
bespin
ti-dsp
thread-local-storage

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App