A friend of mine asked me how far Maven 2 could help in education.

Take about 50 students, that all have to do the same 10 projects.
Most of these projects are small (2 hours to solve, e.g. Fibonacci), but others are big (3 months to solve, e.g. FTP client). The teacher doesn't have the time to look at every single file in the projects and he loses a lot of time even just testing all projects. If part of his work could be automated, for example using testcases to test corner cases, that would be great.

Only one big problem: the students don't know Maven 2 and it's not a priority to learn it to them...
Subversion could however become a priority.


So I was thinking about what he should do:
- Create and solve the projects and let maven generate IDE files.
- Create a package "problem" and a package "solution". Filter out the "solution" package when suppling the project to the student.
- Create interfaces (and domain objects if needed) in the "problem" package
- Create testcases to test the code automatically. Should he supply the student with the testcases? - Create a zip to to supply to the students OR copy on subversion (filtering out "solution")? -- If subversion then the students should not be able to see to original project, only their filtered copy. - Find a way to get maven to "mvn test site" all projects in a directory structure like this, without having to create pom.xml all over the place:
student1/project1/
student1/project2/
...
student2/project1/
...

Would this last thing be possible?
Would I need a pom.xml in the projects themselves, or could I create one on the fly based on a template (and change the groupId to "com.domain.exercises.<student1>.<project1>") if there is none?

What do you think of this setup? Are there better idea's?

--
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to