Re: Creating jar for RMI client
Is it an EJB client jar your asking about? Have a look here: http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html /Anders On Thu, Oct 22, 2009 at 04:08, Michael Remijan wrote: > I'm working on a older app which is an RMI server and client. The client > application needs interface classes and stub classes from the server and > previously we did this with ANT just pulling out the classes we needed. I > can't figure out how to do with with Maven though. Basically I need to > create an rmi client jar that's just a subset of the server jar. How can I > do this?
maven 3 and maven-bundle-plugin
Hey all, Just started testing maven 3 on our builds and noticed that it's causing some weirdness with the maven-bundle-plugin, in that my manifest doesn't seem to export all the desired packages anymore. i.e. I had exported org.hibernate.* - under maven 2.2.1 this would also export org.hibernate.envers, org.hibernate.search and any sub-package, under maven 3 I seem to only get org.hibernate exported. Anyone else seen this behavior? I'll see if I isolate exactly whats going on. -- Pull me down under...
Re: How can I find partent pom?
Probably because it's trying to resolve the model first, which can't be done without the parent. You usually would need to have this repo defined in your settings to bootstrap your system. This is one reason why we suggest not putting repos in your poms: http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ On Wed, Oct 21, 2009 at 10:00 PM, youhaodeyi wrote: > > I got one pom project and want to build it. There is an error indicate that > can't find parent POM. The parent POM is one the repository and I have set > this repository in this pom.xml. Why doesn't maven download its parent pom > from this repository? > -- > View this message in context: > http://www.nabble.com/How-can-I-find-partent-pom--tp26002852p26002852.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 unable to deliver adequate Copyright notices?
+1. We do this all the time at Apache. Fwiw, maven.apache.org isn't any official repo. it's repository.apache.org (for snapshots) and repo1.maven.org for releases. On Tue, Oct 20, 2009 at 9:31 AM, Jason van Zyl wrote: > On 2009-10-20, at 5:16 AM, Svante Schubert wrote: > >> Hi, >> >> I am a Maven fan and stumbled over a this: >> >> http://sourceforge.net/mailarchive/forum.php?thread_name=B4EA6C26949B4127960EE2A00780F643%40Sealion&forum_name=saxon-help >> >> Is this true? In any case, thought you might want to know... >> > > That post is FUD as far as I'm concerned. The problem is easily solved by > including any necessary license files or notices by including them in the > JAR. Then amazingly when the user gets the JAR they get the required > additions. There is inventional called a JAR file. It's pretty useful for > packaging things up and delivering them. > > The guy who posted this also appears to be from the company responsible for > producing Saxon, so unless they plan on suing people who use JARs coming > from Maven then there is no legal problem. They have to enforce it. Would be > easy enough to take the JARs they produce and put the notice files in the > JARs if their build is deficient in doing this. > > Maven is completely able to deliver copyright notices. You package them up > in the releases you create which is what we do at Apache. > >> Keep up the good work! >> Svante >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > Thanks, > > Jason > > -- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > -- > > > - > 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
Creating jar for RMI client
I'm working on a older app which is an RMI server and client. The client application needs interface classes and stub classes from the server and previously we did this with ANT just pulling out the classes we needed. I can't figure out how to do with with Maven though. Basically I need to create an rmi client jar that's just a subset of the server jar. How can I do this?
How can I find partent pom?
I got one pom project and want to build it. There is an error indicate that can't find parent POM. The parent POM is one the repository and I have set this repository in this pom.xml. Why doesn't maven download its parent pom from this repository? -- View this message in context: http://www.nabble.com/How-can-I-find-partent-pom--tp26002852p26002852.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-eclipse-plugin and src/main/webapp with Eclipse
Also, if you use WTP in Eclipse, it will work this way. I'd guess that if you would get it to work, Eclipse would probably build incorrect WAR-files because it would include the contents of that folder as both resources and as real web-application. So, just get used to it, it isn't broken and therefor doesn't need fixing! Roland > It doesn't really make sense for src/main/webapp to be a source folder - > it doesn't contain compilable source files. > > Justin > > -Original Message- > From: Vincent F [mailto:vincent.fu...@sgcib.com] > Sent: Wednesday, October 21, 2009 1:22 PM > To: users@maven.apache.org > Subject: maven-eclipse-plugin and src/main/webapp with Eclipse > > > Hi, > > I'm trying to move my current project structure to Maven Standard > Directory Layout, so that everything I had in /WebContent is now in > src/main/webapp . > It works fine for the packaging. > > However, when using maven-eclipse-plugin 2.7 to update my Eclipse > project and configuration files, I was expecting that src/main/webapp > would be seen by Eclipse like a source folder, just like src/main/java > and src/main/resources. Instead, it is seens as a regular folder, so I > have to drill down from src to main to webapp to access my files. > > I've tried several things in maven-eclipse-plugin configuration, like > > > src/main/webapp/**/*.* > > > for example, but it doesn't work. > > Is there a way to fix this ? Or maybe it is not meant to be fixed > because I shouldn't have src/main/webapp as a source folder ? > Any piece of advice would be appreciated > > Thanks > > -- > Vincent > > > > > > -- > View this message in context: > http://www.nabble.com/maven-eclipse-plugin-and-src-main-webapp-with-Ecli > pse-tp25996692p25996692.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 > > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-eclipse-plugin and src/main/webapp with Eclipse
On Thu, Oct 22, 2009 at 9:37 AM, Vincent F wrote: > > Thanks for your answer. I'm going to be very picky here, but is there a way > to have the src/main/webapp folder " folded as one in Eclipse, just like the > src/main/java and src/main/resources are ? Can you please post how you are running eclipse:eclipse? I suspect that you are not enabling wtp support. Have you read http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html I can see from the eclipse plugins code that if packaging = "war" then a source directory is added. The default is /src/main/webapp You can configure this via the warSourceDirectory property. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: order of builds in assembly plugin
Sure! two separate executions in the assembly , put the for each in one of the stanzas, and put each with a separate . Read http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html for more info on what phases are available, but as long as they are after your other work (compile/test I presume) then you can do them sequentially (for example, you could do package for the second one and prepare-package for the first one.) It's not "normal" maven behavior, and splitting into separate modules frequently makes sense, but I do this in more than one place in my project. Note that you're bypassing Maven's "dependency" scheme by doing this, though. You're accessing the files directly rather than using the dependency conventions. Dana Lacoste -Original Message- From: Radim Kolar [mailto:h...@sendmail.cz] Sent: Wednesday, October 21, 2009 3:52 PM To: users@maven.apache.org Subject: order of builds in assembly plugin is there way to change order of builds in assembly plugin? i need to build jar-with-dependencies first, descriptor zip.xml second (depends on jar-with-deps). org.apache.maven.plugins maven-assembly-plugin jar-with-dependencies zip.xml dmachine make-assembly package single directory-inline -- View this message in context: http://www.nabble.com/order-of-builds-in-assembly-plugin-tp26001508p26001508.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-eclipse-plugin and src/main/webapp with Eclipse
Thanks for your answer. I'm going to be very picky here, but is there a way to have the src/main/webapp folder " folded as one in Eclipse, just like the src/main/java and src/main/resources are ? Vincent justinedelson wrote: > > It doesn't really make sense for src/main/webapp to be a source folder - > it doesn't contain compilable source files. > > Justin > > -Original Message- > From: Vincent F [mailto:vincent.fu...@sgcib.com] > Sent: Wednesday, October 21, 2009 1:22 PM > To: users@maven.apache.org > Subject: maven-eclipse-plugin and src/main/webapp with Eclipse > > > Hi, > > I'm trying to move my current project structure to Maven Standard > Directory Layout, so that everything I had in /WebContent is now in > src/main/webapp . > It works fine for the packaging. > > However, when using maven-eclipse-plugin 2.7 to update my Eclipse > project and configuration files, I was expecting that src/main/webapp > would be seen by Eclipse like a source folder, just like src/main/java > and src/main/resources. Instead, it is seens as a regular folder, so I > have to drill down from src to main to webapp to access my files. > > I've tried several things in maven-eclipse-plugin configuration, like > > > src/main/webapp/**/*.* > > > for example, but it doesn't work. > > Is there a way to fix this ? Or maybe it is not meant to be fixed > because I shouldn't have src/main/webapp as a source folder ? > Any piece of advice would be appreciated > > Thanks > > -- > Vincent > > > > > > -- > View this message in context: > http://www.nabble.com/maven-eclipse-plugin-and-src-main-webapp-with-Ecli > pse-tp25996692p25996692.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 > > > -- View this message in context: http://www.nabble.com/maven-eclipse-plugin-and-src-main-webapp-with-Eclipse-tp25996692p26001637.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: order of builds in assembly plugin
On Wed, Oct 21, 2009 at 3:52 PM, Radim Kolar wrote: > > is there way to change order of builds in assembly plugin? i need to build > jar-with-dependencies first, > descriptor zip.xml second (depends on jar-with-deps). I would probably put them in separate modules with proper so Maven will do them in the right order. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
order of builds in assembly plugin
is there way to change order of builds in assembly plugin? i need to build jar-with-dependencies first, descriptor zip.xml second (depends on jar-with-deps). org.apache.maven.plugins maven-assembly-plugin jar-with-dependencies zip.xml dmachine make-assembly package single directory-inline -- View this message in context: http://www.nabble.com/order-of-builds-in-assembly-plugin-tp26001508p26001508.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: Copy resources from dependent maven projects
Unpack your dependencies and copy the resources from the unpacked dependencies. http://maven.apache.org/plugins/maven-dependency-plugin/unpack-dependencies-mojo.html Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Wed, Oct 21, 2009 at 6:08 PM, Winter wrote: > Hey guys, > > I'm searching for an issue of coping resources from dependent maven > projects > within the maven-assembly-plugin. > > The goal is to get all configuration files, from the assembled project and > all its dependencies. > > > > For example: > > Maven-Project A > >/src/main/java/.. > >/src/main/resources/config/file1.txt > > Maven-Project B > >/src/main/java/.. > >/src/main/resources/config/file2.txt > > Maven-Project B has Project A declared as dependency. > > > > When Maven-Project B is assembled, the result should be > > Maven-Project B > >/src/main/java/.. > >/src/main/resources/config/file2.txt > >/target/dist/config/file1.txt > >/target/dist/config/file2.txt > > > > C:\workspace\ProjectB> mvn assembly: assembly > > > > In fact, my current result is > > Maven-Project B > >/src/main/java/.. > >/src/main/resources/config/file2.txt > >/target/dist/config/file2.txt > > > > > > A simplified version of my configuration: > > Project B pom.xml > > ~ > > .. > > > > > > src/main/resources > > > > **/*.* > > > > > > > > .. > > > >maven-assembly-plugin > >2.2-beta-2 > > > > > > make-assembly > > install > > > > > assembly > > > > > > > > > > false > > target > > > false > > > true > > false > > > > > assembly.xml > > > > > > > > .. > > > > > > > > assembly.xml > > > > > >dist > > > > dir > > > >false > > > > > > > src/main/resources > > > > > **/*.* > > > > > target/dist > > > > > > > > > > The configuration is slightly adjusted to match to the example above. I > have > left out the part coping Jars. > > I used the dependency-plugin to copy the Jars into the target folder. > > But I can't use the resources-plugin (copy-resources), because I don't know > how many resources are placed in the dependent project. > > > > > > With regards, > > Erik-F Winter > > > >
Mavenizing IntelliJ Idea Community Edition
Hi folks, I have started converting the now open sourced IntelliJ Idea Community Edition to Maven. I pushed my work to GitHub: git://github.com/jschneider/org.jetbrains.idea.git http://github.com/jschneider/org.jetbrains.idea/tree/mavenize It is really a lot of work and I could need some help from you Maven fans out there. I think this is a great opportunity to show the benefits of Maven. If anyone wants to do any work, just clone the repository and post it back to GitHub. Sincerly, Johannes - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Test fails with Maven works with ant.
It works when I remove the javaee 6 dependency But that not really a solutions since I need this further on... What wrong with this dependency? 2009/10/21 Anders Hammar : > Sorry, I don't know more than the link I referred to. > > /Anders > > On Wed, Oct 21, 2009 at 15:58, Roel Veldhuizen > wrote: > >> So, if i understand this correct not all the jars dependencies are >> provided during the testing? Bellow the list of dependencies >> >> >> >> javax >> javaee-api >> 6.0-SNAPSHOT >> provided >> >> >> org.apache.axis >> axis >> 1.4 >> >> >> org.apache.axis >> axis-jaxrpc >> 1.4 >> >> >> commons-discovery >> commons-discovery >> 0.4 >> >> >> commons-logging >> commons-logging >> 1.1.1 >> >> >> wsdl4j >> wsdl4j >> 1.6.2 >> >> >> junit >> junit >> 4.7 >> >> >> log4j >> log4j >> 1.2.8 >> >> >> org.apache.axis >> axis-saaj >> 1.4 >> >> >> >> 2009/10/21 Anders Hammar : >> > Foung this similar issue: >> > http://forums.java.net/jive/message.jspa?messageID=226931 >> > >> > Stephen is reading this list, maybe he can fill in? >> > >> > /Anders >> > >> > On Wed, Oct 21, 2009 at 09:22, Roel Veldhuizen > >wrote: >> > >> >> The JDK's are both set 1.6. I'm using the default setting of Maven >> >> 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I >> >> pasted the ant concerning the junit tests. Maybe that will give some >> >> insights >> >> >> >> >> >> > >> uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2";> >> >> >> >> >> >> >> >> >> >> > >> failureproperty="tests.failed" fork="true" showoutput="true"> >> >> >> >> > >> excludes="@{excludes},${excludes}" includes="@{includes}"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> path="${j2ee.platform.embeddableejb.classpath}"/> >> >> >> >> >> >> >> >> > type="glob"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 2009/10/21 Anders Hammar : >> >> > What JDK are you using? Is the executing environment the exact same >> for >> >> > Maven and Ant? >> >> > >> >> > /Anders >> >> > >> >> > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen < >> roelveldhui...@gmail.com >> >> >wrote: >> >> > >> >> >> I have a test that fails when I use Maven and works when I use ant. >> >> >> The test looks like this: (junit 4.7) >> >> >> >> >> >> �...@test >> >> >> public void Login() { >> >> >> SugarBean b = new SugarBean(); >> >> >> b.login("roelveldhuizen", "md5trallala"); >> >> >> } >> >> >> >> >> >> The bean is going to invoke a web service which is build using Axis >> >> >> 1.4. The test will generate the following Exception >> >> >> >> >> >> java.lang.ClassFormatError: Absent Code attribute in method that is >> >> >> not native or abstract in class file javax/xml/rpc/ServiceException >> >> >> at java.lang.ClassLoader.defineClass1(Native Method) >> >> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) >> >> >> at >> >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> >> >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> >> >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) >> >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> >> >> at java.security.AccessController.doPrivileged(Native Method) >> >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> >> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> >> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> >> >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) >> >> >> >> >> >> - >> >> >> 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...@m
Re: Maven Surefire Plugin don't run JUnit tests if TestNG in dependencies
I'd say that if it doesn't work for you and you have a project that re-produces this, file a bug report. /Anders On Wed, Oct 21, 2009 at 16:16, Bulat Nigmatullin wrote: > I need someone to prove my suspicions. Please check provided project. > > -- > > Bulat Nigmatullin. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Test fails with Maven works with ant.
Sorry, I don't know more than the link I referred to. /Anders On Wed, Oct 21, 2009 at 15:58, Roel Veldhuizen wrote: > So, if i understand this correct not all the jars dependencies are > provided during the testing? Bellow the list of dependencies > > > > javax > javaee-api > 6.0-SNAPSHOT > provided > > > org.apache.axis > axis > 1.4 > > > org.apache.axis > axis-jaxrpc > 1.4 > > > commons-discovery > commons-discovery > 0.4 > > > commons-logging > commons-logging > 1.1.1 > > > wsdl4j > wsdl4j > 1.6.2 > > > junit > junit > 4.7 > > > log4j > log4j > 1.2.8 > > > org.apache.axis > axis-saaj > 1.4 > > > > 2009/10/21 Anders Hammar : > > Foung this similar issue: > > http://forums.java.net/jive/message.jspa?messageID=226931 > > > > Stephen is reading this list, maybe he can fill in? > > > > /Anders > > > > On Wed, Oct 21, 2009 at 09:22, Roel Veldhuizen >wrote: > > > >> The JDK's are both set 1.6. I'm using the default setting of Maven > >> 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I > >> pasted the ant concerning the junit tests. Maybe that will give some > >> insights > >> > >> > >> >> uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2";> > >> > >> > >> > >> > >> >> failureproperty="tests.failed" fork="true" showoutput="true"> > >> > >> >> excludes="@{excludes},${excludes}" includes="@{includes}"> > >> > >> > >> > >> > >> > >> > >> >> path="${j2ee.platform.embeddableejb.classpath}"/> > >> > >> > >> > >> type="glob"/> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> 2009/10/21 Anders Hammar : > >> > What JDK are you using? Is the executing environment the exact same > for > >> > Maven and Ant? > >> > > >> > /Anders > >> > > >> > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen < > roelveldhui...@gmail.com > >> >wrote: > >> > > >> >> I have a test that fails when I use Maven and works when I use ant. > >> >> The test looks like this: (junit 4.7) > >> >> > >> >>@Test > >> >>public void Login() { > >> >>SugarBean b = new SugarBean(); > >> >>b.login("roelveldhuizen", "md5trallala"); > >> >>} > >> >> > >> >> The bean is going to invoke a web service which is build using Axis > >> >> 1.4. The test will generate the following Exception > >> >> > >> >> java.lang.ClassFormatError: Absent Code attribute in method that is > >> >> not native or abstract in class file javax/xml/rpc/ServiceException > >> >> at java.lang.ClassLoader.defineClass1(Native Method) > >> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > >> >> at > >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > >> >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > >> >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > >> >> at java.security.AccessController.doPrivileged(Native Method) > >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > >> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > >> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > >> >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) > >> >> > >> >> - > >> >> 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 > >
FW: Problem with ${executedproject.compileSourceRoots}
Solved the problem myself - thanks. It was a typo and Maven instantiated an empty project instance. I need to be spanked for blindness ;-) Regards Alexander von Zitzewitz www.hello2morrow.com SonarJ Elevator Pitch: http://www.hello2morrow.com/videos/benefits +1 (877) 294-6327 -- Forwarded Message From: Alexander von Zitzewitz Reply-To: Maven Users List Date: Wed, 21 Oct 2009 14:49:04 -0400 To: Maven Users List Subject: Problem with ${executedproject.compileSourceRoots} Hello ! I am working on a plugin that needs to make sure that code is generated and everything is compiled. It then uses compileSourceRoots and target/classes to perform some static analysis on the code. The header of my Mojo looks like /** * Create SonarJ dependency XML report. * * @goal sonarj * @execute phase="compile" */ Before I tried to bind it to the ³verify² phase, but compileSourceRoots never contained the directories for generated sources unless the plugin was called as part of the ³verify² phase. If the plugin was called alone with ³mvn sonarj:sonarj² no phases are executed so that the generated-sources dircetories are not known to Maven and therefore also not known to my plugin. When I use execute-phase=²compile² it gets even worse. Now code generators and compiler are run, but ${executedProjects.compileSourceRoots} is an empty list. What am I missing here? I am using mvn --version Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400) Java version: 1.6.0_15 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac" Any help would be greatly appreciated Regards Alexander -- End of Forwarded Message - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: installing src or javadoc into local repository
Not quite the answer to your question, but mvn dependency:sources will download all available source jars for a project's dependencies (including transitive dependencies). There's no dependency:javadocs AFAIK, but it probably wouldn't be that hard to do (based on the source of the sources mojo). Justin -Original Message- From: jpswain [mailto:jpsw...@gmail.com] Sent: Tuesday, October 20, 2009 11:16 PM To: users@maven.apache.org Subject: Re: installing src or javadoc into local repository I looked at the link but I still have these questions: Is there any sane way to simply tell maven, "download and install src & javadoc for all artifacts in local repository"? If not is their at least a way to say, "install this jar with javadoc & src, AND ALSO the javadoc & src of all its transitive dependencies? I'm having a heck of a time with this! Thanks, Jamie Sean Davis-5 wrote: > > On Fri, Oct 2, 2009 at 8:35 PM, Roland Asmann > wrote: >> Check the install-mojo for this: >> http://maven.apache.org/plugins/maven-install-plugin/install-file-moj >> o.html >> >> Reinstall the jar into your repository and add the 'javadoc' and >> 'sources' >> switches or install them separately with the 'classifier' switch. > > Thanks, Roland. That is exactly what I needed. > >>> I apologize for the naive question in advance. I have installed an >>> external jar file into my local repository--very easy. The jar file >>> was built using ant as part of a third-party project. I would now >>> like to add the source and/or the javadocs to my local repository, >>> also. I have the source (in src/java/) and can generate the >>> javadoc. How can I install these files into my local repository (so >>> that I have the equivalent of the "download sources and javadocs")? >>> >>> Thanks, >>> Sean >>> >>> >>> - 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 > > > -- View this message in context: http://www.nabble.com/installing-src-or-javadoc-into-local-repository-tp25724190p25985910.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
Problem with ${executedproject.compileSourceRoots}
Hello ! I am working on a plugin that needs to make sure that code is generated and everything is compiled. It then uses compileSourceRoots and target/classes to perform some static analysis on the code. The header of my Mojo looks like /** * Create SonarJ dependency XML report. * * @goal sonarj * @execute phase="compile" */ Before I tried to bind it to the ³verify² phase, but compileSourceRoots never contained the directories for generated sources unless the plugin was called as part of the ³verify² phase. If the plugin was called alone with ³mvn sonarj:sonarj² no phases are executed so that the generated-sources dircetories are not known to Maven and therefore also not known to my plugin. When I use execute-phase=²compile² it gets even worse. Now code generators and compiler are run, but ${executedProjects.compileSourceRoots} is an empty list. What am I missing here? I am using mvn --version Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400) Java version: 1.6.0_15 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac" Any help would be greatly appreciated Regards Alexander
RE: maven-eclipse-plugin and src/main/webapp with Eclipse
It doesn't really make sense for src/main/webapp to be a source folder - it doesn't contain compilable source files. Justin -Original Message- From: Vincent F [mailto:vincent.fu...@sgcib.com] Sent: Wednesday, October 21, 2009 1:22 PM To: users@maven.apache.org Subject: maven-eclipse-plugin and src/main/webapp with Eclipse Hi, I'm trying to move my current project structure to Maven Standard Directory Layout, so that everything I had in /WebContent is now in src/main/webapp . It works fine for the packaging. However, when using maven-eclipse-plugin 2.7 to update my Eclipse project and configuration files, I was expecting that src/main/webapp would be seen by Eclipse like a source folder, just like src/main/java and src/main/resources. Instead, it is seens as a regular folder, so I have to drill down from src to main to webapp to access my files. I've tried several things in maven-eclipse-plugin configuration, like src/main/webapp/**/*.* for example, but it doesn't work. Is there a way to fix this ? Or maybe it is not meant to be fixed because I shouldn't have src/main/webapp as a source folder ? Any piece of advice would be appreciated Thanks -- Vincent -- View this message in context: http://www.nabble.com/maven-eclipse-plugin-and-src-main-webapp-with-Ecli pse-tp25996692p25996692.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 2 and axis 1.4
I have no proxy. Follows below the dependencies to pom.xml : org.apache.axis axis 1.4 org.apache.axis axis-jaxrpc 1.4 org.apache.axis axis-saaj 1.4 commons-discovery commons-discovery 0.2 commons-logging commons-logging 1.0.4 I believe that is correct and that I don't forgot to declare dependencies. It is very strange. -- View this message in context: http://www.nabble.com/Maven-2-and-axis-1.4-tp25980267p25997105.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
controlling order that repositories are checked for artifacts
Hello All, How can I configure maven such that my organization's repository is checked last? I currently have the repositories configured as: ngdc-repo NGDC Maven Repository https://intranet.ngdc.noaa.gov/m2 Do I have to explicitly add in the default repository? Thanks! --john - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: SunCertPathBuilderException
Thanks Martin, that helped a lot. The link for the instructions on configuring JSSE to use this new jssecacert file as the truststore was broken, but I simply replaced the $JAVA_HOME/jre/lib/security/cacerts w/ it. --john Martin Gainty wrote: > did you get a chance to add the PKIX certificate to your trusted keystore? > http://blogs.sun.com/andreas/entry/no_more_unable_to_find > Martin Gainty > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > >> Date: Tue, 20 Oct 2009 16:21:36 -0600 >> From: john.c.cartwri...@noaa.gov >> Subject: SunCertPathBuilderException >> To: users@maven.apache.org >> >> Hello All, >> >> We have a local repository located behind SSL using a self-signed >> certificate. When maven tries to retrieve an artifact from it, I get the >> following exception: >> >> Error transferring file: sun.security.validator.ValidatorException: PKIX >> path building failed: >> sun.security.provider.certpath.SunCertPathBuilderException: unable to find >> valid certification path to requested target >> >> >> Can someone please help me configure my pom.xml to work around this? >> >> Thanks! >> >> --john >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > _ > Hotmail: Trusted email with powerful SPAM protection. > http://clk.atdmt.com/GBL/go/177141665/direct/01/ > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-eclipse-plugin and src/main/webapp with Eclipse
Hi, I'm trying to move my current project structure to Maven Standard Directory Layout, so that everything I had in /WebContent is now in src/main/webapp . It works fine for the packaging. However, when using maven-eclipse-plugin 2.7 to update my Eclipse project and configuration files, I was expecting that src/main/webapp would be seen by Eclipse like a source folder, just like src/main/java and src/main/resources. Instead, it is seens as a regular folder, so I have to drill down from src to main to webapp to access my files. I've tried several things in maven-eclipse-plugin configuration, like src/main/webapp/**/*.* for example, but it doesn't work. Is there a way to fix this ? Or maybe it is not meant to be fixed because I shouldn't have src/main/webapp as a source folder ? Any piece of advice would be appreciated Thanks -- Vincent -- View this message in context: http://www.nabble.com/maven-eclipse-plugin-and-src-main-webapp-with-Eclipse-tp25996692p25996692.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
Copy resources from dependent maven projects
Hey guys, I'm searching for an issue of coping resources from dependent maven projects within the maven-assembly-plugin. The goal is to get all configuration files, from the assembled project and all its dependencies. For example: Maven-Project A /src/main/java/.. /src/main/resources/config/file1.txt Maven-Project B /src/main/java/.. /src/main/resources/config/file2.txt Maven-Project B has Project A declared as dependency. When Maven-Project B is assembled, the result should be Maven-Project B /src/main/java/.. /src/main/resources/config/file2.txt /target/dist/config/file1.txt /target/dist/config/file2.txt C:\workspace\ProjectB> mvn assembly: assembly In fact, my current result is Maven-Project B /src/main/java/.. /src/main/resources/config/file2.txt /target/dist/config/file2.txt A simplified version of my configuration: Project B pom.xml ~ .. src/main/resources **/*.* .. maven-assembly-plugin 2.2-beta-2 make-assembly install assembly false target false true false assembly.xml .. assembly.xml dist dir false src/main/resources **/*.* target/dist The configuration is slightly adjusted to match to the example above. I have left out the part coping Jars. I used the dependency-plugin to copy the Jars into the target folder. But I can't use the resources-plugin (copy-resources), because I don't know how many resources are placed in the dependent project. With regards, Erik-F Winter
Re: Maven 2 and axis 1.4
> I checked the repository and the path of the pom.xml is correct. All the > jars are there : http://repo1.maven.org/maven2/org/apache/axis/ This doesn't make much sense to me either. Are you perhaps using a proxy like Artifactory, Nexus, Archiva etc or are you hitting Central directly? If you have no proxy, I would suggest you open a Jira issue about this. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven assembly and onejar goal
Dear all, I have a project which depends of two library A and B. Both (jar) have a directory named META-INF/services/ with in a file named "config" for example. However the content of the file "config" is different for the two libraries. My project use the assembly plugin with one-jar goal. When I perform an assembly, I get my-project-onejar.jar within a META-INF/services/config file which is the content of the file from the library B. My problem is that I want to have the content of the file from the library A. I think this problem occurs because the add operation is performed by using the lexicographic order on the groupId associated with libraries. Like groupId(A) < groupId(B) the one-jar goal add first the config file from A and then it is replaced by the config file of B. Does someone know where to find the one-jar.xml descriptor and how I can edit it in order to exclude file from a specific library identified by a groupId and an artifactId ? I try to do something like that : META-INF/services/config In this case B will not replace the existing file from A. How does someone has an another idea ? Thanks. Kind Regards Laurent - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven on z/OS
Hi Herve, I managed to pass this issue by specifying in my settings.xml files and in the one in \conf\. So I decided lets try something else. /u/uli/home/Mercury/Mercury/imf/codegen: >mvn help:system -X -e + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500) Java version: 1.6.0 Java home: /usr/lpp/java/J6.0 Default locale: en_US, platform encoding: CP1047 OS name: "z/os" version: "01.06.00" arch: "s390" Family: "unix" [DEBUG] Building Maven user-level plugin registry from: '/u/uli/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/u/uli/home/maven/apache-maven-2.2.1/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown POM Location: /u/uli/home/Mercury/Mercury/imf/codegen/pom.xml Reason: Not a v4.0.0 POM. for project unknown at /u/uli/home/Mercury/Mercury/imf/codegen/pom.xml [INFO] [DEBUG] Trace org.apache.maven.reactor.MavenExecutionException: Not a v4.0.0 POM. for project unknown at /u/uli/home/Mercury/Mercury/imf/codege n/pom.xml at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272) 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:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:612) 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.project.InvalidProjectModelException: Not a v4.0.0 POM. for project unknown at /u/uli/home/Mercury/Me rcury/imf/codegen/pom.xml at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1599) at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1571) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391) ... 12 more [INFO] [INFO] Total time: 30 seconds [INFO] Finished at: Wed Oct 21 09:14:41 CDT 2009 [INFO] Final Memory: 3M/256M [INFO] Then I changed the pom.xml file in this directory to also contain encoding=cp1047. The result was: /u/uli/home/Mercury/Mercury/imf: >mvn help:system -X -e + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500) Java version: 1.6.0 Java home: /usr/lpp/java/J6.0 Default locale: en_US, platform encoding: CP1047 OS name: "z/os" version: "01.06.00" arch: "s390" Family: "unix" [DEBUG] Building Maven user-level plugin registry from: '/u/uli/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/u/uli/home/maven/apache-maven-2.2.1/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo [DEBUG] maven-help-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins:pom:11 for project: null:maven-help-plugin:maven-plugin:2.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent:pom:8 for project: org.apache.maven.plugins:maven-plugins:pom:11 fro m the repository. [DEBUG] Retrieving parent-POM: org.apache:apache:pom:4 for project: org.apache.maven:maven-parent:pom:8 from the repository. [INFO] [ERROR] FATAL ERROR [INFO]
Re: Maven 2 and axis 1.4
Hi, I'm using axis 1.4 with Maven and I don't problems. I'll share the pom I'm using. I'm using the axistools-maven-plugin. > org.codehaus.mojo > axistools-maven-plugin > 1.3 > > src/wsdl2j/wsdl > com.renfe.maximo.ws.gen > false > true > false > > > > > wsdl2java > > > > > And I have these dependencies. > org.apache.axis > axis > 1.4 > compile > > > axis > axis-jaxrpc > 1.4 > compile > > > commons-discovery > commons-discovery > 0.4 > compile > > > wsdl4j > wsdl4j > 1.6.2 > compile > > > axis > axis-saaj > 1.4 > > I've successfully build an Axis WAR file and deployed it on WAS. I'm using Maven 2.2.1 but I've also tried this successfully with Maven 2.2.0. Best regards, -- António Jacob Costa IBM Certified Deployment Professional - Maximo V6 EAM MAXIMO Consultant and Software Engineer LinkedIn: http://www.linkedin.com/in/antoniojacobcosta -- On Wed, Oct 21, 2009 at 15:48, Kakau wrote: > > Hi! > > I'll try adding axis2. In repository I don't find axis-jaxrpc jar ( > http://repo1.maven.org/maven2/org/apache/axis2/ ). > Do you know if there is axis-jaxrpc jar in axis2 ? > > Thanks! > > > mangrar wrote: > > > > It is very strange. Why don't you try adding axis2 1.4.1? I'm using it > and > > I > > don't have any problem. > > > > 2009/10/20 Wayne Fay > > > >> > I added axis-1.4.jar in pom.xml, but when I enter the command mvn > clean > >> > install, the maven just frozen (don't show the problem...). If I added > >> > axis-1.3.jar in pom.xml, the maven works fine. But I need axis-1.4.jar > >> :-( > >> > >> What does mvn -X clean install show? > >> > >> Wayne > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > > > -- > > "Computer science is not about computers any more than astronomy is about > > telescopes." E.W. Dijkstra (1930-2002) > > > > > > -- > View this message in context: > http://www.nabble.com/Maven-2-and-axis-1.4-tp25980267p25992910.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 Surefire Plugin don't run JUnit tests if TestNG in dependencies
I need someone to prove my suspicions. Please check provided project. -- Bulat Nigmatullin. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Surefire Plugin don't run JUnit tests if TestNG in dependencies
If you have a project to reproduce, it would be great if you created a jira so that it could be fixed. http://jira.codehaus.org/browse/SUREFIRE /Anders On Wed, Oct 21, 2009 at 15:51, Bulat Nigmatullin wrote: > According to >> http://maven.apache.org/plugins/maven-surefire-plugin/usage.html >> it should work with both TestNG and JUnit. >> > > I read that, but it don't true. I attached example project, that prove my > words. > > I removed TestNG from dependencies. > > Bulat Nigmatullin > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >
Re: Problem with mvn site:run and javadocs
Done. Thanks Lukas. On 10/21/09 3:42 AM, "Lukas Theussl" wrote: > > Please attach your findings here: > > http://jira.codehaus.org/browse/MSITE-220 > > Cheers, > -Lukas > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Test fails with Maven works with ant.
So, if i understand this correct not all the jars dependencies are provided during the testing? Bellow the list of dependencies javax javaee-api 6.0-SNAPSHOT provided org.apache.axis axis 1.4 org.apache.axis axis-jaxrpc 1.4 commons-discovery commons-discovery 0.4 commons-logging commons-logging 1.1.1 wsdl4j wsdl4j 1.6.2 junit junit 4.7 log4j log4j 1.2.8 org.apache.axis axis-saaj 1.4 2009/10/21 Anders Hammar : > Foung this similar issue: > http://forums.java.net/jive/message.jspa?messageID=226931 > > Stephen is reading this list, maybe he can fill in? > > /Anders > > On Wed, Oct 21, 2009 at 09:22, Roel Veldhuizen > wrote: > >> The JDK's are both set 1.6. I'm using the default setting of Maven >> 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I >> pasted the ant concerning the junit tests. Maybe that will give some >> insights >> >> >> > uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2";> >> >> >> >> >> > failureproperty="tests.failed" fork="true" showoutput="true"> >> >> > excludes="@{excludes},${excludes}" includes="@{includes}"> >> >> >> >> >> >> >> > path="${j2ee.platform.embeddableejb.classpath}"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 2009/10/21 Anders Hammar : >> > What JDK are you using? Is the executing environment the exact same for >> > Maven and Ant? >> > >> > /Anders >> > >> > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen > >wrote: >> > >> >> I have a test that fails when I use Maven and works when I use ant. >> >> The test looks like this: (junit 4.7) >> >> >> >> �...@test >> >> public void Login() { >> >> SugarBean b = new SugarBean(); >> >> b.login("roelveldhuizen", "md5trallala"); >> >> } >> >> >> >> The bean is going to invoke a web service which is build using Axis >> >> 1.4. The test will generate the following Exception >> >> >> >> java.lang.ClassFormatError: Absent Code attribute in method that is >> >> not native or abstract in class file javax/xml/rpc/ServiceException >> >> at java.lang.ClassLoader.defineClass1(Native Method) >> >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) >> >> at >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> >> at java.security.AccessController.doPrivileged(Native Method) >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) >> >> >> >> - >> >> 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
Is archiver with snapshot dependencies producing correct classpath
I was using 'addClasspath' with manifest section of jar plugin and noticed that uniquely versioned snapshot dependencies seem to produce following Class-Path values (with classpathMavenRepositoryLayout) groupId/artifactId/version-timestamp/artifactId-version-SNAPSHOT.jar I presume groupId/artifactId/version-SNAPSHOT/artifactId-version-timestamp.jar would be the correct presentation? -- View this message in context: http://www.nabble.com/Is-archiver-with-snapshot-dependencies-producing-correct-classpath-tp25993024p25993024.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 2 and axis 1.4
Hi! I'll try adding axis2. In repository I don't find axis-jaxrpc jar ( http://repo1.maven.org/maven2/org/apache/axis2/ ). Do you know if there is axis-jaxrpc jar in axis2 ? Thanks! mangrar wrote: > > It is very strange. Why don't you try adding axis2 1.4.1? I'm using it and > I > don't have any problem. > > 2009/10/20 Wayne Fay > >> > I added axis-1.4.jar in pom.xml, but when I enter the command mvn clean >> > install, the maven just frozen (don't show the problem...). If I added >> > axis-1.3.jar in pom.xml, the maven works fine. But I need axis-1.4.jar >> :-( >> >> What does mvn -X clean install show? >> >> Wayne >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > > -- > "Computer science is not about computers any more than astronomy is about > telescopes." E.W. Dijkstra (1930-2002) > > -- View this message in context: http://www.nabble.com/Maven-2-and-axis-1.4-tp25980267p25992910.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 2 and axis 1.4
Hi! With the command mvn -X clean install, the maven entered in loop: [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] axis:axis:jar:1.4:compile (selected for compile) [DEBUG] While downloading axis:axis-jaxrpc:1.4 This artifact has been relocated to org.apache.axis:axis-jaxrpc:1.4. [DEBUG] While downloading org.apache.axis:axis-jaxrpc:1.4 This artifact has been relocated to org.apache.axis:axis-jaxrpc:1.4. [DEBUG] While downloading org.apache.axis:axis-jaxrpc:1.4 This artifact has been relocated to org.apache.axis:axis-jaxrpc:1.4. ... I checked the repository and the path of the pom.xml is correct. All the jars are there : http://repo1.maven.org/maven2/org/apache/axis/ Any idea? Thanks -- View this message in context: http://www.nabble.com/Maven-2-and-axis-1.4-tp25980267p25992436.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 Surefire Plugin don't run JUnit tests if TestNG in dependencies
According to http://maven.apache.org/plugins/maven-surefire-plugin/usage.html it should work with both TestNG and JUnit. What I'm wondering about is why TestNG is getting into your classpath. Your dependency should typically have a test scope dependency to TestNG, which will be omitted in the transitive dependency. Something is strange here. Or do you have a dependency to an artifact including test classes which have compile scope dependency to TestNG? One way to solve this is to add a dependency exclusion for TestNG on your dependency. /Anders On Wed, Oct 21, 2009 at 14:54, Bulat Nigmatullin wrote: > I have a project with a lot of JUnit test. Recently I've added new > dependency wich have TestNG in it's dependencies. From that moment > Surefire plugins don't run JUnit test anymore. It seems to me that > Surefire tries to find TestNG tests but not find them and don't search > for JUnit tests. Is this behaviour correct and how can i fix this? > > I have the following line in log: > > --- > T E S T S > --- > Running TestSuite > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.117 > sec > > Results : > > Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > > Best regards, > Bulat Nigmatullin > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Maven Surefire Plugin don't run JUnit tests if TestNG in dependencies
I have a project with a lot of JUnit test. Recently I've added new dependency wich have TestNG in it's dependencies. From that moment Surefire plugins don't run JUnit test anymore. It seems to me that Surefire tries to find TestNG tests but not find them and don't search for JUnit tests. Is this behaviour correct and how can i fix this? I have the following line in log: --- T E S T S --- Running TestSuite Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.117 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 Best regards, Bulat Nigmatullin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven2 project debug in netbeans
Hi there, just wondering if anyone else had this problem. I have a maven project in netbeans and when I want to debug something regardless of the position of the breakpoint the debugging starts at the first line of the program, which is a pain if it's a longer project. strangely it work correctly if it's just a normal netbeans project. thanks, Tamas -- View this message in context: http://www.nabble.com/Maven2-project-debug-in-netbeans-tp25991744p25991744.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: Netbeans SOA Project
I made a switch from Netbeans Ant projects to Maven projects. I achieved almost everything by finding a plugin that does what I want (like deployment) and sometimes changing the way I do it a tiny bit. And the more complex custom build tasks can be achieved by using the existing ant-run plugin for maven (which runs ant tasks), or if it's really complex, something ant can't do then you can write your own plugin. Quintin Beukes On Wed, Oct 21, 2009 at 11:47 AM, Entner Harald wrote: > Hello, > > has anyone tried to migrate from Netbeans (which uses ant as build > script) to Maven. I face some serious problems doing so, with Bpel- and > Composite Application Modules. > > I see two solutions (both are not perfect): > > - servicemix from apache, which seems not to be applicable with existing > project structures. (Additionally we are using OpenESB) > - write my own plugin, that invokes the ant tasks defined in the > build-impl.xml, created by netbeans (currently i'm going that way, but > i'm wondering if there is not a better solution) > > All other things are already running (contract first webservices, jaxb > code generation, ..) > > thx > > Harald > > - > 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
Using apache ant inside a surefire test
Hi there, I didn't find a solution or even suggestion online to the following issue I'm having. I've developed a small ant-Task and build it with maven2. The ant task is supposed to throw a BuildException under certain circumstances. To test the task, I've created two junit tests, which invoke ant's Launcher during their test methods. One invocation is expected to pass, one is expected to fail and produce the BuildException. Within the test method, I've surrounded the invocation to the Launchers run method with try and catch, the Exception still propagates to surrounding surefire plugin and causes the maven2 build to fail. What should I do, to prevent the surefire plugin from seeing the BuildException thrown by the ant task? Greetings, Thomas
Re: Error Using Java default package
Finished. Just created a profile in Maven's *$home/.m2/settings.xml* file with my property and used in the *pom.xml* and it was it. Best regards, -- António Jacob Costa IBM Certified Deployment Professional - Maximo V6 EAM MAXIMO Consultant and Software Engineer LinkedIn: http://www.linkedin.com/in/antoniojacobcosta -- On Wed, Oct 21, 2009 at 11:08, Antonio Jacob Costa wrote: > Hi again, > > Did it using a new executable in the maven-compiler-plugin. Now just have > to find out how to make the path to this executable independent of the home > as we are different people contributing to this project. > > > org.apache.maven.plugins > maven-compiler-plugin > > 1.3 > 1.3 > true > 1.3 > D:\Apps\Java\jdk131_08\bin\javac.exe > > > > Best regards, > -- > António Jacob Costa > IBM Certified Deployment Professional - Maximo V6 EAM > > MAXIMO Consultant and Software Engineer > LinkedIn: http://www.linkedin.com/in/antoniojacobcosta > -- > > > > On Wed, Oct 21, 2009 at 10:09, Antonio Jacob Costa > wrote: > >> Hi everyone, >> >> I'm having trouble using the Java default package. In my Java class I'm >> including a library from a 3rd party application that includes classes in >> the default package. I have to import one of them and when I compile it with >> Maven I get the following error. >> >> [ERROR] BUILD FAILURE >>> [INFO] >>> >>> [INFO] Compilation failure >>> >>> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,21] '.' >>> expected >>> >>> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,22] ';' >>> expected >>> >>> >>> [INFO] >>> >>> [INFO] Trace >>> org.apache.maven.BuildFailureException: Compilation failure >>> >> >> I'm solving this problem compiling this class using Eclipse but it would >> be much better if I could just do everything with Maven. Does anyone know >> how to solve this problem? >> >> I'm using Maven 2.2.1 but it also failed with version 2.2.0 and 2.1.0. >> >> Thanks in advance. >> >> Best regards, >> -- >> António Jacob Costa >> IBM Certified Deployment Professional - Maximo V6 EAM >> >> MAXIMO Consultant and Software Engineer >> LinkedIn: http://www.linkedin.com/in/antoniojacobcosta >> -- >> >> >
Netbeans SOA Project
Hello, has anyone tried to migrate from Netbeans (which uses ant as build script) to Maven. I face some serious problems doing so, with Bpel- and Composite Application Modules. I see two solutions (both are not perfect): - servicemix from apache, which seems not to be applicable with existing project structures. (Additionally we are using OpenESB) - write my own plugin, that invokes the ant tasks defined in the build-impl.xml, created by netbeans (currently i'm going that way, but i'm wondering if there is not a better solution) All other things are already running (contract first webservices, jaxb code generation, ..) thx Harald - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error Using Java default package
Hi again, Did it using a new executable in the maven-compiler-plugin. Now just have to find out how to make the path to this executable independent of the home as we are different people contributing to this project. org.apache.maven.plugins maven-compiler-plugin 1.3 1.3 true 1.3 D:\Apps\Java\jdk131_08\bin\javac.exe Best regards, -- António Jacob Costa IBM Certified Deployment Professional - Maximo V6 EAM MAXIMO Consultant and Software Engineer LinkedIn: http://www.linkedin.com/in/antoniojacobcosta -- On Wed, Oct 21, 2009 at 10:09, Antonio Jacob Costa wrote: > Hi everyone, > > I'm having trouble using the Java default package. In my Java class I'm > including a library from a 3rd party application that includes classes in > the default package. I have to import one of them and when I compile it with > Maven I get the following error. > > [ERROR] BUILD FAILURE >> [INFO] >> >> [INFO] Compilation failure >> >> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,21] '.' >> expected >> >> D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,22] ';' >> expected >> >> >> [INFO] >> >> [INFO] Trace >> org.apache.maven.BuildFailureException: Compilation failure >> > > I'm solving this problem compiling this class using Eclipse but it would be > much better if I could just do everything with Maven. Does anyone know how > to solve this problem? > > I'm using Maven 2.2.1 but it also failed with version 2.2.0 and 2.1.0. > > Thanks in advance. > > Best regards, > -- > António Jacob Costa > IBM Certified Deployment Professional - Maximo V6 EAM > > MAXIMO Consultant and Software Engineer > LinkedIn: http://www.linkedin.com/in/antoniojacobcosta > -- > >
Re: installing src or javadoc into local repository
Hello, Check this http://maven.apache.org/plugins/maven-eclipse-plugin/m2eclipse-mojo.html#downloadSources 2009/10/21 Lewis, Eric > Yes, m2eclipse can do that: You can right click on the dependency and > choose to download the sources. > However, I don't know whether you can do that for all dependencies at once. > > Best regards, > Eric > > > -Ursprüngliche Nachricht- > > Von: Roland Asmann [mailto:roland.asm...@cfc.at] > > Gesendet: Mittwoch, 21. Oktober 2009 10:21 > > An: Maven Users List > > Betreff: Re: installing src or javadoc into local repository > > > > Personally I use the maven-eclipse-plugin for that... > > > > mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true > > > > Not sure if the M2Eclipse -plugin can do the same, maybe > > someone who knows can > > shed a light (or already did, working through the list of > > unread messages as > > I write this). > > > > Roland > > > > > > On Wednesday 21 October 2009 05:16, jpswain wrote: > > > I looked at the link but I still have these questions: > > > Is there any sane way to simply tell maven, "download and > > install src & > > > javadoc for all artifacts in local repository"? > > > > > > If not is their at least a way to say, "install this jar > > with javadoc & > > > src, AND ALSO the javadoc & src of all its transitive > > dependencies? I'm > > > having a heck of a time with this! > > > > > > Thanks, > > > Jamie > > > > > > Sean Davis-5 wrote: > > > > On Fri, Oct 2, 2009 at 8:35 PM, Roland Asmann > > > > > > > > > > wrote: > > > >> Check the install-mojo for this: > > > >> > > http://maven.apache.org/plugins/maven-install-plugin/install-f > > ile-mojo.h > > > >>tml > > > >> > > > >> Reinstall the jar into your repository and add the 'javadoc' and > > > >> 'sources' > > > >> switches or install them separately with the 'classifier' switch. > > > > > > > > Thanks, Roland. That is exactly what I needed. > > > > > > > >>> I apologize for the naive question in advance. I have > > installed an > > > >>> external jar file into my local repository--very easy. > > The jar file > > > >>> was built using ant as part of a third-party project. > > I would now > > > >>> like to add the source and/or the javadocs to my local > > repository, > > > >>> also. I have the source (in src/java/) and can generate the > > > >>> javadoc. How can I install these files into my local > > repository (so > > > >>> that I have the equivalent of the "download sources and > > javadocs")? > > > >>> > > > >>> Thanks, > > > >>> Sean > > > >>> > > > >>> > > - > > > >>> 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 > > > > -- > > Roland Asmann > > > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > > Bäckerstrasse 1/2/7 > > A-1010 Wien > > FN 266155f, Handelsgericht Wien > > > > Tel.: +43/1/513 88 77 - 27 > > Fax.: +43/1/513 88 62 > > Email: roland.asm...@cfc.at > > Web: www.cfc.at > > > > - > > 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 > > -- Regards, Alexander
Re: maven-release-plugin auto-increment ?
in reality it's this method: http://maven.apache.org/maven-release/maven-release-manager/xref/org/apache/maven/shared/release/versions/DefaultVersionInfo.html#202 2009/10/21 Stephen Connolly > > http://maven.apache.org/maven-release/maven-release-manager/xref/org/apache/maven/shared/release/phase/MapVersionsPhase.html#165 > > 2009/10/21 David Meunier > > Hi all, >> >> Does anyone knows "auto-increment rules" of the maven-release-plugin or >> where to find documentation about that ? >> >> I put 1.8.a1-0-SNAPSHOT version in my POM and when i release, the next >> version becomes 1.8.a2-0-SNAPSHOT, and i wonder why it's not >> 1.8.a1-1-SNAPSHOT ? >> >> NB : when i put 1.8.1-0-SNAPSHOT, i get 1.8.1-1-SNAPSHOT after release. >> >> Best regards, >> David Meunier. >> >> >
Re: maven-release-plugin auto-increment ?
http://maven.apache.org/maven-release/maven-release-manager/xref/org/apache/maven/shared/release/phase/MapVersionsPhase.html#165 2009/10/21 David Meunier > Hi all, > > Does anyone knows "auto-increment rules" of the maven-release-plugin or > where to find documentation about that ? > > I put 1.8.a1-0-SNAPSHOT version in my POM and when i release, the next > version becomes 1.8.a2-0-SNAPSHOT, and i wonder why it's not > 1.8.a1-1-SNAPSHOT ? > > NB : when i put 1.8.1-0-SNAPSHOT, i get 1.8.1-1-SNAPSHOT after release. > > Best regards, > David Meunier. > >
maven-release-plugin auto-increment ?
Hi all, Does anyone knows "auto-increment rules" of the maven-release-plugin or where to find documentation about that ? I put 1.8.a1-0-SNAPSHOT version in my POM and when i release, the next version becomes 1.8.a2-0-SNAPSHOT, and i wonder why it's not 1.8.a1-1- SNAPSHOT ? NB : when i put 1.8.1-0-SNAPSHOT, i get 1.8.1-1-SNAPSHOT after release. Best regards, David Meunier.
AW: installing src or javadoc into local repository
Yes, m2eclipse can do that: You can right click on the dependency and choose to download the sources. However, I don't know whether you can do that for all dependencies at once. Best regards, Eric > -Ursprüngliche Nachricht- > Von: Roland Asmann [mailto:roland.asm...@cfc.at] > Gesendet: Mittwoch, 21. Oktober 2009 10:21 > An: Maven Users List > Betreff: Re: installing src or javadoc into local repository > > Personally I use the maven-eclipse-plugin for that... > > mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true > > Not sure if the M2Eclipse -plugin can do the same, maybe > someone who knows can > shed a light (or already did, working through the list of > unread messages as > I write this). > > Roland > > > On Wednesday 21 October 2009 05:16, jpswain wrote: > > I looked at the link but I still have these questions: > > Is there any sane way to simply tell maven, "download and > install src & > > javadoc for all artifacts in local repository"? > > > > If not is their at least a way to say, "install this jar > with javadoc & > > src, AND ALSO the javadoc & src of all its transitive > dependencies? I'm > > having a heck of a time with this! > > > > Thanks, > > Jamie > > > > Sean Davis-5 wrote: > > > On Fri, Oct 2, 2009 at 8:35 PM, Roland Asmann > > > > > > > wrote: > > >> Check the install-mojo for this: > > >> > http://maven.apache.org/plugins/maven-install-plugin/install-f > ile-mojo.h > > >>tml > > >> > > >> Reinstall the jar into your repository and add the 'javadoc' and > > >> 'sources' > > >> switches or install them separately with the 'classifier' switch. > > > > > > Thanks, Roland. That is exactly what I needed. > > > > > >>> I apologize for the naive question in advance. I have > installed an > > >>> external jar file into my local repository--very easy. > The jar file > > >>> was built using ant as part of a third-party project. > I would now > > >>> like to add the source and/or the javadocs to my local > repository, > > >>> also. I have the source (in src/java/) and can generate the > > >>> javadoc. How can I install these files into my local > repository (so > > >>> that I have the equivalent of the "download sources and > javadocs")? > > >>> > > >>> Thanks, > > >>> Sean > > >>> > > >>> > - > > >>> 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 > > -- > Roland Asmann > > CFC Informationssysteme Entwicklungsgesellschaft m.b.H > Bäckerstrasse 1/2/7 > A-1010 Wien > FN 266155f, Handelsgericht Wien > > Tel.: +43/1/513 88 77 - 27 > Fax.: +43/1/513 88 62 > Email: roland.asm...@cfc.at > Web: www.cfc.at > > - > 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: installing src or javadoc into local repository
Personally I use the maven-eclipse-plugin for that... mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true Not sure if the M2Eclipse -plugin can do the same, maybe someone who knows can shed a light (or already did, working through the list of unread messages as I write this). Roland On Wednesday 21 October 2009 05:16, jpswain wrote: > I looked at the link but I still have these questions: > Is there any sane way to simply tell maven, "download and install src & > javadoc for all artifacts in local repository"? > > If not is their at least a way to say, "install this jar with javadoc & > src, AND ALSO the javadoc & src of all its transitive dependencies? I'm > having a heck of a time with this! > > Thanks, > Jamie > > Sean Davis-5 wrote: > > On Fri, Oct 2, 2009 at 8:35 PM, Roland Asmann > > > > wrote: > >> Check the install-mojo for this: > >> http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.h > >>tml > >> > >> Reinstall the jar into your repository and add the 'javadoc' and > >> 'sources' > >> switches or install them separately with the 'classifier' switch. > > > > Thanks, Roland. That is exactly what I needed. > > > >>> I apologize for the naive question in advance. I have installed an > >>> external jar file into my local repository--very easy. The jar file > >>> was built using ant as part of a third-party project. I would now > >>> like to add the source and/or the javadocs to my local repository, > >>> also. I have the source (in src/java/) and can generate the > >>> javadoc. How can I install these files into my local repository (so > >>> that I have the equivalent of the "download sources and javadocs")? > >>> > >>> Thanks, > >>> Sean > >>> > >>> - > >>> 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 -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: roland.asm...@cfc.at Web: www.cfc.at - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Error Using Java default package
Hi everyone, I'm having trouble using the Java default package. In my Java class I'm including a library from a 3rd party application that includes classes in the default package. I have to import one of them and when I compile it with Maven I get the following error. [ERROR] BUILD FAILURE > [INFO] > > [INFO] Compilation failure > > D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,21] '.' > expected > > D:\...\maximo-52\src\main\java\com\actuate\ActuateReport.java:[17,22] ';' > expected > > > [INFO] > > [INFO] Trace > org.apache.maven.BuildFailureException: Compilation failure > I'm solving this problem compiling this class using Eclipse but it would be much better if I could just do everything with Maven. Does anyone know how to solve this problem? I'm using Maven 2.2.1 but it also failed with version 2.2.0 and 2.1.0. Thanks in advance. Best regards, -- António Jacob Costa IBM Certified Deployment Professional - Maximo V6 EAM MAXIMO Consultant and Software Engineer LinkedIn: http://www.linkedin.com/in/antoniojacobcosta --
Re: Problem with mvn site:run and javadocs
Please attach your findings here: http://jira.codehaus.org/browse/MSITE-220 Cheers, -Lukas Rick Mangi wrote: Hello, I'm encountering a strange problem with the generation of my javadocs report in the maven site plugin. If I run mvn javadoc:javadoc it generates the javadocs, but when I run mvn site:run and browse to the javadocs report I see the following in the console: /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/web/filter/rew rite/DefaultRewriteHandler.java:18: cannot find symbol symbol : variable LogFactory location: class com.nickonline.web.filter.rewrite.DefaultRewriteHandler protected static final Log log = LogFactory ^ java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc And in the browser I get a bunch of messages similar to the following: HTTP ERROR: 500 Error rendering Maven report: Exit code: 1 - /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java :7: package net.sf.ehcache does not exist import net.sf.ehcache.CacheManager; ^ /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java :18: cannot find symbol symbol : class CacheManager location: interface com.nickonline.ir.BaseIR public void setCacheManager(CacheManager cacheManager); ^ /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java :19: cannot find symbol symbol : class CacheManager location: interface com.nickonline.ir.BaseIR public CacheManager getCacheManager(); ^ /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. java:3: package net.sf.ehcache does not exist import net.sf.ehcache.CacheManager; ^ /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. java:5: package org.apache.commons.logging does not exist import org.apache.commons.logging.Log; ^ /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. java:6: package org.apache.commons.logging does not exist import org.apache.commons.logging.LogFactory; ^ I'm pretty stumped on this. If I run - 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: Test fails with Maven works with ant.
Foung this similar issue: http://forums.java.net/jive/message.jspa?messageID=226931 Stephen is reading this list, maybe he can fill in? /Anders On Wed, Oct 21, 2009 at 09:22, Roel Veldhuizen wrote: > The JDK's are both set 1.6. I'm using the default setting of Maven > 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I > pasted the ant concerning the junit tests. Maybe that will give some > insights > > > uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2";> > > > > > failureproperty="tests.failed" fork="true" showoutput="true"> > > excludes="@{excludes},${excludes}" includes="@{includes}"> > > > > > > > path="${j2ee.platform.embeddableejb.classpath}"/> > > > > > > > > > > > > > > 2009/10/21 Anders Hammar : > > What JDK are you using? Is the executing environment the exact same for > > Maven and Ant? > > > > /Anders > > > > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen >wrote: > > > >> I have a test that fails when I use Maven and works when I use ant. > >> The test looks like this: (junit 4.7) > >> > >>@Test > >>public void Login() { > >>SugarBean b = new SugarBean(); > >>b.login("roelveldhuizen", "md5trallala"); > >>} > >> > >> The bean is going to invoke a web service which is build using Axis > >> 1.4. The test will generate the following Exception > >> > >> java.lang.ClassFormatError: Absent Code attribute in method that is > >> not native or abstract in class file javax/xml/rpc/ServiceException > >> at java.lang.ClassLoader.defineClass1(Native Method) > >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) > >> at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > >> at java.security.AccessController.doPrivileged(Native Method) > >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) > >> > >> - > >> 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: Test fails with Maven works with ant.
The JDK's are both set 1.6. I'm using the default setting of Maven 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I pasted the ant concerning the junit tests. Maybe that will give some insights http://www.netbeans.org/ns/j2ee-ejbjarproject/2";> 2009/10/21 Anders Hammar : > What JDK are you using? Is the executing environment the exact same for > Maven and Ant? > > /Anders > > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen > wrote: > >> I have a test that fails when I use Maven and works when I use ant. >> The test looks like this: (junit 4.7) >> >> �...@test >> public void Login() { >> SugarBean b = new SugarBean(); >> b.login("roelveldhuizen", "md5trallala"); >> } >> >> The bean is going to invoke a web service which is build using Axis >> 1.4. The test will generate the following Exception >> >> java.lang.ClassFormatError: Absent Code attribute in method that is >> not native or abstract in class file javax/xml/rpc/ServiceException >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) >> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) >> >> - >> 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