Hello Aviran, thanks for yout help. 2006/1/4, Mordo, Aviran (EXP N-NANNATEK) <[EMAIL PROTECTED]>: > > mvn site:site -U -e
it worked fine when launching it from command line. how can I make it working with the eclipse plugin http://maven.apache.org/eclipse-plugin.html ? i tried configuring an external build configuration with goal: site or site:site but i get this stacktrace: [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Quick Start Archetype [INFO] task-segment: [site:site, -U, -e] [INFO] ---------------------------------------------------------------------------- [INFO] Searching repository for plugin with prefix: 'site'. [INFO] Setting property: classpath.resource.loader.class => ' org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] site:site java.lang.NoSuchMethodError: org.apache.maven.reporting.MavenReport.canGenerateReport()Z at org.apache.maven.plugins.site.SiteMojo.filterReports(SiteMojo.java :409) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:221) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:426) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:554) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal( DefaultLifecycleExecutor.java:517) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:498) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:307) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:149) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :439) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java :383) at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:71) any help is very appreciated! Aviran > http://www.aviransplace.com > > -----Original Message----- > From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 04, 2006 2:33 PM > To: Maven Users List > Subject: Re: [m2] mvn site : not working? > > hi Chrostopher, > i launched the scripts, directories are created, but still nothing > happen. > > i'm reporting the stacktrace: > mvn -e site > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] Building Maven Quick Start Archetype > [INFO] task-segment: [site] > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] > ------------------------------------------------------------------------ > ---- > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not > exist or no valid version could be found [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: The plugin ' > org.apache.maven.plugins:maven-site-plugin' does not exist or no valid > version could be found > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin( > DefaultLifecycleExecutor.java:1203) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor( > DefaultLifecycleExecutor.java:1436) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack > aging > (DefaultLifecycleExecutor.java:975) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa > ppings > (DefaultLifecycleExecutor.java:941) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:450) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle > Failures > (DefaultLifecycleExecutor.java:303) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:270) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:139) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.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: > org.apache.maven.plugin.version.PluginVersionNotFoundException: > The plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist > or no valid version could be found > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi > nVersion > (DefaultPluginVersionManager.java:225) > at > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi > nVersion > (DefaultPluginVersionManager.java:87) > at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin( > DefaultPluginManager.java:177) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin( > DefaultLifecycleExecutor.java:1174) > ... 18 more > [INFO] > ------------------------------------------------------------------------ > ---- > [INFO] Total time: < 1 second > [INFO] Finished at: Wed Jan 04 20:30:19 CET 2006 [INFO] Final Memory: > 1M/2M [INFO] > ------------------------------------------------------------------------ > ---- > > > 2006/1/4, Christopher Cobb <[EMAIL PROTECTED]>: > > > > I have a tiny script that does this: > > > > mkdir -p \ > > src/site/ \ > > src/site/apt/ \ > > src/site/xdoc/ \ > > src/site/fml/ \ > > src/site/resources/css/ \ > > src/site/resources/images/ > > > > Maybe you need these site directories in your source tree. > > > > > > > -----Original Message----- > > > From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, January 04, 2006 1:14 PM > > > To: Maven Users List > > > Subject: [m2] mvn site : not working? > > > > > > hello, > > > i followed the tutorial to start with maven2, and everything goes > fine. > > > so, i'm using the archetype pom.xml, nothing special. > > > i mean this one: > > > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > > http://maven.apache.org/maven-v4_0_0.xsd"> > > > <modelVersion>4.0.0</modelVersion> > > > <groupId>it.chitechnologies.jeffrey</groupId> > > > <artifactId>jeffrey</artifactId> > > > <packaging>jar</packaging> > > > <version>1.0-SNAPSHOT</version> > > > <name>Maven Quick Start Archetype</name> > > > <url>http://maven.apache.org</url> > > > <dependencies> > > > <dependency> > > > <groupId>junit</groupId> > > > <artifactId>junit</artifactId> > > > <version>3.8.1</version> > > > <scope>test</scope> > > > </dependency> > > > </dependencies> > > > </project> > > > > > > then, when If i try issue the command: > > > > > > mvn site > > > > > > as the tutorial suggest to create a web site for the project, i get: > > > [INFO] > > > > > ---------------------------------------------------------------------- > > ---- > > > -- > > > [INFO] Building Maven Quick Start Archetype > > > [INFO] task-segment: [site] > > > [INFO] > > > > > ---------------------------------------------------------------------- > > ---- > > > -- > > > [ERROR] project-execute : > > > it.chitechnologies.jeffrey:jeffrey:jar:1.0-SNAPSHOT ( task-segment: > > > [site] > > > ) > > > Diagnosis: Invalid task 'site': you must specify a valid lifecycle > > phase, > > > or > > > a goal in the format plugin:goal or > > > pluginGroupId:pluginArtifactId:pluginVersion:goal > > > FATAL ERROR: Error executing Maven for a project > > > > > > what am I doing wrong ? > > > > > > thanks, > > > valerio > > > > > > -- > > > To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs > > > > > > ----------------------------------------- > > Attention: > > Any views expressed in this message are those of the individual > > sender, except where the message states otherwise and the sender is > > authorized to state them to be the views of any such entity. The > > information contained in this message and or attachments is intended > > only for the person or entity to which it is addressed and may contain > > > confidential and/or privileged material. If you received this in > > error, please contact the sender and delete the material from any > > system and destroy any copies. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > To Iterate is Human, to Recurse, Divine > James O. Coplien, Bell Labs > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
