RE: how do i disable the sunconvention check with checkstyle?
Hello Rolf You have to place the configuration element directly inside the plugin element. Further pay attention that your plugin element is defined inside build/pluginManagement/plugins, else (if it is defined inside build/plugins) checkstyle will be executed on phase verify (directly before phase install) one more time. Due to issue http://jira.codehaus.org/browse/MNG-1931 config made in pluginManagement will not be directly reused in element reporting. You have to copy your configuration for site generation! At best you use properties (checkstyle.config.location and so only) to config the checkstyle-plugin without adding a configuration section. For an example have a look at http://svn.sourceforge.net/viewvc/el4j/trunk/el4j/pom.xml?view=markup Cheers, Martin -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Dienstag, 10. Oktober 2006 16:21 To: Maven Users List Subject: how do i disable the sunconvention check with checkstyle? Hi I have a custom configuration. But both the sun conventions are checked as well as my own. I don't need the sun conventions btw the build needs to fail on violations so I added the check goal. here is the part of the config: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId executions execution idbasisregistratie styles release 1/id phaseprocess-sources/phase configuration configLocation br_styles_release1.xml /configLocation suppressionsLocation suppressions.xml /suppressionsLocation failOnViolationtrue/failOnViolation /configuration goals goalcheck/goal /goals /execution /plugin thanx Rolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: Multiple Project, Multiple POM
I have try your suggestion. And I found that, I must do two step to make My OSSTAF upto date, first I must do \jgtfw\mvn install then \osstaf\mvn jetty:run However, using that technique, I can not use Jetty's Hot Development Feature Is there any better solution??? -- View this message in context: http://www.nabble.com/Multiple-Project%2C-Multiple-POM-tf2408736.html#a6751433 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: Ant Mojo: How to use echoproperties (optional task)
I'm trying to make a reusable plugin as described in section 5.4.2 of Better builds with Maven and on http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html (both docs do slightly differ and it seems that the website is the more current version). It works fine with core ant tasks but not with optional tasks like echoproperties. I'm using Maven 2.0.4. -Gisbert Jason van Zyl wrote: Just to be clear an Ant-based Mojo is not the same thing as using the Ant Run plugin. I have just merged the underlying utilities for the Ant Run plugin and the Ant-based Mojos. Prior to yesterday Ant-based mojos were not very useful as there was no way to get hold of the various classpaths constructed by Maven as are available in the Ant Run plugin. Are you trying to use the Ant Run plugin or make a reusable plugin using Ant script? Jason. On 10 Oct 06, at 10:29 AM 10 Oct 06, Gisbert Amm wrote: I get this error message: Could not create task or type of type: echoproperties. I found this discussion: http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/% [EMAIL PROTECTED] and the mentioned documentation at: http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html However, without further explanation I can't figure out how to use the echoproperties task. Could somebody please point me in the right direction? Regards, Gisbert Amm - 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] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m204] Issue with transistive dependancies and Springframework
Hi. Is anyone else using spring 2.0 and acegi 1.0.2 It seems acegi 1.0.2 is requiring spring 1.2.7 and adds 1.2.7 and 2.0 into my ear. Is this an issue with the spring libs I imported? Below are my current dependencies: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.0-rc3/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-mock/artifactId version2.0-rc3/version /dependency dependency groupIdorg.acegisecurity/groupId artifactIdacegi-security/artifactId version1.0.1/version exclusions exclusion groupIdorg.springframework/groupId artifactIdspring-remoting/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-jdbc/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-support/artifactId /exclusion exclusion groupIdorg.springframework/groupId artifactIdspring-mock/artifactId /exclusion exclusion groupIdcas/groupId artifactIdcasclient/artifactId /exclusion exclusion groupIdaspectj/groupId artifactIdaspectjrt/artifactId /exclusion exclusion groupIdorg.apache.directory.server/groupId artifactIdapacheds-core/artifactId /exclusion exclusion groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId /exclusion /exclusions /dependency Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to query our own repository?
We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus begin:vcard fn:Markus KARG n:KARG;Markus org:QUIPSY QUALITY GmbH;Entwicklung / R D adr:;;Stuttgarter Strasse 23;Pforzheim;Baden-Wuerttemberg;75179;Bundesrepublik Deutschland email;internet:[EMAIL PROTECTED] title:Staatl. gepr. Inf. tel;work:+49-7231-9189-52 tel;fax:+49-7231-9189-59 note:QUIPSY(R) Entwicklung / R D x-mozilla-html:TRUE url:http://www.quipsy.de version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
Re: java2wsdl
On 10/9/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, i see in my case, my wstools (jboss) can see the Java file from which generate the wsdl because i am specifying it as an ant task, and i am specifying the classpath.. that's why the tool sees my interface check on plugin docs if there is a way to specify classpath... Thanks for the help but I give up. I've tried to clean my code and to place each parameter according to docs btu plugin docs are a joke. I can't lose more time with this. I guess I'll try to use ant tasks from maven.. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling and running CPPUNIT Tests using maven
I am fairly new to maven and currently using the native-maven-plugin (http://mojo.codehaus.org/maven-native/native-maven-plugin/) to build native source files. I am wondering what the next step should be to run CPPUnit tests from Maven? Looking at the CPPUnit cookbook, the easiest solution would be to package the compiled source as an exe and run it, however I am open to suggestion and any help would be appreciated. The pom files used are as follows: 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 groupIdnative.test/groupId namenative/name artifactIdnative-parent/artifactId packagingpom/packaging !-- these should be deleted when using a parent pom-- version1.0-SNAPSHOT/version build pluginManagement plugins plugin !-- configure the Mojo native plugin -- groupIdorg.codehaus.mojo/groupId artifactIdnative-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version extensionstrue/extensions !-- Make child POMs inherit this configuration -- inheritedtrue/inherited configuration !-- All compiler flags are determined by the profile -- compilerProvider${compiler.provider}/compilerProvider envFactoryName${env.factory.name}/envFactoryName compilerStartOptions compilerStartOption${compiler.options}/compilerStartOption /compilerStartOptions linkerExecutable${linker.executable}/linkerExecutable linkerStartOptions !--main concept sdk should be a dependency-- linkerStartOption ${linker.options} /linkerStartOption /linkerStartOptions !-- Define the sources for the library build -- sources !-- source files -- source directory../src/main/native//directory includes include**/*.cpp/include /includes /source !-- test files-- source directory../src/test/directory includes include**/*Test.cpp/include /includes /source /sources /configuration /plugin /plugins /pluginManagement /build profiles !-- Default profile for Windows: MSVC compiler -- profile idwin32-msvc/id activation os familywindows/family /os /activation modules modulewin32-msvc/module /modules /profile /profiles !-- Repos for using the mojo native plugin -- repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /repository /repositories pluginRepositories pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories /project The MSVC module pom: 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 parent groupIdnative.test/groupId artifactIdnative-parent/artifactId version1.0-SNAPSHOT/version relativePath../pom.xml/relativePath /parent artifactIdnative-child/artifactId nameNative MSVC/name packaging${packaging.type}/packaging build finalName${artifactId}/finalName plugins plugin !-- configure the Mojo native plugin -- groupIdorg.codehaus.mojo/groupId artifactIdnative-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version extensionstrue/extensions configuration !-- All compiler flags are determined by the profile -- compilerProvidermsvc/compilerProvider env.factory.nameorg.codehaus.mojo.natives.msvc.MSVC2005x86EnvFactory/env. factory.name compilerStartOptions compilerStartOption${compiler.options}/compilerStartOption /compilerStartOptions linkerExecutabledll/linkerExecutable linkerStartOptions linkerStartOption/linkerStartOption /linkerStartOptions /configuration /plugin
WG: [M2] Deploy into Remote Repository
Hello, I want to achieve the following: I have a remote repository on our local server and I want to say M2 that it has to deploy projects artefacts into this remote repository. But without configuring this directly in each pom.xml, because we have multiple projects and for each of them the repository will be the same. Is this possible? Mit freundlichem Gruß / Best Regards Sebastian Krebs QUIPSY QUALITY GmbH Stuttgarter Strasse 23 D-75179 Pforzheim [EMAIL PROTECTED]
how to exclude a package / files from generated JAR-file?
While migrating from Maven1 to Maven2... I've been trying to find a proper solution for this, but I'm still stuck with this. I have Java-files in 3 packages (folders) in my Eclipse project and I wan't (for some reasons) to excelude one of these packages. With mvn package command I get an JAR-file with all .class files. I've been trying with differend solutions to excelude files / folder(s) from the JAR with any luck. In Maven 1, I was able to enter the exceluded folder in project.properties-file, but in maven2 I don't know what to put and where :| Any ideas? -- View this message in context: http://www.nabble.com/how-to-exclude-a-package---files-from-generated-JAR-file--tf2422135.html#a6752935 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Machine specific settings
I'm having a go at moving from Maven 1.x up to 2.0 and can't quite work out the correct way to model local machine specific settings. I've looked through the docs and mailing lists so have found various details about profiles but I can't quite see how to use them to cater for certain setup issues. Take, for example, the jdkName property for the idea plugin. Under 1.x I just added this to my build.properties: maven.idea.jdk=1.4 and all is well - that's the name I've given to it in my local Idea setup so it works nicely. Now switching over to M2 I could just put this in the pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-idea-plugin/artifactId configuration jdkName1.4/jdkName /configuration /plugin Now this forces every developer to have a JDK set up in Idea called 1.4, which they may not want - perhaps they prefer to name them fully (e.g. 1.4.2_05). I did look to just put an override for this setting in a settings.xml or profiles.xml file, but changing plugin settings seems to be disallowed in these files. Another example would be specifying a specific compiler executable. This can be set in the pom plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration executableC:/Program Files/Java/jdk1.4.2_05/bin/javac/executable but that relies on everybody installing Java to the same location, which never happens, so doesn't work. Can somebody enlighten me? Given the amount of thought that's clearly gone into M2 I'm sure this sort of thing must be catered for and it's just me not seeing how thanks James -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven 1, need help jar:test-jar
Hi, using Maven 1.0.2, I am just wondering is this plugin available for maven 1: http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html Using multiproject and some tests have dependencies on common files so would be nice not to have to duplicate the resources. Is a viable alternative to run a custom maven goal (ant task?) to compile a jar and then add a dependency to it in the project.xml file? -- View this message in context: http://www.nabble.com/Maven-1%2C-need-help-jar%3Atest-jar-tf2422460.html#a6753737 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: creating different packages for different customers
You should also look at web-app filtering, to replace tokens in web.xml or other config or jsp files with properties which you set in profiles, one profile for each customer. I can see that seperate wars for each customer would be v. useful for situations where the differences between customers are extensive, but for smaller differences with just one or two jsps, wouldn't it be a pain to edit and test the jsps? However I'm having issues with my maven / eclipse / tomcat development environment at the moment anyway, so i guess it depends heavily how you are doing it in the first place. Regards Adam Jörg Schaible wrote: Marek Chowaniok wrote on Tuesday, October 10, 2006 11:22 AM: Jörg Schaible wrote: Marek Chowaniok wrote on Tuesday, October 10, 2006 7:36 AM: We have separate projects (i.e.product-web-customer, product-web-customer1 and product-web-customer2) with just the different files. i.e. we have 20 jsp pages but just the 2 are defferent and are in separate projects. Right now (not using maven in this project yet) we have to do deploy for product-web-customer and replace files in this deploy with concrete jsp files from different project. I am just starting using maven, so I don't know what the proper way how to do it. And how maven usually handle this situation. So is there something that I would do deploy for product-web-customer and tell maven to add/replace some JSP from different customer project ? Generate a war artifact for the common stuff and 3 ones for the different customers. Let those be dependend on the common war, it will merged into the customer's ones. Thanks Jorg, if I understand it corectly than product-web-customer will have in pom.xml packagingpom/packaging and the 3 others will have in pom.xml packagingwar/packaging and those 3 will have dependecy on the parent ? No, all are wars. Keep the common stuff in one and make the others depednend on it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clover Plugin doesn't generate XML report
I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. Did I miss something? Which file is the XML report supposed to be generated to? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Repository Handling (and ibiblio fallback)
Hello, I’m looking for some help on repository handling. In our company we have 2 internal repository servers (both running maven-proxy). They are also used for Ibiblio mirroring. And they both contain 2 directories (one for snapshots and one for releases). This setup is complete and works like a charm. The problem lies with the maven configuration. 1) We can set the mirror tag in the settings.xml. This cause 2 problems. One It always searches on one of the configured servers. So when we need a artifact that was deployed on a other server it can’t find it and fails. The second problem is when I or my colleages work on their laptop at home none of these 2 servers are available and It doesn’t switch back to the main ibiblio server ( HYPERLINK http://www.ibiblio.org/maven2www.ibiblio.org/maven2 ). mirrors mirror idrepo1/id mirrorOfcentral/mirrorOf nameIbiblio Mirror 1/name urlhttp://192.168.1.2:/repository/url /mirror mirror idrepo1/id mirrorOfcentral/mirrorOf name Ibiblio Mirror 1/name urlhttp://192.168.1.3:/repository/url /mirror /mirrors 2) The other possibility is to create a profile in the settings.xml and declare the repositories there. The same problem occurs here there is only one repository chosen to look for the object. So if its deploys to the other server though break. Also the pom gets downloaded from ibiblio and the jar from the local mirroring ibiblio server. This you can solve with declaring the id of the repository to central. And again when I work at home no artefact downloading is possible because of no access to the repositories is possible. profiles profile idmyprofile/id repositories repository idRepo1/id namerepo1/name urlhttp://192.168.1.3:/repository/url /repository repository idRepo2/id namerepo2/name urlhttp://192.168.1.2:/repository/url /repository /repositories /profile /profiles activeProfiles activeProfilemyprofile/activeProfile /activeProfiles How do I create this setups fully automated ? Is this normal behaviour or is this a bug. Maven always seems to just look at one of the declared repositories. I have tried a lot but can’t seem to get this setup up and running. What we do know is when we work at home we disable a profile with the internal repositories declared in the settings.xml and for the the 2 internal repo servers (releases and snapshots) we rsync (as a cron job) the directories on the 2 so both servers contain the same structure and content. Thanks for any assistance you can provide. -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006
RE: Clover Plugin doesn't generate XML report
Hi, -Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: mercredi 11 octobre 2006 12:18 To: Maven Users List Subject: Clover Plugin doesn't generate XML report I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. As the doc says there's no report generated, only an XML file which you can link to your web site. See http://tinyurl.com/h5rgu More specifically it says: Note that only the HTML report gets a link in the Project Reports section in generated menu on the site. If you want to link the PDF or XML reports you'll need to do that by modifying your site.xml. For example: [...] Did I miss something? Which file is the XML report supposed to be generated to? There should be a site/clover/clover.xml file generated. Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
war created duplicated project in web-inf/classes
Hi when I create package for war project it duplicates whole project to WEB-INF/classes. So it looks like: Project.war: *css *jsp *META-INF *WEB-INF *lib *all dependency jars *classes *classes *compiled java classes (THIS IS ON CORRECT PLACE) *css (SHOULD'NT BE HERE) *jsp (SHOULD'NT BE HERE) *META-INF (SHOULD'NT BE HERE) *WEB-INF (SHOULD'NT BE HERE) *classes (SHOULD'NT BE HERE) *compiled java classes (SHOULD'NT BE HERE) Here is my pom.xml: ?xml version=1.0 encoding=UTF-8? project parent artifactIdReport/artifactId groupIdcom.xyz.Report/groupId version0.0.1/version /parent modelVersion4.0.0/modelVersion groupIdcom.xyz.Report/groupId artifactIdReportGeneratorLogic/artifactId description/description build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet verbose=true ejbSpec=2.1 force=true destDir=${project.build.sourceDirectory}/generated-sources/xdoclet fileset dir=${project.build.sourceDirectory} include name=**/*Bean.java/include include name=**/*MDB.java/include /fileset packageSubstitution packages=ejb substituteWith=interfaces3 /packageSubstitution homeinterface/homeinterface remoteinterface/remoteinterface localhomeinterface/localhomeinterface localinterface/localinterface utilobject/utilobject session/session deploymentdescriptor destDir=${project.build.outputDirectory}/META-INF /deploymentdescriptor /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build dependencies dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId version3.1rc2/version /dependency dependency groupIdcom.xyz.Report/groupId artifactIdReportGeneratorHibernate/artifactId /dependency dependency groupIdcom.xyz.Report/groupId artifactIdReportGeneratorCommon/artifactId /dependency dependency groupIdcom.xyz.Report/groupId artifactIdReportMPress/artifactId /dependency dependency groupIdjboss/groupId artifactIdjboss-j2ee/artifactId
Re: Clover Plugin doesn't generate XML report
Vincent Massol wrote: I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. As the doc says there's no report generated, only an XML file which you can link to your web site. See http://tinyurl.com/h5rgu Saying XML report I simply meant XML file. BTW: Is there a certain reason for the duplicate information on this both sites?: http://maven.apache.org/plugins/maven-clover-plugin/howto.html http://maven.apache.org/plugins/maven-clover-plugin/usage.html Did I miss something? Which file is the XML report supposed to be generated to? There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. What could be the reason for that? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Machine specific settings
Add in ~/.m2/settings.xml a profilesprofile that defaults activates and has a buildpluginsplugin... idea with configurationjdkName1.4/jdkName Or create a profiles.xml file in your project dir, which does the same thing. See the free m2 book. Shute, James wrote, On 2006-10-11 11:25 AM: I'm having a go at moving from Maven 1.x up to 2.0 and can't quite work out the correct way to model local machine specific settings. I've looked through the docs and mailing lists so have found various details about profiles but I can't quite see how to use them to cater for certain setup issues. Take, for example, the jdkName property for the idea plugin. Under 1.x I just added this to my build.properties: maven.idea.jdk=1.4 and all is well - that's the name I've given to it in my local Idea setup so it works nicely. Now switching over to M2 I could just put this in the pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-idea-plugin/artifactId configuration jdkName1.4/jdkName /configuration /plugin Now this forces every developer to have a JDK set up in Idea called 1.4, which they may not want - perhaps they prefer to name them fully (e.g. 1.4.2_05). I did look to just put an override for this setting in a settings.xml or profiles.xml file, but changing plugin settings seems to be disallowed in these files. Another example would be specifying a specific compiler executable. This can be set in the pom plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration executableC:/Program Files/Java/jdk1.4.2_05/bin/javac/executable but that relies on everybody installing Java to the same location, which never happens, so doesn't work. Can somebody enlighten me? Given the amount of thought that's clearly gone into M2 I'm sure this sort of thing must be catered for and it's just me not seeing how thanks James -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Clover Plugin doesn't generate XML report
-Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: mercredi 11 octobre 2006 15:04 To: Maven Users List Subject: Re: Clover Plugin doesn't generate XML report Vincent Massol wrote: I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. As the doc says there's no report generated, only an XML file which you can link to your web site. See http://tinyurl.com/h5rgu Saying XML report I simply meant XML file. BTW: Is there a certain reason for the duplicate information on this both sites?: http://maven.apache.org/plugins/maven-clover-plugin/howto.html http://maven.apache.org/plugins/maven-clover-plugin/usage.html Hehe... This is because howto doesn't exist anymore but the site deploy plugin doesn't remove old files... We'll need to manually log on the machine and clean the files and then do a redeploy. Thanks for pointing this. Did I miss something? Which file is the XML report supposed to be generated to? There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. Ok sorry. I misunderstood. I thought you meant XML report when you only meant that there's no XML file... :-) What could be the reason for that? Hmmm... Very strange. What version of the clover plugin are you using? Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java2wsdl
so you tried to generate a set of wsdl files from your java source, but you ran the wsdl2java instead. is it a miss typed? -D On 10/11/06, Javier Leyba [EMAIL PROTECTED] wrote: On 10/9/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello, i see in my case, my wstools (jboss) can see the Java file from which generate the wsdl because i am specifying it as an ant task, and i am specifying the classpath.. that's why the tool sees my interface check on plugin docs if there is a way to specify classpath... Thanks for the help but I give up. I've tried to clean my code and to place each parameter according to docs btu plugin docs are a joke. I can't lose more time with this. I guess I'll try to use ant tasks from maven.. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: changelog-maven-plugin and CVS
I posted this message a couple of days ago and I got no replies. Did I miss any details that I needed to include? If you know of a better place to find a solution, could you please redirect me to it? Sam Anabtawi wrote: I have been trying to get the changelog-maven-plugin to work with CVS for a few hours now. I have searched for the topic and found a few good threads, but I never really found a definite solution. Error Message [WARNING] Error loading report org.apache.maven.changelog.ChangeLogReport - AbstractMethodError: canGenerateReport() [WARNING] Error loading report org.apache.maven.changelog.DeveloperActivityReport - AbstractMethodError: canGenerateReport() [WARNING] Error loading report org.apache.maven.changelog.FileActivityReport - AbstractMethodError: canGenerateReport() Maven Version 2.0.4 changelog-maven-plugin Version 2.0-beta-1 OS Windows Xp Pro Plugin Declaration in POM.xml reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId /plugin /plugins /reporting SCM Configuration POM.xml First Variation: scm connectionscm:cvs:pserver:username:[EMAIL PROTECTED]:2401:/a/cvs:OMS/connection developerConnectionscm:cvs:pserver:username:[EMAIL PROTECTED]:2401:/a/cvs:OMS/developerConnection urlhttp://repository/url /scm Second Variation scm connectionscm:cvs:pserver:username:@cvsserver:2401:/a/cvs:OMS/connection developerConnectionscm:cvs:pserver:username:@cvsserver:2401:/a/cvs:OMS/developerConnection urlhttp://repository/url /scm Note that I removed the password yet left the : just like some thread suggested. I also did a cvs login from the command line right before I tried the above scm. Third Variation scm connectionscm:cvs:pserver:username:@cvsserver:/a/cvs:OMS/connection developerConnectionscm:cvs:pserver:username:@cvsserver:/a/cvs:OMS/developerConnection urlhttp://repository/url /scm Note that I removed the port number. The SCM Template I am Trying to Follow I will put this here for quick reference: scm:cvsdelimiterpserverdelimiter[username[delimiter[EMAIL PROTECTED]delimiterport]delimiterpath_to_repositorydelimitermodule_name Other Notes 1) I am not using the standard Maven directory structure. All I am supposed to do with Maven is create a project site for an existing project using mvn site:site. 2) The site is generated successfully (I love the site!), but clicking on any of the changelog links displays this message: No sources found to create a report. 3) I hope I was thorough enough, and thank you for your help in advance! -Sam -- View this message in context: http://www.nabble.com/changelog-maven-plugin-and-CVS-tf2411040.html#a6755930 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: [m2] release plugin - how to automatic releasing (nightly build)
Yes it is; you run this with --batch-mode option. This way all the defaults (this is what you want anyway) are automatically chosen. -dh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 10:50 AM To: users@maven.apache.org Subject: [m2] release plugin - how to automatic releasing (nightly build) Does anybody nightly builds with maven release plugin? Is it possible to run the plugin withaout user interaction? Thanks Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich ber unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhnge enthalten vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschlieend diese Mail und die Anlagen. - 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: Compiling and running CPPUNIT Tests using maven
Hi Craig, You will need to build your test source as an exe and link against you main artifact ( .lib, or dll, etc) here is my suggestion parent win-x86 win-x86-test link against win-x86 and use antrun to invoke the test linux-x86 linux-x86-test In the future, the plugin should provide support to merge the test as part of the main module -D On 10/11/06, Pickles, Craig [EMAIL PROTECTED] wrote: I am fairly new to maven and currently using the native-maven-plugin (http://mojo.codehaus.org/maven-native/native-maven-plugin/) to build native source files. I am wondering what the next step should be to run CPPUnit tests from Maven? Looking at the CPPUnit cookbook, the easiest solution would be to package the compiled source as an exe and run it, however I am open to suggestion and any help would be appreciated. The pom files used are as follows: 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 groupIdnative.test/groupId namenative/name artifactIdnative-parent/artifactId packagingpom/packaging !-- these should be deleted when using a parent pom-- version1.0-SNAPSHOT/version build pluginManagement plugins plugin !-- configure the Mojo native plugin -- groupIdorg.codehaus.mojo/groupId artifactIdnative-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version extensionstrue/extensions !-- Make child POMs inherit this configuration -- inheritedtrue/inherited configuration !-- All compiler flags are determined by the profile -- compilerProvider${compiler.provider}/compilerProvider envFactoryName${env.factory.name}/envFactoryName compilerStartOptions compilerStartOption${compiler.options }/compilerStartOption /compilerStartOptions linkerExecutable${linker.executable}/linkerExecutable linkerStartOptions !--main concept sdk should be a dependency-- linkerStartOption ${linker.options} /linkerStartOption /linkerStartOptions !-- Define the sources for the library build -- sources !-- source files -- source directory../src/main/native//directory includes include**/*.cpp/include /includes /source !-- test files-- source directory../src/test/directory includes include**/*Test.cpp/include /includes /source /sources /configuration /plugin /plugins /pluginManagement /build profiles !-- Default profile for Windows: MSVC compiler -- profile idwin32-msvc/id activation os familywindows/family /os /activation modules modulewin32-msvc/module /modules /profile /profiles !-- Repos for using the mojo native plugin -- repositories repository idMaven Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2//url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /repository /repositories pluginRepositories pluginRepository idCodehaus Snapshots/id urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases /pluginRepository /pluginRepositories /project The MSVC module pom: 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 parent groupIdnative.test/groupId artifactIdnative-parent/artifactId version1.0-SNAPSHOT/version relativePath../pom.xml/relativePath /parent artifactIdnative-child/artifactId nameNative MSVC/name packaging${packaging.type}/packaging build finalName${artifactId}/finalName plugins plugin !-- configure the Mojo native plugin -- groupIdorg.codehaus.mojo/groupId artifactIdnative-maven-plugin/artifactId version1.0-alpha-2-SNAPSHOT/version extensionstrue/extensions configuration !-- All compiler flags are determined by the profile -- compilerProvidermsvc/compilerProvider env.factory.nameorg.codehaus.mojo.natives.msvc.MSVC2005x86EnvFactory /env. factory.name compilerStartOptions
[m2] Clover - how to get an history report
Hi, I'm using the maven-clover-plugin 2.3 and try to get an history report from my saved history points but all thats generated is the 'normal' clover html report. The section from my pom: build [...] plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clover-plugin/artifactId version2.3/version configuration jdk1.5/jdk licenseLocation/export/home/v/vf/maven2test/AdClientHttpLib/clover.license/licenseLocation historyDir/tmp/cloverhistory/historyDir generateHistoricaltrue/generateHistorical /configuration executions execution phasepre-site/phase goals goalinstrument/goal goalsave-history/goal /goals /execution /executions /plugin [...] /build and [...] reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clover-plugin/artifactId !--configuration generateHistoricaltrue/generateHistorical historyDir/tmp/cloverhistory/historyDir generateXmltrue/generateXml /configuration-- /plugin /reporting [...] Is it a bug in the plugin or did I get something wrong? regards, Volker -- View this message in context: http://www.nabble.com/-m2--Clover---how-to-get-an-history-report-tf2423264.html#a6755914 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: Clover Plugin doesn't generate XML report
Vincent Massol wrote: There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. Ok sorry. I misunderstood. I thought you meant XML report when you only meant that there's no XML file... :-) What could be the reason for that? Hmmm... Very strange. What version of the clover plugin are you using? The latest release, 2.3. Figured it out!!! My mistake!!! In my pom.xml, there are two plugin sections for the Clover plugin - one in build to configure the history dir and one in reporting for the reports. I simply added historyDir/tmp/cloverhistory/historyDir to the plugin section within build, but it has to be in the one within reporting! Sorry for bothering you. However, those endless XML configuration files are a real pain. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Classifier removed during packaging
So far it looks to me as if the behavior is intentionally. I made some tests with the classifier giving TestNG the scope compile which forces Maven to add it to the war file which I usually do not (scopetestscope instead) and used classifierjdk14/classifier. I ended up again with a jar file that did not contain the classifier in its name. This lets me conclude that this is an desired behavior. I personally would feel more comfortable if the classifier would remain in the jar file name. It makes it easier to control what is actually in the WEB-INF/lib folder. That removing of the classifier behind the scene is a little bit unexpected and confusing in my view. Is there a way to force Maven (i.e. the responsible plug-in) to keep the jar file classifier while adding jars to the war file? Andreas -Original Message- From: Andreas Guther [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 11:43 AM To: Maven Users List Subject: [M2] Classifier removed during packaging I have the following situation with Maven 2, classifier usage, and packaging to a war file: The classified jar file is correctly downloaded from repository but ends in the war file without the classifier part in the jar file name. I.e. in my local repository I get the dependency something-1.0-classified.jar downloaded but in the war file I get only something-1.0.jar. I expected to see the something-1.0-classified.jar file in the war. The strange thing is that our repositories do not contain the classifier-less jar file at all. I went through the Maven debug output of the build process and during the compile phase the file with the classifier is downloaded from the repository and put on the compile path as expected. But during the Assembling the classifier in the name seems to get removed and the debug output reads Processing: something-1.0.jar I am not sure if this behavior is intentional or if I do something wrong. Can someone tell me if this is by design? If not, I at least know that I have to dig more into the issue. Thanks in advance, Andreas - 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: Clover Plugin doesn't generate XML report
-Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: mercredi 11 octobre 2006 16:47 To: Maven Users List Subject: Re: Clover Plugin doesn't generate XML report Vincent Massol wrote: There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. Ok sorry. I misunderstood. I thought you meant XML report when you only meant that there's no XML file... :-) What could be the reason for that? Hmmm... Very strange. What version of the clover plugin are you using? The latest release, 2.3. Figured it out!!! My mistake!!! In my pom.xml, there are two plugin sections for the Clover plugin - one in build to configure the history dir and one in reporting for the reports. I simply added historyDir/tmp/cloverhistory/historyDir to the plugin section within build, but it has to be in the one within reporting! Sorry for bothering you. However, those endless XML configuration files are a real pain. Cool. Glad you found the problem. Let me know if you have suggestions to improve the Clover plugin. Thanks -Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven XSLT Plugin Question
I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but Im not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Machine specific settings
Afraid I'd already tried that but it doesn't work: org.apache.maven.reactor.MavenExecutionException: Failed to activate local (project-level) build profiles: Cannot parse profiles.xml resource from dir C:\Dev\Foo ... Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Unrecognised tag: 'build' (position: START_TAG seen .../properties This would seem to be consistent with the documentation at http://maven.apache.org/guides/introduction/introduction-to-profiles.htm l under the Which areas of a POM can be customized by each type of profile? Why? section, which says you can only customise the plugin config in the actual pom.xml, not the settings.xml or profile.xml I'm using 2.0.4 - are you using a newer build that now supports this? thanks James -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet Sent: Wednesday, October 11, 2006 2:17 PM To: users@maven.apache.org Subject: Re: Machine specific settings Add in ~/.m2/settings.xml a profilesprofile that defaults activates and has a buildpluginsplugin... idea with configurationjdkName1.4/jdkName Or create a profiles.xml file in your project dir, which does the same thing. See the free m2 book. Shute, James wrote, On 2006-10-11 11:25 AM: I'm having a go at moving from Maven 1.x up to 2.0 and can't quite work out the correct way to model local machine specific settings. I've looked through the docs and mailing lists so have found various details about profiles but I can't quite see how to use them to cater for certain setup issues. Take, for example, the jdkName property for the idea plugin. Under 1.x I just added this to my build.properties: maven.idea.jdk=1.4 and all is well - that's the name I've given to it in my local Idea setup so it works nicely. Now switching over to M2 I could just put this in the pom.xml: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-idea-plugin/artifactId configuration jdkName1.4/jdkName /configuration /plugin Now this forces every developer to have a JDK set up in Idea called 1.4, which they may not want - perhaps they prefer to name them fully (e.g. 1.4.2_05). I did look to just put an override for this setting in a settings.xml or profiles.xml file, but changing plugin settings seems to be disallowed in these files. Another example would be specifying a specific compiler executable. This can be set in the pom plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration executableC:/Program Files/Java/jdk1.4.2_05/bin/javac/executable but that relies on everybody installing Java to the same location, which never happens, so doesn't work. Can somebody enlighten me? Given the amount of thought that's clearly gone into M2 I'm sure this sort of thing must be catered for and it's just me not seeing how thanks James -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is
RE: Maven XSLT Plugin Question
I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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: java2wsdl
On 10/11/06, dan tran [EMAIL PROTECTED] wrote: so you tried to generate a set of wsdl files from your java source, but you ran the wsdl2java instead. is it a miss typed? Obviously, I've fixed this before sent my last post. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven XSLT Plugin Question
Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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: [m204] Issue with transistive dependancies and Springframework
Thanks. Works great. On 10/11/06, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. Is anyone else using spring 2.0 and acegi 1.0.2 It seems acegi 1.0.2 is requiring spring 1.2.7 and adds 1.2.7 and 2.0into my ear. Is this an issue with the spring libs I imported? Below are my current dependencies: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.0-rc3/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-mock/artifactId version2.0-rc3/version /dependency dependency groupIdorg.acegisecurity/groupId artifactIdacegi-security/artifactId version1.0.1/version exclusions exclusion groupIdorg.springframework /groupId artifactIdspring-remoting/artifactId /exclusion exclusion groupIdorg.springframework /groupId artifactIdspring-jdbc/artifactId /exclusion exclusion groupIdorg.springframework /groupId artifactIdspring-support/artifactId /exclusion exclusion groupIdorg.springframework /groupId artifactIdspring-mock/artifactId /exclusion exclusion groupIdcas/groupId artifactIdcasclient/artifactId /exclusion exclusion groupIdaspectj/groupId artifactIdaspectjrt/artifactId /exclusion exclusion groupId org.apache.directory.server/groupId artifactIdapacheds-core/artifactId /exclusion exclusion groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId /exclusion /exclusions /dependency Bye. /lexi - 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
Re: java2wsdl
btw, did you give 1.1-snapshot a try? it has lots bug fixes since 1.0 On 10/11/06, Javier Leyba [EMAIL PROTECTED] wrote: On 10/11/06, dan tran [EMAIL PROTECTED] wrote: so you tried to generate a set of wsdl files from your java source, but you ran the wsdl2java instead. is it a miss typed? Obviously, I've fixed this before sent my last post. J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How do I run J2EE compilers?
Our build system requires us to run vendor-specific J2EE compilers on our EAR files. I ran across the Weblogic plugin that can execute the appc program on an archive but it requires that you specify archive information in the POMs that create EARs. What I would really like is to automagically invoke appc on any EAR that gets built. To that end, I've been experimenting with writing a Java mojo that will invoke appc (or any other program we might need) right after an archive is created. My mojo is getting handed the maven session, executed project, current project and settings but, to this point, I haven't been able to figure out how to obtain the artifact that was just created. I see printouts from my mojo so I know it is getting called. When the mojo asks the executed project or the current project what the artifact is, they return null.The artifact id comes back as empty-project from both objects. Can anyone offer any advice on how to obtain the full path to the artifact that was just created?My mojo is registered to go off during the package phase ( @phase package) and I see it executing after the EAR/JAR/WARs are created so it appears to be getting called when I want it to. Any help is appreciated. Thanks, Ron -- View this message in context: http://www.nabble.com/-M2--How-do-I-run-J2EE-compilers--tf2424323.html#a6759058 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: java2wsdl
On 10/11/06, dan tran [EMAIL PROTECTED] wrote: btw, did you give 1.1-snapshot a try? it has lots bug fixes since 1.0 Thanks for your help but I'm now testing Ivy. I found it more flexible, documented and practical than Maven...by now... :) J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to query our own repository?
Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I make a system dependency available in runtime scope ?
I need a jar to be available in runtime scope, but it's defined with system scope. Is there any way of making it available in runtime scope ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How do I run J2EE compilers?
kurron wrote: Our build system requires us to run vendor-specific J2EE compilers on our EAR files. I ran across the Weblogic plugin that can execute the appc program on an archive but it requires that you specify archive information in the POMs that create EARs. What I would really like is to automagically invoke appc on any EAR that gets built. To that end, I've been experimenting with writing a Java mojo that will invoke appc (or any other program we might need) right after an archive is created. My mojo is getting handed the maven session, executed project, current project and settings but, to this point, I haven't been able to figure out how to obtain the artifact that was just created. I see printouts from my mojo so I know it is getting called. When the mojo asks the executed project or the current project what the artifact is, they return null.The artifact id comes back as empty-project from both objects. Can anyone offer any advice on how to obtain the full path to the artifact that was just created?My mojo is registered to go off during the package phase ( @phase package) and I see it executing after the EAR/JAR/WARs are created so it appears to be getting called when I want it to. Any help is appreciated. Thanks, Ron You can use the following expression //parameter expression=${project.build.directory}/${project.build.finalName} base on packaging you can know if it's an ear, war or ejb. // - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven XSLT Plugin Question
Andreas, Writing a plugin sounds like an interesting endeavor. I'll try that this weekend. This appears cleaner to me in the long run since it will just be another plugin execution. Marco, Since I need a short-term fix for this week's release, I think I'll use your ant xslt task idea. What execute phase should I set for this to execute every time before the changes plugin is executed during the site generation? Thanks for responding so quickly, -Nate Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven XSLT Plugin Question
what about http://mojo.codehaus.org/xslt-maven-plugin/ ? On 10/11/06, Nate [EMAIL PROTECTED] wrote: Andreas, Writing a plugin sounds like an interesting endeavor. I'll try that this weekend. This appears cleaner to me in the long run since it will just be another plugin execution. Marco, Since I need a short-term fix for this week's release, I think I'll use your ant xslt task idea. What execute phase should I set for this to execute every time before the changes plugin is executed during the site generation? Thanks for responding so quickly, -Nate Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven XSLT Plugin Question
Lifecycle site has this phases [1] : lifecycle idsite/id phases phasepre-site/phase phasesite/phase phasepost-site/phase phasesite-deploy/phase /phases default-phases siteorg.apache.maven.plugins:maven-site-plugin:site/site site-deployorg.apache.maven.plugins:maven-site-plugin:deploy/site-deploy /default-phases /lifecycle You can do what you want if you attached plugins to phase pre-site. -- Olivier [1] https://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/plexus/components.xml -Message d'origine- De : Nate [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 18:11 À : Maven Users List Objet : Re: Maven XSLT Plugin Question Andreas, Writing a plugin sounds like an interesting endeavor. I'll try that this weekend. This appears cleaner to me in the long run since it will just be another plugin execution. Marco, Since I need a short-term fix for this week's release, I think I'll use your ant xslt task idea. What execute phase should I set for this to execute every time before the changes plugin is executed during the site generation? Thanks for responding so quickly, -Nate Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how do i disable the sunconvention check with checkstyle?
thanx, Monday I will be in the office again and will do it as you mentioned. Rolf On 10/11/06, Zeltner Martin [EMAIL PROTECTED] wrote: Hello Rolf You have to place the configuration element directly inside the plugin element. Further pay attention that your plugin element is defined inside build/pluginManagement/plugins, else (if it is defined inside build/plugins) checkstyle will be executed on phase verify (directly before phase install) one more time. Due to issue http://jira.codehaus.org/browse/MNG-1931 config made in pluginManagement will not be directly reused in element reporting. You have to copy your configuration for site generation! At best you use properties (checkstyle.config.location and so only) to config the checkstyle-plugin without adding a configuration section. For an example have a look at http://svn.sourceforge.net/viewvc/el4j/trunk/el4j/pom.xml?view=markup Cheers, Martin -Original Message- From: Rolf Strijdhorst [mailto:[EMAIL PROTECTED] Sent: Dienstag, 10. Oktober 2006 16:21 To: Maven Users List Subject: how do i disable the sunconvention check with checkstyle? Hi I have a custom configuration. But both the sun conventions are checked as well as my own. I don't need the sun conventions btw the build needs to fail on violations so I added the check goal. here is the part of the config: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId executions execution idbasisregistratie styles release 1/id phaseprocess-sources/phase configuration configLocation br_styles_release1.xml /configLocation suppressionsLocation suppressions.xml /suppressionsLocation failOnViolationtrue/failOnViolation /configuration goals goalcheck/goal /goals /execution /plugin thanx Rolf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven XSLT Plugin Question
http://mojo.codehaus.org/xslt-maven-plugin/ Cheers, Siegfried Goeschl Marco Mistroni wrote: Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkstyle plugin check goal fails with ugly exception instead of nice build failed
monday I will put the exception on this list thanx anyway Rolf On 10/10/06, Dennis Lundberg [EMAIL PROTECTED] wrote: Rolf Strijdhorst wrote: Hi when running the checkstyle plugin and some code styles are violated the build fails with an exception. It does not fail nicely like the pmd plugin. Is this supposed to happen like this? thanx Rolf Do you have an example that you can share with us? -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Plugin for XMLBeans 2.2.x
Hi Y'All Is there a XMLBean 2 plug-in available for Maven 2.0 that generates the schema JAR from the XSD files? -- 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]
RE: Maven XSLT Plugin Question
Ah, I figured there must be a pre-site phase. Thank you for including the link to all of the lifecycle phases. -Nate Lifecycle site has this phases [1] : lifecycle idsite/id phases phasepre-site/phase phasesite/phase phasepost-site/phase phasesite-deploy/phase /phases default-phases siteorg.apache.maven.plugins:maven-site-plugin:site/site site-deployorg.apache.maven.plugins:maven-site-plugin:deploy/site-deploy /default-phases /lifecycle You can do what you want if you attached plugins to phase pre-site. -- Olivier [1] https://svn.apache.org/repos/asf/maven/components/trunk/maven-core/src/main/resources/META-INF/plexus/components.xml -Message d'origine- De : Nate [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 18:11 À : Maven Users List Objet : Re: Maven XSLT Plugin Question Andreas, Writing a plugin sounds like an interesting endeavor. I'll try that this weekend. This appears cleaner to me in the long run since it will just be another plugin execution. Marco, Since I need a short-term fix for this week's release, I think I'll use your ant xslt task idea. What execute phase should I set for this to execute every time before the changes plugin is executed during the site generation? Thanks for responding so quickly, -Nate Hello, my 2 cents ant has an xslt task, you could use maven antrun plugin to run it will that be a possible solution? hth marco On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: I am not aware of an XSLT plug-in, but writing one should be a pretty straight forward task. I guess I then would try to associate the plug-in with source code generation or something similar during the site creation life cycle. Writing Maven 2 plug-ins is an easy to achieve task and there are plenty of examples available. Andreas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 7:24 AM To: users@maven.apache.org Subject: Maven XSLT Plugin Question I have an application that using XML to define the features added to each release version. I wrote an XSLT to convert this XML into the changes plugin XML format. This allows me to have the same information in the application and the generated site, but the XSLT execution is a manual step. I have a couple of ideas for a solution, but I'm not sure what is available. 1. Does the changes plugin allow a mapping XSL to be included to convert a different XML into a changes plugin? 2. If not, is there plugin to executes XSL transforms during the site cycle? 3. If not, can an ant script be setup to run before the changes plugin? Or is there a pre-site cycle that it can be executed. If you have a different idea, I would be interested in hearing it. Especially if the ant script is the only solution, since it seems hackish to call java with a Saxon jar to transform during the site generation. Thanks for the help, -Nate - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] How do I run J2EE compilers?
Manuel Ledesma wrote: kurron wrote: Our build system requires us to run vendor-specific J2EE compilers on our EAR files. I ran across the Weblogic plugin that can execute the appc program on an archive but it requires that you specify archive information in the POMs that create EARs. What I would really like is to automagically invoke appc on any EAR that gets built. To that end, I've been experimenting with writing a Java mojo that will invoke appc (or any other program we might need) right after an archive is created. My mojo is getting handed the maven session, executed project, current project and settings but, to this point, I haven't been able to figure out how to obtain the artifact that was just created. I see printouts from my mojo so I know it is getting called. When the mojo asks the executed project or the current project what the artifact is, they return null.The artifact id comes back as empty-project from both objects. Can anyone offer any advice on how to obtain the full path to the artifact that was just created?My mojo is registered to go off during the package phase ( @phase package) and I see it executing after the EAR/JAR/WARs are created so it appears to be getting called when I want it to. Any help is appreciated. Thanks, Ron You can use the following expression //parameter expression=${project.build.directory}/${project.build.finalName} base on packaging you can know if it's an ear, war or ejb. // - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This all you need to write the plugin ** * Compile classpath * * @parameter expression=${project.compileClasspathElements} * @required * @readonly */ private ListString classpathElements; /** * @parameter expression=${project.artifact} */ private Artifact artifact; /** * @parameter expression=${project.packaging} */ private String packaging; I wrote a plugin for appc too. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
idea project jdk
Hello, When I followed the tutorial at http://maven.apache.org/guides/getting-started/index.html, after I ran mvn idea:idea and opened the project in idea, the project jdk was not set. Is there something I can do in maven to have the project jdk said. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LIB's in war ear
I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Maven 1.1 RC1 SNAPSHOT needs testers
Thanks James for your feedback. We'll add a note about plugin dependencies in projects. Nobody else is interested by maven 1.1 ? Should we continue to try to release a final version 1.1 ? Everybody moved to maven 2 or your existing maven 1.x satisfy you ? Arnaud On 10/10/06, Shute, James [EMAIL PROTECTED] wrote: You're quite correct - I had put an explicit dependency on scm-1.5 in my project.xml a while back when we were on 1.0.2 and I wanted to force people up to the later version of the plugin. Taking that out fixes things. thanks very much James -Original Message- From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 11:45 AM To: Maven Users List Subject: Re: Maven 1.1 RC1 SNAPSHOT needs testers This seems to be the cause indeed, the scm:status goal was only added in version 1.6 of the scm plugin. You don't have a dependency on 1.5 by any chance? Try to remove the .maven/cache/maven-scm-plugin-1.5/ directory and see what happens.. -Lukas Shute, James wrote: Arnaud, I've succesfully been using 1.1b2 for a while so thought I'd give this a spin. I'm having trouble with the scm:prepare-release goal. I've included the output when running with -X below. I'm no expert but it looks a bit suspicious that the version of maven-scm-plugin mentioned in the 2nd line below is 1.6, but in the BUILD FAILED section is 1.5. Is this a known issue? I'm running on WinXP SP2 with the 1.5.0_05 JDK if that helps in any way. I also cleaned out the cache before starting so it's not that causing the problem. thanks James Output from maven -X scm:prepare-release: ... Reinstalling: source = C:\Temp\.maven\cache\maven-scm-plugin-1.6\plugin.jelly project = null script = null Caching Taglib Uri -- scm:transform Caching Taglib Uri -- changes:transform Caching Taglib Uri -- scm Caching Taglib Uri -- scm:transform Caching Taglib Uri -- changes:transform Caching Taglib Uri -- scm popping off [EMAIL PROTECTED] for [EMAIL PROTECTED] in com.lehman.fid:Jdialtone BUILD FAILED File.. file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly Element... scm:status Line.. 192 Column 158 org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r ep ository/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/ maven/scm/command/status/StatusScmResult; org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [scm:prepare-release] -- file:/C:/Temp/.maven/cache/maven-scm-plugin -1.5/plugin.jelly:192:158: scm:status org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r ep ository/ScmRepository;Lorg/a pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/Statu sS cmResult; at org.apache.maven.werkz.Goal.fire(Goal.java:654) at org.apache.maven.werkz.Goal.attain(Goal.java:582) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:7 11 ) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:264) at org.apache.maven.cli.App.doMain(App.java:556) at org.apache.maven.cli.App.main(App.java:1411) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.apache.commons.jelly.JellyTagException: file:/C:/Temp/.maven/cache/maven-scm-plugin-1.5/plugin.jelly:192:158: scm:status or g.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/rep os itory/ScmRepository;Lorg/apache/maven/scm/ScmFileSet;)Lorg/apache/ma ven/scm/command/status/StatusScmResult; at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java :1 93) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java :1 02) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag .j ava:82) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perform Ac tion(MavenGoalTag.java:115) at org.apache.maven.werkz.Goal.fire(Goal.java:647) ... 11 more Caused by: java.lang.NoSuchMethodError: org.apache.maven.scm.manager.ScmManager.status(Lorg/apache/maven/scm/r ep ository/ScmRepository;Lorg/a pache/maven/scm/ScmFileSet;)Lorg/apache/maven/scm/command/status/Statu sS cmResult; at org.apache.maven.plugins.scm.ScmStatusBean.status(ScmStatusBean.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av
Re: LIB's in war ear
I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LIB's in war ear
Can I see your war pom.xml to see how you excluded everything? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - 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
Re: Maven 1, need help jar:test-jar
Hi Rorbert, I didn't see such a plugin for m1. The common practice is to create a new project for your common classes http://maven.apache.org/maven-1.x/using/bestpractices.html#Refactor_Your_Build If you need to share test code among different projects, put that test code in its own artifact (this time included in the main source tree) and depend on that artifact for your tests in other projects. Arnaud On 10/11/06, RobertK [EMAIL PROTECTED] wrote: Hi, using Maven 1.0.2, I am just wondering is this plugin available for maven 1: http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html Using multiproject and some tests have dependencies on common files so would be nice not to have to duplicate the resources. Is a viable alternative to run a custom maven goal (ant task?) to compile a jar and then add a dependency to it in the project.xml file? -- View this message in context: http://www.nabble.com/Maven-1%2C-need-help-jar%3Atest-jar-tf2422460.html#a6753737 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: LIB's in war ear
Sure, here's my war and ear pom (not all of them, but some of the dependencies)... war/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdtaglibs/artifactId groupIdstandard/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdjavax.servlet/artifactId groupIdjstl/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope exclusions exclusion artifactIdlog4j/artifactId groupIdlog4j/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope exclusions exclusion artifactIdquartz/artifactId groupIdquartz/groupId /exclusion /exclusions optionaltrue/optional /dependency ear/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency HTH. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I see your war pom.xml to see how you excluded everything? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: idea project jdk
Maven says this: jdkName is not set, using [java version1.5.0_08] as default. But then if you look at the .ipr that it generates, you see this: component name=ProjectRootManager version=2 assert-keyword=true jdk-15=true project-jdk-name=1.5 / So I renamed by jdk to 1.5 in IDEA and it works now. But that message should porbably be changed to read: jdkName is not set, using [1.5] as default. On 10/11/06, Paul Barry [EMAIL PROTECTED] wrote: Hello, When I followed the tutorial at http://maven.apache.org/guides/getting-started/index.html, after I ran mvn idea:idea and opened the project in idea, the project jdk was not set. Is there something I can do in maven to have the project jdk said. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LIB's in war ear
Can I omit the version and scope as they are already defined in the master pom.xml in DependancyManagement? Or did that not work? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: Sure, here's my war and ear pom (not all of them, but some of the dependencies)... war/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdtaglibs/artifactId groupIdstandard/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdjavax.servlet/artifactId groupIdjstl/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope exclusions exclusion artifactIdlog4j/artifactId groupIdlog4j/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope exclusions exclusion artifactIdquartz/artifactId groupIdquartz/groupId /exclusion /exclusions optionaltrue/optional /dependency ear/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency HTH. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I see your war pom.xml to see how you excluded everything? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - 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 - 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
RE: How to query our own repository?
Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - 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: LIB's in war ear
I'd imagine you could omit both, but I'm not currently doing that. Version I'm sure would flow through, and I'd expect scope would as well. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I omit the version and scope as they are already defined in the master pom.xml in DependancyManagement? Or did that not work? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: Sure, here's my war and ear pom (not all of them, but some of the dependencies)... war/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdtaglibs/artifactId groupIdstandard/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdjavax.servlet/artifactId groupIdjstl/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope exclusions exclusion artifactIdlog4j/artifactId groupIdlog4j/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope exclusions exclusion artifactIdquartz/artifactId groupIdquartz/groupId /exclusion /exclusions optionaltrue/optional /dependency ear/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency HTH. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I see your war pom.xml to see how you excluded everything? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - 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 - 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
Re: How to query our own repository?
Creating the mirror repo as suggested will actually result in Central being no longer available to your Maven execution -- the only plugins and artifacts which you will be able to access are those already available in your corporate repo. So this would certainly restrict your Maven installs from looking for and using newer snapshots. However, you really shouldn't ever stabilize on a snapshot version of a plugin -- instead I suggest you release it internally with a fixed version number, usually by appending the Subversion build number to the artifact build number ie 2.1.2-SNAPSHOT becomes 2.1.2-56723. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to query our own repository?
Thank you. I will try fixing the version number as you suggest. However, setting up a central (with no other external repositories declared) did not prevent Maven from trying to go out to http://snapshots.repository.codehaus.org to look for an updated version of a plugin. Perhaps I have an error in a POM or metadata file for that plugin in the mirror. I will check that as well. --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 1:55 PM To: Maven Users List Subject: Re: How to query our own repository? Creating the mirror repo as suggested will actually result in Central being no longer available to your Maven execution -- the only plugins and artifacts which you will be able to access are those already available in your corporate repo. So this would certainly restrict your Maven installs from looking for and using newer snapshots. However, you really shouldn't ever stabilize on a snapshot version of a plugin -- instead I suggest you release it internally with a fixed version number, usually by appending the Subversion build number to the artifact build number ie 2.1.2-SNAPSHOT becomes 2.1.2-56723. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - 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] - 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]
supported databases ?
Hi, What databases are supported ? Only Derby or I can try to connect archiva to another one like mySQL ? Arnaud
Re: LIB's in war ear
Scope is subject to inheritance as well. Deciding where to put it is a judgment call. In the context of your whole project, I wouldn't consider a jar that goes in the ear to be provided. I would only consider it to be provided in the context of the war module. So, I would set the scope in the child pom. And the version in the dependencyManagement section of the parent pom. -Max Wayne Fay wrote: I'd imagine you could omit both, but I'm not currently doing that. Version I'm sure would flow through, and I'd expect scope would as well. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I omit the version and scope as they are already defined in the master pom.xml in DependancyManagement? Or did that not work? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: Sure, here's my war and ear pom (not all of them, but some of the dependencies)... war/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdtaglibs/artifactId groupIdstandard/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope exclusions exclusion artifactIdjavax.servlet/artifactId groupIdjstl/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope exclusions exclusion artifactIdlog4j/artifactId groupIdlog4j/groupId /exclusion /exclusions optionaltrue/optional /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope exclusions exclusion artifactIdquartz/artifactId groupIdquartz/groupId /exclusion /exclusions optionaltrue/optional /dependency ear/pom.xml dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-jms/artifactId version1.1-rc4/version scopeprovided/scope /dependency dependency groupIdgeronimo-spec/groupId artifactIdgeronimo-spec-ejb/artifactId version2.1-rc4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.3/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopecompile/scope /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version scopecompile/scope /dependency dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency HTH. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: Can I see your war pom.xml to see how you excluded everything? On 10/11/06, Wayne Fay [EMAIL PROTECTED] wrote: I generally only allow my JARs to be placed in my EAR lib to reduce the overall size of my EAR and eliminate duplication of code (I'm using Oracle OAS 10.1.2 right now). But you'll need to check your container's documentation and perhaps the J2EE Specs to see what works for you. Currently this requires me to declare and then simultaneously exclude most every dependency in my WAR pom, and also declare them in the EAR. So not a lot of fun from a managing your poms perspective. Wayne On 10/11/06, Mick Knutson [EMAIL PROTECTED] wrote: I have many LIB's that are in both my war and my ear. Is this correct or should they just be in the ear? -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: How to query our own repository?
Grep all your project pom.xml files for that url. Then grep all your repo pom.xml files for that url. Since you're using snapshots, I'd expect a snapshot plugin might depend on other snapshot code, resulting in that snapshot repo url landing in a plugin pom file. Released plugins do not/should not have any such repo references. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Thank you. I will try fixing the version number as you suggest. However, setting up a central (with no other external repositories declared) did not prevent Maven from trying to go out to http://snapshots.repository.codehaus.org to look for an updated version of a plugin. Perhaps I have an error in a POM or metadata file for that plugin in the mirror. I will check that as well. --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 1:55 PM To: Maven Users List Subject: Re: How to query our own repository? Creating the mirror repo as suggested will actually result in Central being no longer available to your Maven execution -- the only plugins and artifacts which you will be able to access are those already available in your corporate repo. So this would certainly restrict your Maven installs from looking for and using newer snapshots. However, you really shouldn't ever stabilize on a snapshot version of a plugin -- instead I suggest you release it internally with a fixed version number, usually by appending the Subversion build number to the artifact build number ie 2.1.2-SNAPSHOT becomes 2.1.2-56723. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to query our own repository?
Wayne and all, That's exactly the problem. I've grepped all the pom files for the plugins, and many of them do contain repository declarations, and those repositories are being used to satisfy dependencies. Unfortunately, many of them that are not even snapshots still have the repository declaration. I was wondering whether that was a bug. Here are the ones that have the external repository declared: maven-compiler-plugin-2.1-20060829.112045-2.pom (snapshot) maven-plugin-parent-2.0.1.pom maven-plugin-parent-2.0-beta-1.pom maven-plugin-parent-2.0.pom maven-plugins-1.pom (superseded by maven-plugins-2 and -3) maven-site-plugin-2.0-beta-2.pom (superseded by beta-3) The one that is causing the immediate problem is maven-compiler-plugin-2.1-20060829.112045-2.pom, and it is for a snapshot. It appears to me that maven-plugin-parent-2.0.1.pom is also likely to cause a problem when the build gets that far. Would you agree? If so, then two changes will cure my problem. Thanks, --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 3:02 PM To: Maven Users List Subject: Re: How to query our own repository? Grep all your project pom.xml files for that url. Then grep all your repo pom.xml files for that url. Since you're using snapshots, I'd expect a snapshot plugin might depend on other snapshot code, resulting in that snapshot repo url landing in a plugin pom file. Released plugins do not/should not have any such repo references. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Thank you. I will try fixing the version number as you suggest. However, setting up a central (with no other external repositories declared) did not prevent Maven from trying to go out to http://snapshots.repository.codehaus.org to look for an updated version of a plugin. Perhaps I have an error in a POM or metadata file for that plugin in the mirror. I will check that as well. --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 1:55 PM To: Maven Users List Subject: Re: How to query our own repository? Creating the mirror repo as suggested will actually result in Central being no longer available to your Maven execution -- the only plugins and artifacts which you will be able to access are those already available in your corporate repo. So this would certainly restrict your Maven installs from looking for and using newer snapshots. However, you really shouldn't ever stabilize on a snapshot version of a plugin -- instead I suggest you release it internally with a fixed version number, usually by appending the Subversion build number to the artifact build number ie 2.1.2-SNAPSHOT becomes 2.1.2-56723. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is not installed on your Corporate repo, it will simply fail out. For this reason, many people use Maven proxy servers like Promixity which can be configured to go out and download unknown artifacts on demand. Wayne On 10/11/06, Markus KARG [EMAIL PROTECTED] wrote: We have just set up our own repository server in our department and deployed several artefacts into it. Now I need to tell my project that it has to look for a dependency not only at Ibiblio, but also in my our department's repository. Since the department's repository shall be the central place for all sharing, I don't like to put that into the pom.xml of my project, but I want to have it in my laptop's settings.xml. How do I do that? Thanks a lot Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Is there a guide to all the ${...} macros?
As the subject says... I'm wondering if everything I pass in via a -D flag is available as a ${...} macro in the pom.xml file. Also, are environment variables available? Is it possible to define or compute values within the pom.xml file? One of several reasons I'm asking is because I need to integrate maven into a large scale (including non-java code) build system which is the authoritative source for information like version numbers, repository locations etc. I can, of course, have it generate pom.xml files from templates, but would rather not do that... -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]Properties List
Hi, I know this has been posted to death, but anyway here goes. I am looking for a list of non obvious properties that maven2 has access to. For example ${java.home}, ${m2.home}, ${maven.repo.local} etc. I know a lot can be derived from the pom structure but this is not what I am after. I am sure I saw the beginings of a wiki page somewhere but no amount of Googling has lead me to re-discover this holly grail of properties. Anyone know where I can find it. Peter Anning Sr Software Engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]Is there a dedicated Maven2 Wiki
Is there a Wiki decicated to Maven2 where the masses can contribut any little snippets they may have. I have followed a number of links on Codehaus and apache.org but they are eith imuttable or unreachable. Cheers Peter Anning Sr Software Engineer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting the correct plugin.
Hi there- I am trying to use the maven-dependency-plugin in the http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/ directory. I have specified: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0-SNAPSHOT/version /plugin However, it keeps picking up the old version dependency-maven-plugin-1.0! How do I get maven to stop trying to use the old version? mvn dependency:sources [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] org.codehaus.mojo: checking for updates from apache.snapshots [INFO] org.codehaus.mojo: checking for updates from mortbay-repo [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from apache.snapshots [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from mortbay-repo [WARNING] repository metadata for: 'artifact org.codehaus.mojo:dependency-maven- plugin' could not be retrieved from repository: mortbay-repo due to an error: Er ror transferring file [INFO] Repository 'mortbay-repo' will be blacklisted [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/dependency-maven-pl ugin/1.0/dependency-maven-plugin-1.0.pom 2K downloaded Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/m ojo/mojo/5/mojo-5.pom [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/5/mojo-5.pom 4K downloaded Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/m ojo/dependency-maven-plugin/1.0/dependency-maven-plugin-1.0.jar [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/dependency-maven-pl ugin/1.0/dependency-maven-plugin-1.0.jar 15K downloaded [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:sources [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Wed Oct 11 17:33:29 PDT 2006 [INFO] Final Memory: 1M/3M [INFO] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dependency graph plugin?
Hi there- Is there a plugin that explodes the dependency graph so that it is possible to see why a jar is being included in the build? I have a bunch of mystery jars that I would like to eliminate, or at least know which library is trying to use them. Thanks. -Pat __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to query our own repository?
I believe it is the intention of the Maven dev group to generally avoid declaring repositories in plugin poms, as all released, Maven-provided plugins should be available in Central. Additionally, once a pom is released, it will never be updated to fix a bug etc, instead all fixes require an updated pom/artifact. So your best bet is as follows: 1. File JIRA reports on the plugins which have not been superseded to make sure they are updated in future releases 2. Delete those old poms/artifacts which are affected by this issue 3. If you absolutely must use one of those old versions, modify your local pom.xml file and remove the snapshot url, then deploy to your corporate repo Those old releases like maven-plugins-1.pom which have the snapshot url can be considered bugs, but assuming the -2 and -3 have no such url reference, I'd say the bug has been fixed. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Wayne and all, That's exactly the problem. I've grepped all the pom files for the plugins, and many of them do contain repository declarations, and those repositories are being used to satisfy dependencies. Unfortunately, many of them that are not even snapshots still have the repository declaration. I was wondering whether that was a bug. Here are the ones that have the external repository declared: maven-compiler-plugin-2.1-20060829.112045-2.pom (snapshot) maven-plugin-parent-2.0.1.pom maven-plugin-parent-2.0-beta-1.pom maven-plugin-parent-2.0.pom maven-plugins-1.pom (superseded by maven-plugins-2 and -3) maven-site-plugin-2.0-beta-2.pom (superseded by beta-3) The one that is causing the immediate problem is maven-compiler-plugin-2.1-20060829.112045-2.pom, and it is for a snapshot. It appears to me that maven-plugin-parent-2.0.1.pom is also likely to cause a problem when the build gets that far. Would you agree? If so, then two changes will cure my problem. Thanks, --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 3:02 PM To: Maven Users List Subject: Re: How to query our own repository? Grep all your project pom.xml files for that url. Then grep all your repo pom.xml files for that url. Since you're using snapshots, I'd expect a snapshot plugin might depend on other snapshot code, resulting in that snapshot repo url landing in a plugin pom file. Released plugins do not/should not have any such repo references. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Thank you. I will try fixing the version number as you suggest. However, setting up a central (with no other external repositories declared) did not prevent Maven from trying to go out to http://snapshots.repository.codehaus.org to look for an updated version of a plugin. Perhaps I have an error in a POM or metadata file for that plugin in the mirror. I will check that as well. --Marilyn -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 1:55 PM To: Maven Users List Subject: Re: How to query our own repository? Creating the mirror repo as suggested will actually result in Central being no longer available to your Maven execution -- the only plugins and artifacts which you will be able to access are those already available in your corporate repo. So this would certainly restrict your Maven installs from looking for and using newer snapshots. However, you really shouldn't ever stabilize on a snapshot version of a plugin -- instead I suggest you release it internally with a fixed version number, usually by appending the Subversion build number to the artifact build number ie 2.1.2-SNAPSHOT becomes 2.1.2-56723. Wayne On 10/11/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] wrote: Will declaring a repository to be a mirror repository prevent the searching for updated plugins? We are using snapshot versions of plugins and would like to stabilize on those snapshots. I haven't been able to prevent maven from looking for updates to snapshots, even with the -npu argument. So far, the only way I've been able to prevent it is to start with a fully-populated local repository and run with -o (for offline). Thanks, --Marilyn Sander -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 8:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: Re: How to query our own repository? Search for maven mirror central. This is discussed frequently on this mail list and online. You basically want to override Central with your local department/corporate repo. This is done by establishing your local corporate repo as a mirrOf Central in your settings.xml file. Note that this will effectively kill your connection to Central, so if/when you try to use a new artifact which is
Re: RepositoryController: Item not found on URI - deploy to Proximity
Hello János, proximity RC4.2 does not support DAV deployment... You should share your proximity storage using some alternate way (samba, nfs or ftp...) and deploy onto it using the given protocol. WebDAV is targeted to release RC5 or 1.0.0. Currently i'm overhelmed with my daytime job, so these releases will be delayed a litlle bit, sorry! Hope this helps, ~t~ On 10/4/06, Janos Mucsi [EMAIL PROTECTED] wrote: Hi My pom.xml looks like this: distributionManagement repository idinhouse.snapshot/id urlhttp://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/private/url /repository snapshotRepository idinhouse.snapshot/id urlhttp://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/private/url /snapshotRepository /distributionManagement My Proximity is up, those URLs are correc t. However, when I run Maven I am getting this: Uploading: http://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/privat e/fds/fds-applications/1.0/fds-applications-1.0.pom 1K uploaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Unable to transfer file. HttpURLConnection retu rned the response code: 500 In the proximity.log, I see this: 2006-10-03 15:52:15.325 INFO [http-7070-Processor25:] - org.abstracthorizon.proximity.webapp.util.RepositoryController: Item not found on URI /private/fds/fds-applications/1.0-SNAPSHOT/maven-metadata.xml Can you please let me know what I do wrong? Thanks. Janos
Re: Why does my install goal fail?
Hi, definitely a proximity bug. Please fill a trac ticket about this. Sorry about this, but currently i am overhelmed with my daytime job, so proximity suffers from it. :( Will catch up as soon i can. Sorry again, ~t~ On 10/6/06, Dave Hoffer [EMAIL PROTECTED] wrote: We rebooted the server and it works now...how long is anyone's guess. I don't know to track this one down. I'm using RC4 of Proximity. -dh -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, October 06, 2006 11:45 AM To: Maven Users List Subject: Re: Why does my install goal fail? Bug in Proximity. Bug in Maven. Bug in HTTP protocol / network / server hardware / client hardware. ;-) Wayne On 10/6/06, Dave Hoffer [EMAIL PROTECTED] wrote: Well after all, I didn't really fix this. This is an issue that seems to come and go. Here is the contents of maven-metadata-inhouse.xml ?xml version=1.0 encoding=UTF-8?metadata groupIdcom.xrite/groupId artifactIdxrite-colorlib-api/artifactId version1.0/version versioning release1.7/release versions version1.0/version version1.1/version version1.2/version version1.3/version version1.5/version version1.7/version /versions lastUpdated20061006012356/lastUpdated This file is correct on the server but when Proximity downloads it to local user dir it corrupts the file by not closing the ending tags. What may be the cause of this? -dh From: Dave Hoffer Sent: Tuesday, October 03, 2006 1:52 PM To: 'Maven Users List' Subject: Why does my install goal fail? I have seen a problem lately where the install goal will fail. The problem is that the meta data downloaded is corrupt; the ...metadata-inhouse.xml file starts out correct but is missing the bottom of the file. I.e. it is missing the lastUpdated tag section and closing tags. This seems to occur when we have dependencies that depend on other dependencies specified using set notation for the version. For example, I have a dependency on xrite-imaging; xrite-imaging has a dependency on xrite-commons with version of [1.0,). Maven fails when it builds the ...metadata-inhouse.xml file for xrite-commons. I am using Proximity as my http artifact server. Why is this happening? This used to work (but our plugin versions have changed somewhat). -dh - 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] - 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: [m2]Is there a dedicated Maven2 Wiki
On 10/11/06, Peter Anning [EMAIL PROTECTED] wrote: Is there a Wiki decicated to Maven2 where the masses can contribut any little snippets they may have. Yes! It's not obvious, but the 'User Contributed' link under Documentation (on the Maven home page) takes you to a part of the MAVENUSER space on the Codehaus Confluence instance. Start here: http://docs.codehaus.org/display/MAVENUSER/ I usually put things under Examples or Mini Guides, depending on what it is. HTH, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RepositoryController: Item not found on URI - deploy to Proximity
Hi, This is not the proximity users list. If you have questions about proximity you should use those lists. Thanks, Jason. On 11 Oct 06, at 9:02 PM 11 Oct 06, Tamás Cservenák wrote: Hello János, proximity RC4.2 does not support DAV deployment... You should share your proximity storage using some alternate way (samba, nfs or ftp...) and deploy onto it using the given protocol. WebDAV is targeted to release RC5 or 1.0.0. Currently i'm overhelmed with my daytime job, so these releases will be delayed a litlle bit, sorry! Hope this helps, ~t~ On 10/4/06, Janos Mucsi [EMAIL PROTECTED] wrote: Hi My pom.xml looks like this: distributionManagement repository idinhouse.snapshot/id urlhttp://localhost:7070/px-webapp-default-1.0.0-RC4.2/ repository/private/url /repository snapshotRepository idinhouse.snapshot/id urlhttp://localhost:7070/px-webapp-default-1.0.0-RC4.2/ repository/private/url /snapshotRepository /distributionManagement My Proximity is up, those URLs are correc t. However, when I run Maven I am getting this: Uploading: http://localhost:7070/px-webapp-default-1.0.0-RC4.2/repository/privat e/fds/fds-applications/1.0/fds-applications-1.0.pom 1K uploaded [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Error deploying artifact: Unable to transfer file. HttpURLConnection retu rned the response code: 500 In the proximity.log, I see this: 2006-10-03 15:52:15.325 INFO [http-7070-Processor25:] - org.abstracthorizon.proximity.webapp.util.RepositoryController: Item not found on URI /private/fds/fds-applications/1.0-SNAPSHOT/maven- metadata.xml Can you please let me know what I do wrong? Thanks. Janos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dependency graph plugin?
hello, try the mvn site. it will generate a dependency html page under target/generated-site. Patrick Moore wrote: Hi there- Is there a plugin that explodes the dependency graph so that it is possible to see why a jar is being included in the build? I have a bunch of mystery jars that I would like to eliminate, or at least know which library is trying to use them. Thanks. -Pat __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: dependency graph plugin?
On 10/11/06, Patrick Moore [EMAIL PROTECTED] wrote: Is there a plugin that explodes the dependency graph so that it is possible to see why a jar is being included in the build? I have a bunch of mystery jars that I would like to eliminate, or at least know which library is trying to use them. In addition to the dependency page that is generated as part of the website, you can also use -X on the command line. That will generate an indented tree view of the dependencies (among other things.) You'll probably want to redirect the output to a text file and view it with something that doesn't wrap lines. $ mvn install -X output.txt HTH, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]Is there a dedicated Maven2 Wiki
Thanks Wendy You quite right it is not that well advertised, who could make it more obvious? Cheers Peter -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 October 2006 12:10 PM To: Maven Users List Subject: Re: [m2]Is there a dedicated Maven2 Wiki On 10/11/06, Peter Anning [EMAIL PROTECTED] wrote: Is there a Wiki decicated to Maven2 where the masses can contribut any little snippets they may have. Yes! It's not obvious, but the 'User Contributed' link under Documentation (on the Maven home page) takes you to a part of the MAVENUSER space on the Codehaus Confluence instance. Start here: http://docs.codehaus.org/display/MAVENUSER/ I usually put things under Examples or Mini Guides, depending on what it is. HTH, Wendy - 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: [m2]Properties List
Wendy Smoak also answereed this one :o) http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide -Original Message- From: Peter Anning [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 October 2006 9:56 AM To: users@maven.apache.org Subject: [m2]Properties List Hi, I know this has been posted to death, but anyway here goes. I am looking for a list of non obvious properties that maven2 has access to. For example ${java.home}, ${m2.home}, ${maven.repo.local} etc. I know a lot can be derived from the pom structure but this is not what I am after. I am sure I saw the beginings of a wiki page somewhere but no amount of Googling has lead me to re-discover this holly grail of properties. Anyone know where I can find it. Peter Anning Sr Software Engineer - 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: [m2]Is there a dedicated Maven2 Wiki
On 10/11/06, Peter Anning [EMAIL PROTECTED] wrote: You quite right it is not that well advertised, who could make it more obvious? It's been a personal crusade of mine for a while now. :) In addition to prominent links to the MAVENUSER wiki, I also want a link to a corresponding wiki page on every plugin's website menu. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Classifier removed during packaging
It is a definitely a bug. Please file a Jira against war plugin -D On 10/11/06, Andreas Guther [EMAIL PROTECTED] wrote: So far it looks to me as if the behavior is intentionally. I made some tests with the classifier giving TestNG the scope compile which forces Maven to add it to the war file which I usually do not (scopetestscope instead) and used classifierjdk14/classifier. I ended up again with a jar file that did not contain the classifier in its name. This lets me conclude that this is an desired behavior. I personally would feel more comfortable if the classifier would remain in the jar file name. It makes it easier to control what is actually in the WEB-INF/lib folder. That removing of the classifier behind the scene is a little bit unexpected and confusing in my view. Is there a way to force Maven (i.e. the responsible plug-in) to keep the jar file classifier while adding jars to the war file? Andreas -Original Message- From: Andreas Guther [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 11:43 AM To: Maven Users List Subject: [M2] Classifier removed during packaging I have the following situation with Maven 2, classifier usage, and packaging to a war file: The classified jar file is correctly downloaded from repository but ends in the war file without the classifier part in the jar file name. I.e. in my local repository I get the dependency something-1.0-classified.jar downloaded but in the war file I get only something-1.0.jar. I expected to see the something-1.0-classified.jar file in the war. The strange thing is that our repositories do not contain the classifier-less jar file at all. I went through the Maven debug output of the build process and during the compile phase the file with the classifier is downloaded from the repository and put on the compile path as expected. But during the Assembling the classifier in the name seems to get removed and the debug output reads Processing: something-1.0.jar I am not sure if this behavior is intentional or if I do something wrong. Can someone tell me if this is by design? If not, I at least know that I have to dig more into the issue. Thanks in advance, Andreas - 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: getting the correct plugin.
try 2.0-ALPHA-1-SNAPSHOT It is the current development version of 2.0 -D On 10/11/06, Patrick Moore [EMAIL PROTECTED] wrote: Hi there- I am trying to use the maven-dependency-plugin in the http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/ directory. I have specified: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0-SNAPSHOT/version /plugin However, it keeps picking up the old version dependency-maven-plugin-1.0! How do I get maven to stop trying to use the old version? mvn dependency:sources [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] org.codehaus.mojo: checking for updates from apache.snapshots [INFO] org.codehaus.mojo: checking for updates from mortbay-repo [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from apache.snapshots [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from mortbay-repo [WARNING] repository metadata for: 'artifact org.codehaus.mojo:dependency-maven- plugin' could not be retrieved from repository: mortbay-repo due to an error: Er ror transferring file [INFO] Repository 'mortbay-repo' will be blacklisted [INFO] artifact org.codehaus.mojo:dependency-maven-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/dependency-maven-pl ugin/1.0/dependency-maven-plugin-1.0.pom 2K downloaded Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/m ojo/mojo/5/mojo-5.pom [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/5/mojo-5.pom 4K downloaded Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/codehaus/m ojo/dependency-maven-plugin/1.0/dependency-maven-plugin-1.0.jar [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/dependency-maven-pl ugin/1.0/dependency-maven-plugin-1.0.jar 15K downloaded [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:sources [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Wed Oct 11 17:33:29 PDT 2006 [INFO] Final Memory: 1M/3M [INFO] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need all dependency at compile time
hi all i want to collect all jar file at one place from my pom.xmldependency ,i write one plugin for that but in that plugin i am unable to define the path of lib how i can achieve this ,i do not know we are migrating our project from maven 1.x to maven 2.0.4 we have done that work in maven 1.x by useing this task as one of the preGoal and writing our logic in jelly but here in maven 2.x i am unable please if any body have any content regarding this please send i also refrence this http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide but not got any properites regarding to my use Regards Neeraj
Internal error in plugin manager
Can anyone explain what this error means: [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar': Unable to find the mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar' in the plugin 'org.apache.maven.plugins:maven-jar-plugin' This only happens when I do a mvn install from a top-level POM that has a tree of subordinate child projects. If I cd to each of the subordinate directories, in turn, and manually, and run mvn install in each, they all succeed. Why is that when I try to do a reactor build I get this error message? What do I need to do to have it not do this? Currently, I have to have a shell script that walks the tree and runs mvn install in each of the subdirectories. Ugh. -- Eric