The good news is creating an "old style" project is now pretty easy.
If you create a new project using 2.0-m5-SNAPSHOT, you can now use
"mvn appfuse:full-source" to convert your project to use all of
AppFuse's source and remove all dependencies on AppFuse. Known issues
with this plugin include:
1. It only supports basic archetypes. It will likely only take a
couple of hours to add modular project support, but I didn't do it yet
because I'd rather release M5.
2. It doesn't do package renaming. I plan to add this as part of the
next release.
What the plugin does:
1. Exports all sources from Subversion into your project. It reads the
dao.framework and web.framework properties to determine what you need.
2. Removes warpath plugin from pom.xml.
3. Calculates dependencies by reading pom.xml files form the various
AppFuse modules. It replaces your dependencies with these new ones.
The order of the dependencies added is alphabetical based on groupId.
4. Reads properties from the root AppFuse pom.xml and adds the ones
that don't exist to your project. Since these are stored in a
java.util.Properties, I was unable to sort them alphabetically.
Hope this helps,
Matt
On 5/22/07, Steve Tynor <[EMAIL PROTECTED]> wrote:
Matt,
I just tried to reproduce in a virginal archetype project and was unable
to get it to fail. My "real" project is the result of a "war:inplace"
and manual copying appfuse classes and test cases from appfuse sources
(I want/need an "old style" project with all sources and resources in my
project source tree rather than automagically included by maven warpath).
So I would guess that some of the unit tests (which are not run in a
virginal build) are leaving the h2 database locked. Sorry I can't be
more specific -- it was quite tedious to copy all those source files out
of appfuse source tree and I did not take notes in order to create a
cookbook.
Steve
On 5/22/2007 11:19 AM, Matt Raible wrote:
> On 5/22/07, Steve Tynor <[EMAIL PROTECTED]> wrote:
>> FWIW, I've abandoned the idea of using hsqldb or h2 for cruisecontrol
>> auto testing of my appfuse 2.0-m5-snapshot based project and have set up
>> a mysql server on the continuous integration server. I'd prefer hsqldb
>> or h2 since they support localaized set up/tear down with less chance
>> that one bad test will corrupt the database for future tests, but until
>> I can make it work, I'll live with mysql.
>>
>> I'm still curious to know if this is something peculiar to my
>> development environment, or if this is a limitation w/ h2 and hsqldb
>> that all appfuse users must work around.
>
> If you can provide the steps to reproduce, I'll see if it works on my
> environment. Please include the command you used to create and test
> the project.
>
> Matt
>
>>
>> Regards,
>> Steve
>>
>>
>> On 5/16/2007 8:36 AM, Steve Tynor wrote:
>> > That works for "mvn clean test" (BUILD SUCCESSFUL), but I still see
>> > "locked by other process" errors (and BUILD ERROR) for "mvn clean
>> > integration-test".
>> >
>> > Steve
>> >
>> > On 5/16/2007 8:19 AM, Matt Raible wrote:
>> >> You could try removing the 2nd execution that dbunit has - the one
>> >> that populates the database after tests are run:
>> ...
>>
>> >>> The build fails. Surefire reports all tests pass:
>> >>>
>> >>> > Results :
>> >>> > [surefire] Tests run: 57, Failures: 0, Errors: 0
>> >>>
>> >>> then maven reports build failure:
>> >>>
>> >>> > [INFO] [dbunit:operation {execution: test}]
>> >>> > [INFO]
>> >>>
>> ------------------------------------------------------------------------
>> >>> > [ERROR] BUILD ERROR
>> >>> > [INFO]
>> >>>
>> ------------------------------------------------------------------------
>> >>> > [INFO] Error executing database operation: CLEAN_INSERT
>> >>> >
>> >>> > Embedded error: Database may be already open: Locked by another
>> >>> process [90020-34]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]