I cannot get the appfuse:gen to generate non generic code.  How can I check
to determine what is going wrong for me when I do the gen.

Thanks
Hank

mvn appfuse:gen-model -Damp.genericCore=false
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'appfuse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [appfuse:gen-model]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing appfuse:gen-model
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It
ill be ignored for artifact resolution. Reason: Parse error reading POM.
Reason
 TEXT must be immediately followed by END_TAG and not START_TAG (position:
STAR
_TAG seen ...<licenses>\n\t\t\t<license>... @12:13)  for project
org.hibernate:
tidy at
c:\docume~1\hank\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r
-20060801.pom
[INFO] [appfuse:gen-model]
[INFO] Writing 'hibernate.reveng.xml' to
target\test-classes\hibernate.reveng.x
l
[INFO] Configuration XML file loaded:
file:/c:/appfuseprojects/ArticlingRegistr
/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded:
c:\appfuseprojects\ArticlingRegist
y\target\classes\jdbc.properties
[INFO] Copying generated 'ApplicationMaterials.java' to project...
[INFO] Copying generated 'AreasOfLaw.java' to project...
[INFO] Copying generated 'ArticleAreas.java' to project...
[INFO] Copying generated 'Articles.java' to project...
[INFO] Copying generated 'Firms.java' to project...
[INFO] Copying generated 'StudentAreas.java' to project...
[INFO] Copying generated 'Students.java' to project...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Tue Oct 07 08:53:41 EDT 2008
[INFO] Final Memory: 25M/127M
[INFO]
------------------------------------------------------------------------
---------------------------------------------------------
$ mvn -e  appfuse:gen -Damp.genericCore=false
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'appfuse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [appfuse:gen]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing appfuse:gen
[INFO] [aspectj:compile {execution: default}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
[INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid.
It w
ill be ignored for artifact resolution. Reason: Parse error reading POM.
Reason:
 TEXT must be immediately followed by END_TAG and not START_TAG (position:
START
_TAG seen ...<licenses>\n\t\t\t<license>... @12:13)  for project
org.hibernate:j
tidy at
c:\docume~1\hank\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8
-20060801.pom
[INFO] [appfuse:gen]
What is the name of your pojo (i.e. Person)?: Firms
[INFO] Configuration XML file loaded:
file:/c:/appfuseprojects/ArticlingRegistry
/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded:
file:/c:/appfuseprojects/ArticlingRegistry
/src/main/resources/hibernate.cfg.xml
[INFO] src/main/resources/database.properties not found within the project.
Tryi
ng absolute path.
[INFO] No hibernate properties file loaded.
[info] [AppFuse] Installing generated files (pattern: **/*.java)...
[info] [AppFuse] Installing sample data for DbUnit...
[info] [AppFuse] Installing Spring bean definitions...
[info] [AppFuse] Installing Struts views and configuring...
[info] [AppFuse] Installing generated files (pattern: **/model/*.xml)...
[info] [AppFuse] Installing generated files (pattern:
**/webapp/action/*.xml)...

[info] [AppFuse] Installing i18n messages...
[info] [AppFuse] Installing menu...
[info] [AppFuse] Installing UI tests...
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 31 seconds
[INFO] Finished at: Tue Oct 07 09:02:49 EDT 2008
[INFO] Final Memory: 25M/127M
[INFO]
------------------------------------------------------------------------

pom has this:


here is a sample of what is generated 

package com.lsuc.articling.dao.hibernate;

import com.lsuc.articling.model.Firms;
import com.lsuc.articling.dao.FirmsDao;
import com.lsuc.articling.dao.hibernate.GenericDaoHibernate;

public class FirmsDaoHibernate extends GenericDaoHibernate<Firms, Long>
implements FirmsDao {

    public FirmsDaoHibernate() {
        super(Firms.class);
    }
}
-- 
View this message in context: 
http://www.nabble.com/APPFUSE2%2BSTRUTS--amp-generates-only-generic-code--for-me%21%21-tp19858224s2369p19858224.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


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

Reply via email to