Changes for page Maven Creating Wonder Applications
Last modified by David Holt on 2022/06/25 01:40
From version 28.1
edited by Greg.Brown
on 2009/02/20 07:26
on 2009/02/20 07:26
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. gbrown1 +XWiki.ldeck - Content
-
... ... @@ -41,20 +41,38 @@ 41 41 The woapplication-archtype is under construction, so you must fix a few things. 42 42 # Fix the pom.xml. Delete the properties and dependencies sections that the woapplication-archtype created, and paste this into the pom: 43 43 {code:xml} 44 - 44 +... 45 45 <properties> 46 - <woversion>5.3.3</woversion> 46 + <woclassifier>wo54</woclassifier> 47 + <woversion>5.4.3</woversion> 47 47 <wonderversion>5.0.0-SNAPSHOT</wonderversion> 48 48 </properties> 49 49 51 + <!-- the dependency management section defines the characteristics of your dependencies to use when referenced elsewhere --> 52 + <!-- See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html --> 50 50 <dependencyManagement> 54 + <!-- Only ERExtensions and WOOgnl need a wo53 or wo54 classifier but adding it for all WOnder dependencies safeguards it for any future changes to WOnder --> 51 51 <dependencies> 56 + <!-- in the order you'd like --> 52 52 <dependency> 53 - <groupId>com.webobjects</groupId> 54 - <artifactId>JavaFoundation</artifactId> 55 - <version>${woversion}</version> 58 + <groupId>wonder.core</groupId> 59 + <artifactId>ERExtensions</artifactId> 60 + <version>${wonderversion}</version> 61 + <classifier>${woclassifier}</classifier> 56 56 </dependency> 57 57 <dependency> 64 + <groupId>wonder.core</groupId> 65 + <artifactId>ERPrototypes</artifactId> 66 + <version>${wonderversion}</version> 67 + <classifier>${woclassifier}</classifier> 68 + </dependency> 69 + <dependency> 70 + <groupId>wonder.core</groupId> 71 + <artifactId>WOOgnl</artifactId> 72 + <version>${wonderversion}</version> 73 + <classifier>${woclassifier}</classifier> 74 + </dependency> 75 + <dependency> 58 58 <groupId>com.webobjects</groupId> 59 59 <artifactId>JavaWebObjects</artifactId> 60 60 <version>${woversion}</version> ... ... @@ -64,54 +64,48 @@ 64 64 <artifactId>JavaEOAccess</artifactId> 65 65 <version>${woversion}</version> 66 66 </dependency> 67 - <dependency> 68 - <groupId>wonder.core</groupId> 69 - <artifactId>ERExtensions</artifactId> 70 - <version>${wonderversion}</version> 71 - <classifier>wo53</classifier> 72 - </dependency> 73 73 <dependency> 74 - <groupId>wonder.core</groupId> 75 - <artifactId>ERPrototypes</artifactId> 76 - <version>${wonderversion}</version> 77 - 86 + <groupId>com.webobjects</groupId> 87 + <artifactId>JavaFoundation</artifactId> 88 + <version>${woversion}</version> 78 78 </dependency> 79 79 </dependencies> 80 80 </dependencyManagement> 81 -<!-- Only ERExtensions and WOOgnl need a wo53 or wo54 classifier --> 92 + 93 + <!-- now you just reference the groupId and artifactId of each dependency required. This will work for any child pom also. --> 94 + <!-- See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html --> 82 82 <dependencies> 83 83 <dependency> 84 84 <groupId>wonder.core</groupId> 85 85 <artifactId>ERExtensions</artifactId> 86 - <version>${wonderversion}</version> 87 - <classifier>wo53</classifier> 99 + <classifier>${wonderclassifier}</classifier> 88 88 </dependency> 89 89 <dependency> 90 90 <groupId>wonder.core</groupId> 103 + <artifactId>WOOgnl</artifactId> 104 + <classifier>${wonderclassifier}</classifier> 105 + </dependency> 106 + <dependency> 107 + <groupId>wonder.core</groupId> 91 91 <artifactId>ERPrototypes</artifactId> 92 - <version>${wonderversion}</version> 93 93 </dependency> 94 94 <dependency> 95 95 <groupId>com.webobjects</groupId> 96 96 <artifactId>JavaFoundation</artifactId> 97 - <version>${woversion}</version> 98 98 </dependency> 99 99 <dependency> 100 100 <groupId>com.webobjects</groupId> 101 101 <artifactId>JavaWebObjects</artifactId> 102 - <version>${woversion}</version> 103 103 </dependency> 104 104 <dependency> 105 105 <groupId>com.webobjects</groupId> 106 106 <artifactId>JavaEOAccess</artifactId> 107 - <version>${woversion}</version> 108 108 </dependency> 109 - 110 110 </dependencies> 111 111 112 112 {code} Fix the versions and classifiers in the pom to be the correct values. 113 113 114 -2. Fix the Application, Session, DirectAction jave files. Theyallshould:{code}import er.extensions.appserver.ERX????{code}But the".appserver."isleftout of the importstatements.126 +2. Fix the Application, Session, DirectAction jave files import statements. As of this writing the import statements are incorrect for Wonder 5.0 which refactored all its classes into packages other than {code}er.extensions{code}. So just right click on These three files and choose Source > Organize Imports which should, as of this writing, make them {code}import er.extensions.appserver.ERX...{code} 115 115 116 116 3. Possibly change web components to extend er.extensions.components.ERXComponent instead of the standard WOComponent. 117 117 4. Possible classpath issues; the eclipse component editor has multiple Component and Display Group tabs.?