On Dec 9, 2010, at 12:04 AM, dan wrote:

> 于 2010-12-9 13:32, Matt Raible 写道:
>> 
>> On Dec 8, 2010, at 10:17 PM, dan wrote:
>> 
>>> 于 2010-12-9 9:57, Matt Raible 写道:
>>>> On Dec 8, 2010, at 6:47 PM, dan<cmaj...@gmail.com>  wrote:
>>>> 
>>>>> 于 2010-12-9 9:13, Matt Raible 写道:
>>>>>> What version of Maven are you using? What version of AppFuse. I need to 
>>>>>> know what you're doing so I can try and reproduce.
>>>>>> 
>>>>>> On Dec 8, 2010, at 5:16 PM, dan wrote:
>>>>>> 
>>>>>>> I meet a problem that when i use mvn site to generate the report,the log
>>>>>>> in console below
>>>>>>> 
>>>>>>> [INFO] [dbunit:operation {execution: test}]
>>>>>>> [INFO] Preparing surefire-report:report-only
>>>>>>> [INFO] No goals needed for project - skipping
>>>>>>> [INFO] [site:site {execution: default-site}]
>>>>>>> [ERROR] No URL set in Issue Management. No JIRA Report will be 
>>>>>>> generated.
>>>>>>> [ERROR] No URL set in Issue Management. No Trac Report will be 
>>>>>>> generated.
>>>>>>> [INFO] Skipped "Test JavaDocs" report, file "testapidocs/index.html"
>>>>>>> already exi
>>>>>>> sts for the English version.
>>>>>>> [INFO] Skipped "JavaDocs" report, file "apidocs/index.html" already
>>>>>>> exists for t
>>>>>>> he English version.
>>>>>>> [INFO] Skipped "Surefire Report" report, file "surefire-report.html"
>>>>>>> already exi
>>>>>>> sts for the English version.
>>>>>>> [INFO] Generating "Issue Tracking" report.
>>>>>>> [INFO] Generating "Project Team" report.
>>>>>>> [INFO] Generating "Surefire Report" report.
>>>>>>> [INFO] Generating "Dependencies" report.
>>>>>>> 
>>>>>>> then, it will elapse about 10 min,i don't know what's the maven doing
>>>>>>> the final result is Build Success
>>>>>>> 
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>>> 
>>>>> hi Matt,I follow your manual,first i create a web project
>>>>> 
>>>>> mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
>>>>> -DarchetypeArtifactId=appfuse-basic-struts -DarchetypeVersion=2.0.2 
>>>>> -DgroupId=org.dbss -DartifactId=DBSync
>>>>> may be the appfuse version is 2.0.2
>>>>> then i want to generate the report,so i execute "mvn site"
>>>>> 
>>>>> first,the console produce
>>>>> 
>>>>> Repository 'snapshots-maven-codehaus' will be blacklisted
>>>>> 
>>>>> so i grep in my maven repository to find the key words,i find a lot of 
>>>>> pom file have this site
>>>>> such as
>>>>> org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
>>>>> org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
>>>>> org\springframework\security\spring-security-parent\2.0.1\spring-security-parent-2.0.1.pom
>>>>> org\apache\maven\plugins\maven-plugin-parent\2.0.1\maven-plugin-parent-2.0.1.pom
>>>>> org\apache\maven\plugins\maven-plugins\1\maven-plugins-1.pom
>>>>> org\codehaus\plexus\plexus\1.0.4\plexus-1.0.4.pom
>>>>> org\codehaus\plexus\plexus\1.0.5\plexus-1.0.5.pom
>>>>> org\codehaus\plexus\plexus-compiler-api\1.5.1\plexus-compiler-api-1.5.1.pom
>>>>> org\codehaus\plexus\plexus-compilers\1.5.3\plexus-compilers-1.5.3.pom
>>>>> org\codehaus\mojo\mojo\7\mojo-7.pom
>>>>> 
>>>>> ........
>>>>> 
>>>>> so i comment the<url>snapshots-maven-codehaus/maven2</url>
>>>>> 
>>>>> but when i execute "mvn site" again,it still hang at
>>>>> 
>>>>> [INFO] Generating "Dependencies" report
>>>>> 
>>>> Does this same thing happen with the latest release (2.1.0-M2)?
>>>> 
>>> hi Matt,I use 2.1.0-M2 but when i exeucte "mvn eclipse:eclipse"
>>> the error below
>>> 
>>> [ERROR] BUILD ERROR
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Request to merge when 'filtering' is not identical. 
>>> Original=resource sr
>>> /main/resources: output=target/classes, include=[], 
>>> exclude=[ApplicationResourc
>>> s_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.prop
>>> rties|ApplicationResources_nl.properties|ApplicationResources_no.properties|App
>>> icationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationR
>>> sources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java],
>>> est=false, filtering=true, merging with=resource src/main/resources: 
>>> output=tar
>>> et/classes, include=[applicationContext-resources.xml|struts.xml], 
>>> exclude=[**/
>>> .java], test=false, filtering=false
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 1 minute 27 seconds
>>> [INFO] Finished at: Thu Dec 09 11:22:39 CST 2010
>>> [INFO] Final Memory: 29M/123M
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> 
>>> mvn install mvn test ,it will be successfuly
>>> mvn site,the error is
>>> 
>>> org.hibernate.MappingException: Unable to load class declared as <mapping 
>>> class=
>>> "org.bals.model.User"/> in the configuration:
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
>>> ionConfiguration.java:650)
>>>        at 
>>> org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav
>>> a:1589)
>>>        at 
>>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfi
>>> guration.java:1047)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfi
>>> guration.java:64)
>>>        at 
>>> org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfi
>>> guration.java:1035)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfi
>>> guration.java:64)
>>>        at org.hibernate.cfg.Configuration.configure(Configuration.java:1477)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
>>> ration.java:1023)
>>>        at 
>>> org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfigu
>>> ration.java:64)
>>>        at 
>>> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
>>> tion.doConfiguration(AbstractComponentConfiguration.java:95)
>>>        at 
>>> org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
>>> tion.getConfiguration(AbstractComponentConfiguration.java:56)
>>>        at 
>>> org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
>>> bm2DDLExporterMojo.java:87)
>>>        at 
>>> org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE
>>> xporterMojo.java:152)
>>>        at 
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>> nManager.java:490)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>> ultLifecycleExecutor.java:694)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>> fecycle(DefaultLifecycleExecutor.java:556)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
>>> cle(DefaultLifecycleExecutor.java:1205)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
>>> aultLifecycleExecutor.java:1038)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>> ultLifecycleExecutor.java:663)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>> fecycle(DefaultLifecycleExecutor.java:556)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>> ltLifecycleExecutor.java:535)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>> dleFailures(DefaultLifecycleExecutor.java:387)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>> ts(DefaultLifecycleExecutor.java:348)
>>>        at 
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>> fecycleExecutor.java:180)
>>>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>        at 
>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
>>> 0)
>>>        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:597)
>>>        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.lang.ClassNotFoundException: org.bals.model.User
>> If you change the Eclipse plugin to use maven-eclipse-plugin 2.8, it 
>> probably doesn't solve the problem, but I'd recommend trying it. This 
>> problem might be caused by two persistence.xml (or hibernate.hbm.xml) files. 
>> Can you ensure you only have one - in src/main/resources?
>> 
> I try maven-eclipse-plugin 2.8 the error is same
> I try 2.1.0-M1 execute "mvn site"
> 
> [INFO] Generating "Dependencies" report.
> [WARNING] The repository url 
> 'http://s3.amazonaws.com/maven.springframework.org/
> external' is invalid - Repository 'spring-external' will be blacklisted.
> [WARNING] The repository url 
> 'http://s3.amazonaws.com/maven.springframework.org/
> release' is invalid - Repository 'spring-release' will be blacklisted.
> 
> It still hang.
> 
> Matt, I have another question
> mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes 
> -DarchetypeArtifactId=appfuse-basic-struts-archetype 
> -DarchetypeVersion=2.1.0-M2 -DgroupId=org.bals -DartifactId=Bals
> above is the generate command
> -DarchetypeArtifactId=appfuse-basic-struts-archetype
> in the URL http://repo1.maven.org/maven2/org/appfuse/archetypes/
> both appfuse-basic-struts/  and  appfuse-basic-struts-archetype/ have 2.1.0-M2
> but -DarchetypeArtifactId=appfuse-basic-struts it will produce error
> 

In 2.1+, we changed the archetype name to include the "-archetype" suffix.

Reply via email to