From H2Plugin/Resources/Properties, did you add uncommented lines like
# H2 connection URL dbConnectURLGLOBAL=jdbc:h2:file://tmp/Example
# Because H2 doesn't have deferred fk constraints com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true
to your project properties and set the file url to a location the app can write? I usually forget that when setting up a project using H2Plugin.
Next question (postgresql works now when using traditional framework.
https://wiki.wocommunity.org/display/WEB/Your+First+Rest+Project
The migration does not work. I created BlogModel0 in src/main/java there is no Sources folder with maven):
In the Sources folder, open the your.app.model.migrations package, a class named BlogModel0 should be there. Delete everything in that file EXCEPT the first line (which should be package your.app.model.migrations) and paste the code that was generated by Entity Modeler. Save the file.
One last step: migrations are disabled by default. To enable them, you need to uncomment two properties in the Properties file that is located in the Resources folder. Open that file (double-click on it).
Remove the pound char in front of those two properties: #er.migration.migrateAtStartup=true #er.migration.createTablesIfNecessary=true
After removing the pound char, the two properties should look like this: er.migration.migrateAtStartup=true er.migration.createTablesIfNecessary=true
Are there any ideas why it does create the tables in the H2 database? It seems it cannot find BlogModel0. Does this needs to be place in a certain folder?
It would help me a lot if someone has a working maven based Example of ERRest. This way I can learn the structure of the project.
Many thanks, Bart
On Mon, 2015-11-30 at 10:35 -0700, Ramsey Gurley wrote:
Try with
-DarchetypeVersion=2.2-SNAPSHOT
In fact, do this:
Install m2e in eclipse if you haven’t already
Go to eclipse preferences, Maven->Archetypes, click “Add Remote Catalog...” button and add
Catalog File: http://maven.wocommunity.org/service/local/repositories /snapshots/content/archetype-catalog.xml
Description: WORemote
Then you can File->New->Other, Maven->Maven Project, Next, Next, select Catalog: WORemote & check on 'Include snapshot archetypes'
Then you can see your options you won’t need to remember lots of command line args.
Also, I’ve found this really helpful in ubuntu :)
https://github.com/juven/maven-bash-completion
That might even work on OS X… maybe.
On Nov 30, 2015, at 10:14 AM, jazzsalsa <email@hidden> wrote:
Hi Ramsey, Henrique,
Thanks for fixing how hard is was to work with Maven. Much easier now, but not quite there yet.
I followed this page and looked at the email thread on the list around 18-Sep-15: https://wiki.wocommunity.org/display/WOL/Quick+Start
This works (step 4): mvn archetype:generate -DarchetypeArtifactId=erxapplication-archetype -DarchetypeGroupId=org.objectstyle.woproject.maven2 -DarchetypeVersion=2.1
But this not (step 6): mvn clean package [ERROR] Failed to execute goal on project app: Could not resolve dependencies for project com:app:woapplication:1.0-SNAPSHOT: The following artifacts could not be resolved: wonder.core:ERExtensions:jar:wo54:5.0.0-SNAPSHOT, wonder.core:WOOgnl:jar:wo54:5.0.0-SNAPSHOT, wonder.core:ERPrototypes:jar:5.0.0-SNAPSHOT: Failure to find wonder.core:ERExtensions:jar:wo54:5.0.0-SNAPSHOT in http://maven.wo comm unity.org/content/groups/public-snapshots was cached in the local repository, resolution will not be reattempted until the update interval of wocommunity.snapshots has elapsed or updates are forced ->
What do I do with (in pom.xml):
<wonder.classifier>wo54</wonder.classifier>
Is this the correct value?
Thanks in advance, Bart
|