Re: Webapp won't start with jetty:run
On 11/23/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: It works fine for me ... and I see from the IRC log that the trick is to not use Maven 2.1. :) -- Wendy
Re: Project groups
it's in progress On 11/23/06, Johan Vogelzang [EMAIL PROTECTED] wrote: Hello all, We use Continuum on our CI-server. For several development teams we added projects to Continuum. In Continuum now each development team can see the build results of other teams. We want to give development teams access to their own projects in Continuum and not to the projects of other teams. Are there plans in the future to add such a feature to Continuum? Thanx, Johan. -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride
RE: calling an archetype goal from embedder
Hi Like this: MavenEmbedder embedder = new MavenEmbedder(); embedder.setClassLoader(Thread.currentThread().getContextClassLoader()); MavenEmbedderConsoleLogger logger = new MavenEmbedderConsoleLogger(); embedder.setLogger(logger); try { embedder.start(); } catch (MavenEmbedderException mee) { throw new MojoExecutionException(Embedder,mee); } Settings settings; try { settings = embedder.buildSettings(embedder .getUserSettingsPath(null), embedder.getGlobalSettingsPath(), false, false, false, Boolean.FALSE); } catch (SettingsConfigurationException sce) { throw new MojoExecutionException(Embedder,sce); } Properties main_props = new Properties(); main_props.put(groupId, whatever); main_props.put(artifactId, whatever); main_props.put(name, whatever); main_props.put(version, whatever); List goals = new ArrayList(); goals.add(archetype:create); MavenExecutionRequest request = new DefaultMavenExecutionRequest() .setBasedir(new File(c:/Temp)).setGoals(goals) .setLocalRepositoryPath( embedder.getLocalRepositoryPath(settings)) .setSettings( settings) .setProperties(main_props) .addEventMonitor( new DefaultEventMonitor(new ConsoleLogger( ConsoleLogger.LEVEL_DEBUG, logger))); try { embedder.execute(request); } catch (MavenExecutionException mee) { throw new MojoExecutionException(Embedder,mee); } Hermod -Original Message- From: Israel Klein [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 10:55 PM To: users@maven.apache.org Subject: calling an archetype goal from embedder Hello List, How can I call an archetype:create goal using the embedder? Do I have to have a fake pom.xml for that? how can I pass the parameters? (archetypeGroupId, for example) Thanks, -- Israel Klein * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to continuous integrate Maven2 projects?
Dan Tran schrieb: not why you sent it twice within an hour best to ping cruise control list. That's what he did in parallel and also twice ;) However, the double sending of the posting apparently happened by accident, not on purpose. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] How to continuous integrate Maven2 projects?
Mike Clark recommends to write a delegating build script that does the initial checkout, see: http://www.pragmaticprogrammer.com/starter_kit/au/scheduled.pdf I strongly recommend to buy the whole book! -Gisbert Amm jiangshachina schrieb: Hi guys, I'm using CruiseControl 2.5 to continuous integrate Maven2 projects. I'm blocked by the strategy of continuous integration. For example, I have a Web application project and a pom.xml. The POM has set scm element and maven-scm-plugin for CVS. I set the following scripts to CC config.xml modificationset quietperiod=30 cvs cvsroot=${cvsroot} module=${module}/ /modificationset and cvsroot=:pserver:name:[EMAIL PROTECTED]:port:repository schedule interval=180 maven2 mvnscript=E:/apache-maven-2.0.4/bin/mvn.bat pomfile=${checkoutdir}/${project.name}/${moduld}/pom.xml goal=scm:checkout clean package / /schedule I have not bootstrappers element. But command mvn scm:scheckout would checkout files to WebProject/target/checkout, but update the files in WebProject root. If I changed checkoutDirectory to .(not target/checkout), CC reported that cann't remove WebProject root directory. I think my strategy for checkouting from CVS is wrong. How to resolve the problem? Thanks in advance! a cup of Java, cheers! Sha Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum tasks
goals are define in build definitions, you can see them in the project view. By default, continuum build all projects with this command : mvn -N clean install If you have more than one build definition for your project, build now will use the default build definition. Emmanuel Morgovsky, Alexander (US - Glen Mills) a écrit : How do we know which goals are run during a Continuum build? When we press build now, does that mean Continuum executes mvn package, or does it execute something else? Also, can we configure the goals it executes during the build? 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]
sending report to last commiters ?
Hello, CruiseControl has a feature I realy like : sending mail report on build failure to peoples that commited since latest succesfull build. AFAIK cc uses CVS id and a generic email address template. Is there anything similar in continuum ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Classpath problem
Hi, I have a serious problem with kodo and maven2. Kodo needs it's license file to be put in the root of the class path and I have written a kodo plugin for maven 2 which is basically ant tasks and I have tried a hell of different ways to put this license file in different places but it seems that it is not inserted in the root of the classpath that my ant tasks use. Does anyone have any idea? Regards, Roozbeh Maadani -- View this message in context: http://www.nabble.com/Classpath-problem-tf2689837s177.html#a7500843 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: Webapp won't start with jetty:run
It works fine for me Emmanuel Wendy Smoak a écrit : $ svn up; mvn clean install $ cd archiva-webapp $ rm derby.log $ mvn jetty:run This was working a couple of weeks ago. Now I get a huge stack trace, which can be seen here: http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven/ArchivaJettyError I think the relevant part is... ... [INFO] Starting jetty 6.1.0pre0 ... 2006-11-22 22:06:14.578::INFO: jetty-6.1.0pre0 [INFO] Classpath = [ ... ] 2006-11-22 22:06:16.265:/:INFO: Loading plexus context properties from: '/WEB-INF/plexus.properties' 2006-11-22 22:06:16.265:/:INFO: Could not load plexus context properties from: '/WEB-INF/plexus.properties' 2006-11-22 22:06:17,000 [main] INFO PlexusContainer- Loading on start [role]: [org.apache.maven.archiva.scheduler.RepositoryTaskScheduler] 2006-11-22 22:06:17,140 [main] INFO RAMJobStore- RAMJobStore initialized. 2006-11-22 22:06:17,140 [main] INFO StdSchedulerFactory- Quartz scheduler 'defaultScheduler' initialized from an externally provided properties instance. 2006-11-22 22:06:17,140 [main] INFO StdSchedulerFactory- Quartz scheduler version: 1.4.5 2006-11-22 22:06:17,140 [main] INFO QuartzScheduler- Scheduler defaultScheduler_$_NON_CLUSTERED started. 2006-11-22 22:06:17.343::WARN: failed [EMAIL PROTECTED]/,file:/E:/svn/maven/archiva/archiva-webapp/src/main/webapp/} java.lang.RuntimeException: org.codehaus.plexus.PlexusContainerException: Error initializaing container in [EMAIL PROTECTED] at org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized(PlexusLifecycleListener.java:65) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:450) at org.mortbay.jetty.servlet.Context.startContext(Context.java:124) ... Does it work for anyone else?
Re: sending report to last commiters ?
It isn't implemented yet. Emmanuel Nicolas DE LOOF a écrit : Hello, CruiseControl has a feature I realy like : sending mail report on build failure to peoples that commited since latest succesfull build. AFAIK cc uses CVS id and a generic email address template. Is there anything similar in continuum ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: sending report to last commiters ?
Does this mean it is planned ? Emmanuel Venisse a écrit : It isn't implemented yet. Emmanuel Nicolas DE LOOF a écrit : Hello, CruiseControl has a feature I realy like : sending mail report on build failure to peoples that commited since latest succesfull build. AFAIK cc uses CVS id and a generic email address template. Is there anything similar in continuum ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
[m2] (Filtering Resources) adding timestamp to a property file during releasing
Hi all, any idea how to add a non static property to a property file while build time? Thanks Fredy
Re: sending report to last commiters ?
yes, but I don't remember if it's planned for 1.1 or a future version. Emmanuel Nicolas DE LOOF a écrit : Does this mean it is planned ? Emmanuel Venisse a écrit : It isn't implemented yet. Emmanuel Nicolas DE LOOF a écrit : Hello, CruiseControl has a feature I realy like : sending mail report on build failure to peoples that commited since latest succesfull build. AFAIK cc uses CVS id and a generic email address template. Is there anything similar in continuum ? Nico. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
[m2] pom.description in manifest.mf
hi all, the standard maven config is generating a manifest.mf and add the pom.description as property. That's not very nice and can create ugly errors. How can I block this feature? Fredy
EAR and eclipse plugin
My project contains an packageear/package module, when I generate my eclipse projects using the eclipse plugin, the ear module is created in eclipse as a java project and is marked on error. Any idea on how to generate a project without error in eclipse for an ear module ? -- View this message in context: http://www.nabble.com/EAR-and-eclipse-plugin-tf2689844s177.html#a7500853 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Beanshell plugin
hi all, i need to use beanshell plugin in my m2 project... found this interesting link http://scriptlandia.blogspot.com/2006/04/beanshell-plugin-for-maven2.html but somehow i keep on getting error [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven:maven-beanshell-plugin' does not exist or no valid version could be found can anyone help me out? thanx in advance and regards Marco
maven-scm-plugin: Check in
I've got a requirement to use maven to check in a war file into some CVS repository.I know the maven-scm-plugin has a 'checkin' goal , but I'm not sure how its used.May someone show me an example of how I can use the 'checkin' goal to put a war file into a CVS repository. Thanx -- 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: Beanshell plugin
if you go loook at that repository - the plugin directory has a space in its name (at the end) - there are no metadata files I can't imagine maven supports spaces in groupIds, so your best bet is to download and install it manually On 11/23/06, Marco Mistroni [EMAIL PROTECTED] wrote: hi all, i need to use beanshell plugin in my m2 project... found this interesting link http://scriptlandia.blogspot.com/2006/04/beanshell-plugin-for-maven2.html but somehow i keep on getting error [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven:maven-beanshell-plugin' does not exist or no valid version could be found can anyone help me out? thanx in advance and regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Download from central or mine?
Hi guys, I made my local repository to remote shared repository with JBoss. My local repository has many artifacts from central repository. Then I specified another local repository for my Maven-2.0.4. I set following scripts to pom.xml of my project. repositories repository idce/id nameCE Central Maven Repository/name urlhttp://172.20.82.35:8080/maven//url /repository /repositories I run mvn package for the application. I found that some artifacts were downloaded from my own shared repository, but others were from central repository. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Download-from-central-or-mine--tf2691811s177.html#a7506181 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 plugin for multi module project
Nabble archives don't open here, returns timeout everytime. Does it have protection from brazilian ips? If so, a proxy would help. Barrie Treloar, could you send an example of your assembly descriptor? Thx, Paolo Bacci On 11/23/06, Barrie Treloar [EMAIL PROTECTED] wrote: On 11/23/06, Timo Wolf [EMAIL PROTECTED] wrote: Hi, I have the same problem for some time and cannot find a solution. I found lots of users including me have big problems with the assembly plugin in multi module projects. Search the Nabble archives. I am happily using assembly in multi-module mode, however I use dependencySets not moduleSets. If you search for something like assembly example baerrach you will find the emails (and other emails with answers similar to this pointing to the original threads) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] use case problem
Hi, Any answers to this (may be too long :) ) question ? RC Hi maven users, I would like to setup a global environment with maven2 for two differents teams: development and integration/support team. The first one would describe their project with a pom.xml and access to the central and other public repositories trough a proxy (proximity) with no restrictions for the development. In the integration phase, the support team would pickup the source and pom from a SCM tagged version and should be able to compile and package the project for two environments: staging and production (differents resources directory). For those packages, the artifact and plugin repositories should be exclusively internals (another proximity repositories without remote peers). The contents, artifacts/version, of those repositories would have been submited by a dedicated validation process. So my question: what is the best solution to setup such environements ? : -settings.xml with mirrors ? But in this case, everyone would acces to public repos, even the support team. -profiles : In pom.xml? Settings.xml ? -How could we detect missing or wrong version artifacts dependencies in the integration phase. If you think I'm wrong with this architectur, please let me know :) Thanks a lot for your answer for this too long questions :-' Rémy -- - Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please
[m2] archetype plugin test resources location
I like (a bit) the way the archetype plugin copies archetype sources to a new package based on the new project name. How can I do the same thing with test resources? -- View this message in context: http://www.nabble.com/-m2--archetype-plugin-test-resources-location-tf2691992s177.html#a7506731 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: Surefire alternative
Hi Dave, Dave Syer wrote: I was advised here: http://www.nabble.com/Surefire-report-issues-tf2634455s177.html#a7353146 to use the surefire plugin version 2.1.3. There were some dependency issues (if anyone knows a repo where that version is valid please let us know), so I tried 2.1. Unfortunately it has the same problem as 2.2 with test failures producing rubbish report output (even in a standard JUnit report). Thanks, but I think I'll download the 2.2 source and patch it locally. It's worrying though that such a simple but visible bug http://jira.codehaus.org/browse/SUREFIRE-52 has been around for more than 3 months - despite having a proposed fix - and 2 releases later it's still unassigned... Best regards Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assembly plugin for multi module project
On 11/23/06, Paolo Bacci [EMAIL PROTECTED] wrote: Nabble archives don't open here, returns timeout everytime. Does it have protection from brazilian ips? If so, a proxy would help. Barrie Treloar, could you send an example of your assembly descriptor? No Idea why Nabble is blocking you. The link you want is: http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177 http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177 I have cut-n-paste the email here: http://www.nabble.com/forum/ViewPost.jtp?post=5936062framed=yskin=177 My project layout is: ROOT/ - pom.xml - module1 - moduleN - project-build - pom.xml In project-build/pom.xml I have: dependencies dependency groupIdmy.group/groupId artifactIdmodule1Artifact/artifactId version1.0-SNAPSHOT/version typezip/type /dependency dependency groupIdmy.group/groupId artifactIdmodule2Artifact/artifactId version1.0-SNAPSHOT/version classifierbin/classifier typezip/type /dependency dependency groupIdmy.group/groupId artifactIdmodule3Artifact/artifactId version1.0-SNAPSHOT/version classifierbin/classifier typezip/type /dependency dependency groupIdmy.group/groupId artifactIdmodule4Artifact/artifactId version1.0-SNAPSHOT/version typeear/type /dependency /dependencies So my main build collects 4 artifacts: - a client side eclipse RCP (artifact1) as a zip - 2 standalone applications (artifact2, artifact3) as binary builds (these are the attached binary assemblies created when you install artifact2 and artifact3) - an ear file (artifact4) My assembly in project-build/src/main/assembly/bin.xml: assembly idbin/id formats !-- There is a defect http://jira.codehaus.org/browse/MASSEMBLY-119 that means dir format will attempt to attach this format into the repository and will cause the build to fail. formatdir/format -- formatzip/format /formats includeBaseDirectorytrue/includeBaseDirectory dependencySets dependencySet unpackfalse/unpack outputFileNameMapping ${artifactId}-${baseVersion}.${extension}/outputFileNameMapping excludes !-- There is little documentation on this format. It is of the form of DefaultArtifact.getDependencyConflictId() which is groupId:artifactId:type:classifier or you can use the short form (hard coded into assembly) of groupId:artifactId This is a String equality match not a pattern match. See Project Transitive Dependencies in site/dependencies.html for easy cut and paste values to put in here -- excludecommons-beanutils:commons-beanutils/exclude exclude commons-beanutils:commons-beanutils-bean-collections/exclude excludecommons-beanutils:commons-beanutils-core/exclude excludecommons-collections:commons-collections/exclude excludecommons-configuration:commons-configuration/exclude excludecommons-digester:commons-digester/exclude excludecommons-lang:commons-lang/exclude excludecommons-logging:commons-logging/exclude excludeeasyconf:easyconf/exclude excludelog4j:log4j/exclude excludeweblogic:weblogic/exclude excludexstream:xstream/exclude /excludes /dependencySet /dependencySets /assembly You need all those excludes because you dependency on the binary artifact also depends upon the jars which get included even though those same jars have already been included in the binary assembly. http://www.nabble.com/forum/ViewPost.jtp?post=5954911framed=yskin=177 Module 1 to Module N have assemblies like src/main/assembly/bin.xml (which is building a binary distribution for an artifact say my.group:mouldeA): I have: assembly idbin/id formats formatdir/format formatzip/format /formats includeBaseDirectorytrue/includeBaseDirectory fileSets fileSet directorysrc/main/config/directory outputDirectoryconfig//outputDirectory includes include*/include /includes /fileSet fileSet directorytarget/directory outputDirectory/outputDirectory includes include${artifactId}-${version}.jar/include /includes /fileSet /fileSets files file sourcesrc/main/scripts/start_debug.bat/source filteredfalse/filtered /file file sourcesrc/main/scripts/start.bat/source filteredfalse/filtered /file file sourcesrc/main/scripts/stop.bat/source filteredfalse/filtered /file /files dependencySets dependencySet outputDirectorylib/outputDirectory unpackfalse/unpack outputFileNameMapping
Re: Surefire alternative
Actually I was wrong that the 2.1 plugin has the same problem as 2.2 with report output. But there are definitely other issues (in my case a classpath problem with forkMode=pertest). The sooner 2.2 is fixed the better. -- View this message in context: http://www.nabble.com/Surefire-alternative-tf2669759s177.html#a7507199 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] one:convert plugin
Hi maven users, The maven 2 documentation describes a plugin maven-one-plugin: http://maven.apache.org/plugins/maven-one-plugin/ I didn't success in running the one:convert phase. Indeed the repository http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-one-plugin/ contains only a 1.0 plugin, which doesn't contain this phase. Is there a way to locate (Snapshots repo ?) the up-to-date plugin without a pom.xml ? This plugin should create it from a maven 1.x project.xml Thanks, RC --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error with WebDAV URL
On 11/12/06, Wendy Smoak [EMAIL PROTECTED] wrote: I'm running Archiva from a svn checkout, with the Jetty plugin. (mvn jetty:run) ... From the Administration page, if I click on the WebDAV URL: http://localhost:9091/repository/MyRepo I get the error below. ... Error 404 Not Found Resource in error: http://localhost:9091/repository/myrepo/MyRepo I haven't been paying close enough attention to know who fixed it... but thanks, browsing repositories with Jetty works now. :) (It looks like the URL was wrong, now it's http://localhost:9091/repository/myrepo .) -- Wendy
Re: [m2] use case problem
On 11/23/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Any answers to this (may be too long :) ) question ? It was fairly long and involved. :) A few thoughts... I'm leaning towards settings.xml with the appropriate Proximity repository defined as a mirror of central. You can create a custom versions of maven by modifying the settings.xml in the maven distribution. That way you're sure that everyone is using the appropriate settings. Or you can provide instructions for developers to modify their local settings.xml files. If your integration testers are using the second Proximity repository as a mirror of central, (and no other repositories,) the build will fail if the artifacts aren't present. My concern (without trying it) is that a lot of poms add additional repositories, and I'm not sure how you're going to prevent those from being used. (Other than isolating the build machine so it doesn't have access to anything but the repository you've set up.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven eclipse plugin error
Hi, I get this error when I try to generate Eclipse configuration (mvn eclipse:eclipse) : [INFO] Preparing eclipse:eclipse [INFO] artifact org.codehaus.mojo:javacc-maven-plugin: checking for updates from Maven CodeHaus Snapshots [INFO] artifact org.codehaus.mojo:javacc-maven-plugin: checking for updates from Maven Snapshots [INFO] artifact org.codehaus.mojo:javacc-maven-plugin: checking for updates from central [INFO] snapshot org.codehaus.mojo:javacc-maven-plugin:2.2-SNAPSHOT: checking for updates from Maven CodeHaus Snapshots [INFO] snapshot org.codehaus.mojo:javacc-maven-plugin:2.2-SNAPSHOT: checking for updates from Maven Snapshots Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/test/maven-eclipse-plugin-test.pom [WARNING] Unable to get resource from repository Maven CodeHaus Snapshots (http://snapshots.maven.codehaus.org/maven2) Downloading: http://people.apache.org/maven-snapshot-repository//org/apache/maven/plugins/maven-eclipse-plugin/test/maven-eclipse-plugin-test.pom [WARNING] Unable to get resource from repository Maven Snapshots (http://people.apache.org/maven-snapshot-repository/) Downloading: http://illiade.sud.capgemini.fr:/repository/org/apache/maven/plugins/maven-eclipse-plugin/test/maven-eclipse-plugin-test.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-eclipse-plugin/test/maven-eclipse-plugin-test.pom [WARNING] Unable to get resource from repository codehaus-snapshot (http://snapshots.maven.codehaus.org/maven2) Downloading: http://illiade.sud.capgemini.fr:/repository/org/apache/maven/plugins/maven-eclipse-plugin/test/maven-eclipse-plugin-test.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-eclipse-plugin Version: test Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-eclipse-plugin:pom:test from the specified remote repositories: Maven Snapshots (http://people.apache.org/maven-snapshot-repository/), central (http://repo1.maven.org/maven2), Maven CodeHaus Snapshots (http://snapshots.maven.codehaus.org/maven2), codehaus-snapshot (http://snapshots.maven.codehaus.org/maven2) Thanks for any help. ++ 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
RE: [m2] use case problem
First, thanks for your answer. I was wondering, if this mailing list is the right place for such question. I'm leaning towards settings.xml with the appropriate Proximity repository defined as a mirror of central. You can create a custom versions of maven by modifying the settings.xml in the maven distribution. That way you're sure that everyone is using the appropriate settings. Or you can provide instructions for developers to modify their local settings.xml files. Yes. It's what I was planning to do. If your integration testers are using the second Proximity repository as a mirror of central, (and no other repositories,) the build will fail if the artifacts aren't present. My concern (without trying it) is that a lot of poms add additional repositories, and I'm not sure how you're going to prevent those from being used. (Other than isolating the build machine so it doesn't have access to anything but the repository you've set up.) Our internet access is controlled via a company proxy. It's one of the main advantage to use proximity. So if an unknown repository is declared in a given pom, the artifact resolution will fail. But if the integration team use such an exclusive repository, its feeding will be a little bit tricky? It should be filled not only with the direct needed dependencies, but with the complete tree for each of those direct dependencies? Any ideas to simplify this task ? Thanks again for the answer. RC --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Snapshots Included
For a managed repository, if Snapshots Included is UNchecked, Archiva does not index snapshots even if they are present, and the pom snippet correctly disables snapshots and enables releases. If Snapshots Enabled IS checked, Archiva indexes both snapshots and releases. However, in this case, the pom snippet has releases disabled. I don't see a way to tell Archiva snapshots only vs. snapshots and releases, and get the correct pom snippet for each. (It would require another checkbox.) I noticed this when pointing Archiva at my local repository as suggested in the getting started docs. -- Wendy
Assembly empty
Hi there, sorry to bother you again with my assembly problem. I skipped the profiles and I am using executions now. Unfortunately the assembled jar files are empty now. I am using modules and submodules. The modules are used for grouping the submodules which are packaged to Jars. I want to create a jar that contains the unpacked jar files of A, D and E module. The descriptor below used to work when I didn't have any submodules. my project structure: parent +--m1--A | |\--B | \---C | +--m2--D |\--E \---F ... I simply added this to the parent pom (for testing of only one assembly) plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId configuration descriptors descriptorsrc/main/descriptors/my-assembly.xml /descriptor /descriptors finalNamemyassembly-${project.version}/finalName workDirectorytarget/assembly/work/workDirectory /configuration /plugin my-assembly.xml: assembly formats formatjar/format /formats includeBaseDirectorytrue/includeBaseDirectory moduleSets moduleSet includes includecom.abc.p1:A/include includecom.abc.p1:C/include includecom.abc.p1:D/include /includes binaries unpacktrue/unpack /binaries /moduleSet /moduleSets /assembly Any hints what I am doing wrong? Thanks in Advance Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NoClassDefFound during surefire
Hi Guys, I am facing a weird problem when executing surefire tests. Surefire seems not to find my classes under test-classes. Do I have to add this path to the classpath in the pom.xml? Any help is very appreciated! Thanks a lot from Brasil Michael Filekeys http://www.filekeys.com/ Reservation Services Michael Roepke CEO Filekeys Reservation Services Ltd. Rua Dom Jaime Câmara 272, 1° Andar http://maps.yahoo.com/py/maps.py?Pyt=Tmapaddr=Centro+-+Florianópolis+-+San ta+Catarinacsz=Brasil+-+Caixa+Postal+6824+-+88015-972+-+Florianópolis+-+SC country=us CEP 88015-120 Centro - Florianópolis - Santa Catarina Brasil - Caixa Postal 6824 - 88015-972 - Florianópolis - SC [EMAIL PROTECTED] www.filekeys.com http://www.filekeys.com/ tel: fax: mobile: Skype ID:0055 48 3025 2230 http://www.plaxo.com/click_to_call?src=jj_signatureTo=0055+48+3025+2230Em [EMAIL PROTECTED] 0055 48 3025 2207 0055 48 8815 7982 http://www.plaxo.com/click_to_call?src=jj_signatureTo=0055+48+8815+7982Em [EMAIL PROTECTED] mmellouk http://www.plaxo.com/signature Want a signature like this?
Re: NoClassDefFound during surefire
On 11/23/06, Michael Roepke [EMAIL PROTECTED] wrote: I am facing a weird problem when executing surefire tests. Surefire seems not to find my classes under test-classes. Do I have to add this path to the classpath in the pom.xml? No, it should just work. We'll need to know more about your project in order to help. Is the source for your test classes in src/test/java ? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Download from central or mine?
Declare your repo as a mirrorOf central in settings.xml to override Central. Wayne On 11/23/06, jiangshachina [EMAIL PROTECTED] wrote: Hi guys, I made my local repository to remote shared repository with JBoss. My local repository has many artifacts from central repository. Then I specified another local repository for my Maven-2.0.4. I set following scripts to pom.xml of my project. repositories repository idce/id nameCE Central Maven Repository/name urlhttp://172.20.82.35:8080/maven//url /repository /repositories I run mvn package for the application. I found that some artifacts were downloaded from my own shared repository, but others were from central repository. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Download-from-central-or-mine--tf2691811s177.html#a7506181 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]
Configuring JRE System Library: Two JREs are added
Hello there... I am having a problem configuring the JRE System Library for my Eclipse project. When I run mvn eclipse:eclipse (after removing libraries and cleaning), both the Java 1.4 and the Java 5 system libraries are added to my project (shown in the Package Explorer). I just want Java 5. Here is my plugins configuration (pom.xml): plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target excludes / /configuration /plugin plugin artifactIdmaven-eclipse-plugin/artifactId configuration downloadSourcestrue/downloadSources classpathContainers buildcommandorg.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Java 5/buildcommand buildcommandorg.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5/buildcommand buildcommandorg.eclipse.jst.j2ee.internal.web.container/artifact/buildcommand /classpathContainers /configuration /plugin /plugins Thank you in advance for your help. I did search the forums, but please let me know if I overlooked a relevant thread! -- View this message in context: http://www.nabble.com/Configuring-JRE-System-Library%3A-Two-JREs-are-added-tf2695132s177.html#a7516230 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: QDox, Maven Plugin and JDK 1.5
http://repo1.maven.org/maven2/qdox/qdox/1.6.1/ On 22 Nov 2006, at 12:19, Emmanuel Hugonnet wrote: zze- HUGONNET E ext RD-BIZZ a écrit : zze- HUGONNET E ext RD-BIZZ a écrit : Andrew Williams a écrit : 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] I don't know how-to redefined this dependency. I have tried to use the dependencyManager to override the qdox 1.5 dependency but when I run with -X it is still using 1.5 instead of 1.6.1 :(and it is still failing while parsing my enum. I have also tried to exclude qdox from my dependency to maven- plugin-tool and added a direct dependecy to version 1.6.1 but thsi is alos not working. Is it because this is some kind of core maven component which can't be overrided ? I will try to build a local version of maven-plugin-tool but i am not sure this will be sufficient. Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Andrew, As I have written here : http://www.nabble.com/Buiding-a-simple- plugin-%3A%28-tf2669138s177.html#a7468218, I have a problem to use QDox 1.6.1 to build my plugin. How do you do this ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well it seems that qdox 1.6.1 doesn't have a pom.xml attached on maven2 repository :( - 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: generating site from parent
Have you tried staging a site? Sites generated in mvn site (not staged or deployed) will reside inside each module's target area so the links will be broken. A On 22 Nov 2006, at 02:03, Christian Goetze wrote: Wayne Fay wrote: This is discussed a couple times every week. Please search this list for parent site or just check out this recent thread: from Morgovsky, Alexander (US - Glen Mills) to users@maven.apache.org date Nov 9, 2006 4:03 PM subject Aggregate site generation I did that, and it doesn't work. I get a menu with the sub project names, but no links. The project summary seems to give me links, but they link back to the top. It is really weird. -- cg - 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: generate JAR and all dependecy jars to a folder automatically
Good day, That or codehaus' dependency-maven-plugin. You can use the documentation for maven-dependency-plugin ( [1] ) as dependency-maven-plugin's documenation since they are practically the same. Cheers, Franz [1] http://maven.apache.org/plugins/maven-dependency-plugin/ Martin Vysny-2 wrote: On Wed, 2006-11-22 at 10:20 +0100, [EMAIL PROTECTED] wrote: Hi, is there any possibility with maven (or a different tool) to create a folder with the JAR of the project and all necessary JAR dependency files to run the application? Right now i have to copy the other JAR files manually ;-( http://maven.apache.org/plugins/maven-assembly-plugin Regards, Thorsten example: pom.xml ?xml version=1.0? project modelVersion4.0.0/modelVersion groupIdgroup/groupId artifactIdemu/artifactId nameEmu/name version1.0/version dependencies dependency groupIdjava_help/groupId artifactIdjava_help/artifactId version2.0_02/version /dependency dependency groupIdjgoodies/groupId artifactIdforms/artifactId version1.0.7/version /dependency dependency groupIdSwingLayout/groupId artifactIdSwingLayout/artifactId version0.1/version /dependency /dependencies result: emu-1.0.jar lib java_help-2.0_02.jar jgoodies-1.0.7.jar SwingLayout-0.1.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/generate-JAR-and-all-dependecy-jars-to-a-folder-automatically-tf2684377s177.html#a7516963 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: maven-scm-plugin: Check in
since scm:checkin doc is available, could you give it a try ? On 11/23/06, Jeff Mutonho [EMAIL PROTECTED] wrote: I've got a requirement to use maven to check in a war file into some CVS repository.I know the maven-scm-plugin has a 'checkin' goal , but I'm not sure how its used.May someone show me an example of how I can use the 'checkin' goal to put a war file into a CVS repository. Thanx -- 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: Compiler Plugin Extension
Good day to you, Markus, for 1.) maven resources plugin can do that (see [1]). And as for two, You can try what Wayne suggested. But those jars have to be installed in your local repo. Either that, or you use systemPath dependency groupIdsome.eclipse.groupId/groupId artifactIdan-eclipse-jar/artifactId version1.0/version scopesystem/scope systemPath${eclipse.home}/plugins/an-eclipse-jar.jar/systemPath /dependency Cheers, Franz [1] http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html Markus Wolf-3 wrote: Hi, You can always add dependencies directly to the plugin node, but this assumes that you have the artifacts available in your repo. thats no opinion, because there are no artifacts available (but I could possibly create some...) You're going to need to provide more information about these external jars, I think, for us to help you much. I'm creating a bunch of eclipse plugins for a rcp application packaged in an ear application for glassfish. When keeping this parts (client and server) seperated it is quite easy. Build eclipse parts with eclipse and the ear with maven, but I woule like to create everything with maven. My idea was to add the eclipse install directory to a custom mojo which consists of two goals: 1) In phase process-resources the plugin.xml, MANIFEST.MF and other plugin resources would be copied to the target location. 2) During the compile phase the jars from eclipse-root/plugins would be added to the compiler. (It could be extended to only add the plugins required by the plugin). When adding the eclipse dependencies to the POM (statically) and then recreating the eclipse project, the dependencies are duplicated. Once in plugins-dependencies (managed by ecipse throught the manifest) and once because maven adds them to the eclipse dependencies. Is there a way to accomplish what I want to do? Thanks Markus -- __ Markus Wolf Wedeler Landstrasse 63 22559 Hamburg tel: (+49) 40 / 550 083 70 mob: (+49) 177 / 288 48 67 web: http://www.matrixweb.de icq: #109622365 pgp: http://wwwkeys.de.pgp.net __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Compiler-Plugin-Extension-tf2682273s177.html#a7517180 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: What is Doxia?
Good day to you, Ole, Eric is right. There's currently no documentation (user-level) for Doxia, but the usual way it is used in maven is via the maven-site-plugin ( see [1] ) Cheers, Franz [1] http://maven.apache.org/plugins/maven-site-plugin Eric Redmond wrote: You're correct, it is a generic documentation framework, allowing one to write documents in one markup (xdoc, APT, etc) and generate something else (HTML, PDF). It does this through the sink mechanism... any markup can output to the sink API (defined as modules), and thus may render to any supported type (via renderers). http://svn.apache.org/repos/asf/maven/doxia/trunk/ Unfortunately no, it is not documented. But it is built into the Maven site generation, which you can use via the normal constructs - APT, XDoc. Eric On 11/22/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, Does anyone know where I can find some information on Doxia. Based on the name I'm guessing it's for documentation. Are there any resources showing usage examples? Thanks, - Ole Sponsored Link Mortgage rates near 39yr lows. $420k for $1,399/mo. Calculate new payment! www.LowerMyBills.com/lre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eric Redmond http://codehaus.org/~eredmond -- View this message in context: http://www.nabble.com/What-is-Doxia--tf2689644s177.html#a7517188 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: Archetype Question
Good day to you, Michael See [1] for more information. Cheers, Franz [1] http://www.nabble.com/archetype-descriptor-schema--tf2181358.html#a6061573 Michael Schlotfeldt-4 wrote: Found out there is a filtered and a encoding attribute on the resource tag. Had to read through the source code though. Michael Schlotfeldt wrote: Easy questions (hopefully): 1. When creating a custom archetype how do you list resources to *not *replace variables from? Or in other words not modify instances of ${blah}. It would be nice to not only be able to escape individual instances in a file but also files completely for things like images. 2. Why the different tags? Or in other words why not just have resources? What does testResources do differently? You still need to write the entire relative path. 3. Why must all resources be list in archetype.xml? What is the purpose? When would you not list a file? Thank you for all the help. Also there is an error on: http://maven.apache.org/guides/mini/guide-creating-archetypes.html About half way down tags are listed with hyphens instead of capitals between words (eg. test-resources instead of testResources). Once again, thanks! - Michael - 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/Archetype-Question-tf2682275s177.html#a7517228 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: Archetype Question
Good day to you, Wendy, I haven't looked at arhceytpe's code for quite some time now. But if archetype filters those resources using ${} and @@ delimeters, you can do the workaround in [1]. Cheers, Franz [1] http://jira.codehaus.org/browse/MRESOURCES-29 Wendy Smoak-3 wrote: On 11/21/06, Michael Schlotfeldt [EMAIL PROTECTED] wrote: Found out there is a filtered and a encoding attribute on the resource tag. Had to read through the source code though. This still doesn't address the problem of filtering some, but not all, expressions in a file, right? Has anyone found a way to escape expressions in Velocity, so it will pass them through? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Archetype-Question-tf2682275s177.html#a7517251 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: Default target
Good day to you, Allan, That depends on the plugin. If a plugin your using decides to put everything in the target directory of your parent, then the output will be there. If it decides to have the output in the modules individual targets, then they will be there. Cheers, Franz Allan Valeriano wrote: Hi, I'd like to know if, on a multi-module project, maven uses a target directory for each module separately or if it has just one target directory for the parent project and all the modules save their class files on this default directory. thanks in advance Allan Valeriano -- View this message in context: http://www.nabble.com/Default-target-tf2685008s177.html#a7517286 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] mvn site:run throwing java.util.ConcurrentModificationException when apt file edited and saved.
Thanks to Wendy, I am now running mvn site:run so I can see my changes straight away instead of waiting for mvn site to finish. When I browse to a page I get the following error: [INFO] [site:run] :INFO: Logging to STDERR via org.mortbay.log.StdErrLog [WARNING] Unable to load parent project from repository: Could not find the model file 'D:\ide\workspace\maven\pde-maven-plugin\..\pom.xml'. [INFO] Starting Jetty on http://localhost:8080/ :INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet :INFO: Started SelectChannelConnector @ 0.0.0.0:8080 [INFO] Generate About report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 :WARN: /css/maven-theme.css java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449) at java.util.AbstractList$Itr.next(AbstractList.java:420) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.locateDocumentFiles(DefaultSiteRenderer.java:132) at org.apache.maven.plugins.site.webapp.DoxiaFilter.doFilter(DoxiaFilter.java:102) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:869) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:348) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:174) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:220) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:536) at org.mortbay.jetty.Server.handle(Server.java:331) at org.mortbay.jetty.Server.handle(Server.java:301) at org.mortbay.jetty.HttpConnection.doHandler(HttpConnection.java:351) at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:598) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:489) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:198) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:289) at org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:710) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:412) I am going to assume the failed parent pom warning can be ignored (as it usually can, it should be getting parent from the local m2 repository) I am going to assume the errors about VM macros being incorrect can be ignored (mvn site spits out large numbers of them and it builds the web site correctly) However I have no idea why /css/maven-theme.css is causing this exception. /css/site.css and /css/maven-base.css also throw this exception. The page still displays, but it looks ugly since none of the CSS files appear to be applied. Has anyone else had this problem? Cheers Barrie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to test code that sends message to JMS queue
hi I have java file that sends JMS message to a queue in the JBOSS server. I have a junit testcase that tests sending of messages to the queue.I have included all the necessary jars with the default scope. But when I run the command 'mvn test', I see testcase gives NullPointerException. It failes to get connection to the queue. Can anyone help me out. I have attached the source file, test file and the POM Thanks Ganesh - Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOWproject 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 groupIdorg.apache.commons.logging/groupId artifactIdcommons-logging/artifactId packagingjar/packaging version1.0.2/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url descriptionhfdahfdhfdiooiasdfhio/description dependencies dependency groupIdjdom/groupId artifactIdjdom/artifactId version1.0/version /dependency dependency groupIdant/groupId artifactIdant/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-launcher/artifactId version1.6.5/version /dependency dependency groupIdant/groupId artifactIdant-junit/artifactId version1.6.5/version /dependency dependency groupIdjboss/groupId artifactIdjbossall-client/artifactId version4.0.4.GA/version /dependency dependency groupIdjboss/groupId artifactIdjbossall-client/artifactId version4.0.4.GA/version scopetest/scope /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version /dependency /dependencies /project /* * Copyright (c) 2006, CA. All rights reserved. * This software and all information contained therein is confidential and proprietary and may not be duplicated, * disclosed or reproduced in whole or in part for any purpose except as authorized by the applicable license agreement, * without the express written authorization of CA. All authorized reproductions must be marked with this language. * TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS SOFTWARE AS IS WITHOUT WARRANTY OF ANY KIND, INCLUDING * WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. * IN NO EVENT WILL CA BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE * USE OF THIS MATERIAL, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION, GOODWILL, OR LOST DATA, * EVEN IF CA IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. * Modification details Developer name Modification Date * Initial Codemutvi02 October 26, 2006, 7:50 PM */ package com.ca; import java.io.BufferedWriter; import java.util.Date; import javax.naming.*; import javax.jms.*; import java.util.Hashtable; import java.io.*; //import org.apache.log4j.Logger; /** * FeedbackQueueHandler is a Singleton class which enqueues objects of type * ExecutionMessage into FeedbackQueue */ public class FeedbackQueueHandler { // used for logging //private Logger log = Logger.getLogger(FeedbackQueueHandler.class); // holds the singleton instance for this class private static FeedbackQueueHandler reference = null; static BufferedWriter bw; // needed inorder to lookup the JNDI tree private InitialContext context; // represents the starting point for other operations private ConnectionFactory connectionFactory; // represents an active connection to the JMS provider which is // an application server private Connection connection; // Singleton Class - so constructor is private // connection and other needed instances are required to be created // only once. So there will only be one connection (it is heavy) and // one or more sessions (lightweight). private void writeFile(String str){ try{ if(bw!=null){ bw.write(str+\n); bw.flush(); } } catch(IOException ie){} } private FeedbackQueueHandler() { try { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); // Connects to the JMS Server env.put(Context.PROVIDER_URL,jnp://localhost:1099); env.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces ); context = new InitialContext(env); if(context==null) writeFile(Context is null\n); writeFile(Getting connection factory\n); connectionFactory =