| Time |
Nick |
Message |
| 2:20 PM |
mosipov |
hi folks |
| 2:20 PM |
mosipov |
anyone using the maven eclipse plugin? |
| 2:47 PM |
mosipov |
exit |
| 2:48 PM |
Brian |
mosipov: what do you want to know about it? |
| 2:48 PM |
mosipov |
I have some problem, I ve put some .properties in the resources folder and configured maven with eclipse |
| 2:49 PM |
mosipov |
though I cannot access them from my code since maven excludes all files in res folder in the eclipse build path |
| 2:49 PM |
mosipov |
my question is why? |
| 2:52 PM |
Brian |
one sec, let me check something |
| 2:54 PM |
mosipov |
Brian: thx |
| 2:55 PM |
Brian |
so the .properties file should get picked up and moved to /target/classes like everything else |
| 2:55 PM |
mosipov |
hold on |
| 2:55 PM |
Brian |
i just checked and it does for me |
| 2:56 PM |
Brian |
normally m-e-p generates a little ant script to imitate the resource processing |
| 2:57 PM |
mosipov |
I just checked |
| 2:58 PM |
mosipov |
Brian: resources folder says exluded ** after update sources with m2eclipe |
| 2:58 PM |
mosipov |
and no props are in the eclipse compiled classes |
| 2:58 PM |
mosipov |
did I something wrong? |
| 2:58 PM |
Brian |
wait. are you using m2eclipse or the maven-eclipse-plugin? |
| 2:59 PM |
mosipov |
is there a difference? |
| 2:59 PM |
Brian |
yes a huge one |
| 2:59 PM |
mosipov |
which one should I use? |
| 3:00 PM |
mosipov |
I use m2ecilpse |
| 3:00 PM |
Brian |
well it depends i guess |
| 3:00 PM |
Brian |
then that should be ok |
| 3:00 PM |
mosipov |
has been recommended |
| 3:00 PM |
mosipov |
which one do you use? |
| 3:00 PM |
Brian |
m2eclipse but a snapshot |
| 3:01 PM |
Brian |
i notice that even using mep, when i import a project with .properties, it's not shown by eclipse |
| 3:01 PM |
Brian |
do you really need it to be .properties instead of foo.properties? |
| 3:02 PM |
mosipov |
no, it was an exampe for all properties files |
| 3:02 PM |
mosipov |
it's actually default.properites |
| 3:02 PM |
mosipov |
http://page.mi.fu-berlin.de/ossipov/resources.png |
| 3:02 PM |
mosipov |
this is the ecipse tree |
| 3:04 PM |
Brian |
it shows up ok in mine |
| 3:04 PM |
mosipov |
do you see it as a package folder? |
| 3:04 PM |
Brian |
perhaps this is a bug in the released version. you could check the jira/forum listed at http://m2eclipse.codehaus.org |
| 3:05 PM |
Brian |
not a package folder, just the files |
| 3:05 PM |
Brian |
anything in resources isn't going to be a normal source folder i believe |
| 3:06 PM |
mosipov |
this is the wrong place for resources files? |
| 3:06 PM |
mosipov |
what else is it for except META-IFN |
| 3:06 PM |
mosipov |
INF |
| 3:06 PM |
Brian |
any file that isn't source that should be in the classpath of the artifact |
| 3:06 PM |
Brian |
so it is for properties files |
| 3:07 PM |
mosipov |
makes no sense since I can't access them within my ecipse project |
| 3:08 PM |
Brian |
the resources folder is added as a source folder for me |
| 3:08 PM |
mosipov |
for me too BUT every file is ecluded |
| 3:08 PM |
mosipov |
atleast here |
| 3:08 PM |
mosipov |
could you doble check on your system? |
| 3:09 PM |
Brian |
it says Included (All) Excluded ** |
| 3:10 PM |
mosipov |
same as here |
| 3:10 PM |
mosipov |
it means, that eclipse does not put them to its classpath |
| 3:10 PM |
Brian |
yep, looks like a bug. you can manually edit the excludes in the meantime |
| 3:11 PM |
mosipov |
I know |
| 3:11 PM |
mosipov |
should I report it? |
| 3:11 PM |
Brian |
yep |
| 3:11 PM |
mosipov |
weird noe one noticed it yet |
| 3:12 PM |
Brian |
agreed |
| 3:13 PM |
mosipov |
Brian: great you helped me out. do you know how I can the src/test to be exluded from the regular package? |
| 3:13 PM |
mosipov |
I am completely new to maven |
| 3:15 PM |
Brian |
i don't understand |
| 3:15 PM |
Brian |
maven doesn't include src/test in the package, its only used when running tests |
| 3:16 PM |
Brian |
but i see that m2eclipse does |
| 3:16 PM |
mosipov |
that's the problem, I think |
| 3:17 PM |
mosipov |
with that it included junit |
| 3:17 PM |
Brian |
i use maven via a command line primarily to do all my builds |
| 3:17 PM |
Brian |
i don't think that m2eclipse is able to fully imitate the maven build yet |
| 3:17 PM |
mosipov |
I guess I have to file this issue to |
| 3:18 PM |
Brian |
its probably ok for development as is, but you want to do a mvn clean install when you're done |
| 3:19 PM |
mosipov |
hey, you are great |
| 3:20 PM |
mosipov |
clean install exluded the test folder |
| 3:20 PM |
mosipov |
:-D |
| 3:20 PM |
mosipov |
THX again |
| 3:27 PM |
Brian |
np |
| 3:28 PM |
mosipov |
http://jira.codehaus.org/browse/MNGECLIPSE-457 |
| 4:21 PM |
linx |
has anyone used JPF from within a maven project (or set of projects?). I'm having a hard time getting my head around how you can build JPF plugins with maven, specifically how to get them to fit in with the "one artifact" philosophy |
| 4:21 PM |
trygvis |
JPF? |
| 4:21 PM |
wsmoak |
java plugin framework? java path finder? just plain fun crochet club? (google...) |
| 4:22 PM |
linx |
sorry, java plugin framework |
| 4:22 PM |
linx |
http://jpf.sourceforge.net/ - its in the maven2 repo |
| 4:23 PM |
wsmoak |
okay. what's the question? |
| 4:25 PM |
linx |
I'm trying to learn 2 things (JPF and Spring RCP), and expand on my maven knowledge, so I probably need to think about that a bit, |
| 4:26 PM |
wsmoak |
fwiw, first thing I'd do is take their example app and convert the build to maven |
| 4:26 PM |
linx |
essentially, with JPF I'm used to having a directory containing my plugin manifest (plugin.xml), with a subdirectory of lib or classes |
| 4:26 PM |
linx |
is it possible to have that kind of output format with maven? |
| 4:27 PM |
linx |
or does everything have to be jars ? |
| 4:27 PM |
wsmoak |
look at the assembly plugin to build "the distribution" which can be whatever you need |
| 4:27 PM |
linx |
ok thanks :) |
| 4:54 PM |
mosipov |
Brian: are you still here? |
| 4:54 PM |
Brian |
yes |
| 4:55 PM |
mosipov |
I finally figured out the diffrence between m2eclipse and mep :-D |
| 4:55 PM |
mosipov |
seems like mep is not that good as it seems to be |
| 4:56 PM |
Brian |
mep works ok if you primarily use the command line to build |
| 4:56 PM |
Brian |
m2eclipse is gunning for total eclipse integration, but i don't think it's quite there yet |
| 4:56 PM |
mosipov |
it doesnt configure for WTP at all |
| 4:56 PM |
mosipov |
opposing to the desciption |
| 4:58 PM |
Brian |
that's right |
| 5:13 PM |
mosipov |
is there any remedy for? |
| 5:13 PM |
mosipov |
it would be great if this mep would map to src/main/webapp and bind weblibs automtically |
| 5:13 PM |
Brian |
not currently |
| 5:13 PM |
Brian |
i believe they are working on it thoug |
| 5:14 PM |
mkleint |
mosipov: well, you can try out Netbeans' maven integration, but in webapp area it's not ideal either.. but probably a different set of issues.. |
| 5:15 PM |
mosipov |
mkleint: I am on eclipse and don't want to move to another IDE |
| 5:16 PM |
mosipov |
the webapp pointer can be manually manged but the lib folder is difficult |
| 5:40 PM |
mosipov |
here's a great howto http://eulogica.ca/blog/2007/09/20/maven2-and-eclipse-wtp-together/ |
| 5:40 PM |
mosipov |
if someone's interested in maven and WTP 2.0 |
| 5:53 PM |
mosipov |
thx for helping that much! I am off guys! |
| 6:15 PM |
mosipov |
hi, that's me again |
| 6:16 PM |
mosipov |
does someone know how I can exclude src/test from package goal |
| 6:16 PM |
wsmoak |
mosipov: tests don't get packaged by default |
| 6:17 PM |
mosipov |
wsmoak: it does here |
| 6:18 PM |
wsmoak |
if you need help, paste your pom http://rafb.net paste |
| 6:18 PM |
wsmoak |
oops. http://rafb.net/paste |
| 6:19 PM |
mosipov |
http://rafb.net/p/WopHNB59.html |
| 6:19 PM |
mosipov |
there you go |
| 6:20 PM |
wsmoak |
nothing odd there. can you reproduce it with the quickstart archetype? |
| 6:21 PM |
mosipov |
+ |
| 6:21 PM |
mosipov |
did not try it yet |
| 6:21 PM |
mosipov |
I am using maven within eclipse with m2eclipse |
| 6:22 PM |
wsmoak |
oh. nevermind then. |
| 6:22 PM |
wsmoak |
it works fine at the command prompt. tests are not packaged. |
| 6:22 PM |
mosipov |
do you want me to try a project from the scratch? |
| 6:24 PM |
wsmoak |
mosipov: nah. I did: http://rafb.net/p/x1gkuo32.html |
| 6:24 PM |
wsmoak |
must be something strange in eclipse, and I'll be no help there :) |
| 6:24 PM |
wsmoak |
waves at djencks |
| 6:25 PM |
djencks |
hi wsmoak |
| 6:25 PM |
mosipov |
hmm, strange |
| 6:25 PM |
mosipov |
can I tell maven to exclude it exlicitly? |
| 6:35 PM |
mosipov |
wsmoak: just made the test with the my-app example |
| 6:35 PM |
mosipov |
works flawlessly |
| 6:35 PM |
mosipov |
seems to be my config somehow |
| 6:35 PM |
wsmoak |
mosipov: when did you last 'mvn clean' ? Maybe something is left over in target/classes |
| 6:37 PM |
mosipov |
I didn'T |
| 6:37 PM |
mosipov |
hold on |
| 6:39 PM |
mosipov |
wsmoak: Great, clean did it somehow |
| 6:39 PM |
mosipov |
awesome |
| 6:39 PM |
mosipov |
thx again |
| 9:36 PM |
jsquared |
howdy guys... I'm having trouble figuring out how to get my pom to skip a goal based on the value of a build property |
| 9:37 PM |
jsquared |
I have ${apples} && ${oranges} -- I'd like Maven to skip the goal if apples and oranges both contain 'true' |
| 9:39 PM |
wsmoak |
where are you putting skip? it's not in the project model, so it's likely to be plugin specific. surefire has 'skip' for example. |
| 9:39 PM |
jsquared |
sorry, yeah |
| 9:39 PM |
jsquared |
this is in selenium:xvfb |
| 9:40 PM |
wsmoak |
you'd have to check that plugin then. but I've never seen one that understands more than 'true' or 'false' there. |
| 9:40 PM |
jsquared |
ah, bummer |
| 9:41 PM |
jsquared |
so I can't have crazy Boolean logic expressions, then? |
| 9:42 PM |
jsquared |
I wonder if I can force evaluation by nesting ${}'s |
| 9:42 PM |
wsmoak |
what does it look like after 'mvn help:effective-pom' ? |
| 9:44 PM |
jsquared |
yeah, I just get true && true |
| 9:45 PM |
wsmoak |
then I bet that's what gets passed to the plugin, which would have to know how to deal with it. |
| 9:45 PM |
jsquared |
looks like it, yeah |
| 9:45 PM |
jsquared |
thanks for your help |
| 9:46 PM |
wsmoak |
you mentioned moving the curly braces around. see if that works... I think it's velocity doing the substitutions, if that helps |
| 9:46 PM |
jsquared |
hmm, okay |