Bah .. I am stuck on a maven issue here.

I can get my module to activate just fine using the command line ...
 > mvn help:active-profiles -Doracle.jdbc=true

But any combination of settings.xml file or parent pom.xml does not 
effect the outcome :-(

I then found the following which looks like it would work great:
> <activation>
>   <file>
>     <exists>${user.home}/.m2/com/oracle/ojdbc14</exists>
>   </file>
> </activation>
And it *does* - just not with ${user.home} .... if I hard code the path 
everything is fine.

Note (just for pain) that ${user.home} is defined already - I can test 
against it.
> <property>
>    <name>user.home</name>
> </property>           
It really looks like I cannot use define properties withing maven to 
control the activation of .

So where does this leave me? Probably making tests available only if a 
profile has been activated by hand :-(

Jody
> Updating instructions to make use of oracle.jdbc property and profiles ...
>
> I am working through an experiment, our existing instructions asked us 
> to modify a pom.xml
> file (and uncomment a few dependency etc...). Now that I am getting 
> better at maven 2 profiles
> I think we can do better.
>
> - http://docs.codehaus.org/display/GEOT/Oracle+Dependency
>
> I will be commiting changes to the root pom.xml file (updated comments) 
> and a default value of oracle.jdbc=false,
> and will add a couple of profiles to the oracle module that include the 
> correct dependency as indicated
> by this property.
>
> Jody
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> Geotools-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to