Problems with javadoc plugin
Hello, We're having problems with javadoc plugin. It all started when we tried to set up a new Hudson build configuration for JDK1.6. Now configuration's name contained "(" symbol and maven-javadoc-plugin-2.5 stopped to work. Example of error at [1]. Then we switched to version 2.6. It helped! But now all builds were *extremely* slow. At the slowest time console showed lines like this; [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6:javadoc' has not be previously called for the project: 'org.apache.cayenne.itests:pojo:jar:3.1-SNAPSHOT'. Trying to invoke it... The strange thing is that this operation is noop, there aren't any javadocs to generate (or there are few)! So some analizys takes a lot of time (more than 10 minutes for our project). At [2] there's a console log for this case (sorry, it's big!) then we switched to 2.6.1 hoping the problem was fixed there. Alas, it is same slow and broke our builds absolutely. Don't know the reason, the log is at [3]. So our questions are: 1. Why javadoc generation became so slow in 2.6? 2. What's the reason of regression in 2.6.1? [1]. http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/5/jdk=JDK%201.6%20%28latest%29/console [2]. http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/jdk=JDK%201.6%20%28latest%29/24/consoleFull [3]. http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/22/jdk=JDK%201.6%20%28latest%29/console Thanks in advance, Andrey
Re: Persistence
I read the full blog and I didn't say "never ever do it" but just mentioned that it's a bad idea, and that's what the title of the blog (and my opinion) is :) I should have added "it's a bad idea in most cases" though. - martin Am Tuesday 03 November 2009 22:43:59 schrieb Anders Hammar: > If you read the full blog post you'll see that it is not black and white. > There are use cases for putting it in the pom. > > /Anders > > On Tue, Nov 3, 2009 at 17:07, Martin Höller wrote: > > Am Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar: > > > One way of adding a repo is explained here: > > > > http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-mav > >en > > > > >-2.html However, you can add it in the pom as well. Which way to go kind > > > > of > > > > > depends on your scenario. Adding the the pom makes i portable, while > > > > adding > > > > > it to the settings.xml file forces everyone to do this configure to > > > their environment. > > > > Note, that adding repositories to your POM is a bad idea: > > > > http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-p > >oms-is-a-bad-idea/ > > > > hth, > > - martin -- Martin Höller | martin.hoel...@xss.co.at *x Software + Systeme | http://www.xss.co.at/ Karmarschgasse 51/2/20 | Tel: +43-1-6060114-40 A-1100 Vienna, Austria | Fax: +43-1-6060114-71 signature.asc Description: This is a digitally signed message part.
can maven assembly plugin be used for the configuration and installation?
Hi all, Hi all, I am looking for an open source installer to install some application software (java based s/w programme) and i do not want to commit any sort of change in registry. The installer should perform following actions: 1. License Terms: Accept/Reject selection by user 2. User must select installation folder, default is c:\..\.. 3. Run a bat file/script to install mysql, activemq. 4. Run a bat file/script to configure the toolset 5. Install application as an independent platform 6. Catch errors and display to user 7. Display confirmation After googling, I once thought maven assemblies could be an option. Has anyone worked on something similar? Has anyone tried maven assembly plugin to use this application? Please let me know if anyone has got any relevant information and or such installer. I have tried some like NSIS, GhostInstaller, Nvin installer, Witem installer etc. I would like to focus on open source java installers. If anyone has used any of them, I would welcome its reviews. Thanks in advance. -- View this message in context: http://old.nabble.com/can-maven-assembly-plugin-be-used-for-the-configuration-and-installation--tp26191705p26191705.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
Tomcat plugin problem
Hi all; I am using tomcat plugin to run my war project. When I use this plugin form eclipse; it works very well. i found a folder tomcat created in the target folder. But when running from command prompt it worked. And then i cleaned project. Once my project is cleaned, running tomcat:run simply failed. What i found might be the error is no more tomcat folder in my target location. Can you describe the situation for me so I can get a idea of how should I get this problem resolved. Regards, Vijay Shanker Dubey
Re: Maven Enforcer Plugin
On Wed, Nov 4, 2009 at 1:00 PM, Patel, Ronak Avinash (US SSA) wrote: > Hi All, > > I have a Maven Multimodule project where one of my modules is using the Maven > Enforcer plugin to ensure that my module build is only successfully run on > Unix. [del] > Obviously when I execute the Maven build on Windows, I see a warning that I > am not on Unix and then Maven proceeds to build the project anyway. > > My question is: is there any way to get Maven to failFast on the warning and > skip building this particular Maven Module? I'm not sure that enforcer is the correct approach. With Maven you can't take away something once it is added. An alternative is to use a profile, that way maven doesn't even attempt to build your module on non-conforming systems. In your parent project add something like: run-only-on-linux linux unix YOUR_MODULE_NAME_HERE - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: EJB 2.0 artifacts
> Turns out that org.apache.openejb:javaee-api:5.0-1 had what I needed. For future reference... the Geronimo project is another source of the API jars (org.apache.geronimo.specs in Central). Also Sun is releasing some of these API jars as part of Project Glassfish (in dev.java.net repo). Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Global transitive depedency exclude
> because there are times when two versions of jars are there in lib which > causes problems while deployed war runs on server. Also I have seen I saw your follow up post and wanted to let you know one common way that two versions of jars end up in your war's lib directory... Suppose an artifact "xyz" was using groupId "abc" until version 2.0.4, and then switched over to "com.abc" for version 2.0.5 and above. Some dependencies might pull in abc:xyz:2.0.1 while others pull in com.abc:xyz:2.0.5. Maven does not realize those are different versions of the "same" artifact, so the usual dependency resolution process does not work as it should. The only way to deal with this is to analyze your dependency tree and prune the unwanted artifacts, which is just what you said you are doing. Another common way this happens is when you run "mvn package" repeatedly, and change versions of dependencies etc but then never run "mvn clean" so your /target folder is full of older build dependencies that are no longer being used. You should run "mvn clean" periodically to clean things up, or even better, use a continuous integration server (Hudson etc) that ensures your builds are clean every time they are performed. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Enforcer Plugin
> > org.apache.maven.plugins > maven-enforcer-plugin You aren't locking down the version so even if a version of this plugin was available that would fail your build (I'm not sure if there is -- I don't use that feature), there's a good chance you'd be using an earlier version that doesn't do what you want. Check the docs to make sure m-e-p supports what you want, and then add a declaration in there so you're sure you get the right plugin version so it does what you expect. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Persistence
If you read the full blog post you'll see that it is not black and white. There are use cases for putting it in the pom. /Anders On Tue, Nov 3, 2009 at 17:07, Martin Höller wrote: > Am Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar: > > One way of adding a repo is explained here: > > > http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-maven > >-2.html However, you can add it in the pom as well. Which way to go kind > of > > depends on your scenario. Adding the the pom makes i portable, while > adding > > it to the settings.xml file forces everyone to do this configure to their > > environment. > > Note, that adding repositories to your POM is a bad idea: > > http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ > > hth, > - martin >
using activation property in profiles?
i am trying to use the profiles in my parent pom like this dev env dev client I want only the client module which is a child module in my project to build and install when i call like this > mvn -Denv=dev clean install I do it and nothing happens how can this be done? Any help is appreciated -- View this message in context: http://old.nabble.com/using-activation-property-in-profiles--tp26163656p26163656.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: Specifying a different POM file
i am trying to use the profiles in my parent pom like this dev env dev client I want only the client module which is a child module in my project to build and install when i call like this > mvn -Denv=dev clean install I do it and nothing happens how can this be done? chicagopooldude wrote: > > I wanted to know if there is a way you can specify a different pom file to > maven at the top level other than the default "pom.xml". we have multiple > modules which maybe not be required for some developers and we want to add > fewer modules in another parent pom which also deploys the application to > local tomcat. Is there any way we can achieve that. Any help is > appreciated. > -- View this message in context: http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26163644.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 Enforcer Plugin
Hi All, I have a Maven Multimodule project where one of my modules is using the Maven Enforcer plugin to ensure that my module build is only successfully run on Unix. So, my configuration is as follows: org.apache.maven.plugins maven-enforcer-plugin enforce-os validate enforce linux unix false true Obviously when I execute the Maven build on Windows, I see a warning that I am not on Unix and then Maven proceeds to build the project anyway. My question is: is there any way to get Maven to failFast on the warning and skip building this particular Maven Module? Thanks!! Ronak Patel Senior Software Engineer BAE Systems NS San Diego, CA
Re: How to get the command "maven test:test" to delete test files before executing?
This is one of many possible ways of doing it : add an antrun configuration and attach it to the validate ( very first ) phase. This antrun should do teh *.tmp deletion that you need though its task Then execute maven as mvn validate test:test --sony On Tue, Nov 3, 2009 at 3:26 PM, laredotornado wrote: > > Hi, > > I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I > can run "maven test:test" to execute all of my unit tests. I would like > that when I type this command, the first thing that happens is that all > files in the current directory matching "*.tmp" get deleted (in case a > previous test run crashed). How can I customize the "maven test:test" > command to delete the temporary files before it starts its test run? > > Thanks, - Dave > > -- > View this message in context: > http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26163569p26163569.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 > >
help getting classpath entry into manifest for jar-with-dependencies assembly
I want to add the jar dependencies into the jar manifest classpath entry for the jar-with-dependencies assembly plugin and I am having no luck: assembly xml: jar-with-dependencies jar false core-jar/target/classes / / *false* runtime plugin declaration: maven-assembly-plugin 2.2-beta-2 ${stage.dir}/${label} src/assemble/assembly-jar-with-dependencies.xml src/assemble/assembly.xml true ${mainClass.name} The original jar contains the correct manifest I want: Main-Class: AscendPublisher-Core-1.0-SNAPSHOT Class-Path: ./commons-collections-3.2.jar ./cstplus-2.1.3.jar ./gmd-co mmon-27.4.0.jar ./ri92_GMDClient-27.4.0.jar ./jt400-4.0.jar ./jms-1.4 .0.jar ./jdom-1.0.jar ./log4j-1.2.15.jar ./mail-1.4.jar ./activation- 1.1.jar ./jmxtools-1.2.1.jar ./jmxri-1.2.1.jar ./tibjms-4.4.3.jar ./f xg-security-client-1.0.3.jar ./commons-dbcp-1.2.2.jar ./commons-pool- 1.3.jar ./spring-1.2.8.jar ./commons-lang-2.4.jar ./slf4j-api-1.5.6.j ar ./slf4j-log4j12-1.5.6.jar but the assembly does not: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: 733639 Build-Jdk: 1.5.0_17 Main-Class: com.fedex.ground.asc.AscendPublisher --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com ---
How to get the command "maven test:test" to delete test files before executing?
Hi, I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I can run "maven test:test" to execute all of my unit tests. I would like that when I type this command, the first thing that happens is that all files in the current directory matching "*.tmp" get deleted (in case a previous test run crashed). How can I customize the "maven test:test" command to delete the temporary files before it starts its test run? Thanks, - Dave -- View this message in context: http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26160628p26160628.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
How to get the command "maven test:test" to delete test files before executing?
Hi, I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I can run "maven test:test" to execute all of my unit tests. I would like that when I type this command, the first thing that happens is that all files in the current directory matching "*.tmp" get deleted (in case a previous test run crashed). How can I customize the "maven test:test" command to delete the temporary files before it starts its test run? Thanks, - Dave -- View this message in context: http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26160630p26160630.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
How to get the command "maven test:test" to delete test files before executing?
Hi, I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I can run "maven test:test" to execute all of my unit tests. I would like that when I type this command, the first thing that happens is that all files in the current directory matching "*.tmp" get deleted (in case a previous test run crashed). How can I customize the "maven test:test" command to delete the temporary files before it starts its test run? Thanks, - Dave -- View this message in context: http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26160626p26160626.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: How to get the command "maven test:test" to delete test files before executing?
If you are already using IO to create files, use IO in the @Before method to use the same IO to DELETE those files. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Tue, Nov 3, 2009 at 12:54 PM, laredotornado wrote: > > Hi, > > I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I > can run "maven test:test" to execute all of my unit tests. I would like > that when I type this command, the first thing that happens is that all > files in the current directory matching "*.tmp" get deleted (in case a > previous test run crashed). How can I customize the "maven test:test" > command to delete the temporary files before it starts its test run? > > Thanks, - Dave > > -- > View this message in context: > http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26160626p26160626.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 > >
How to get the command "maven test:test" to delete test files before executing?
Hi, I'm using Maven 1.1 with Java 1.5 on a Mac 10.5.6. In my test directory, I can run "maven test:test" to execute all of my unit tests. I would like that when I type this command, the first thing that happens is that all files in the current directory matching "*.tmp" get deleted (in case a previous test run crashed). How can I customize the "maven test:test" command to delete the temporary files before it starts its test run? Thanks, - Dave -- View this message in context: http://old.nabble.com/How-to-get-the-command-%22maven-test%3Atest%22-to-delete-test-files-before-executing--tp26163569p26163569.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: Global transitive depedency exclude
Currently after looking around i did not find any Global transitive dependency exclude in maven. So i used mvn dependency:tree and see where the jar that being pulled from and use excludes to main parent pom under dependencyManagement. chicagopooldude wrote: > > I am working on getting a war file from our project using maven, we > initially had around 120+ jars in lib which have become cluttered that's > one of the reasons to move to Maven. Now due to transitive dependencies we > have around 180+ jars in web-inf/lib. I have tried excluding each > transitive jars using dependency:tree method with success. I wanted to > know if there is any other way to globally disable transitive dependency > in the whole project because there are times when two versions of jars in > lib which causes problems while deployed war runs on server. Also I have > seen true in > assembly plugin can this be used to build war minus all the jars which we > dont need?. Any help is appreciated and thanks for seeing this post. > -- View this message in context: http://old.nabble.com/Global-transitive-depedency-exclude-tp26079185p26160484.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: Specifying a different POM file
Another option is to define the modules in a profile. 2009/11/3 chicagopooldude > > I wanted to know if there is a way you can specify a different pom file to > maven at the top level other than the default "pom.xml". we have multiple > modules which maybe not be required for some developers and we want to add > fewer modules in another parent pom which also deploys the application to > local tomcat. Is there any way we can achieve that. Any help is > appreciated. > -- > View this message in context: > http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26160205.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 > >
Configuring repositories with Maven, Eclipse and Nexus
Hello, I want to configure Maven, Eclipse and Nexus, but I am doing something wrong. 1) I have Eclipse 3.5 2) I've installed Maven 2.2.1 and configured a local repository in settings.xml: C:\Archivos de programa\Apache Software Foundation\iss-maven-repository 3) I´ve installed m2eclipse 4) I have installed Nexus Sonatype 1.4.0 and I've downloaded remote indexes from Nexus repositories. Then I open eclipse and it begins to update indexes (maybe because of the embedded maven): Updating index http://repo1.maven.org/maven2/ Downloading central : nexus-maven-repository-index.gz When it finishes this upload (about 15 minutes), I add the maven installation in Window-->Preferences and I modify the C:\Documents and Settings\...\.m2\settings.xml like that: nexus * http://localhost:8081/nexus/content/groups/public nexus central http://central true true central http://central true true nexus And I click on Reindex local repository. I receive the error: 3/11/09 17:09:45 CET: [WARN] Error scanning context: local Cannot delete C:\Workspaces\ISS_maven2\.metadata\.plugins\org.maven.ide.eclipse\nexus\loca l\_4.cfs 3/11/09 17:09:45 CET: Unable to reindex local repository Then I remove the http://repo1.maven.org/maven2 index from eclipse view "Maven Indexes", restart Eclipse and in "Maven Indexes" I update the local index properly. But now, if I want to create a new maven project, nothing appears in Nexus Indexer. And if I create a project and convert it to maven and try to add a dependency, nothing appears. Only appear dependencies and artifacts when I add the maven index http://repo1.maven.org/maven2. Could you help me, please? Thanks a lot. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: EJB 2.0 artifacts
On Tuesday 03 November 2009 11:00:24 am Jason Voegele wrote: > I am converting an Ant project that uses EJB 2.0 classes from the javax.ejb > package (EJBObject, EJBHome, EJBMetaData) to use Maven. The Ant build > works by compiling against an ejb.jar file in the project's lib directory. > For the Maven build, I am wondering if there are any existing Maven > artifacts for EJB 2.0 on any public repository? I've searched around a > bit, and although I've found some artifacts that claim to contain these > javax.ejb classes, they all seem to have them bundled with something else. > Any pointers? Turns out that org.apache.openejb:javaee-api:5.0-1 had what I needed. -- Jason Voegele We're here to give you a computer, not a religion. -- attributed to Bob Pariseau, at the introduction of the Amiga - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Persistence
Am Tuesday 03 November 2009 11:43:43 schrieb Anders Hammar: > One way of adding a repo is explained here: > http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-maven >-2.html However, you can add it in the pom as well. Which way to go kind of > depends on your scenario. Adding the the pom makes i portable, while adding > it to the settings.xml file forces everyone to do this configure to their > environment. Note, that adding repositories to your POM is a bad idea: http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ hth, - martin signature.asc Description: This is a digitally signed message part.
EJB 2.0 artifacts
I am converting an Ant project that uses EJB 2.0 classes from the javax.ejb package (EJBObject, EJBHome, EJBMetaData) to use Maven. The Ant build works by compiling against an ejb.jar file in the project's lib directory. For the Maven build, I am wondering if there are any existing Maven artifacts for EJB 2.0 on any public repository? I've searched around a bit, and although I've found some artifacts that claim to contain these javax.ejb classes, they all seem to have them bundled with something else. Any pointers? Thanks. -- Jason Voegele It has been said that man is a rational animal. All my life I have been searching for evidence which could support this. -- Bertrand Russell - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Specifying a different POM file
You can take a look at the advanced reactor options.[1] Or simply use the -f option to specify another pom file. [1] http://www.sonatype.com/people/2009/10/maven-tips-and-tricks-advanced-reactor-options/ Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Nov 3, 2009 at 4:42 PM, chicagopooldude wrote: > > I wanted to know if there is a way you can specify a different pom file to > maven at the top level other than the default "pom.xml". we have multiple > modules which maybe not be required for some developers and we want to add > fewer modules in another parent pom which also deploys the application to > local tomcat. Is there any way we can achieve that. Any help is > appreciated. > -- > View this message in context: > http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26160205.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: Using a self dependency
I solved the self depedency by moving the web start part to another module and making the jar part into another module and added web start part to have jar part as a dependency. chicagopooldude wrote: > > I have module which has source which needs to be compiled jared ( Jar > file) then I would have to get a jnlp file from template file which > contains the main method from the jar i have generated in step1. This all > happens in ant build.xml I am using one pom.xml file for this which > creates jar and one plugin to get jnlp out webstart-maven-plugin. The > trouble is this webstart-maven-plugin plugin has not yet received jar from > step until the end to use to make jnlp. How can this self dependency be > dealt with. Please help and thanks in advance. > > -- View this message in context: http://old.nabble.com/Using-a-self-dependency-tp25824105p26160210.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
Specifying a different POM file
I wanted to know if there is a way you can specify a different pom file to maven at the top level other than the default "pom.xml". we have multiple modules which maybe not be required for some developers and we want to add fewer modules in another parent pom which also deploys the application to local tomcat. Is there any way we can achieve that. Any help is appreciated. -- View this message in context: http://old.nabble.com/Specifying-a-different-POM-file-tp26160205p26160205.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 Appassembler, Assembly and script file encoding
I'm using the Assembly plugin to generate a ZIP of my application. Is it possible to get i to convert the encoding of files automatically when creating the ZIP? I'm using the appassembler script to generate a unix shell script, which gets included in my ZIP. When this is extracted on Z/OS it is of course just garbled stuff as the default text encoding on Z/OS is EBCDIC . So I basically need to find out either how to convert, or make appassembler generate in a different encoding. Any ideas? Thanks, Anders, -- Anders Sveen http://blog.f12.no - http://twitter.com/anderssv
disregard report-plugins when doing mvn install on multi-module
Hello One of my projects is a maven plugin generating a report. The plugins depends on quite a lot of other projects of mine. I would like to use this plugin to generate reports for all of my projects. As the projects depends only on the plugin when the site is generated and not during the default lifecycle I can safely invoke mvn install on all of my projects in the right order, after this I can do the same with mvn site. However a multi-module parent for all my projects complains about a cycle even when I invoke only the default lifecycle. Can I tell the reactor to disregard dependendencies (reporting-plugings) not needed for the current seleccted goal, or at least to ignore those in a different lifecycle? Cheers, reto - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: debug the web module in the maven project
mvnDebug On Tue, Nov 3, 2009 at 7:19 AM, maven apache wrote: > 2009/11/3 maven apache > > > Hi: > > I have been confused by this problem for a long time. > > I am using the "eclipse-jee-ganymede-SR2-win32",generally when I create a > > new dynamic web project I can debug it within the eclipse IDE,just right > > click the project-- Run as--run on server,then the tomcat will startup, I > > can add breakpoint to debug. > > And now use maven to manager the project,it contain several modules > include > > the web module which is to be deployed. So how debug this web module use > the > > above manner? > > I have tried everything and got nothing in the search engine,so I have to > > post this thread. > > Looking forward some advise. > > Thanks. > > > Urgent ,nobody at line>? >
Re: tracking down jetty/tomcat dependencies
( IIRC xalan is used for xslt transformation. xerces is teh parser ) I think the war file is supposed to be self sufficient - meaning it should contain all teh jar files/libraries application needs. This is is what maven's war packaging does - it puts all the dependency artifacts inside WEB-INF/lib directory of the war file. ( make sure none of the dependencies are given provided at teh war's pom.xml. Did you check this ? most of the app servers I know load the library from WEB-INF/lib first and falls back on teh app server's classpath only if the class is not found there. ideally I would not want any of the classpath components inherited by teh running container ( jetty/tomcat ) But I dont think there is a way to turn off this inheritance --sony On Tue, Nov 3, 2009 at 5:53 AM, Benson Margulies wrote: > I'm still wishing that someone could help me figure out just what is on the > classpath inside of tomcat:run. > > To a first approximation, jetty:run and tomcat:run had the same problem. > However, I was a able to cure it in jetty and not in tomcat. It LOOKS as if > tomcat is depending on an old version of Xalan. > > > On Fri, Oct 30, 2009 at 5:16 AM, Benson Margulies >wrote: > > > I wrote it up on the mojo user list once I got a clearer picture, but > here > > goes again. > > > > The code calls DocumentBuilderFactory and SchemaFactory to parse an XML > > file to DOM with schema validation. Run in the plugins, it fails with an > > impossible validation error (a claim that a valid attribute is invalid). > The > > backtrace shows a combination of xerces and JDK classes. I have xerces in > > the webapp's class path. > > > > The same code works fine, with or without xerces, run as a pojo or a > junit > > test. > > > > If I try to use 100% Xerces by referring to their implementation classes > > (DocumentBuilderImpl and XMLSchemaFactory) it still fails in the plugins. > > > > The problem goes away if I use the new JAXP 1.4 APIs to force the use of > > Xerces. > > > > I reason as follows: in a live copy of tomcat or jetty, the 'system' > > classpath is whatever jars are sitting in the containers system library > > directory. When these plugins deploy a webapp, they don't have a system > > library directory. They instead have whatever classpath maven invokes > them > > with, based on their declared dependencies and the transitive closure > that > > reaches into plexus and such. There could easily be some ancient xml-apis > > jar in there, or some other source of interference, which I am not > > preempting in my webapp. > > > > If dependency:tree worked for a plugin classpath, then I might be able to > > figure out the real source of the problem and fix it by tinkering with > > dependencies on the plugin. But I can't figure out how to get a full tree > > for maven-tomcat-plugin (e.g.). > > > > > > On Thu, Oct 29, 2009 at 10:32 PM, Brett Randall >wrote: > > > >> On Fri, Oct 30, 2009 at 6:45 AM, Benson Margulies < > bimargul...@gmail.com > >> >wrote: > >> > >> > I've got code that works fine when run as a pojo and fails when run in > a > >> > webapp, either via tomcat:run or jetty:run. I suspect, because I can't > >> > think > >> > of anything else, that there is detritus in the 'system' classpaths of > >> > these > >> > containers. However, mvn dependency:tree does not tell me much about > the > >> > maven-jetty-plugin. Neither does dependency:resolve-plugins. > >> > > >> > Is there some way to get a clearer view of this question? > >> > > >> > >> What is the mode of failure? > >> > >> Brett > >> > > > > >
RE: Persistence
you'll need to install the package/artifactId/version from eclipse plugins site http://www.eclipse.org/eclipselink/downloads/ i suggest contacting eclipse support for any issues with their installer 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: Mon, 2 Nov 2009 16:16:28 -0800 > Subject: Persistence > From: jjinsantac...@gmail.com > To: users@maven.apache.org > > Hi - > > I'm very new to maven but, from what I understand, maven will download jars > as needed from repo sites. However, it continually claimed it could not > download org.eclipse.persistence:javax.persistence:jar:1.1.0 > and org.eclipse.persistence:eclipselink:jar:1.1.0. So, I went to a mirror, > downloaded them myself and installed them both using the commands: > > mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* > eclipselink* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file > > and > > mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* > javax.persistence* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file > > But, now when I run "mvn compile" it complains about every persistence > annotation saying that the symbol is not found. > > What now? I'm lost. > > Jared _ Bing brings you maps, menus, and reviews organized in one place. http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1
Re: debug the web module in the maven project
2009/11/3 maven apache > Hi: > I have been confused by this problem for a long time. > I am using the "eclipse-jee-ganymede-SR2-win32",generally when I create a > new dynamic web project I can debug it within the eclipse IDE,just right > click the project-- Run as--run on server,then the tomcat will startup, I > can add breakpoint to debug. > And now use maven to manager the project,it contain several modules include > the web module which is to be deployed. So how debug this web module use the > above manner? > I have tried everything and got nothing in the search engine,so I have to > post this thread. > Looking forward some advise. > Thanks. > Urgent ,nobody at line>?
[M2] eclipse-maven-plugin - ejb dependencie
Hello, config: maven-eclipse-plugin 2.7 eclipse 3.4 We have a multiproject where the war module depends of EJB module. On the WAR pom: jade.framework.showcase showcase-ejb ${pom.version} ejb When we run the task eclipse:clean eclipse:eclipse using the eclipse-maven-plugin, the "java EE Module Dependencies" of the WAR eclipse project is missing the dependency to the EJB module. We have add the check box by hand ( project properties/ java EE Module Dependencies/ check the checkbox of the ejb module), which is a bit of a pain. This java EE dependence is important for the Webapp to work when run on our Eclipse configured Tomcat server. I couldn't find any plugin option to switch this on automatically. Thanks for your help. antonio -Message d'origine- De : Benson Margulies [mailto:bimargul...@gmail.com] Envoyé : mardi, 3. novembre 2009 11:53 À : PAROLINI Antonio; Maven Users List Objet : Re: tracking down jetty/tomcat dependencies I'm still wishing that someone could help me figure out just what is on the classpath inside of tomcat:run. To a first approximation, jetty:run and tomcat:run had the same problem. However, I was a able to cure it in jetty and not in tomcat. It LOOKS as if tomcat is depending on an old version of Xalan. On Fri, Oct 30, 2009 at 5:16 AM, Benson Margulies wrote: > I wrote it up on the mojo user list once I got a clearer picture, but here > goes again. > > The code calls DocumentBuilderFactory and SchemaFactory to parse an XML > file to DOM with schema validation. Run in the plugins, it fails with an > impossible validation error (a claim that a valid attribute is invalid). The > backtrace shows a combination of xerces and JDK classes. I have xerces in > the webapp's class path. > > The same code works fine, with or without xerces, run as a pojo or a junit > test. > > If I try to use 100% Xerces by referring to their implementation classes > (DocumentBuilderImpl and XMLSchemaFactory) it still fails in the plugins. > > The problem goes away if I use the new JAXP 1.4 APIs to force the use of > Xerces. > > I reason as follows: in a live copy of tomcat or jetty, the 'system' > classpath is whatever jars are sitting in the containers system library > directory. When these plugins deploy a webapp, they don't have a system > library directory. They instead have whatever classpath maven invokes them > with, based on their declared dependencies and the transitive closure that > reaches into plexus and such. There could easily be some ancient xml-apis > jar in there, or some other source of interference, which I am not > preempting in my webapp. > > If dependency:tree worked for a plugin classpath, then I might be able to > figure out the real source of the problem and fix it by tinkering with > dependencies on the plugin. But I can't figure out how to get a full tree > for maven-tomcat-plugin (e.g.). > > > On Thu, Oct 29, 2009 at 10:32 PM, Brett Randall wrote: > >> On Fri, Oct 30, 2009 at 6:45 AM, Benson Margulies > >wrote: >> >> > I've got code that works fine when run as a pojo and fails when run in a >> > webapp, either via tomcat:run or jetty:run. I suspect, because I can't >> > think >> > of anything else, that there is detritus in the 'system' classpaths of >> > these >> > containers. However, mvn dependency:tree does not tell me much about the >> > maven-jetty-plugin. Neither does dependency:resolve-plugins. >> > >> > Is there some way to get a clearer view of this question? >> > >> >> What is the mode of failure? >> >> Brett >> > >
Re: tracking down jetty/tomcat dependencies
I'm still wishing that someone could help me figure out just what is on the classpath inside of tomcat:run. To a first approximation, jetty:run and tomcat:run had the same problem. However, I was a able to cure it in jetty and not in tomcat. It LOOKS as if tomcat is depending on an old version of Xalan. On Fri, Oct 30, 2009 at 5:16 AM, Benson Margulies wrote: > I wrote it up on the mojo user list once I got a clearer picture, but here > goes again. > > The code calls DocumentBuilderFactory and SchemaFactory to parse an XML > file to DOM with schema validation. Run in the plugins, it fails with an > impossible validation error (a claim that a valid attribute is invalid). The > backtrace shows a combination of xerces and JDK classes. I have xerces in > the webapp's class path. > > The same code works fine, with or without xerces, run as a pojo or a junit > test. > > If I try to use 100% Xerces by referring to their implementation classes > (DocumentBuilderImpl and XMLSchemaFactory) it still fails in the plugins. > > The problem goes away if I use the new JAXP 1.4 APIs to force the use of > Xerces. > > I reason as follows: in a live copy of tomcat or jetty, the 'system' > classpath is whatever jars are sitting in the containers system library > directory. When these plugins deploy a webapp, they don't have a system > library directory. They instead have whatever classpath maven invokes them > with, based on their declared dependencies and the transitive closure that > reaches into plexus and such. There could easily be some ancient xml-apis > jar in there, or some other source of interference, which I am not > preempting in my webapp. > > If dependency:tree worked for a plugin classpath, then I might be able to > figure out the real source of the problem and fix it by tinkering with > dependencies on the plugin. But I can't figure out how to get a full tree > for maven-tomcat-plugin (e.g.). > > > On Thu, Oct 29, 2009 at 10:32 PM, Brett Randall wrote: > >> On Fri, Oct 30, 2009 at 6:45 AM, Benson Margulies > >wrote: >> >> > I've got code that works fine when run as a pojo and fails when run in a >> > webapp, either via tomcat:run or jetty:run. I suspect, because I can't >> > think >> > of anything else, that there is detritus in the 'system' classpaths of >> > these >> > containers. However, mvn dependency:tree does not tell me much about the >> > maven-jetty-plugin. Neither does dependency:resolve-plugins. >> > >> > Is there some way to get a clearer view of this question? >> > >> >> What is the mode of failure? >> >> Brett >> > >
Re: Can't get localRepositoryPath option to work with install:install-file
What version of the install plugin are you using? The localRepositoryPath option was introduced in version 2.2, could it be that you're using an older version? If so, try forcing to newer version! /Anders On Fri, Oct 30, 2009 at 19:42, Hydock, Thomas [USA] wrote: > I'm trying to install a JAR file to a custom local repository on my file > system. I am using the following command: > > mvn install:install-file >-Dfile=license.jar >-DgroupId=test.group >-DartifactId=license >-Dversion=1.2.3.4 >-Dpackaging=jar >-DlocalRepositoryPath=C:\temp > > > I would expect that the license.jar file would be installed to C:\temp, > however it gets installed to my default local Maven repository (C:\Documents > and Settings\...\.m2\repository). It's like the "localRepositoryPath" value > is being completely ignored. Am I doing something wrong? How can I install > an artifact to a custom location on my file system using mvn > install:install-file? > > Thank you. > > - T.C. >
Re: Persistence
By default, Maven looks for artifacts in a remote repo called central ( http://repo1.maven.org/maven2/). However, the artifact you're asking about does not exist there. So you need to configure a repo that does contain this artifact so that Maven can get it. The "mirror" (of what?) could be that repo. One way of adding a repo is explained here: http://thedevelopercorner.blogspot.com/2007/08/adding-repositories-to-maven-2.html However, you can add it in the pom as well. Which way to go kind of depends on your scenario. Adding the the pom makes i portable, while adding it to the settings.xml file forces everyone to do this configure to their environment. /Anders On Tue, Nov 3, 2009 at 01:16, Jared Jacobs wrote: > Hi - > > I'm very new to maven but, from what I understand, maven will download jars > as needed from repo sites. However, it continually claimed it could not > download org.eclipse.persistence:javax.persistence:jar:1.1.0 > and org.eclipse.persistence:eclipselink:jar:1.1.0. So, I went to a mirror, > downloaded them myself and installed them both using the commands: > > mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* > eclipselink* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file > > and > > mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* > javax.persistence* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file > > But, now when I run "mvn compile" it complains about every persistence > annotation saying that the symbol is not found. > > What now? I'm lost. > > Jared >
debug the web module in the maven project
Hi: I have been confused by this problem for a long time. I am using the "eclipse-jee-ganymede-SR2-win32",generally when I create a new dynamic web project I can debug it within the eclipse IDE,just right click the project-- Run as--run on server,then the tomcat will startup, I can add breakpoint to debug. And now use maven to manager the project,it contain several modules include the web module which is to be deployed. So how debug this web module use the above manner? I have tried everything and got nothing in the search engine,so I have to post this thread. Looking forward some advise. Thanks.
Re: Using apache maven 2.2.1 with autoboxing
you need to add 1.5 1.5 to the section for the maven-compiler-plugin plugin 2009/11/2 Manju, Asha > Hi, > > I am using Maven 2.2.1. The JAVA_HOME is set to jdk1.5. The > path is sent to jdk 1.5/bin. The class path is set to jdk/1.5/jre/lib. > The code has some auto boxing feature like setting java.lang.Boolean to > Boolean. In RAD IDE it is compiling fine. But on using Maven it is > showing compilation error > > > > C:\synchen_asha\GTT\AIU > Uplift\mosmaven\mosserviceOffline\src\main\java\com\americanexpress\trav > el\mos\profile\XGWBookingInfoMapper.java:[376,84] incompatible types > > found : java.lang.Boolean > > required: Boolean > > > > I am new to Maven, can anyone tell me am I doing something wrong > > Thanks and Regards > > Asha Manju > > > Confidential: This electronic message and all contents contain information > from Syntel, Inc. which may be privileged, confidential or otherwise > protected from disclosure. The information is intended to be for the > addressee only. If you are not the addressee, any disclosure, copy, > distribution or use of the contents of this message is prohibited. If you > have received this electronic message in error, please notify the sender > immediately and destroy the original message and all copies. > > Confidential: This electronic message and all contents contain information > from Syntel, Inc. which may be privileged, confidential or otherwise > protected from disclosure. The information is intended to be for the > addressee only. If you are not the addressee, any disclosure, copy, > distribution or use of the contents of this message is prohibited. If you > have received this electronic message in error, please notify the sender > immediately and destroy the original message and all copies. >
Can't get localRepositoryPath option to work with install:install-file
I'm trying to install a JAR file to a custom local repository on my file system. I am using the following command: mvn install:install-file -Dfile=license.jar -DgroupId=test.group -DartifactId=license -Dversion=1.2.3.4 -Dpackaging=jar -DlocalRepositoryPath=C:\temp I would expect that the license.jar file would be installed to C:\temp, however it gets installed to my default local Maven repository (C:\Documents and Settings\...\.m2\repository). It's like the "localRepositoryPath" value is being completely ignored. Am I doing something wrong? How can I install an artifact to a custom location on my file system using mvn install:install-file? Thank you. - T.C.
Using apache maven 2.2.1 with autoboxing
Hi, I am using Maven 2.2.1. The JAVA_HOME is set to jdk1.5. The path is sent to jdk 1.5/bin. The class path is set to jdk/1.5/jre/lib. The code has some auto boxing feature like setting java.lang.Boolean to Boolean. In RAD IDE it is compiling fine. But on using Maven it is showing compilation error C:\synchen_asha\GTT\AIU Uplift\mosmaven\mosserviceOffline\src\main\java\com\americanexpress\trav el\mos\profile\XGWBookingInfoMapper.java:[376,84] incompatible types found : java.lang.Boolean required: Boolean I am new to Maven, can anyone tell me am I doing something wrong Thanks and Regards Asha Manju Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies. Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies.
Persistence
Hi - I'm very new to maven but, from what I understand, maven will download jars as needed from repo sites. However, it continually claimed it could not download org.eclipse.persistence:javax.persistence:jar:1.1.0 and org.eclipse.persistence:eclipselink:jar:1.1.0. So, I went to a mirror, downloaded them myself and installed them both using the commands: mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* eclipselink* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file and mvn install:install-file -DgroupId=org.eclipse.persistence -DartifactId=* javax.persistence* -Dversion=1.1.0 -Dpackaging=jar -Dfile=/path/to/file But, now when I run "mvn compile" it complains about every persistence annotation saying that the symbol is not found. What now? I'm lost. Jared