Maven javadoc plugin error

2010-04-28 Thread Saif Kamaal Abulkhair
Hi Maven Experts,

I have been trying to generate java docs using the following
configuration (see below for pom.xml) and running the command (mvn site,
mvn javadoc:javadoc, mvn javadoc,aggregate) and I am getting this error 

[INFO] Scanning for projects...
[INFO]

[INFO] Building Jfoundation Web Servicelocator
[INFO]task-segment: [site]
[INFO]

-
this realm =
app0.child-container[org.apache.maven.plugins:maven-javadoc-plugin:
2.5]
urls[0] =
file:/D:/Saif/Maven-Repo/m2/org/apache/maven/plugins/maven-javadoc-plu
gin/2.5/maven-javadoc-plugin-2.5.jar
urls[1] =
file:/D:/Saif/Maven-Repo/m2/org/codehaus/plexus/plexus-utils/1.1/plexu
s-utils-1.1.jar
Number of imports: 10
import: org.codehaus.classworlds.en...@a6c57a42
import: org.codehaus.classworlds.en...@12f43f3b
import: org.codehaus.classworlds.en...@20025374
import: org.codehaus.classworlds.en...@f8e44ca4
import: org.codehaus.classworlds.en...@92758522
import: org.codehaus.classworlds.en...@ebf2705b
import: org.codehaus.classworlds.en...@bb25e54
import: org.codehaus.classworlds.en...@bece5185
import: org.codehaus.classworlds.en...@3fee8e37
import: org.codehaus.classworlds.en...@3fee19d8


this realm = plexus.core
urls[0] =
file:/D:/Apps/JavaSoftwares/Maven-2.2.1/lib/maven-2.2.1-uber.jar
Number of imports: 10
import: org.codehaus.classworlds.en...@a6c57a42
import: org.codehaus.classworlds.en...@12f43f3b
import: org.codehaus.classworlds.en...@20025374
import: org.codehaus.classworlds.en...@f8e44ca4
import: org.codehaus.classworlds.en...@92758522
import: org.codehaus.classworlds.en...@ebf2705b
import: org.codehaus.classworlds.en...@bb25e54
import: org.codehaus.classworlds.en...@bece5185
import: org.codehaus.classworlds.en...@3fee8e37
import: org.codehaus.classworlds.en...@3fee19d8
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error getting reports from the plugin
'org.apache.maven.plugins:maven-jav
adoc-plugin:2.5': Unable to load the mojo
'org.apache.maven.plugins:maven-javado
c-plugin:2.5:test-jar' in the plugin
'org.apache.maven.plugins:maven-javadoc-plu
gin'. A required class is missing:
org/codehaus/plexus/archiver/ArchiverExceptio
n
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Apr 28 11:19:27 GST 2010
[INFO] Final Memory: 6M/13M
[INFO]




//- pom.xml
--

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";>
4.0.0

jfoundation-web2
jfoundation-web2
1.0.0

jfoundation-web2
Jfoundation Web Servicelocator
jw-servicelocator
${jfoundation.version}
jar


jfoundation-web2
jw-jsf-core


jfoundation
jf-core-implementation


ognl
ognl
2.7.3





org.apache.maven.plugins
maven-javadoc-plugin
 2.6.1






//-end
pom--

Any inputs wll be of great help.

Thanks in advance.


Saif Kamaal

Emirates Group Information Technology
Tel:+971 55 4023898
Extn: +971 04 2033912
saif.abulkh...@emirates.com  





[maven-javadoc-plugin] error when using "mvn site site-deploy"

2010-03-02 Thread NGUYEN Cong Kinh

Hello everybody,

I have a problem when using maven-javadoc-plugin. My problem is as the 
following:
- I have some modules, they are complied successfully with the "mvn 
clean install" command

- Then when I use the "mvn site site-deploy", there's an error:

[ERROR] BUILD ERROR
[INFO] 


[INFO] An error has occurred in JavaDocs report generation:
Exit code: 1 - 
whenandhowcacheupload/ResourceManager.class(whenandhowcacheupload:ResourceManager.class): 
warning: Cannot find annotation method 'name()' in type 
'org.objectweb.fractal.fraclet.annotations.Attribute': class file for 
org.objectweb.fractal.fraclet.annotations.Attribute not found
whenandhowcacheupload/ResourceManager.class(whenandhowcacheupload:ResourceManager.class): 
warning: Cannot find annotation method 'step()' in type 
'org.objectweb.fractal.fraclet.annotations.Lifecycle': class file for 
org.objectweb.fractal.fraclet.annotations.Lifecycle not found
whenandhowcacheupload/ResourceManager.class(whenandhowcacheupload:ResourceManager.class): 
warning: Cannot find annotation method 'step()' in type 
'org.objectweb.fractal.fraclet.annotations.Lifecycle'
error: in class file 
whenandhowcacheupload/ResourceManager.class(whenandhowcacheupload:ResourceManager.class): 
unknown enum constant org.objectweb.fractal.fraclet.types.Step.STOP


Command line was: /home/kinh/jdk1.6.0_10/jre/../bin/javadoc -J-Xmx512m 
-J-Xms128m @options @packages


Refer to the generated Javadoc files in 
'/home/kinh/workspace/cosmos/trunk/cosmos-me/cosmos/examples/midlet/example-dais-2007/target/site/apidocs' 
dir.



The code, you can see at 
http://picoforge.int-evry.fr/websvn/filedetails.php?repname=cosmos&path=%2Ftrunk%2Fcosmos-me%2Fcosmos%2Fexamples%2Fexample-dais-2007-juliac%2Fsrc%2Fmain%2Fjava%2Fwhenandhowcacheupload%2FResourceManager.java&rev=0&sc=0


my configuration concerning to maven-javadoc-plugin:

 
   org.apache.maven.plugins
   maven-javadoc-plugin
   2.6.1
   
 128m
 512m
   
 

Could anyone tell me what happens for my code?

Thanks in advance,
Kinh

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-javadoc-plugin error?

2007-07-03 Thread Trevor Spackman
Hi all,

 

So we decided to up the java version from 1.5 to 1.6 in some of our new
projects to take advantage of the new features.  Accordingly, I added
the following to my pom:

 

  



  

maven-compiler-plugin



  1.6

  1.6

  true

  ${JAVA_1_6_HOME}/bin/javac

  1.6



  



  

 

and set up the environment variable JAVA_1_6_HOME to my 1.6jdk.  But now
when I try to run the release plugin, the javadoc report blows up
because it is using the jdk under my JAVA_HOME env var (version 1.5).

 

I looked, but was unable to find any of the javadoc plugin parameters
that would help me cope with this.

 

Am I doing something wrong?

 

Thanks, 

Trevor



maven javadoc plugin error

2006-12-15 Thread Marco Mistroni

hi all,
i have following m2  project

parent
  | proj1
  | proj2


proj1 depends on 2 external libraries,  hibernate and a custom jar tha ti
have made in the past

code compiles / tests / runs fine.. but when i generate mvn site:site from
the parent directory,
the plugin fails with following error


[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page
generation
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:488)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   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:256)
   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:324)
   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.MojoExecutionException: Error during page
generation
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)

here's my pom (copied from proficio application) - copied only relevant
portion,  tag


   
 
   maven-surefire-report-plugin
   
 false
   
 
 
   org.apache.maven.plugins
   maven-jxr-plugin
 
 
   org.apache.maven.plugins
   maven-javadoc-plugin
   
 
   http://java.sun.com/j2se/1.4.2/docs/api
   http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs
 
 true
   
 
 
   org.apache.maven.plugins
   maven-pmd-plugin
   
 
   /rulesets/basic.xml
   /rulesets/imports.xml
   /rulesets/unusedcode.xml
   /rulesets/finalizers.xml
 
   
 
 
   org.apache.maven.plugins
   maven-checkstyle-plugin
   
 config/maven_checks.xml
   
 
 
   org.codehaus.mojo
   taglist-maven-plugin
   
 
   TODO
   @todo
   FIXME
   XXX
   see
 
   
 
 
   org.codehaus.mojo
   cobertura-maven-plugin
 
   
 



can anyone help me out?

thanks and regards
marco