tanks but.. please where is settings.xml?? 2008/3/6, Preetkanwal_Singh <[EMAIL PROTECTED]>: > Khalid this is a well knows error while running mvn. I also had a same > problem long back. > Change the path of your local repository in your settings.xml to a path > folder with no space name like c:/repository/ > > The problem is your repository is set to C:/Documents and > Settings/stg.elhayani/.m2/repository/org/......>>>> > > Documents and settings is having spaces in between. This causes problems > running with maven. Try copying the repository somewhere else n rename the > folder with one word(no spaces). I hope this will surely solve d problem. > > > CHEERS > Preet Kanwal Singh > > Think about the environment before you print…!!! "Spread environmental > awareness". > > > > -----Original Message----- > From: khalid el hayani [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 06, 2008 5:57 PM > To: [email protected] > Subject: [appfuse-user] problem in mvn appfuse:gen > > Hi you all > Hope your day is nice > > i have this error when i try to generate CRUD screens/classes for my > POJO (person) > > C:\Source\projetPOJO>mvn appfuse:gen -Dentity=Person > [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] [warpath:add-classes {execution: default}] > [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 > [INFO] [appfuse:gen] > [INFO] [AppFuse] Found 'Person.java' in model package... > [INFO] [AppFuse] Adding 'Person' to hibernate.cfg.xml... > log4j:WARN Continuable parsing error 53 and column 64 > log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of > type > ID must be unique within the document. > [INFO] Configuration XML file loaded: > C:\Source\projetPOJO\src\main\resources\hi > bernate.cfg.xml > [INFO] Configuration XML file loaded: > C:\Source\projetPOJO\src\main\resources\hi > bernate.cfg.xml > [INFO] src/main/resources/database.properties not found within the project. > Tryi > ng absolute path. > [INFO] No hibernate properties file loaded. > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] null > Illegal character in path at index 18: file:/C:/Documents and > Settings/stg.elhay > ani/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.IllegalArgumentException > at java.net.URI.create(URI.java:842) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.tools.ant.launch.Locator.fromURI(Locator.java:162) > at > org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:11 > 9) > at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90) > at org.apache.tools.ant.Project.setAntLib(Project.java:313) > at org.apache.tools.ant.Project.initProperties(Project.java:309) > at org.apache.tools.ant.Project.init(Project.java:295) > at org.appfuse.mojo.installer.AntUtils.createProject(AntUtils.java:47) > at > org.appfuse.tool.ArtifactInstaller.copyGeneratedObjects(ArtifactInsta > ller.java:109) > at > org.appfuse.tool.ArtifactInstaller.execute(ArtifactInstaller.java:44) > > at > org.appfuse.mojo.exporter.AppFuseGeneratorMojo.doExecute(AppFuseGener > atorMojo.java:250) > at > org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo. > java:138) > at > org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat > orMojo.java:194) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi > nManager.java:447) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:493) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau > ltLifecycleExecutor.java:463) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi > fecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: java.net.URISyntaxException: Illegal character in path at index > 18: f > ile:/C:/Documents and > Settings/stg.elhayani/.m2/repository/org/apache/ant/ant/1. > 7.0/ant-1.7.0.jar > at java.net.URI$Parser.fail(URI.java:2816) > at java.net.URI$Parser.checkChars(URI.java:2989) > at java.net.URI$Parser.parseHierarchical(URI.java:3073) > at java.net.URI$Parser.parse(URI.java:3021) > at java.net.URI.<init>(URI.java:578) > at java.net.URI.create(URI.java:840) > ... 34 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 14 seconds > [INFO] Finished at: Thu Mar 06 12:11:55 GMT 2008 > [INFO] Final Memory: 17M/31M > [INFO] > ------------------------------------------------------------------------ > > > Please help me out of this. > Thanks in advance > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or > distribution or forwarding of any or all of the contents in this message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard is > appreciated. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- el hayani khalid
