-
1. Re: Idiot's guide to setting up mc build in Eclipse?
adrian.brock Apr 20, 2007 7:29 AM (in response to kabirkhan)It's currently something like (and broken IMHO, see the other threads):
svn co ...
cd microcontainer
mvn install
start eclipse using a different workspace (not where you checked it out)
set the M2REPO variable
file/import/existing projects into workspace -
2. Re: Idiot's guide to setting up mc build in Eclipse?
bill.burke Apr 20, 2007 8:02 AM (in response to kabirkhan)sorry, no comprende eclispey
-
3. Re: Idiot's guide to setting up mc build in Eclipse?
anil.saldhana Apr 20, 2007 11:02 AM (in response to kabirkhan)http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenIntroduction
http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenFAQ
http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenConfiguration
There is one more page that Scott had created for maven. Can not find it. -
4. Re: Idiot's guide to setting up mc build in Eclipse?
kabirkhan Apr 20, 2007 11:33 AM (in response to kabirkhan)Thanks,
Adrian's initial suggestion worked after setting the M2_REPO Eclipse Classpath Variable -
5. Re: Idiot's guide to setting up mc build in Eclipse?
pgier Apr 20, 2007 12:35 PM (in response to kabirkhan)"anil.saldhana@jboss.com" wrote:
http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenIntroduction
http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenFAQ
http://wiki.jboss.org/wiki/Wiki.jsp?page=MavenConfiguration
There is one more page that Scott had created for maven. Can not find it.
If you go to http://wiki.jboss.org/wiki/Wiki.jsp?page=Maven
that one is sort of a parent page to all the rest. -
6. Re: Idiot's guide to setting up mc build in Eclipse?
alesj Apr 21, 2007 5:18 PM (in response to kabirkhan)What's the easiest way to see which tests fail?
If I do something like 'mvn test > tests.txt' I get a 2.5MB big text file, not being able to distinguish between expected failures and the actual ones. -
7. Re: Idiot's guide to setting up mc build in Eclipse?
pgier Apr 22, 2007 2:12 PM (in response to kabirkhan)I don't know if this is the easiest way, but one thing you can do is use the surefire report plugin like this:
mvn surefire-report:report
That will generate an html report located in target/site/surefire-report.html.
If you want the report to show only failures, you can run it like this:mvn -DshowSuccess=false surefire-report:report
-
8. Re: Idiot's guide to setting up mc build in Eclipse?
alesj Apr 22, 2007 4:05 PM (in response to kabirkhan)I get a page with 0 tests - file:///C:/projects/microcontainer/target/site/surefire-report.html.
Summary Tests Errors Failures Skipped Success Rate Time 0 0 0 0 0% 0 Note: failures are anticipated and checked for with assertions while errors are unanticipated.
Am I looking at the wrong place? -
9. Re: Idiot's guide to setting up mc build in Eclipse?
pgier Apr 23, 2007 10:32 AM (in response to kabirkhan)For some reason running from the parent doesn't generate the reports for the modules. You would have to go into each module directory, and run it from there. And the report will be in that module's target directory. We could add that configuration to the pom in the build directory to tell it to run automatically, but it's not set up now.
-
10. Re: Idiot's guide to setting up mc build in Eclipse?
bytor99999 Apr 23, 2007 11:32 AM (in response to kabirkhan)Don't you see a group of tests that failed in the console like below?
08:15:18,683 INFO [ASeamAction] sorting - null, true Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.093 sec Running org.jboss.test.TemplatePopulatorTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec Running org.jboss.test.TextareaMapConverterTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Results : Failed tests: testGetServices(org.jboss.test.NameOfSomeTest) Tests run: 15, Failures: 1, Errors: 0, Skipped: 1
It will give you a list of failed tests.
Mark -
11. Re: Idiot's guide to setting up mc build in Eclipse?
kabirkhan Apr 23, 2007 4:00 PM (in response to kabirkhan)"alesj" wrote:
What's the easiest way to see which tests fail?
If I do something like 'mvn test > tests.txt' I get a 2.5MB big text file, not being able to distinguish between expected failures and the actual ones.
If I try to do
$mvn install > blah.txt
OR
$mvn surefire-report:report > blah.txt
I get the following error (on cygwin): No such file or directoryn/mvn: line 103: cd: /home/Kabir/sourcecontrol/microcontainer-mvn/aop-mc-int java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher Exception in thread "main"
$ ant whatever > blah.txt
did work.