Re: mvn javadoc:javadoc failing on only ONE Module project
> Standard Doclet version 1.6.0_29 > Building tree for all the packages and classes > [ERROR] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl > cannot be cast to com.sun.javadoc.AnnotationTypeDoc > [ERROR] at > com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46) First realize this is an issue inside the JDK Javadoc tool and not a problem with Maven. You can see this from the stacktrace reported. If you run "mvn -X ..." you will get the full command line used to execute Javadoc and it will (should) show you the same error. So knowing that, you should look for this issue in the Sun/Oracle bug database. I did, and your problem looks like this one (fixed in jdk7 b73): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6709246 Try building your project and the javadocs with jdk7 and see if that solves your problem. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven eclipse not fully functional
On Thu, Dec 22, 2011 at 11:16 AM, Apache Omega wrote: > I'm using the Maven Apache plug in for eclipse because I'm to new to figure > out the command line method but now that I've switched I'm having problems > again. > my maven plug in is installed but the list for the archetype catalogs are > greyed out so I cant select them. > > every time I try to install a m2e connector I get this message {Problems > occurred while performing installation: > org/sat4j/minisat/core/AssertingClauseGenerator > org/sat4j/minisat/core/AssertingClauseGenerator} > > I'm trying to point my eclipse.ini to my jdk but my computer wont let me > save it (it reads access denied) > > when I bring up a project and choose run as my m2 eclipse maven options wont > pop up > > please please please tell me how i can fix this m2e is not developer here. Check out http://eclipse.org/m2e/ for appropriate user lists. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
mvn javadoc:javadoc failing on only ONE Module project
Hi, I have really very strange problem with my Sub modules project. Project Structure something like as below. TestPomProject - DAOProject - SchemaProject - EJBProject - EarProject If i execute "mvn javadoc:javadoc" command on these projects ( DAOProject, SchemaProject, EarProject ) It's working fine and completed successfully. But when i execute this command at EJBProject it's giving me following exception and there isn't any different entry for javadoc in EJBProject all having same entry for javadoc plugin _ [INFO] Scanning for projects... [INFO] [INFO] [INFO] Building EJBProject 3.0 [INFO] [INFO] [INFO] >>> maven-javadoc-plugin:2.8:javadoc (default-cli) @ EJBProject >>> [INFO] [INFO] <<< maven-javadoc-plugin:2.8:javadoc (default-cli) @ EJBProject <<< [INFO] [INFO] --- maven-javadoc-plugin:2.8:javadoc (default-cli) @ EJBProject --- [INFO] .. . Standard Doclet version 1.6.0_29 Building tree for all the packages and classes ... . 44 warnings [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2.547s [INFO] Finished at: Wed Dec 21 16:47:57 PST 2011 [INFO] Final Memory: 8M/20M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8:javadoc (default-cli) on project EJBProject : An error has occurred in JavaDocs report generation: [ERROR] Exit code: 1 - C:\jboss\workspace\TestPomProject\EJBProject\src\main\java\com\SampleEJB.java:6: package javax.ejb does not exist [ERROR] import javax.ejb.Local; [ERROR] ^ [ERROR] C:\jboss\workspace\TestPomProject\EJBProject\src\main\java\com\SampleEJB.java:7: package javax.ejb does not exist [ERROR] import javax.ejb.Remote; [ERROR] ^ [ERROR] \jboss\workspace\TestPomProject\EJBProject\src\main\java\com\SampleEJB.java:8: package javax.ejb does not exist [ERROR] import javax.ejb.SessionContext; [ERROR] ^ ... [ERROR] @EJB [ERROR] ^ [ERROR] java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc [ERROR] at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46) [ERROR] at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:811) [ERROR] at com.sun.tools.doclets.formats.html.ClassWriterImpl.writeClassDeprecationInfo(ClassWriterImpl.java:242) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildDeprecationInfo(ClassBuilder.java:229) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [ERROR] at java.lang.reflect.Method.invoke(Method.java:597) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [ERROR] at java.lang.reflect.Method.invoke(Method.java:597) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90) [ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108) [ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155) [ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164) [ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106) [ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64) [ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42) [ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [ERROR] at sun.reflect.DelegatingMethodA
Maven eclipse not fully functional
I'm using the Maven Apache plug in for eclipse because I'm to new to figure out the command line method but now that I've switched I'm having problems again. my maven plug in is installed but the list for the archetype catalogs are greyed out so I cant select them. every time I try to install a m2e connector I get this message {Problems occurred while performing installation: org/sat4j/minisat/core/AssertingClauseGenerator org/sat4j/minisat/core/AssertingClauseGenerator} I'm trying to point my eclipse.ini to my jdk but my computer wont let me save it (it reads access denied) when I bring up a project and choose run as my m2 eclipse maven options wont pop up please please please tell me how i can fix this -- View this message in context: http://maven.40175.n5.nabble.com/Maven-eclipse-not-fully-functional-tp5093334p5093334.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven plugin for dependency resolution
Hello, I am working on a maven plugin which is supposed to write a list of dependencies (all dependencies, also transitive ones) of the current artifact to the file. All those dependencies are OSGi bundles which are used in the following step in a pax runner to launch OSGi environment. I found aether and managed to write simple POC which lists dependencies that I need. However I have the following problem. I want my plugin to be usable in both maven-2.x and maven-3.x and I cannot force aether to work in maven-2.x. Is there some uniform way of getting all transitive dependencies of the current artifact which would be compatible with both maven-2.x and maven-3.x? For now I figured out that I can built separate JAR artifact which assemblies all needed depedencies (aether and others) and then simply do: Process p = Runtime .getRuntime() .exec("java -jar artifact.jar-with-dependencies.jar"); Yeah I know that it's ugly but it works :]. Another workaround would be to also have this separate JAR and jail it in my own classloader - not that hard to do. Anyway I cannot figure out straighforward solution. I would be thankful for any help. Kind Regards, Marek Psiuk
Re: maven-settings-builder-3.0.3 no default settings.xml
Hey Olivier, thanks for help. Your code works for user settings.xml located in ${user.home}/.m2/settings.xml but it does not work for global settings located in my %M2_HOME%/conf/settings.xml. This is probably caused by the fact that I am not executing your code from inside maven plugin. I am just running standalone java class which uses aether. Is there some easy solution for this? (currently, as a workaround, I do the global setting lookup manually by using the M2_REPO environment variable) Kind Regards, Marek Psiuk On Wed, Dec 21, 2011 at 10:46 PM, Olivier Lamy wrote: > are miss you > the best is to subscribe. > > > -- Forwarded message -- > From: Olivier Lamy > Date: 2011/12/21 > Subject: Re: maven-settings-builder-3.0.3 no default settings.xml > To: Maven Users List > > > Something like : > >SettingsBuildingRequest settingsBuildingRequest = new > DefaultSettingsBuildingRequest(); > >settingsBuildingRequest.setGlobalSettingsFile( > MavenCli.DEFAULT_GLOBAL_SETTINGS_FILE ); >settingsBuildingRequest.setUserSettingsFile( > MavenCli.DEFAULT_USER_SETTINGS_FILE ); > >settingsBuildingRequest.setUserProperties( add some properties ); > >return lookup( SettingsBuilder.class ).build( > settingsBuildingRequest ).getEffectiveSettings(); > > lookup is plexus lookup > > 2011/12/21 Marek Psiuk : > > Hello, > > > > I am working on a project which uses aether for resolving maven > artifacts. > > On the main aether site (https://docs.sonatype.org/display/AETHER/Home) > they > > suggest maven-settings-builder for resolving settings.xml. > > However in the newest artifact version: > > > http://maven.apache.org/ref/3.0.3/maven-settings-builder/apidocs/org/apache/maven/settings/building/SettingsBuilder.html > > I > > cannot find a method which just simply resolves default settings.xml > > without providing any parameters in SettingsBuildingRequest. > > In the previous maven-settings: > > > http://maven.apache.org/ref/2.2.1/maven-settings/apidocs/org/apache/maven/settings/MavenSettingsBuilder.html > > It > > was simple, one just invokes parameterless buildSettings method and he > got > > everything. > > > > Am I missing sth or has the new maven-settings-builder less features than > > version 2.2.1. > > > > Thanks for any help. > > > > > > I am not subscribe to the list so just please CC me. > > To be sure about having answers do it. > > > > > > > Kind Regards, > > > > Marek Psiuk > > > > P.S. > > > > For now I thinking about copying code from 2.2.1 which resolves default > > whereabouts of settings.xml and only then using > maven-settings-builder-3.0.3 > > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy > > > -- > Olivier Lamy > Talend: http://coders.talend.com > http://twitter.com/olamy | http://linkedin.com/in/olamy > >
Re: maven-settings-builder-3.0.3 no default settings.xml
Something like : SettingsBuildingRequest settingsBuildingRequest = new DefaultSettingsBuildingRequest(); settingsBuildingRequest.setGlobalSettingsFile( MavenCli.DEFAULT_GLOBAL_SETTINGS_FILE ); settingsBuildingRequest.setUserSettingsFile( MavenCli.DEFAULT_USER_SETTINGS_FILE ); settingsBuildingRequest.setUserProperties( add some properties ); return lookup( SettingsBuilder.class ).build( settingsBuildingRequest ).getEffectiveSettings(); lookup is plexus lookup 2011/12/21 Marek Psiuk : > Hello, > > I am working on a project which uses aether for resolving maven artifacts. > On the main aether site (https://docs.sonatype.org/display/AETHER/Home) they > suggest maven-settings-builder for resolving settings.xml. > However in the newest artifact version: > http://maven.apache.org/ref/3.0.3/maven-settings-builder/apidocs/org/apache/maven/settings/building/SettingsBuilder.html > I > cannot find a method which just simply resolves default settings.xml > without providing any parameters in SettingsBuildingRequest. > In the previous maven-settings: > http://maven.apache.org/ref/2.2.1/maven-settings/apidocs/org/apache/maven/settings/MavenSettingsBuilder.html > It > was simple, one just invokes parameterless buildSettings method and he got > everything. > > Am I missing sth or has the new maven-settings-builder less features than > version 2.2.1. > > Thanks for any help. > > > I am not subscribe to the list so just please CC me. To be sure about having answers do it. > > > Kind Regards, > > Marek Psiuk > > P.S. > > For now I thinking about copying code from 2.2.1 which resolves default > whereabouts of settings.xml and only then using maven-settings-builder-3.0.3 -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-settings-builder-3.0.3 no default settings.xml
Hello, I am working on a project which uses aether for resolving maven artifacts. On the main aether site (https://docs.sonatype.org/display/AETHER/Home) they suggest maven-settings-builder for resolving settings.xml. However in the newest artifact version: http://maven.apache.org/ref/3.0.3/maven-settings-builder/apidocs/org/apache/maven/settings/building/SettingsBuilder.html I cannot find a method which just simply resolves default settings.xml without providing any parameters in SettingsBuildingRequest. In the previous maven-settings: http://maven.apache.org/ref/2.2.1/maven-settings/apidocs/org/apache/maven/settings/MavenSettingsBuilder.html It was simple, one just invokes parameterless buildSettings method and he got everything. Am I missing sth or has the new maven-settings-builder less features than version 2.2.1. Thanks for any help. I am not subscribe to the list so just please CC me. Kind Regards, Marek Psiuk P.S. For now I thinking about copying code from 2.2.1 which resolves default whereabouts of settings.xml and only then using maven-settings-builder-3.0.3
Re: Missing artifact org.apache.cxf
Removing .. worked for me as well. thanks HIRRI El Houssein Amine -- View this message in context: http://maven.40175.n5.nabble.com/Missing-artifact-org-apache-cxf-tp4297947p5092134.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven migration
Maven 3 cannot use legacy Maven 1 repositories. You need a repo manager to convert it to Maven 2/3 layout. /Anders On Wed, Dec 21, 2011 at 13:52, chandrasheker wrote: > we are not using any Repository managers.my company repository is working > according maven1. > > -- > View this message in context: > http://maven.40175.n5.nabble.com/maven-migration-tp5091757p5091818.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven migration
we are not using any Repository managers.my company repository is working according maven1. -- View this message in context: http://maven.40175.n5.nabble.com/maven-migration-tp5091757p5091818.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven migration
Hi, are you using some kind of Repository Manager in your company like Nexus, Artifactory or Archiva ? If not the first step is to install one...Nexus supports Maven 1 as well (please check the docs...i'm not 100% sure..)... Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/maven-migration-tp5091757p5091807.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven migration
Hi, I am migrating the maven from maven 1.0.2 to maven 3.0.3.my company repository is working fine in maven 1.0.2 version,but not in maven 3.I am still using maven 1.0.2 related company repository.It is unable to connect the company repository(maven 3),it is pointing the maven central repo.plz help me what are the changes required in repository as well as settings.xml. Thanks & Regards, chandra -- View this message in context: http://maven.40175.n5.nabble.com/maven-migration-tp5091757p5091757.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Error on mvn install - MavenFilteringException
Hi. I'm having an issue running mvn install. I get the same error with or without the -U argument. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project genericIntegrationServer: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war failed: Unable to load the mojo 'war' in the plugin 'org.apache.maven.plugins:maven-war-plugin:2.1.1'. A required class is missing: org/apache/maven/shared/filtering/MavenFilteringException Has anyone seen this before? I can't find anyone else with the mojo issue and that specific MavenFilteringException. Thanks, Ed -- View this message in context: http://maven.40175.n5.nabble.com/Error-on-mvn-install-MavenFilteringException-tp5091560p5091560.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: wagon-ftp & site-plugin issue
Thanks a lot for the hint Robert best, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Tue, Dec 20, 2011 at 6:57 PM, Robert Scholte wrote: > > > I'm pretty sure you hit NET-409[1] and WAGON-357[2] > > Upgrading this dependency in the m-site-p will solve your problem. > > > > -Robert > > > > > > [1] https://issues.apache.org/jira/browse/NET-409 > > [2] http://jira.codehaus.org/browse/WAGON-357 > > > > >> Date: Tue, 20 Dec 2011 18:29:38 +0100 >> Subject: wagon-ftp & site-plugin issue >> From: simonetrip...@apache.org >> To: users@maven.apache.org >> >> Hi all guys, >> >> I'm deploying my sites via ftp using the wagon-ftp, the problem is >> that last bytes of transmitted files are always missing... I mean, >> when rendering the transmitted html pages, last tags are completely >> missing, images are truncated... if I deploy the site manually, using >> filezilla, everything looks well instead. >> >> The configuration is public[1]; Is there any additional config I missed? >> >> Many thanks in advance, all the best! >> -Simo >> >> [1] >> http://code.google.com/p/mybatis/source/browse/sub-projects/mybatis-parent/trunk/pom.xml#519 >> >> http://people.apache.org/~simonetripodi/ >> http://simonetripodi.livejournal.com/ >> http://twitter.com/simonetripodi >> http://www.99soft.org/ >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org