Maven 3.0.2 SNAPSHOT update bug?

2011-02-21 Thread Gebhardt , Jörn
Hi all,

I discovered some strange behavior regarding the SNAPSHOT versions and the 
local repository update strategy in Maven 3.0.2 (on a Linux system):

If I have a project named "projectA" with version 1.0-SNAPSHOT and I call "mvn 
install" it copies the built artifact and the POM of projectA into the local 
repository as expected. However, the last modified date of the 
projectA-1.0-SNAPSHOT.pom file does not reflect the build or upload time but 
the real last modified date of the POM as it is set in the workspace (i.e. if 
the POM was last modified 5 days ago the file date of the POM in the local 
repository is also 5 days old)

If I now build a project "projectB" that depends on the Snapshot version of  
project "projectA ", Maven looks into the central repository and overrides my 
just built and installed version with an older one from the central repository. 
My guess is that this happened because it compares the meta-information of the 
central repository with the "last modified" file system attribute of the 
projectA -1.0-SNAPSHOT.pom file.

Is this an already known bug?
If it is a bug, does there exist any workaround (e.g. tell the install plugin 
to change the "last modified" attribute of the POM when copying it into the 
local repository)?

Thanks in advance,
Joern



Profile activation by properties

2010-12-03 Thread Gebhardt , Jörn
Hi,

is there any possibility to activate a Maven profile if a system property has 
either value "A" OR value "B" but NOT if it has value "C"?

Unfortunately it is neither allowed to specify multiple "value" entries like 
this:


playground


myProp
A
B




Nor to specify more than one "property" element like this:


playground


myProp
A


myProp
B




I also tried all kind of separators in the "value" value (e.g. 
A,B or A;B), however, nothing seems to work.

If it is not supported now, is there any chance that it will be supported in a 
future Maven version?

Thanks in advance,
Jörn

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Using Eclipse Compiler in Maven

2005-05-11 Thread Gebhardt, Jörn
Hi,

 

I've set up a Maven build to create an EJB jar and an EAR application which I 
deploy to JBoss.

 

I'm using Eclipse 3.0 in order to develop my code and I really love the hot 
code deployment feature. However, because I built my EAR file with Maven (i.e. 
the standard jdk compiler) and Eclipse uses it's own compiler, the hot 
deployment doesn't work (I'm getting a "Hot code replace failed - Scheme change 
not implemented" exception).

 

On http://eclipsewiki.editme.com/ANTFaq I found an explanation how to configure 
Ant in order to use the Eclipse compiler by setting the property 
"-Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter".

 

However, Maven doesn't find the Eclipse compiler and I get an " 
Compiler Adapter 'org.eclipse.jdt.core.JDTCompilerAdapter' can't be found." 
exception.

Where do I have to place the jdtCompilerAdapter.jar and jdtcore.jar files so 
that Maven/Ant/Ant-Jelly-Plugin or whatever finds the 
org.eclipse.jdt.core.JDTCompilerAdapter class?

I already tried to add them to the Maven/lib directory, however it had no 
effect.

 

Or is there any other way to tell Maven how to use the Eclipse compiler?

 

Thanks in advance,

Joern