Re: Metric tools
No Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : Are there any tools which mine the continuum build results and produce charts? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Continuum reports incorrect failure
I have no idea why you want to protect this message by law. You are posting to a public mailing list, which will be publicly archived for all eternity. Google (among others) will copy, disclose and distribute it. Philippe On Thu, 2006-11-16 at 19:42 -0600, Morgovsky, Alexander (US - Glen Mills) wrote: The continuum build fails too early, on a warning like this. [WARNING] *** CHECKSUM FAILED - Checksum failed on download: When I run the build from the command line, the build does not fail on a warning, but only fails on an error. If it is possible to tweak the tolerance of the failure, please let me know how I can change the level from warning to error. Does Continuum have tolerance levels like Log4j? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: How can I resolve ${...} in assembly descriptors?
On 11/17/06, Christian Goetze [EMAIL PROTECTED] wrote: I'd like to pass in something either via the environment or via -D on the mvn command line, and have that be visible within the assembly description. How do I do that? Use a filtered resource to create the actual assembly descriptor. In other words, if your assembly descriptor with ${DO} is src/main/assembly/bin.xml, then specify src/main/assembly as a filtered resource. That will give you a file target/classes/bin.xml, which you'll give as a descriptor to the assembly plugin. Jochen -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Generate source code with a JavaCC parser.
Thanks for the reply. I'm currently have a multi-module layout. Could it be possible to put the parser in a new module? The problem I see is the Parser.jar should be installed in the local repository before the generate-sources phase of the module that need it to generate the .java file. Actually, I'm looking for a way to build the whole project with only one command (easier for continuum). With your solution, I need to build and install the parser first, then build my regular project. Thanks again. Julien - Message d'origine De : Chris Hilton [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Jeudi, 16 Novembre 2006, 18h36mn 05s Objet : RE: Generate source code with a JavaCC parser. To my eyes (and how I've done it before), this would be two projects. One project to create the Parser and jar it. Then the second project would use that jar as a dependency and execute the appropriate class during the generate-sources phase. Or you could get a little fancy and have the first project actually generate a Maven plugin with the Parser and then bind that plugin appropriately in the second project. Hope that helps. Chris -Original Message- From: Julien HENRY [mailto:[EMAIL PROTECTED] Sent: Thursday, 16 November, 2006 10:01 To: users@maven.apache.org Subject: Generate source code with a JavaCC parser. Hi all, I want to generate Java code for my project with JavaCC. Actually, it's not JavaCC that generate final source code, but JavaCC will generate a parser that will parse one of the file of my project and generate the expected file. To be clearer, I have a Java file named WebTester.java and I want to generate WebTestCase.java. I wrote a JavaCC file (parser.jj) that generate a Parser.java. Once compiled, Parser.class will take WebTester.java and output WebTestCase.java. How can I integrate this in my build? I know the maven-javacc-plugin, but it's not exactly what I want. Indeed, the plugin create Parser.java from parser.jj and add it to the Maven build directory, but it doesn't provide a way to run the parser before compile phase. I'm considering using ant to compile/run Parser.java before the compile phase, but it's ugly. Do you know a better way? Thanks Julien __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re: how to combine minijar with webstart ?
On 11/8/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello everyone, i successfully used the webstart plugin to produce a jnlp file and bundle it (and required jars) within my webapp. works like a charm. Nice! the problem is: imported jars are way too big: the whole application requires the clients to download 2.4Mb, which is not acceptable. To verify that there's a lot to be saved, i used the minijar mojo on my little project, and it shows me these values: Interesting. From these results I would say: [INFO] [minijar:minijar] [INFO]myapplication.jar classes:28 dependencies:107 = 100,0% (36840-36849 bytes) [INFO] commons-logging-1.0.3.jar classes:17 dependencies:61 = 39,0% (31605-12396 bytes) Off Topic: You may want to bump your commons-logging version. [INFO] commons-codec-1.3.jar classes:25 dependencies:34 = 31,0% (46725-14941 bytes) [INFO] junit-3.8.1.jar classes:100 dependencies:255 = 3,0% (121070-4534 bytes) ignored [INFO] log4j-1.2.8.jar classes:244 dependencies:500 = 18,0% (352668-66364 bytes) you may want to use a smaller logging package. Especially as you use commons-logging [INFO] cglib-nodep-2.1_3.jar classes:258 dependencies:334 = 1,0% (324238-5276 bytes) Do you need this ? [INFO] easymockclassextension-2.2.jar classes:13 dependencies:71 = 3,0% (15887-498 bytes) ignored [INFO] commons-lang-2.2.jar classes:123 dependencies:180 = 4,0% (243016-10072 bytes) Do you use this directly ? If so think about packaging a small version of commons-lang... [INFO] commons-fileupload-1.1.1.jar classes:22 dependencies:56 = 16,0% (31909-5213 bytes) [INFO] oro-2.0.8.jar classes:62 dependencies:90 = 55,0% (65261-35970 bytes) [INFO] xercesImpl-2.6.2.jar classes:784 dependencies:877 = 3,0% (1010675-31412 bytes) 1M... Do you need XML ? [INFO] jmimemagic-0.0.4a.jar classes:9 dependencies:49 = 93,0% (55241-51475 bytes) [INFO] easymock-2.2.jar classes:59 dependencies:110 = 0,0% (62696-474 bytes) ignored [INFO] commons-io-1.1.jar classes:41 dependencies:98 = 48,0% (61562-29818 bytes) [INFO] commons-httpclient-3.0.1.jar classes:148 dependencies:242 = 70,0% (279781-197911 bytes) [INFO] xmlParserAPIs-2.2.1.jar classes:142 dependencies:121 = 29,0% (83089-24781 bytes) (junit and easymock have test scope, so they don't really have to be counted) the problem is: how can I use those 'stripped' versions instead of the full ones ? how would you handle such a problem? I would try to reduce the number of dependencies. XML seems to be 40% of your 2.4 M. Can you do without ? Then log4j and cglib Then I would repackage some libs, like commons-lang into commons-lang-reduced. You should easily go below 1M. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why must set version?
Hi guys, I encounter a very strange problem. I have two pom.xml(represented as A and B), B extends A; the packaging of A is pom, the packaging of B is jar. I add many artifacts to A as dependency management, and add some of them to B as real dependencies. I use following pattern statements in A, dependencyManagement dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-api/artifactId version1.1.1/version /dependency /dependencyManagement and use the following pattern statements in B, dependencies dependency groupIdorg.apache.ws.commons.axiom/groupId artifactIdaxiom-api/artifactId /dependency dependencies Then when I package project B, then an error thrown. The error said version is missed. I find that the matter just happen on artifacts in group org.apache.ws.commons.axiom. That's why?! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Why-must-set-version--tf2650547s177.html#a7396705 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
be sensitive to every change?
Hi guys, I have a Web application project, and using JBoss 4.0.2. There is a requirement, after deploy the Web application to JBoss at start time, then every change on Java codes, configuration files(.xml, .properties)..., the App Server would be sensitive to it. Namely, I just change the app at development project, then JBoss would know the change at working time. For example, JBoss is running, I modify a html file(change the appearance), then I refresh the browser, the change must be shown. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/be-sensitive-to-every-change--tf2650642s177.html#a7396958 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site-deploy
Dear Paul, You are right but I could find the solution. I have founded this post : http://jira.codehaus.org/browse/MASSEMBLY-153 Upgrading wagon to version 1.0-beta-1 seems to have solved this issue for us. Just replace the wagon*.jar files in the maven/lib directory with the newer versions. But it doesn't change anything! Can you tell me where to configure in my pom which version of wagon to use ?? Thanks Francois Hi Francois, I'm not sure about the password prompt, but the file permissions problem looks like another case of this: http://jira.codehaus.org/browse/MASSEMBLY-153 Paul Francois Le Fevre wrote: Dear all, I am using maven 2 on a linux OS I want to deploy my project. I have 2 problems: -password authentification -right on the web site files 1. Password * so when i execute the commande mvn site-deploy, * I need to enter each time my password !!, soi i need tyo put it in my settings.xml even if i use a id_rsh key 2. Right on files * the file generated have the following rights : o drwx-w 5 flefevre g_nemo 8192 Nov 16 12:00 nemo-studio-bio o -rw--w 1 flefevre g_nemo 5478 Nov 16 12:00 jxr.html * i would like to have 664, and even if i put it to my settings.xml it doesn't work Thanks a lot for your help. Francois * My pom.xml o distributionManagement site idNemo Projects Website/id url scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId} /url /site * My settings.xml o server idNemo Projects Website/id usernameflefevre/username privateKey/env/export/masaya/home/flefevre/.ssh/id_rsa/privateKey !--directoryPermissions775/directoryPermissions filePermissions664/filePermissions-- passwordXX/password /server -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo
[M2] IssueManagement - how configure no issue management in child-project, when parent project has an issue managament?
Hi, i currently use a master pom.xml from which all of my other project poms are derived. in this master i use an issue management block: issueManagement systemMantis/system urlhttp://anyurl/url /issueManagement but in my child pom i DON'T HAVE an issue management. parent artifactIdmyartifactid/artifactId groupIdmygroupid/groupId version1.0-SNAPSHOT/version /parent so how do i configure that? just using empty tag: issueManagement/ didn't work, M2 still believes i have one. Can i explicitely omit a specific tag (from the derived base pom) thx 4 your help R.C. -- View this message in context: http://www.nabble.com/-M2--IssueManagement---how-configure-%22no-issue-management%22-in-child-project%2C-when-parent-project-has-an-issue-managament--tf2650777s177.html#a7397281 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site-deploy
Paul, i have made a false copy and paste : the post was http://jira.codehaus.org/browse/WAGONSSH-44 a more precise question: where can I overwrite the version of wagon-ssh-external or wagin-ssh ? in which pom ? in which parapgraph. Thanks a lot. Francois Dear Paul, You are right but I could find the solution. I have founded this post : http://jira.codehaus.org/browse/MASSEMBLY-153 Upgrading wagon to version 1.0-beta-1 seems to have solved this issue for us. Just replace the wagon*.jar files in the maven/lib directory with the newer versions. But it doesn't change anything! Can you tell me where to configure in my pom which version of wagon to use ?? Thanks Francois Hi Francois, I'm not sure about the password prompt, but the file permissions problem looks like another case of this: http://jira.codehaus.org/browse/MASSEMBLY-153 Paul Francois Le Fevre wrote: Dear all, I am using maven 2 on a linux OS I want to deploy my project. I have 2 problems: -password authentification -right on the web site files 1. Password * so when i execute the commande mvn site-deploy, * I need to enter each time my password !!, soi i need tyo put it in my settings.xml even if i use a id_rsh key 2. Right on files * the file generated have the following rights : o drwx-w 5 flefevre g_nemo 8192 Nov 16 12:00 nemo-studio-bio o -rw--w 1 flefevre g_nemo 5478 Nov 16 12:00 jxr.html * i would like to have 664, and even if i put it to my settings.xml it doesn't work Thanks a lot for your help. Francois * My pom.xml o distributionManagement site idNemo Projects Website/id url scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId} /url /site * My settings.xml o server idNemo Projects Website/id usernameflefevre/username privateKey/env/export/masaya/home/flefevre/.ssh/id_rsa/privateKey !--directoryPermissions775/directoryPermissions filePermissions664/filePermissions-- passwordXX/password /server -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help on profiles
Hi I have the following scenario: I have a project with several modules. One of the modules starts a container with Cargo in the pre-integration-phase, tests something in the integration phase and stops Tomcat in the post-integration-phase. There is a profile called 'tomcat' which is activated by default that sets the container to Tomcat for Cargo. In order to make sure that Tomcat is started with the right configuration, I always want to copy my custom configuration file into the Tomcats configuration directory. This is done by ant ant-task which should only be executed, if the actual profile is really Tomcat. It is also important that the configuration file is copied _before_ the container is started. So, the layout is the following: profiles ... profile idauto/id build plugins .. let cargo start, deploy, undeploy, stop, etc /plugins /build /profile profile idtomcat/id activationactiveByDefaulttrue/activeByDefault/activation build plugins .. let the ant-task copy the configuration file /plugins /build /profile Now I have two problems: First, the ant-task is not the first task in the pre-integration task. It always gets executed _after_ the container is started. Second: when I execute 'mvn help:effective-pom', for the different modules, I see that all other ant tasks in every module contains the copy task. I must have completely misunderstood something very basic. How do I tell maven only to execute the ant task in this project? Thanks for any help! Greetings, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Archive Repository
-Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] ==== On 11/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How do you access the repository through the jetty:run? I set up the guest as an observer role and I tried to access it like this http://localhost:9091/repository/aopalliance/aopalliance/1.0/ Unfortunately, browsing the repository with Jetty doesn't seem to work. Hi Having moved from Jetty when I browse now with Tomcat with the repository that I just set up http://localhost:9091/repository/PETER_PILGRIM I still get the 404 Error request resource is not found. Any ideas! BTW: I set the Guest account as `Repository Observer' ==== -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
Re: Reset Archiva Repository to Default
That file is named archiva.xml Just remove it (or move for security) to reset all the repositories/proxies definitions. The content are still existing. Raphaël 2006/11/17, Stephen Duncan [EMAIL PROTECTED]: I believe (from memory) that repository definitions are stored in an xml file in your $HOME/.m2 folder (of the user that was running archiva). -Stephen On 11/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi The first time I added a repository it did not pick up all the dependencies. I need to manually delete a repository after I removed from the GUI. How do I do it? I remove everything in the `archiva-index' Everything under `maven-repository/.reports' I remove the entire webapp from Tomcat rm -rf $CATALINA_HOME/webapp/archiva rm -rf $CATALINA_HOME/work/Catalina/localhost/archiva Somehow Archiva remembers the previous repository from somewhere. How? -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- Stephen Duncan Jr www.stephenduncanjr.com
RE: Release Plugin: Include assemblies for deploying
I did this and it does not work. It only works when all dependencies are already installed. I found in another mail that binding the assembly to the package phase does not work in a multi module project. I must somehow configure maven to call mvn assembly:attached at the top level so that - for each subdirectory where an assembly is configured, the assembly is invoked in that directory. In other words, Instead of going in each sub directory and invoke mvn assembly, I just want to invoke it once at the top level to integrate it in the release with one call. Can you describe in more details your project structure ? I don't understand how you can have sub-modules with assemblies (not on the top level of project) depending on other sub-modules that Maven reactor doesn't build before. Note : you can use assembly:single in a multi-module project Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Archive Repository
-Original Message- From: Pilgrim, Peter Sent: 17 November 2006 12:03 To: 'archiva-users@maven.apache.org' Subject: RE: Archive Repository -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] ==== ==== Having moved from Jetty when I browse now with Tomcat with the repository that I just set up http://localhost:9091/repository/PETER_PILGRIM I still get the 404 Error request resource is not found. Any ideas! I just released that the link on the administration page is wrong for Tomcat! There is no web application context called `repository'! Rather it is should be http://localhost:9091/archiva/repository/PETER_PILGRIM Missing request.getContextPath() What I don't understand is this what you place inside ~/.m2/settings.xml or the actual project pom.xml? Maven does not find the repository and then disables it, how to you undisable the repository? -- Peter Pilgrim UBS Investment Bank, PTS Portal / IT FIRC OPS LDN, 100 Liverpool Street, London EC2M 2RH, United Kingdom +44 (0) 20 75 75692 :: Java EE / E-Commerce / Enterprise Integration / Development :: Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get default plugin configuration back ?
Hello, In my parent pom : plugin artifactIdmaven-compiler-plugin/artifactId configuration target1.1/target /configuration /plugin So, in child's projects, target is forced at 1.1 I can override configuration in child's pom : plugin artifactIdmaven-compiler-plugin/artifactId configuration target1.5/target /configuration /plugin But I don't really want 1.5, I just don't want to have parent's configuration. So, how to get default configuration back ? plugin artifactIdmaven-compiler-plugin/artifactId configuration defaultConfiguration/ ?? /configuration /plugin Thank you Damien Lecan -- Telematic Systems B2i - Viveris Group France Tel : +33 (0)1 41 73 48 79 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re : Re : Generate source code with a JavaCC parser.
Finally, it works with another module. I just have to use the javacc plugin in the generate-sources phase of this new module. In the module where I want to generate source, I use the exec plugin to run the Parser. The only problem is I have to generate the new source file in src/main/java because I have no way to specify a second source directory in the pom (for example target/generated-sources). Thanks ! - Message d'origine De : Julien HENRY [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Vendredi, 17 Novembre 2006, 9h48mn 58s Objet : Re : Generate source code with a JavaCC parser. Thanks for the reply. I'm currently have a multi-module layout. Could it be possible to put the parser in a new module? The problem I see is the Parser.jar should be installed in the local repository before the generate-sources phase of the module that need it to generate the .java file. Actually, I'm looking for a way to build the whole project with only one command (easier for continuum). With your solution, I need to build and install the parser first, then build my regular project. Thanks again. Julien - Message d'origine De : Chris Hilton [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Jeudi, 16 Novembre 2006, 18h36mn 05s Objet : RE: Generate source code with a JavaCC parser. To my eyes (and how I've done it before), this would be two projects. One project to create the Parser and jar it. Then the second project would use that jar as a dependency and execute the appropriate class during the generate-sources phase. Or you could get a little fancy and have the first project actually generate a Maven plugin with the Parser and then bind that plugin appropriately in the second project. Hope that helps. Chris -Original Message- From: Julien HENRY [mailto:[EMAIL PROTECTED] Sent: Thursday, 16 November, 2006 10:01 To: users@maven.apache.org Subject: Generate source code with a JavaCC parser. Hi all, I want to generate Java code for my project with JavaCC. Actually, it's not JavaCC that generate final source code, but JavaCC will generate a parser that will parse one of the file of my project and generate the expected file. To be clearer, I have a Java file named WebTester.java and I want to generate WebTestCase.java. I wrote a JavaCC file (parser.jj) that generate a Parser.java. Once compiled, Parser.class will take WebTester.java and output WebTestCase.java. How can I integrate this in my build? I know the maven-javacc-plugin, but it's not exactly what I want. Indeed, the plugin create Parser.java from parser.jj and add it to the Maven build directory, but it doesn't provide a way to run the parser before compile phase. I'm considering using ant to compile/run Parser.java before the compile phase, but it's ugly. Do you know a better way? Thanks Julien __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
RE: Continuum reports incorrect failure
Actually, I think the problem was that it did not locate the external repositories, but everything works now. Thanks. -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 3:41 AM To: continuum-users@maven.apache.org Subject: Re: Continuum reports incorrect failure Can you send us your logs? I've never seen this pb and I don't think it's the reason of the failure. Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : The continuum build fails too early, on a warning like this. [WARNING] *** CHECKSUM FAILED - Checksum failed on download: When I run the build from the command line, the build does not fail on a warning, but only fails on an error. If it is possible to tweak the tolerance of the failure, please let me know how I can change the level from warning to error. Does Continuum have tolerance levels like Log4j? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Release Plugin: Include assemblies for deploying
Hi, I created a reactor project with a super pom and with many modules and module dependencies. To some modules are complete applications so I added the assembly plugin to build the executable application including scripts, jars, properties, etc. So each module creates a jar file that is needed by another module and in addition, some modules assemble to complete applications. mainproject |-module1 |-module2 |-module3 |-module4 The dependencies are: module2 - module1 module3 - module2 module4 - moduel2 module 3 Timo On Nov 17, 2006, at 1:20 PM, LECAN Damien wrote: I did this and it does not work. It only works when all dependencies are already installed. I found in another mail that binding the assembly to the package phase does not work in a multi module project. I must somehow configure maven to call mvn assembly:attached at the top level so that - for each subdirectory where an assembly is configured, the assembly is invoked in that directory. In other words, Instead of going in each sub directory and invoke mvn assembly, I just want to invoke it once at the top level to integrate it in the release with one call. Can you describe in more details your project structure ? I don't understand how you can have sub-modules with assemblies (not on the top level of project) depending on other sub-modules that Maven reactor doesn't build before. Note : you can use assembly:single in a multi-module project Damien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Maven 2 Intergration for Intellij IDEA
Hi, I was looking for a plugin today and stumbled across this plugin. http://plugins.intellij.net/plugin/?id=1166 I thought I would share it in case anyone was interested. Regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] omitting elements from parent pom?
Hi, I'm using a parent pom.xml for my project poms. parent artifactIdmyartifactid/artifactId groupIdmygroupid/groupId version1.0-SNAPSHOT/version /parent I just wonder, how can i get rid of an element that is declared in the parent pom, but should not appear in the child pom? is there any possibility to exclude specific elements/tags that should not be derived? Something like override emtpy? my special interest is on the element 'issueManagement'. thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--omitting-elements-from-parent-pom--tf2652504s177.html#a7401756 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Java Compiler Output?
Hi all, I'm sorry if this obvious question has been asked before. I couldn't find an answer in the mailing list. When I compile my maven project, I get the following output ... Compiling 14 source files to C:\Research\Foundation\target\classes [ERROR] mojo-execute : compiler:compile Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : com.company:Foundation:jar:0.0.1-SNAPSHOT ( task-segment: [clean, install] ) Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project org.apache.maven.BuildFailureException: Compilation failure ... My question is how do I see what the compiler errors actually are? Where is the compiler output? How can I enable it? Thanks! Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Maven 2.0.4] Profiles
Rémy Sanlaville wrote: Are you using the maven plugin snapshots repository? If you are, then many of the maven plugins could have been updated. Not directly but others projects yes. For information, here, is my test pom.xml - project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdtest.maven.profiles/groupId artifactIdtest1/artifactId version1.0-SNAPSHOT/version packagingjar/packaging build plugins plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasevalidate/phase configuration tasks echo${profile.common.message}/echo echo${profile.dev.message}/echo /tasks /configuration goals goalrun/goal /goals /execution /executions /plugin /plugins /build /project profiles.xml - profilesXml profiles profile idcommon/id properties profile.common.messagecommon property/profile.common.message /properties /profile profile iddev/id properties profile.dev.messagedev property/profile.dev.message /properties activation property nameenv/name valuedev/value /property /activation /profile /profiles activeProfiles activeProfilecommon/activeProfile /activeProfiles /profilesXml Looks like your operating system memvar activated the dev profile. My experience with maven is that there are so many variables affecting operations that you see inexplicable situations like this all the time. Plus black magic ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Java Compiler Output?
On 11/17/06, Robert Harper [EMAIL PROTECTED] wrote: Hi all, I'm sorry if this obvious question has been asked before. I couldn't find an answer in the mailing list. When I compile my maven project, I get the following output ... Compiling 14 source files to C:\Research\Foundation\target\classes [ERROR] mojo-execute : compiler:compile Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : com.company:Foundation:jar:0.0.1-SNAPSHOT ( task-segment: [clean, install] ) Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project org.apache.maven.BuildFailureException: Compilation failure ... My question is how do I see what the compiler errors actually are? Where is the compiler output? How can I enable it? Thanks! Rob I'm not sure I understand your question , but the compilation errors should just appear in your output.In my example below , I took out the commented out the spring jar file and my build failed with the following message: DEBUG] C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src Compiling 392 source files to C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src\za\co\pragmaticus\portal\controllers\ApplicationPDCRegistrationController.java:[8,39] package org.springframework.web.servlet does not exist C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src\za\co\pragmaticus\portal\controllers\ApplicationPDCRegistrationController.java:[10,41] package org.springframework.beans.factory does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Tue Nov 14 11:30:05 CAT 2006 [INFO] Final Memory: 17M/508M [INFO] Are you sure you're looking at all the output?What happens when you run with the debug (mvn -X install) option? Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Execute phase in weblogic:appc
Another fix might be to use weblogic:appc rather than ear:ear and that would trigger the ear build automatically. Are you using the one of the default commands like mvn install or mvn package rather than directly the ear:ear command. Id you rn ear:ear it will run twice but if you use something like package or another lifecycle command it should work fine. There may be something I missed in understanding how the lifecycle works so if I did I hope someone on this list can clarify my understanding and set me straight. Like you I am still learning the nuances of Maven 2.0 Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Thursday, November 16, 2006 11:47 PM To: users@maven.apache.org Subject: RE: Execute phase in weblogic:appc That was my belief too that appc should add on the additional goals. But it is certainly the goals in packaging twice. As i said, i'm using appc in a pom with 'ear' packaging which runs ear:ear in the package phase. When the packaging is over appc prepares itself and run ear:ear again. See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht ml 'Forking a parallel life cycle' May be if you can try using appc in a ear pom and do a 'mvn install' Scott Ryan-2 wrote: It certainly should not run twice. It should run all the goals in the packaging mojo and then add on the additional goals after packaging but not run them again. I am not seeing that behavour so i will have to investigate the scenario you are describing. I have a number of mojos that run during the packaging phase and i am not seeing it run multple times. I will try to look into it but if you have suggestions i am more than happy to make changes to the mojo. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Thursday, November 16, 2006 4:13 AM To: users@maven.apache.org Subject: Execute phase in weblogic:appc I've doubts in weblogic-maven-plugin's appc mojo. The executePhase in the plugin.xml is 'package' which means that it will bounded to the pom along with other goals with 'package' phase. According to the write up at http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht ml, when the appc mojo will execute the tasks already executed in the package phase and the preceding phases will rerun. I've appc in an pom with 'ear' packaging. The ear plugin has the following life-cycle, http://cvs.peopleware.be/training/maven/maven2/buildLifecyclePhases.html#ear So when appc is executed it will again generate the application.xml and the ear . Also i've a antrun plugin defined to in the 'package' phase that generates webservices using the generated ear. The whole life cycle executing twice is adding a considerable amount of time to the build process. Is there a way to avoid this? Moving the appc to install phase will install the ear to the repository first and run appc on the ear in the build directory. Which is not desirable. Any thoughts??? -- View this message in context: http://www.nabble.com/Execute-phase-in-weblogic%3Aappc-tf2642288s177.html#a7 375755 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Execute-phase-in-weblogic%3Aappc-tf2642288s177.html#a7 394684 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assembly: Export jar dependency list to xml file
Hi guys, I am using the assembly plugin to create a Mac OS X java application. OS X applications are using an xml file to describe the application, containing the main class and the jar files that are in the classpath. Currently I have to change the xml file by hand if I add a new jar file or if I am using a new version. Is there a possibility to export the runtime dependencies into a xml file? Below is a sample of the xml file keyJava/key dict keyArguments/key stringrat.properties/string keyClassPath/key array stringant-optional.jar/string stringavalon-framework.jar/string stringbatik-1.5-fop.jar/string stringbinding.jar/string stringcolt.jar/string stringcommons-beanutils.jar/string stringcommons-collections.jar/string /array /dict - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Java Compiler Output?
Sorry, I should have mentioned that I'm using Eclipse's maven plugin (http://m2eclipse.codehaus.org/) to do the build. I thought it was simply spitting out the output from mvn. Obviously not. Maybe I should abandon this Eclipse integration and use the http://maven.apache.org/guides/mini/guide-ide-eclipse.html method? Thanks! Rob -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 9:36 AM To: Maven Users List Subject: Re: Maven Java Compiler Output? On 11/17/06, Robert Harper [EMAIL PROTECTED] wrote: Hi all, I'm sorry if this obvious question has been asked before. I couldn't find an answer in the mailing list. When I compile my maven project, I get the following output ... Compiling 14 source files to C:\Research\Foundation\target\classes [ERROR] mojo-execute : compiler:compile Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : com.company:Foundation:jar:0.0.1-SNAPSHOT ( task-segment: [clean, install] ) Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project org.apache.maven.BuildFailureException: Compilation failure ... My question is how do I see what the compiler errors actually are? Where is the compiler output? How can I enable it? Thanks! Rob I'm not sure I understand your question , but the compilation errors should just appear in your output.In my example below , I took out the commented out the spring jar file and my build failed with the following message: DEBUG] C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src Compiling 392 source files to C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src\za\co\p ragmaticus\portal\controllers\ApplicationPDCRegistrationController.java:[8,3 9] package org.springframework.web.servlet does not exist C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src\za\co\p ragmaticus\portal\controllers\ApplicationPDCRegistrationController.java:[10, 41] package org.springframework.beans.factory does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:555) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec ycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle Executor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.ja va:505) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage r.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife cycleExecutor.java:534) ... 16 more [INFO] [INFO] Total time: 10 seconds [INFO] Finished at: Tue Nov 14 11:30:05 CAT 2006 [INFO] Final Memory: 17M/508M [INFO] Are you sure you're looking at all the output?What happens when you run with the debug (mvn -X install) option? Jeff Mutonho Cape Town South Africa GoogleTalk : ejbengine
Re: Maven rant
Wendy Smoak wrote: I had problems today finding some documentation on the war plugin. Pretty standard stuff but I couldn't even find the plugins documentation start page in the left-hand menu, rather I found it on the home page (where I happened NOT to be to start with) in the text. I think this is a symptom of the extensive nature of the maven docs, but still it's pretty fundamental. The left hand menu says Get Maven Plugins - By Category. I've seen at least one other comment about it, and this week I had a new person at work also not find it when told, Click on the 'get plugins' link on the menu. I think we're scanning the leftmost text, and not ever finding the word plugin. Unless someone has another suggestion, I'm going to try Plugins by Category. I am not sure why you use Get Maven Plugins. That smells like 'Download'. The link points to documentation, so surely it should be under the documentation section (instead of being on its own). If it was, it would be simple to call it plain ol' Plugins. However the 'About' menu is also more or less all documentation too. Maybe you should ditch 'Documentation' and have a more specific 'Reference' section, and move other less reference-y type links to other sections. Otherwise it is very good! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven rant
Wendy Smoak wrote: On 11/16/06, Adam Hardy Secondly the comments functionality or the link to the wiki is a pretty urgent requirement for me, and I think I'm a typical user. Where are you looking to add comments? Honestly I don't think we're going to get a 'comment mechanism' on the existing site. It's static html generated from apt and other sources. Of course it would need a bigger investment of time and effort, but I'm sure it's the best mechanism. It puts the comments right next to the main documentation and requires no clicking to go anywhere else. But I can only give you my opinion :) I have used all of the other documentation methods and the comment mechanism stands head and shoulders above the rest. But I can imagine that it may not be possible to integrate APT-based generated docs into drupal or other frameworks that do that. I should say just adding a link on the 'Related Links' section with the camelCase name would do it - something like [Maven Wiki: WarPlugin] - but now I see the mavenuser space doesn't use camelCase, so perhaps it's not appropriate. (I thought camelCase was universal wiki style?) all the best Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JUnit/Test among multi-projects?
Good day to you, Sha Jiang, You may want to provide a dummy applicationContext.xml for your app module, wherein it contains only the essential things that you need to test your app module. Cheers, Franz jiangshachina wrote: Hi guys, I'm using Spring, Struts and Hibernate, and have to deal with so many configuration or resource files. Then some troubles come out. Assuming, there is two projects app and web. Project app focuses on Simple Application; Project web focuses on Web Application. Generally, the configuration files(e.g. applicationContext.xml) are in web project. Now, a JUnit program in app project want to test an application program in the same project. But the application program depends on applicationContext.xml. JUnit program doesn't touch the file, because they are in different projects. How to solve the problem(excepts for copying the file to app project directly)? In fact, we must encounter too many similar cases in real-world projects. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/JUnit-Test-among-multi-projects--tf2635154s177.html#a7403955 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continum process is in activity for 2 days
Did you look at the webpage output (which has the output cut off).. You have to click on the link that shows the complete output (assuming that is your problem). Mvgr, Martin Francois Le Fevre wrote: Emmanuel , I have restarted continum. But the chrono is still up . I have 4 processes with a during time like 2d and 10 hurs etc ... It is strange. More over I have another difficulty. One of my project stops when building by continuum. Last log : [INFO] [andromda:run {execution: default}] Thanks for your advice! here is my complete trace! [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Nemo Studio Bio [INFO] Nemo Studio Bio MDA [INFO] Nemo Studio Bio Common [INFO] Nemo Studio Bio Core Business Tier [INFO] [INFO] Building Nemo Studio Bio [INFO]task-segment: [install, deploy] [INFO] [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/14/pom.xml to /env/cns/home/continum/.m2/repository/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/14/pom.xml to /env/cns/home/continum/.m2/repository/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom [INFO] [deploy:deploy] [INFO] Retrieving previous build number from inhouse_snapshot Uploading: scp://taal.genoscope.cns.fr/var/www/html/maven_repositories/inhouse_snapshot/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom 20K uploaded [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading site descriptor for nemo-studio-bio 0.1-SNAPSHOT site.xml [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading repository metadata for: 'artifact fr.cns.genoscope.nemo.studio.bio:nemo-studio-bio' [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading repository metadata for: 'snapshot fr.cns.genoscope.nemo.studio.bio:nemo-studio-bio:0.1-SNAPSHOT' [INFO] [INFO] Building Nemo Studio Bio MDA [INFO]task-segment: [install, deploy] [INFO] [INFO] snapshot org.andromda.cartridges:andromda-spring-cartridge:3.2-SNAPSHOT: checking for updates from andromda [INFO] snapshot org.andromda.cartridges:andromda-hibernate-cartridge:3.2-SNAPSHOT: checking for updates from andromda [INFO] [andromda:run {execution: default}] Final steps !!! after a restart, you just need to click on build all button and all will be resolved. Emmanuel Francois Le Fevre a écrit : Dear all, I am using continuum 1.0.3 for maven 2 project. Last days my subversion server crashes. Independly continuum has started to build one of my project. As the fisrt action is to connect to subversion server, continuum got an error. So I need to restart continum When I look to continuum console, the End of time was empty and the time of the build is going greater each minute : Started since : 2 d 19 h 9 min 29 sec Is there a way to kill a continuum process? I have founded this post http://jira.codehaus.org/browse/CONTINUUM-576 But I don't understand what i need to do... I have killed manually all maven process and restart continuum, but chrono is still in activity!! Thansk a lot. Francois
RE: Maven Java Compiler Output?
It looks like your problem may be related to bug MNGECLIPSE-188: http://jira.codehaus.org/browse/MNGECLIPSE-188 That one couldn't be resolved because of the incomplete description, but it does have good advice in making sure that Eclipse is running in a JDK JRE, not a plain JRE. You can verify this by starting Eclipse and going to Help-About Eclipse SDK-Configuration Details and check the value of java.home. If you're still having trouble, you could try filling out that or another bug or posting to one of the m2eclipse lists: http://xircles.codehaus.org/projects/m2eclipse/lists Chris -Original Message- From: Robert Harper [mailto:[EMAIL PROTECTED] Sent: Friday, 17 November, 2006 08:47 To: 'Maven Users List' Subject: RE: Maven Java Compiler Output? Sorry, I should have mentioned that I'm using Eclipse's maven plugin (http://m2eclipse.codehaus.org/) to do the build. I thought it was simply spitting out the output from mvn. Obviously not. Maybe I should abandon this Eclipse integration and use the http://maven.apache.org/guides/mini/guide-ide-eclipse.html method? Thanks! Rob -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 9:36 AM To: Maven Users List Subject: Re: Maven Java Compiler Output? On 11/17/06, Robert Harper [EMAIL PROTECTED] wrote: Hi all, I'm sorry if this obvious question has been asked before. I couldn't find an answer in the mailing list. When I compile my maven project, I get the following output ... Compiling 14 source files to C:\Research\Foundation\target\classes [ERROR] mojo-execute : compiler:compile Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : com.company:Foundation:jar:0.0.1-SNAPSHOT ( task-segment: [clean, install] ) Diagnosis: Compilation failure FATAL ERROR: Error executing Maven for a project org.apache.maven.BuildFailureException: Compilation failure ... My question is how do I see what the compiler errors actually are? Where is the compiler output? How can I enable it? Thanks! Rob I'm not sure I understand your question , but the compilation errors should just appear in your output.In my example below , I took out the commented out the spring jar file and my build failed with the following message: DEBUG] C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\src Compiling 392 source files to C:\telkom-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eportal\ta rget\classes [INFO] -- -- [ERROR] BUILD FAILURE [INFO] -- -- [INFO] Compilation failure C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eport al\src\za\co\p ragmaticus\portal\controllers\ApplicationPDCRegistrationContro ller.java:[8,3 9] package org.springframework.web.servlet does not exist C:\pragmaticus-sea-ias\eclipse-3.1.2-workspaces\dev-ep1x\eport al\src\za\co\p ragmaticus\portal\controllers\ApplicationPDCRegistrationContro ller.java:[10, 41] package org.springframework.beans.factory does not exist [INFO] -- -- [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa ls(DefaultLife cycleExecutor.java:555) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa l(DefaultLifec ycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoa lAndHandleFail ures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTas kSegments(Defa ultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De faultLifecycle Executor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by:
missing exported-pom.xml
Hi, I'm new to Maven. I'm currently using Maven2 and i've encountered a problem concerning the build of my project. When I run 'mvn package' the exported-pom.xml file (needed for my 'mvn install') doesn't get created automatically, while it should be created in my /target folder. I can't discover any error, even when I run the command in debug mode. I get a lot of info in debug mode, but nothing about exported-pom.xml. I scanned my pc for creation of this file, in case it would be placed somewhere else. No result. Thinking it could be a problem with some file in the repository, I defined a different repository, modifying its reference in the settings.xml. I would like to know about the reason my exported-pom.xml is not created at all. Anyone? Thanks! Roderick.
QDox, Maven Plugin and JDK 1.5
Hi, Is there some way to specify where is the MOJO so that Qdox doesn't parse my JDK1.5 classes ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of properties
Good day to you, Leandro, You can try and take a look at [1]. Cheers, Franz [1] http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide Leandro Saad-2 wrote: Hi. How do I get a list of all properties in maven 2? I'd like to know what I can use when filtering my resources. -- Leandro Rodrigo Saad Cruz software developer - certified scrum master :: scrum.com.br :: db.apache.org/ojb :: guara-framework.sf.net :: xingu.sf.net -- View this message in context: http://www.nabble.com/List-of-properties-tf2647349s177.html#a7404541 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: missing exported-pom.xml
What version of Maven2 are you running? If anything less than 2.0.4, please upgrade to this version. Are you perhaps behind a web proxy? They have been known to cause problems while downloading plugins etc and might result in this problem. Finally, run mvn -X package or mvn -X install to get more information while Maven is running -- it might point out a problem you weren't seeing previously. Wayne On 11/17/06, Van Den Heuvel Roderick [EMAIL PROTECTED] wrote: Hi, I'm new to Maven. I'm currently using Maven2 and i've encountered a problem concerning the build of my project. When I run 'mvn package' the exported-pom.xml file (needed for my 'mvn install') doesn't get created automatically, while it should be created in my /target folder. I can't discover any error, even when I run the command in debug mode. I get a lot of info in debug mode, but nothing about exported-pom.xml. I scanned my pc for creation of this file, in case it would be placed somewhere else. No result. Thinking it could be a problem with some file in the repository, I defined a different repository, modifying its reference in the settings.xml. I would like to know about the reason my exported-pom.xml is not created at all. Anyone? Thanks! Roderick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QDox, Maven Plugin and JDK 1.5
zze- HUGONNET E ext RD-BIZZ a écrit : Hi, Is there some way to specify where is the MOJO so that Qdox doesn't parse my JDK1.5 classes ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Couldn't we have maven-plugin-tools-java SNAPSHOT dependant on qdox 1.6 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re : Re : Generate source code with a JavaCC parser.
It might be worthwhile to use the Antrun plugin for the short term with a java task and the sourceRoot config element so that you don't have to mix your generated source code with the regular source (bad CM). Or even using the exec plugin and an empty task Antrun plugin with the new sourceRoot might work. You might also consider adding a feature request to JIRA for the exec plugin to include a way to add a source directory. Chris -Original Message- From: Julien HENRY [mailto:[EMAIL PROTECTED] Sent: Friday, 17 November, 2006 07:08 To: Maven Users List Subject: Re : Re : Generate source code with a JavaCC parser. Finally, it works with another module. I just have to use the javacc plugin in the generate-sources phase of this new module. In the module where I want to generate source, I use the exec plugin to run the Parser. The only problem is I have to generate the new source file in src/main/java because I have no way to specify a second source directory in the pom (for example target/generated-sources). Thanks ! - Message d'origine De : Julien HENRY [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Vendredi, 17 Novembre 2006, 9h48mn 58s Objet : Re : Generate source code with a JavaCC parser. Thanks for the reply. I'm currently have a multi-module layout. Could it be possible to put the parser in a new module? The problem I see is the Parser.jar should be installed in the local repository before the generate-sources phase of the module that need it to generate the .java file. Actually, I'm looking for a way to build the whole project with only one command (easier for continuum). With your solution, I need to build and install the parser first, then build my regular project. Thanks again. Julien - Message d'origine De : Chris Hilton [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Jeudi, 16 Novembre 2006, 18h36mn 05s Objet : RE: Generate source code with a JavaCC parser. To my eyes (and how I've done it before), this would be two projects. One project to create the Parser and jar it. Then the second project would use that jar as a dependency and execute the appropriate class during the generate-sources phase. Or you could get a little fancy and have the first project actually generate a Maven plugin with the Parser and then bind that plugin appropriately in the second project. Hope that helps. Chris -Original Message- From: Julien HENRY [mailto:[EMAIL PROTECTED] Sent: Thursday, 16 November, 2006 10:01 To: users@maven.apache.org Subject: Generate source code with a JavaCC parser. Hi all, I want to generate Java code for my project with JavaCC. Actually, it's not JavaCC that generate final source code, but JavaCC will generate a parser that will parse one of the file of my project and generate the expected file. To be clearer, I have a Java file named WebTester.java and I want to generate WebTestCase.java. I wrote a JavaCC file (parser.jj) that generate a Parser.java. Once compiled, Parser.class will take WebTester.java and output WebTestCase.java. How can I integrate this in my build? I know the maven-javacc-plugin, but it's not exactly what I want. Indeed, the plugin create Parser.java from parser.jj and add it to the Maven build directory, but it doesn't provide a way to run the parser before compile phase. I'm considering using ant to compile/run Parser.java before the compile phase, but it's ugly. Do you know a better way? Thanks Julien __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com __ _ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: QDox, Maven Plugin and JDK 1.5
I recommend 1.6.1, as 1.6 depends on Java5 by mistake Emmanuel Hugonnet wrote: zze- HUGONNET E ext RD-BIZZ a écrit : Hi, Is there some way to specify where is the MOJO so that Qdox doesn't parse my JDK1.5 classes ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Couldn't we have maven-plugin-tools-java SNAPSHOT dependant on qdox 1.6 ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manually Install Plugins
Good day to you Michael, First of all, there is not local plugin repository. It is just one repository for all artifacts, so don't worry if you see your plugin in your ${user.home}\.m2\repository. Anyway, the most direct approach to use your plugin is to follow the following command: mvn groupId:artifactId:version:goal Thus, in your case, that would be mvn org.apache.axis2.maven2:axis2-aar-maven-plugin:1.1:exploded For the short hand version, you can try mvn axis2-aar:exploded that's basically the in format mvn prefix:goal wherein prefix is a part of your plugin's artifact id...either prefix-maven-plugn or maven-prefix-plugin. And lastly, if your plugin's groupId is not org.apache.maven.plugins, you would have to add pluginGroups pluginGrouporg.codehaus.modello/pluginGroup /pluginGroups to your settings.xml to use the shorthand goal invocation. Cheers, Franz Michael Bevilacqua-Linn wrote: Hello, I'm trying to manually install some plugins that work with Axis 2.1. The only place I can find them are as JAR downloads from Axis' website. I try to install the plugin like so: mvn install:install-file -Dfile=axis2-aar-maven-plugin-1.1.jar-DartifactId=axis2-aar-maven-plugin -DgroupId= org.apache.axis2.maven2 -Dversion=1.1 -Dpackaging=plugin This puts the plugin in Maven's repository, but when I try to run it like so (just to see if the plugin got installed): mvn adb:exploded It claims that the plugin doesn't exist and tries to download it from a remote repository, failing since the plugin doesn't exist in the remote repository. Taking a look in my .m2 directory, I find that the plugin is installed in \repository\org\apache\axis2\maven2\axis2-aar-maven-plugin, and not in the plugin repository. Can someone point out what I'm doing wrong, or an easier way to install a plugin? Thanks. -Michael B. -- View this message in context: http://www.nabble.com/Manually-Install-Plugins-tf2647760s177.html#a7404995 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continum process is in activity for 2 days
your process are stopped, continuum print the difference between the start time and the end time but in your case, the end time isn't set in database so continuum use the current time, it's why you see it incremented each time you go to this page. If you want to stop it, you'll need to add a end time in database, but I don't think it's necessary, continuum will work without this date. Emmanuel Francois Le Fevre a écrit : Emmanuel , I have restarted continum. But the chrono is still up . I have 4 processes with a during time like 2d and 10 hurs etc ... It is strange. More over I have another difficulty. One of my project stops when building by continuum. Last log : [INFO] [andromda:run {execution: default}] Thanks for your advice! here is my complete trace! [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Nemo Studio Bio [INFO] Nemo Studio Bio MDA [INFO] Nemo Studio Bio Common [INFO] Nemo Studio Bio Core Business Tier [INFO] [INFO] Building Nemo Studio Bio [INFO]task-segment: [install, deploy] [INFO] [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/14/pom.xml to /env/cns/home/continum/.m2/repository/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing /0/Softs/nemo/continuum-1.0.3/apps/continuum/working-directory/14/pom.xml to /env/cns/home/continum/.m2/repository/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom [INFO] [deploy:deploy] [INFO] Retrieving previous build number from inhouse_snapshot Uploading: scp://taal.genoscope.cns.fr/var/www/html/maven_repositories/inhouse_snapshot/fr/cns/genoscope/nemo/studio/bio/nemo-studio-bio/0.1-SNAPSHOT/nemo-studio-bio-0.1-SNAPSHOT.pom 20K uploaded [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading site descriptor for nemo-studio-bio 0.1-SNAPSHOT site.xml [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading repository metadata for: 'artifact fr.cns.genoscope.nemo.studio.bio:nemo-studio-bio' [INFO] Retrieving previous metadata from inhouse_snapshot [INFO] Uploading repository metadata for: 'snapshot fr.cns.genoscope.nemo.studio.bio:nemo-studio-bio:0.1-SNAPSHOT' [INFO] [INFO] Building Nemo Studio Bio MDA [INFO]task-segment: [install, deploy] [INFO] [INFO] snapshot org.andromda.cartridges:andromda-spring-cartridge:3.2-SNAPSHOT: checking for updates from andromda [INFO] snapshot org.andromda.cartridges:andromda-hibernate-cartridge:3.2-SNAPSHOT: checking for updates from andromda [INFO] [andromda:run {execution: default}] Final steps !!! after a restart, you just need to click on build all button and all will be resolved. Emmanuel Francois Le Fevre a écrit : Dear all, I am using continuum 1.0.3 for maven 2 project. Last days my subversion server crashes. Independly continuum has started to build one of my project. As the fisrt action is to connect to subversion server, continuum got an error. So I need to restart continum When I look to continuum console, the End of time was empty and the time of the build is going greater each minute : Started since : 2 d 19 h 9 min 29 sec Is there a way to kill a continuum process? I have founded this post http://jira.codehaus.org/browse/CONTINUUM-576 But I don't understand what i need to do... I have killed manually all maven process and restart continuum, but chrono is still in activity!! Thansk a lot. Francois
Creating a custom archetype
Hi, I'm new to using maven and want to set up a custom project template archetype that will create a specific file structure and put a few key documents in specific places at the start of each new project. The trouble I'm having is in setting up this archetype. I have read the guide at http://maven.apache.org/guides/mini/guide-creating-archetypes.html but it does not say if I already need to have this file structure created to install this archetype or if having the file paths written in the sources tags in the archetype file is enough. It also gives little information on why there are two pom.xml files in the example and what is the difference between them What are the steps in creating a custom archetype? Is it: 1.. Create archtype.xml with accompanying sources tags etc 2.. 'install' this archetype using mvn install 3.. Use archetype create to use this new archetype I apologise if this seems like a basic problem but there are few clear web pages written on the subject, Many thanks for any help, Anthony Ryan
Re: site-deploy
I'm not positive, but it is probably something like what I've got for wagon-ftp in one of my projects: project ... extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-beta-1/version /extension /extensions ... /project Paul Francois Le Fevre wrote: Paul, i have made a false copy and paste : the post was http://jira.codehaus.org/browse/WAGONSSH-44 a more precise question: where can I overwrite the version of wagon-ssh-external or wagin-ssh ? in which pom ? in which parapgraph. Thanks a lot. Francois Dear Paul, You are right but I could find the solution. I have founded this post : http://jira.codehaus.org/browse/MASSEMBLY-153 Upgrading wagon to version 1.0-beta-1 seems to have solved this issue for us. Just replace the wagon*.jar files in the maven/lib directory with the newer versions. But it doesn't change anything! Can you tell me where to configure in my pom which version of wagon to use ?? Thanks Francois Hi Francois, I'm not sure about the password prompt, but the file permissions problem looks like another case of this: http://jira.codehaus.org/browse/MASSEMBLY-153 Paul Francois Le Fevre wrote: Dear all, I am using maven 2 on a linux OS I want to deploy my project. I have 2 problems: -password authentification -right on the web site files 1. Password * so when i execute the commande mvn site-deploy, * I need to enter each time my password !!, soi i need tyo put it in my settings.xml even if i use a id_rsh key 2. Right on files * the file generated have the following rights : o drwx-w 5 flefevre g_nemo 8192 Nov 16 12:00 nemo-studio-bio o -rw--w 1 flefevre g_nemo 5478 Nov 16 12:00 jxr.html * i would like to have 664, and even if i put it to my settings.xml it doesn't work Thanks a lot for your help. Francois * My pom.xml o distributionManagement site idNemo Projects Website/id url scp://masaya1.genoscope.cns.fr/env/cns/pub/www/data/externe/nemo/projects/${project.artifactId} /url /site * My settings.xml o server idNemo Projects Website/id usernameflefevre/username privateKey/env/export/masaya/home/flefevre/.ssh/id_rsa/privateKey !--directoryPermissions775/directoryPermissions filePermissions664/filePermissions-- passwordXX/password /server -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo -- Francois Le Fevre Bioinformatics Engineer Computational Systems Biology Group Genoscope Tél. : (+33) 1 60 87 45 83 Web : http://www.genoscope.cns.fr/bioinfo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/site-deploy-tf2642252s177.html#a7405500 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Assembly: Export jar dependency list to xml file
There is a similar feature request in jira for the dependency plugin. It currently would write out a string, but it would seem to be a relatively simple change to write xml:http://jira.codehaus.org/browse/MDEP-26 -Original Message- From: Timo Wolf [mailto:[EMAIL PROTECTED] Sent: Friday, November 17, 2006 9:39 AM To: Maven Users List Subject: Assembly: Export jar dependency list to xml file Hi guys, I am using the assembly plugin to create a Mac OS X java application. OS X applications are using an xml file to describe the application, containing the main class and the jar files that are in the classpath. Currently I have to change the xml file by hand if I add a new jar file or if I am using a new version. Is there a possibility to export the runtime dependencies into a xml file? Below is a sample of the xml file keyJava/key dict keyArguments/key stringrat.properties/string keyClassPath/key array stringant-optional.jar/string stringavalon-framework.jar/string stringbatik-1.5-fop.jar/string stringbinding.jar/string stringcolt.jar/string stringcommons-beanutils.jar/string stringcommons-collections.jar/string /array /dict - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help on profiles
Hi Deluigi, You can solve your second problem by adding this below plugin: inheritedfalse/inherited I'm not sure about problem 1. Paul Deluigi Marcus wrote: Hi I have the following scenario: I have a project with several modules. One of the modules starts a container with Cargo in the pre-integration-phase, tests something in the integration phase and stops Tomcat in the post-integration-phase. There is a profile called 'tomcat' which is activated by default that sets the container to Tomcat for Cargo. In order to make sure that Tomcat is started with the right configuration, I always want to copy my custom configuration file into the Tomcats configuration directory. This is done by ant ant-task which should only be executed, if the actual profile is really Tomcat. It is also important that the configuration file is copied _before_ the container is started. So, the layout is the following: profiles ... profile idauto/id build plugins .. let cargo start, deploy, undeploy, stop, etc /plugins /build /profile profile idtomcat/id activationactiveByDefaulttrue/activeByDefault/activation build plugins .. let the ant-task copy the configuration file /plugins /build /profile Now I have two problems: First, the ant-task is not the first task in the pre-integration task. It always gets executed _after_ the container is started. Second: when I execute 'mvn help:effective-pom', for the different modules, I see that all other ant tasks in every module contains the copy task. I must have completely misunderstood something very basic. How do I tell maven only to execute the ant task in this project? Thanks for any help! Greetings, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Help-on-profiles-tf2650962s177.html#a7405710 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB Bundle workaround for Maven 2
I found out that the ejb plugin for maven 2 does not allow you to bundle jars within the EJB like in maven 1. http://jira.codehaus.org/browse/MEJB-3 Does anyone know of a good workaround for this problem? Any help would be appreciated, Michael - This e-mail message is private and may contain confidential or privileged information.
Re: [m2] Maven 2 Intergration for Intellij IDEA
Awesome. But just go into your plugin settings and look for Maven 2 integration and it is there.. On 11/17/06, ben short [EMAIL PROTECTED] wrote: Hi, I was looking for a plugin today and stumbled across this plugin. http://plugins.intellij.net/plugin/?id=1166 I thought I would share it in case anyone was interested. Regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
assembly permutations
Here is a question about maven assembly. Maybe it is a best practice question. Say there is a Base project that provides common services. Then there are multiple projects (Client-1, Client-2,...) which use the common service. Say I want to build assemblies which include the Base and various different permutations of Clients. Example: Assembly-1 contains Base, Client-1, Client-3. Assembly-2 contains Base, Client-3, Client-4. Assembly-3 contains Base, Client-1, Client-2, Client-4. and on and on All clients depend on Base. Each assemlbly would contain 1 or more clients. I think I will create an seperate project, AssemblyProy. The pom would describe all clients as dependencies. The pom would parameterize the assembly descriptor and the assembly name. Each descriptor would represent a diffeferent combintation of Clients. To build an assembly, would run: mvn -Passembly=Assembly-1 assemble Is this THE WAY in maven? If not, what is? If there currently isn't a WAY, is the above reasonable? Are there alternatives? Thanks, John -- View this message in context: http://www.nabble.com/assembly-permutations-tf2655047s177.html#a7406601 Sent from the Maven - Users mailing list archive at Nabble.com.
What's the easiest way to deploy an existing project to a different server?
I wuld like to deploy an open source project that publishes dependencies and has source code available to my repository. The project uses maven 2, and I use maven 2. When I invoke maven deploy, maven gleefully attempts to deploy it to the projects repository and then fails (naturally) as it can't authenticate. I don't want to have to (as I tend to svn update their code frequently) modify their pom to configure a second repository/server. what's the best way to introduce a seperate server into the deployment process without really touching their code? Thanks, Josh
Re: How can I resolve ${...} in assembly descriptors?
Jochen Wiedmann wrote: On 11/17/06, Christian Goetze [EMAIL PROTECTED] wrote: I'd like to pass in something either via the environment or via -D on the mvn command line, and have that be visible within the assembly description. How do I do that? Use a filtered resource to create the actual assembly descriptor. In other words, if your assembly descriptor with ${DO} is src/main/assembly/bin.xml, then specify src/main/assembly as a filtered resource. That will give you a file target/classes/bin.xml, which you'll give as a descriptor to the assembly plugin. Neat! Vielen Dank! -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Has anyone been able to get the java2wsdl plugin to work?
If someone couuld include a pom fragment or pom where they got this plugin to work it would be *most* helplful. TIA Eric
local dependency resolution with non-default dependency types
Hi all, while trying to set up a rather complex multi-project maven build, I have run into the problem, that I am unable to convince maven to use local dependencies instead of searching repositories. This is my scenario: - We have a multi-project build organized hierarchically - all child projects have parent references pointing upwards - all projects share the same group id - one child project (I'll call it A) contains an EJB along with a set of test-cases - A's maven-ejb-plugin is told to generate an EJB client - the A's src/test/java also contains an abstract base test class - A's pom uses to maven-jar-plugin to package a jar of the test classes - a second EJB project (B) also contains some test classes which inherit from A's base test class - also, B's bean classes have a dependency on A - all versions are SNAPSHOT versions. What I'd like to attain: - being able to build the project on a pristine system (no artifacts of the project are present in the local repository, no artifacts are pulled from a remote repository) - being able to build it (e.g. a test goal) without using a previous install or something, because that would, IMHO, break the first rule What I'm seeing: - I'm running a top-level mvn test, for example - project A gets built just fine - when I specify a dependency on A from B with type typeejb-client/type (which should be sufficient), the build of B fails, because maven tries to download A-SNAPSHOT-client.jar - which is nowhere to be found. - when I leave out the typeejb-client/type, the classes compile Ok, however... - ... the same problem comes up with B's test classes: there is no A-SNAPSHOT-test.jar yet, and maven doesn't try to access the plain compiled classes. I'd be more than happy about hints on how this is meant to work. Or maybe there's a similar project setup which demonstrates this. Unfortunately the projects I know, e.g. Apache Directory Server, don't seem to suffer from the Problem of test classes depending on each other. Thanks Joerg Henne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded Error while rendering javadocs
I added the javadocs plugin to generate an aggregate report, and I see this: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Exit code: 1 - /local/home/cg/a/main/src/java/common/src/main/java/com/sensage/util/EmailUtil.java:4: package javax.mail.internet does not exist import javax.mail.internet.InternetAddress; ^ /local/home/cg/a/main/src/java/common/src/main/java/com/sensage/sls/client/Request.java:8: package org.apache.xerces.jaxp does not exist import org.apache.xerces.jaxp.DocumentBuilderFactoryImpl; ^ (with a lot more) It seems that somehow, it needs to know the dependencies of my project, so why doesn't use the dependencies as declared? what is really going on? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classifier documentation?
Hi, I was looking for some documentation on the classifier tag that can be used in the pom. I looked here (http://maven.apache.org/pom.html#Dependencies), hoping to find documentation, but there is none there. Is this documented elsewhere or not documented yet? regards, Wim
Re: Sign a different jar using jar:sign
2nd try 2006/11/15, Wim Deblauwe [EMAIL PROTECTED]: Hi, according to the documentation it should be possible to sign any jar you like using the jarPath option. I wanted to use this to sign the jar that the assembly plugin created, but this does not work, the jar plugin still tried to sign the actual jar produced by the project, not the one produced by the assembly plugin. any ideas what might be wrong or is this a bug? regards, Wim
Re: Has anyone been able to get the java2wsdl plugin to work?
axis? or jaxws? On 11/17/06, Eric Helfrich [EMAIL PROTECTED] wrote: If someone couuld include a pom fragment or pom where they got this plugin to work it would be *most* helplful. TIA Eric
Re: Has anyone been able to get the java2wsdl plugin to work?
On 11/17/06, Eric Helfrich [EMAIL PROTECTED] wrote: If someone couuld include a pom fragment or pom where they got this plugin to work it would be *most* helplful. Which java2wsdl plugin? -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't get javadoc plugin to work for multimodule project
On 11/16/06, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: Adam- I've experienced that as well. My workaround is to first run mvn install and then mvn javadoc:javadoc, and it seems to work. Thanks, that got my simple test case with just one module to work. My multimodule build is still failing with missing dependencies, though. mvn install runs fine, but mvn javadoc:javadoc gives errors. :( I will try to simplify my build and see when it stops breaking. But in the meantime if anyone can enlighten me as to reasons why mvn install might work while mvn javadoc:javadoc doesn't, I'd appreciate it. -Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EhCacheProvider not found with other hibernate classes during test
Try searching for spring hibernate ehcache I admit, I have a whole bunch of old messages in Gmail and I searched there. I'm not sure if the Nabble search in the maven2 section works just like Gmail's. The interesting messages have the word dependency or some form of that word in them. -- Lee On 11/15/06, Wayne Fay [EMAIL PROTECTED] wrote: Check your Manifest.MF files and web.xml and other configuration files to make sure there's not a reference to the wrong version somewhere. (Don't just use the files in target; you'll need to crack open the packaged JAR/WAR/EAR and all its JAR contents and look at all the config files and Manifests.) I had a situation recently where all my modules were set up to use the log4j version specified by parent dependencyManagement node, but then for some reason my EAR module had a specific version declared, so that's what got bundled into the EAR, and then the Class-Path references in the other modules were incorrect. Just throwing out some ideas. No real clue why this is happening. You might need to provide an excludes in the hibernate dependencies and then manually add ehcache as its own dependency with a specific version, as suggested by Lee. Wayne On 11/15/06, Trevor Torrez [EMAIL PROTECTED] wrote: nope: $ grep -io 'ehcache[^ ]\+' maven.log ehcache:ehcache:1.2 ehcache:ehcache:1.2. ehcache:ehcache:jar:1.2:compile ehcache\ehcache\1.2\ehcache-1.2.jar, ehcache\ehcache\1.2\ehcache-1.2.jar ehcache:ehcache:1.2 ehcache:ehcache:1.2. ehcache:ehcache:jar:1.2:compile ehcache\ehcache\1.2\ehcache-1.2.jar, ehcache\ehcache\1.2\ehcache-1.2.jar ehcache:ehcache:1.2 ehcache:ehcache:1.2. ehcache:ehcache:jar:1.2:compile ehcache\ehcache\1.2\ehcache-1.2.jar, ehcache:ehcache=net.sf.ehcache:ehcache:jar:1.2:compile, ehcache\ehcache\1.2\ehcache-1.2.jar other than the fact that hibernate is specifying org.ehcache, and there is a note that it has moved to net.sf.ehcache, nothing is odd about the output that I can see. Changing the pom to explicitly pull net.sf.ehcache 1.2has no effect. There is also only one version reference to hibernate: 3.2.0.cr4 Any other ideas? -t. On 11/15/06, Wayne Fay [EMAIL PROTECTED] wrote: Run mvn -X and then grep the output for ehcache... You'll probably see a different version getting pulled in by another dependency somewhere... Wayne On 11/14/06, Trevor Torrez [EMAIL PROTECTED] wrote: Ok; that almost makes sense; what, other than 'Quartz' should I search nabble for? I cant find anything relevent. Answers to any of the following questions would also be appreciated: How do i find out which of the dependencies is requesting the bogus version? The only thing 'maven site' shows in the dependencies is ehcache-1.2, the version that must be used with hibernate-3. The dependency graph shows that ehcache was required by hibernate-3, and no other (dissimilar) reference to ehcache is on the page. I pulled out explicit dependencies on hibernate from my project pom, and likewise the only hibernate listed is 3.2.0.rc4 required by spring-hibernate3. Why is it a class not found exception for a class that is obviously there and correct and not a no-class-def error as would be expected for a bogus version of a dependency (wrong method invocation, exception in initializer, etc)? Why is this error not showing up in eclipse, when as far as i can tell the same jar files are being used. Thanks; much appreciated; -t. On 11/14/06, Lee Meador [EMAIL PROTECTED] wrote: This has been discussed before. You can find it in nabble, I think. The issue has to do with spring wanting one version of hibernate and hibernate wanting a version of ehcache and the versions conflict with each other. In my case, using Quartz which wanted another version of ehcache, it would pick one version of ehcache for one project and another version for another project. You solve it by specifying versions for things in some places and excluding dependencies in others. I forget the details. -- Lee [snip] -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
Re: java2iiop (Visibroker)
Hi Tim, Wow! Thanks for the offer! Sure, send it on. :-) Go ahead and tarball it up and send it to my gmail account. Dan, I did compile the wrapper from source and I'm in the process of getting it working. Thank you both, Jim On 11/16/06, TimHedger [EMAIL PROTECTED] wrote: Jim, I have got a working Visibroker plugin. It works in two ways - pure Java or by running Visibroker supplied scripts from Java. Having both has been necessary for me to get it work with JDK 1.5 - we don't have Visibroker for 1.5 (we're in the process of eliminating Visibroker altogether and so can't justify the licence) and yet are pushing towards 1.5 - it runs in pure Java for 1.4 and scripts for 1.5 (it's the Visibroker code itself that blows up in 1.5 in pure Java). So I can happily supplied a tar of the complete source tree plus a couple of example pom.xmls for using it; but I haven't got time (nor do I know how!) to submit it formally into the public domain. Let me know if you want the source warts and all! Regards Tim Jim Bethancourt-2 wrote: Hi Tim, I've been tinkering with migrating the build process for the place where I work from Ant to Maven 2 and noticed that you worked on a VisiBroker plugin for Maven 2 and had considered posting it. Any chance you could consider posting it? I know I could put it to use quickly and I'm sure plenty of other folks using VisiBroker would find it very useful too. Thanks, Jim -- View this message in context: http://www.nabble.com/java2iiop-%28Visibroker%29-tf1846831s177.html#a7393534 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: assembly permutations
A more maveny way IMHO would have a project for each thing you are trying to build. That would include the base, each client and each assembly.To buld an assembly you go to its project folder and type: mvn assembly:assembly This goes against our built-in lazyness where we want to have as few folders full of stuff as possible. But it works well and organizes things well. -- Lee On 11/17/06, flyboy [EMAIL PROTECTED] wrote: Here is a question about maven assembly. Maybe it is a best practice question. Say there is a Base project that provides common services. Then there are multiple projects (Client-1, Client-2,...) which use the common service. Say I want to build assemblies which include the Base and various different permutations of Clients. Example: Assembly-1 contains Base, Client-1, Client-3. Assembly-2 contains Base, Client-3, Client-4. Assembly-3 contains Base, Client-1, Client-2, Client-4. and on and on All clients depend on Base. Each assemlbly would contain 1 or more clients. I think I will create an seperate project, AssemblyProy. The pom would describe all clients as dependencies. The pom would parameterize the assembly descriptor and the assembly name. Each descriptor would represent a diffeferent combintation of Clients. To build an assembly, would run: mvn -Passembly=Assembly-1 assemble Is this THE WAY in maven? If not, what is? If there currently isn't a WAY, is the above reasonable? Are there alternatives? Thanks, John -- View this message in context: http://www.nabble.com/assembly-permutations-tf2655047s177.html#a7406601 Sent from the Maven - Users mailing list archive at Nabble.com. -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
build war for jboss, exclude log4j
Hi All, How can I exclude log4j stuff from a war? The log4j stuff is conflicting with jboss. Thanks! ,chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Has anyone been able to get the java2wsdl plugin to work?
sorry - -stupid me -- the maven 2 axis 2 plugin. Serves me right for trying to get something real accomplished in an otherwise BS day On 11/17/06, Jochen Wiedmann [EMAIL PROTECTED] wrote: On 11/17/06, Eric Helfrich [EMAIL PROTECTED] wrote: If someone couuld include a pom fragment or pom where they got this plugin to work it would be *most* helplful. Which java2wsdl plugin? -- My wife Mary and I have been married for forty-seven years and not once have we had an argument serious enough to consider divorce; murder, yes, but divorce, never. (Jack Benny) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java2iiop (Visibroker)
Feel free to merge the 2 plugins together. Contribute a real example will be fantastic. -D On 11/17/06, Jim Bethancourt [EMAIL PROTECTED] wrote: Hi Tim, Wow! Thanks for the offer! Sure, send it on. :-) Go ahead and tarball it up and send it to my gmail account. Dan, I did compile the wrapper from source and I'm in the process of getting it working. Thank you both, Jim On 11/16/06, TimHedger [EMAIL PROTECTED] wrote: Jim, I have got a working Visibroker plugin. It works in two ways - pure Java or by running Visibroker supplied scripts from Java. Having both has been necessary for me to get it work with JDK 1.5 - we don't have Visibroker for 1.5 (we're in the process of eliminating Visibroker altogether and so can't justify the licence) and yet are pushing towards 1.5 - it runs in pure Java for 1.4 and scripts for 1.5 (it's the Visibroker code itself that blows up in 1.5 in pure Java). So I can happily supplied a tar of the complete source tree plus a couple of example pom.xmls for using it; but I haven't got time (nor do I know how!) to submit it formally into the public domain. Let me know if you want the source warts and all! Regards Tim Jim Bethancourt-2 wrote: Hi Tim, I've been tinkering with migrating the build process for the place where I work from Ant to Maven 2 and noticed that you worked on a VisiBroker plugin for Maven 2 and had considered posting it. Any chance you could consider posting it? I know I could put it to use quickly and I'm sure plenty of other folks using VisiBroker would find it very useful too. Thanks, Jim -- View this message in context: http://www.nabble.com/java2iiop-%28Visibroker%29-tf1846831s177.html#a7393534 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven release plugin prepare target failure
Hi, I have a project with multiple sub-porjects. The mvn release:prepare process failed on this project because I found that the prepare target executes clean integration-test goals. The project is set up in such a way that clean install executes fine, but not clean integration-test. This is due to the fact that one subproject needs the artifact from another subproject. Any suggestions on how to work around this issue? In particular, how to make mvn release:prepare execute clean install, instead of clean integration-test, without hacking into the plugin source code? Thanks. Yan
Re: maven release plugin prepare target failure
set preparationGoals=clean On 11/17/06, Yan Zheng [EMAIL PROTECTED] wrote: Hi, I have a project with multiple sub-porjects. The mvn release:prepare process failed on this project because I found that the prepare target executes clean integration-test goals. The project is set up in such a way that clean install executes fine, but not clean integration-test. This is due to the fact that one subproject needs the artifact from another subproject. Any suggestions on how to work around this issue? In particular, how to make mvn release:prepare execute clean install, instead of clean integration-test, without hacking into the plugin source code? Thanks. Yan
Re: assembly permutations
If you're using 2.2-SNAPSHOT of the assembly plugin, you should have quite a few options for including the binaries of modules. This means that you could, in theory, setup the assembly plugin to run once from the top level project, and point it at a set of assembly descriptors, each containing a different assembly permutation. However, there are two drawbacks to this approach: 1. The improved ModuleSet processing for the 2.2-SNAPSHOT version is not documented yet. It's on my TODO list, but I haven't completed it. 2. Because of a quirk with the way Maven processes multimodule builds, and its effect on the assembly logic, you may have to call it in this way: mvn package assembly:assembly to ensure that the module artifacts are produced *before* the assembly plugin tries to add them to the archive. OTOH, you could create assembly-producing projects for each permutation, and list the appropriate base/client-1/client-n as dependencies...which would probably be the simplest solution using the 2.1 assembly plugin. HTH, John On 11/17/06, Lee Meador [EMAIL PROTECTED] wrote: A more maveny way IMHO would have a project for each thing you are trying to build. That would include the base, each client and each assembly.Tobuld an assembly you go to its project folder and type: mvn assembly:assembly This goes against our built-in lazyness where we want to have as few folders full of stuff as possible. But it works well and organizes things well. -- Lee On 11/17/06, flyboy [EMAIL PROTECTED] wrote: Here is a question about maven assembly. Maybe it is a best practice question. Say there is a Base project that provides common services. Then there are multiple projects (Client-1, Client-2,...) which use the common service. Say I want to build assemblies which include the Base and various different permutations of Clients. Example: Assembly-1 contains Base, Client-1, Client-3. Assembly-2 contains Base, Client-3, Client-4. Assembly-3 contains Base, Client-1, Client-2, Client-4. and on and on All clients depend on Base. Each assemlbly would contain 1 or more clients. I think I will create an seperate project, AssemblyProy. The pom would describe all clients as dependencies. The pom would parameterize the assembly descriptor and the assembly name. Each descriptor would represent a diffeferent combintation of Clients. To build an assembly, would run: mvn -Passembly=Assembly-1 assemble Is this THE WAY in maven? If not, what is? If there currently isn't a WAY, is the above reasonable? Are there alternatives? Thanks, John -- View this message in context: http://www.nabble.com/assembly-permutations-tf2655047s177.html#a7406601 Sent from the Maven - Users mailing list archive at Nabble.com. -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com
Re: JUnit/Test among multi-projects?
Hello , You may want to provide a dummy applicationContext.xml for your app module It means that the applicationContext.xml in app module is a copy(similar) of that in web module. Additionally, if the XML file is also in web module, I think that still is a trouble. Because applicationContext.xml should in src/mainwebapp/WEB-INF(or its sub-directory), but Java codes are in src/main/java or src/test/java. In the case, Java programs cannot get applicationContext.xml at developing-time, unless the programs use different path from that in final real war file. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, Sha Jiang, You may want to provide a dummy applicationContext.xml for your app module, wherein it contains only the essential things that you need to test your app module. Cheers, Franz jiangshachina wrote: Hi guys, I'm using Spring, Struts and Hibernate, and have to deal with so many configuration or resource files. Then some troubles come out. Assuming, there is two projects app and web. Project app focuses on Simple Application; Project web focuses on Web Application. Generally, the configuration files(e.g. applicationContext.xml) are in web project. Now, a JUnit program in app project want to test an application program in the same project. But the application program depends on applicationContext.xml. JUnit program doesn't touch the file, because they are in different projects. How to solve the problem(excepts for copying the file to app project directly)? In fact, we must encounter too many similar cases in real-world projects. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/JUnit-Test-among-multi-projects--tf2635154s177.html#a7415116 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Use jars in local repo or other dirs?
Hi guys, When use Maven for building project, we must need local repository. But what about on developing time? For example, I'm developing a complex Web application. When the project started, I set many dependencies in pom.xml, and use eclipse:eclipse to make Eclipse project descriptor files.The dependencies are set in Eclipse Java Build Path. But I don't set all dependencies at the beginning(maybe mission impossible), other jars would be added to pom.xml as dependency in the future. Now, my question is how do I add the jars to Eclipse Java Build Path. I think there are two ways: [1]via M2_REPO, use the jars in local repository. [2]assembly the jars in one directory, and add them to build path directory. Generally, which one is better? May some friends puzzle that why the question released? In fact, the project is developed by several co-workers, different persons may use different jars. And only one maintains the pom files and repository. Some one need some jars, and he/she has had them, then he/she would add jars to build path directly(way [2]), then advice the maintainer to add the jars to dependencies and update repository. I think the approach is dangerous. Because one's jars may not synchronous with corresponding artifacts(especially version) in repository. I want know how to deal with the matter in your organization. Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Use-jars-in-local-repo-or-other-dirs--tf2658390s177.html#a7415269 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: be sensitive to every change?
Hi, May my requirement cannot be fulfilled? Or none of Web/Application Server has the ability? Or I have to do something in my application to archive the goal(When refresh pages, re-load the classes or resources)? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I have a Web application project, and using JBoss 4.0.2. There is a requirement, after deploy the Web application to JBoss at start time, then every change on Java codes, configuration files(.xml, .properties)..., the App Server would be sensitive to it. Namely, I just change the app at development project, then JBoss would know the change at working time. For example, JBoss is running, I modify a html file(change the appearance), then I refresh the browser, the change must be shown. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/be-sensitive-to-every-change--tf2650642s177.html#a7415305 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Use jars in local repo or other dirs?
My rule for projects built using Maven is if it doesn't build using mvn from the command line, then the build is broken. If code is added to the project which requires a dependency, and a corresponding pom.xml modification is not added along with it, your project will fail to build. So I would say the developer who added code without a corresponding update of pom.xml broke the build. Even if it builds in Eclipse on their machine etc, unless it builds from the command line, its broken. So they would need to coordinate with the maintainer to get the proper jars added to the repository and pom.xml, and only THEN check in the code which utilizes those new dependencies. Wayne On 11/17/06, jiangshachina [EMAIL PROTECTED] wrote: Hi guys, When use Maven for building project, we must need local repository. But what about on developing time? For example, I'm developing a complex Web application. When the project started, I set many dependencies in pom.xml, and use eclipse:eclipse to make Eclipse project descriptor files.The dependencies are set in Eclipse Java Build Path. But I don't set all dependencies at the beginning(maybe mission impossible), other jars would be added to pom.xml as dependency in the future. Now, my question is how do I add the jars to Eclipse Java Build Path. I think there are two ways: [1]via M2_REPO, use the jars in local repository. [2]assembly the jars in one directory, and add them to build path directory. Generally, which one is better? May some friends puzzle that why the question released? In fact, the project is developed by several co-workers, different persons may use different jars. And only one maintains the pom files and repository. Some one need some jars, and he/she has had them, then he/she would add jars to build path directly(way [2]), then advice the maintainer to add the jars to dependencies and update repository. I think the approach is dangerous. Because one's jars may not synchronous with corresponding artifacts(especially version) in repository. I want know how to deal with the matter in your organization. Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Use-jars-in-local-repo-or-other-dirs--tf2658390s177.html#a7415269 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: be sensitive to every change?
You haven't gotten any responses because its a complicated subject and has been discussed previously. You should probably search the mailing list archive and see what you can find. In general, you will find that Maven is not entirely developer-time friendly, imo. Wayne On 11/17/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, May my requirement cannot be fulfilled? Or none of Web/Application Server has the ability? Or I have to do something in my application to archive the goal(When refresh pages, re-load the classes or resources)? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I have a Web application project, and using JBoss 4.0.2. There is a requirement, after deploy the Web application to JBoss at start time, then every change on Java codes, configuration files(.xml, .properties)..., the App Server would be sensitive to it. Namely, I just change the app at development project, then JBoss would know the change at working time. For example, JBoss is running, I modify a html file(change the appearance), then I refresh the browser, the change must be shown. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/be-sensitive-to-every-change--tf2650642s177.html#a7415305 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
release:prepare without user intervention
I am new to Maven and just started playing with the plugins. I have a question, right now when i run mvn release:prepare it asks for user input. Is it possible to run the same command and instead of waiting for me to answer the questions, is it possbile for it to read some property file for those questions? Basically i would like ability to run the command without user intervention. Thanks you. - Sponsored Link Mortgage rates near 39yr lows. $510,000 Mortgage for $1,698/mo - Calculate new house payment
Re: jboss:deploy Issue
Hi guys, [1]Don't deploy successfully via the plugin. I used following config, configuration jbossHomeE:/jboss-4.0.2/jbossHome serverNamedefault/serverName fileName ${project.build.directory}/${project.build.finalName}.${project.packaging} /fileName hostNamelocalhost/hostName port8082/port /configuration and run jboss:deploy, an error thrown, [INFO] Deploying D:\maven\demo\webapp\target/webapp.war to JBoss. [INFO] No server specified for authentication - using defaults [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Mojo error occurred: Connection refused: connect But when run jboss:harddeploy, all is OK. What's wrong with the matter? What's the difference between deploy and harddeploy. Especially, I don't understand parameter deployUrlPath :( How to set it? [2]Don't start/stop JBoss via the plugin. With docs of the plugin, please see http://mojo.codehaus.org/jboss-maven-plugin/start-mojo.html I just need set jbossHome and serverName for stating/stopping JBoss server. Both of the parameters are set, please see pom.xml srcripts shown at the top of the reply. When run jboss:start or jboss:stop(even JBoss server isn't started), console shows BUILD SUCCESSFUL!!! How to solve the problem? Thanks in advance! a cup of Java, cheers! Sha Jiang Wayne Fay wrote: You've got ![CDATA[[ Try ![CDATA[ Hopefully that will work... CDATA section basically tells XML hey this next section is not XML-compliant, its just a string, please don't parse it and just keep it as-is. Wayne On 4/22/06, RobJac [EMAIL PROTECTED] wrote: Sorry wayne, but i did not actually understand what you meant here, I corrected my deployUrlPath tag as deployUrlPath![CDATA[[/jmx-console/HtmlAdaptor?action=invokeOpByNamename=jboss.system:service%3DMainDeployermethodName=deployargType=java.net.URLarg0=?and=yes]]/deployUrlPath and iam still getting the same parse exception as Exception: Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity refe rence name can not contain character =' (position: START_TAG seen ...![CDATA[[/j mx-console/HtmlAdaptor?action=invokeOpByNamename=... @184:79) Is this what you meant or i need to give the absolute path of the location of the remote server here as deployUrlPath![CDATA[[/opt/jboss403SP1/server/default?and=yes]]/deployUrlPath (This also did not work) -- View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-t1491112.html#a4041068 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jboss%3Adeploy-Issue-tf1491112s177.html#a7415906 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]