Re: What scope is like 'provided' and 'test' together?
Hmm, Why not use the scope in the same way as the class attribute in html? This would give: scopetest provided/scope this should tell maven that the dependency is needed for test, compile and is provided in a later stage by some container. Martijn On 2/6/06, Lee Meador [EMAIL PROTECTED] wrote: David, I am doing something sort of like you described and that seems to work. The work-around is to set the scope one way in a project that is depended on and then exclude it in a project that is dependant. It's just not very satisfying when what you want is to include the jar for regular compile and test compile and for test run but not for normal run. and the options don't include that combination. Thanks. On 2/4/06, David H. DeWolf [EMAIL PROTECTED] wrote: Lee, Have you tried using the exclusions that are available within the dependency declarations? If this webservices.jar is needed in a project (say project-a) which is included within an ear (say ear-project), you would define the following dependency within the ear-project pom: dependency groupIdwhatever/groupId artifactIdproject-a/artifactId version1.0/version scopecompile/scope exclusions exclusion groupIdwhatever/groupId artifactIdwebservices/artifactId /exclusion /exclusions /dependency With this approach, you could use a compile scoped dependency but not have it included in the ear. Hope that helps, David On 2/3/06, Lee Meador [EMAIL PROTECTED] wrote: I have a jar (webservices.jar) that I need for these things: 1) Compile main source. 2) Run tests in projects that are dependant on this one. But not for running the main source since that will run in the ejb container. scopeprovided/scope doesn't work because the jar isn't available for the tests in the dependent projects which need to instantiate a class from the jar but not to call it. scopecompile/scope doesn't work because the jar ends up inside the ear scopetest/scope doesn't work because the main code doesn't compile. Am I looking at this wrong somehow? The one solution I have found is to put it as provided in this project and put it as 'test in another project that runs tests that need classes. (I use the term project to mean a think with a POM of its own.) The problems with this are: 1) I can't run any such tests in the same project. (I can live with this.) 2) I have to put the dependency in the other project even though it is only needed when running the test that references this project. That seems wrong in some way. Any ideas? -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR dependency
I'm trying to use war files as web components, reusing not only Java code but also static web files. So, I'd need that a war project can have a dependency on another war project: project modelVersion4.0.0/modelVersion groupIdcom.digibis/groupId artifactIdwebmaven_custom/artifactId packagingwar/packaging (...) dependencies dependency groupIdcom.digibis/groupId artifactIdwebmaven/artifactId typewar/type version1.0-SNAPSHOT/version /dependency /dependencies /project I know it's not actually possible with Maven2, because dependencies of type war are not recognized. By the way, I suppose I can develop a plugin able to do that, but I'd like to know how could I put my war dependency as a parameter to the plugin, so that I can work with it. Thanks in advance, Andrés
Re: maven-proxy and repositories
On Fri, 2006-02-24 at 16:54 -0700, Brad O'Hearne wrote: I have a couple of issues using maven-proxy-webapp. I have the webapp set up and working, and I'm seeing the activity in my tomcat log, but I have two problems: 1) I'm seeing lines in my log such as: 2006-02-24 16:43:32,212 [INFO ] components.impl.DefaultSnapshotCache - Updating /opensymphony/oscache/2.1.1/oscache-2.1.1.jar in snapshot cache but nothing is being written to my local store. I thought that any file downloaded should be written to the value specified in maven-proxy.properties for repo.local.store. Am I doing something wrong here? I am not sure what the log message means specifically. I have an instance of the stand-alone maven-proxy running and it does write the files to ./target/repo (as per my repo.local.store setting). Are you certain that you are looking for the files in the right place? It might be worth searching for the oscache-2.1.1.jar file to see if it might be putting the files in a place that you did not expect. 2) I need to be able to have my proxy checked prior to the central (ibiblio) repository when I'm building from a cleint. In my project's pom.xml, I have only one repository specified, that being my proxy. But it appears its checking the central first. How can I change this, so that my proxy gets checked first? Specifying only your maven-proxy in pom.xml seems like the best policy to me -- any additional repos can be added to your maven-proxy config where you reap the benefits of it's caching, reduce the delays of SNAPSHOT dependencies, etc. You specify the order in which to check the repos with the repo.list property in maven-proxy.properties: repo.list=local-repo,www-ibiblio-org -Max Thanks, Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Max Cooper [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WAR dependency
Take a look at the dependency-maven-plugin at http://mojo.codehaus.org. I wrote it initially for this use case. -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 5:14 AM To: Maven Users List Subject: WAR dependency I'm trying to use war files as web components, reusing not only Java code but also static web files. So, I'd need that a war project can have a dependency on another war project: project modelVersion4.0.0/modelVersion groupIdcom.digibis/groupId artifactIdwebmaven_custom/artifactId packagingwar/packaging (...) dependencies dependency groupIdcom.digibis/groupId artifactIdwebmaven/artifactId typewar/type version1.0-SNAPSHOT/version /dependency /dependencies /project I know it's not actually possible with Maven2, because dependencies of type war are not recognized. By the way, I suppose I can develop a plugin able to do that, but I'd like to know how could I put my war dependency as a parameter to the plugin, so that I can work with it. Thanks in advance, Andrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Parent POM and dependencies
It appears that the transitive dependency mechanism is not sensitive to the packaging. This seems odd to me and is causing me an incredible amount of grief. I have a parent pom that defines a dependency. I intend this parent pom to be used almost like an include. For example: project modelVersion4.0.0/modelVersion groupIdmycompany.poms/groupId artifactIdparentpom/artifactId versionxxx/version packagingpom/packaging dependencies dependency groupIdmycompany.lib/groupId artifactIdutility/artifactId versionxxx/version /dependency /dependencies The odd thing is, the installation and/or deployment of the parent pom itself REQUIRES the lib. It's as if the dependency is a dependency on the building of the POM and not a dependency on the building of any OTHER poms that list this pom as a parent. It seems to me that if the packaging of the artifact being built is pom then dependencies ought to be ignored. Am I missing something? Thanks in advance. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javaapp plugin
Hi. In the plugin matrix on the maven site javaapp is listed among the plugins that support m2. However the release of this plugin on SourceForge dates back to 2003. Does anyone know if and how to make this plugin work under m2? 10x ___ Daniel Or __ www.nlayers.com
[m2] ejb-client and transitive dependencies
The dependency mechanism in maven 2 is not sensitive to the type value. Usually when someone has an ejb project he ejb-client jar has no dependencies (apart from possibly some transport objects and j2ee itself). It seems odd to me that the ejb's SERVER dependencies and up carried over into projects that depend on the ejb-client. I found a reference to this issue in the archive but no resolution. How are others managing this? Thanks in advance. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] HOWTO: Compilers
Hi Chris, Consider this pom.xml fragment: build plugin groupIdorg.foo/groupId artifactIdgeneric-commandline-plugin/artifactId executions execution idexecution-id/id phasephase-id/phase goals goalexecute/goal /goals /execution /executions configuration executablePath${foo.home}/bin/foo/executablePath arguments!CDATA[ insert your args here ]]/arguments /configuration /plugin /build Then the generic-commandline-plugin would launch the ${foo.home}/bin/foo and pass it the arguments string as is. Wouldn't it be *much* simpler to implement than the current compiler plugins? I have downloaded the Maven sources and started to debug the maven-compiler-plugin. (BTW, the Doodle Project provides a .NET plugin for M2, but I have not tested it yet) After one day of debugging (!), I still cannot understand why it is so complicated to spawn an OS process and pass it arguments! One example of this over complexity is the org.codehaus.plexus.compiler.CompilerConfiguration class, which is used to pass arguments to the javac compiler (of course, it is useless for other types of compilers). Another example is the org.apache.maven.plugin.AbstractCompilerMojo class which checks if there are newer sources to compile and if it finds such then it invokes the compiler, otherwise it logs Nothing to compile - all classes are up to date. Why is this needed? Isn't this the compiler's job? What am I missing? Please comment, Adrian. Stevenson, Chris wrote: Hi Adrian, I've had a bit of a play around with custom compilers, if you'd like to look at some source on how to do it you can download my CSharp stuff from JIRA: http://jira.codehaus.org/browse/MOJO-304 The specific bits of interest to you should be; plugins\csharp-maven-plugin\src\main\resources\META-INF\plexus\components.xm l (which makes plexus aware of the compiler) plugins\sample\maven-sample-csharp_exe\pom.xml (which shows how you to plumb the compiler into maven using the maven compiler plugin. If you have any more issues, please email. I'll try and help. Chris -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Herscu Sent: 23 February 2006 13:38 To: users@maven.apache.org Subject: [m2] HOWTO: Compilers Hi all, I am trying to understand how compilers are invoked by M2 and eventually how to add support for my own compiler. Please explain how M2 relates to Plexus (in other words why M2 needs Plexus?). Do I need to build my compiler support as a Plexus component? Is it possible to reuse existing M2 compiler support (i.e. from maven-compiler-plugin) for my own compiler? How? Thanks, Adrian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. 3167 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Hibernate doclet
I'm migrating my projects from Ant to Maven, and I've found a problem when trying to run Hibernate Doclet from Maven 2. I've tried to: * Run Ant code with antrun plugin * Make an Ant plug-in running Hibernate doclet * Use hibernatedoclet-maven-plugin from org.codehaus.mojo After dealing with sever classpath issues, I obtain the same results in every three choices: Embedded error: Can't create a hibernate element under hibernatedoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the taskdef that defined {2}. There's another choice, which is to migrate to XDoclet2, but I've seen that although it works fine: * The hibernate tags are sligthly different, e.g. collection-key is just key in XDoclet2 * I've found at least one error: when declaring a query, the generated XML has an empty representation node into the query, which finally raises a validation error. I'm sure that someone must have been in a similar case before, so any suggestion, please?. Have I done anything wrong? Andrés
RE: [m2] Hibernate doclet
Hello Andres About xdoclet2 1) Yes, there are changes like that, but mostly they are minimal if you don't use many collections in your objects. 2) The empty query is because you are breaking your queries in 2 or more lines, with queries, you just have to create the whole query in one line or else the query just breaks and your hibernate mapping with it. Regards Johann Reyes -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 5:35 PM To: users Subject: [m2] Hibernate doclet I'm migrating my projects from Ant to Maven, and I've found a problem when trying to run Hibernate Doclet from Maven 2. I've tried to: * Run Ant code with antrun plugin * Make an Ant plug-in running Hibernate doclet * Use hibernatedoclet-maven-plugin from org.codehaus.mojo After dealing with sever classpath issues, I obtain the same results in every three choices: Embedded error: Can't create a hibernate element under hibernatedoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the taskdef that defined {2}. There's another choice, which is to migrate to XDoclet2, but I've seen that although it works fine: * The hibernate tags are sligthly different, e.g. collection-key is just key in XDoclet2 * I've found at least one error: when declaring a query, the generated XML has an empty representation node into the query, which finally raises a validation error. I'm sure that someone must have been in a similar case before, so any suggestion, please?. Have I done anything wrong? Andrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]javax.comm - missing in iBiblio
I find the javax.comm API missing in the iBiblio repository. The page of the API: http://java.sun.com/products/javacomm/ Can someone place a request for adding this to the repository? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/
Re: [m2]javax.comm - missing in iBiblio
Hello, javax.comm is a third party jar. However, you can file a JIRA issue at http://jira.codehaus.org/browse/MEV, and request for the installation of the pom. Cheers! Nap On 2/27/06, Subhash Chandran [EMAIL PROTECTED] wrote: I find the javax.comm API missing in the iBiblio repository. The page of the API: http://java.sun.com/products/javacomm/ Can someone place a request for adding this to the repository? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/
Re: RE: [m2] Hibernate doclet
Thanks Johann: About xdoclet2 1) Yes, there are changes like that, but mostly they are minimal if you don't use many collections in your objects. Is there documentation about the differences between Hibernate xdoclet and xdoclet2?. I mean, the only difference is to replace collection-xxx tags for just xxx?. I only noticed the obvious errors. 2) The empty query is because you are breaking your queries in 2 or more lines, with queries, you just have to create the whole query in one line or else the query just breaks and your hibernate mapping with it. No, the query is in just 1 line: /** * @hibernate.class table=I18N_Textos * * @hibernate.query name=getTextoI18N query=from I18NTextos i where i.locale=:locale and i.texto=:texto * */ The generated XML is: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (the representation node raises an error) And the pom.xml: plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config pluginorg.xdoclet.plugin.hibernate.HibernateMappingPlugin/plugin params version2.0/version destdir${basedir}/target/classes//destdir /params /config /configs /configuration dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-hibernate/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies executions execution goals goalxdoclet/goal /goals /execution /executions /plugin Thanks in advance, Andrés
Re: xDoc i18n for a dozen languages
It looks like I should at least provide translation for the labels in the navigation pane. # For site.jsl site.legend=Legend site.last_published=Last published site.doc_for=Doc for site.external_link=External Link site.opens_new_window=Opens in a new window site.language=Language site.goals=Goals site.goal=Goal site.description=Description But where do you get the language names used in the list of languages (or alternatively, the entries in the language drop down list)? Since the language names are different, depending on which language is being viewed, I expected these to be in the template.properties files as well. Would it be worthwile to just contribute this small subset of values in 12 languages (really 9 more languages since you already have English, German, and French? It would be adequate for those, like me, who don't use any of the Maven reports but still produce web sites in multiple languages, but I won't bother if it has insufficient value. Lance On 2/17/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: fully supported mean in maven generated pages (reports, project information). If you take a look at [1] you'll see our bundles to translate the templates. If you want give us some translations ... Arnaud [1] http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/xdoc/src/plugin-resources/templates/ On 2/17/06, Lance Bader [EMAIL PROTECTED] wrote: At http://maven.apache.org/maven-1.x/reference/plugins/xdoc/reference/i18n.htmlit says Actually, only English, French and German are currently fully supported by Maven. Contributions are welcome! What does fully supported mean? What contributions would you like? I see no reason why the i18n support would not work for any language and we intend to serve a dozen languages from our web site, generating the HTML using Maven 1.2-Beta and xDoc plugin 1.9.2. Am I setting myself up for a failure? Lance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2]javax.comm - missing in iBiblio
See here: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Then see here: http://maven.apache.org/guides/mini/guide-maven-evangelism.html -Original Message- From: Napoleon Esmundo Ramirez [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 7:30 PM To: Maven Users List Subject: Re: [m2]javax.comm - missing in iBiblio Hello, javax.comm is a third party jar. However, you can file a JIRA issue at http://jira.codehaus.org/browse/MEV, and request for the installation of the pom. Cheers! Nap On 2/27/06, Subhash Chandran [EMAIL PROTECTED] wrote: I find the javax.comm API missing in the iBiblio repository. The page of the API: http://java.sun.com/products/javacomm/ Can someone place a request for adding this to the repository? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xDoc i18n scalability
I see how to use the xDoc plugin's i18n support to build language dependent navigation menus and titles as well as section and subsection headings. This is GREAT because, as a rule, translators do not translate attribute values. They only translate text between the tags. But how do you replace the content inside section and subsection elements? I must be missing something vital here. (Help me out and I will help you improve your i18n documentation.) I hope the plugin doesn't expect all the translated text to be in a properties file. That is just not scalable. We have 100,000 words on our web site. No one wants a properites file with 100,000 words in it. What I expected (and really really want) is to place translated xDoc XML source files in parallel trees, one tree for each supported language. When a source file in the base language exists in the parallel tree of a supported language, the file from the supported language is used to generate the HTML. Otherwise, the file from the base language is used. That way, Javadoc, XML schema references, code templates and other pages that have not been translated yet, are built from the base language and the XML source documents returned by the translators are used for the translated pages. If you don't have something better, give me a few hints on how to implement this enhancement and I will invest the effort to develop this contribution. If it can't be done, I will just have to build each language dependent site independently and abandon the cute language switching links at the bottom of the navigation pane. Lance
Re: [m2]javax.comm - missing in iBiblio
I have created an issue: http://jira.codehaus.org/browse/MEV-348 Thanks Regards, Subhash. On 2/27/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, javax.comm is a third party jar. However, you can file a JIRA issue at http://jira.codehaus.org/browse/MEV, and request for the installation of the pom. Cheers! Nap
xDoc i18n base language HTML placed in wrong directory
I'm willing to believe I'm wrong, but if the base langague is xx, shouldn't the generated HTML be placed in ${maven.docs.dest}/xx? Consider this scenario. - Assume that there are number of files that are copied, not generated from XML source, including images, style sheets, Javadoc, and code templates. - The base language source files contain relative URLs to these files. - The team who translates the base language source files are only changing the text between the tags. They are not changing relative URLs. Even if they understand URLs, they don't know which relative URLs must be modified. - For each supported language yy, the generated HTML is placed in ${ maven.docs.dest}/yy. If the base language xx is placed in ${maven.docs.dest} instead of ${maven.docs.dest}/xx, all of the relative URLs that reference files that are not generated by the xDoc plugin must be different for the base language and the other languages. Of course, for me, it is much more pleasing to see all the supported languages, including the base language, appear in parallel directory trees where the name of the root is the ISO language code. However, if my sense of aesthetics and symmetry is blinding me a better solution, I will just have to ignore my senses. Lance
Re: AW: Local repositories and POM/Checksum.
There is also a request for creating .md5 and .sha1 for install plugin, please see http://jira.codehaus.org/browse/MINSTALL-9 -allan Grothaus, Christoph wrote: Not install-file, but deploy-file! mvn deploy:deploy-file -DgroupId=GROUP_ID -DartifactId=ARTIFACT_ID -Dversion=VERSION -DgeneratePom=true -Dpackaging=jar -DrepositoryId=REPO_ID -Durl=scp://your.repo.host/PATH/TO/REPO -Dfile=PATH/TO/JAR Greets Christoph -Ursprüngliche Nachricht- Von: Joern Huxhorn [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 9. Februar 2006 16:45 An: Maven Users List Betreff: Local repositories and POM/Checksum. Hi. I'm trying to put some third-party jars installed as described in http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html into our company repository. After install there is neither a pom nor a sh1 file beside the jar. Maven expects both while downloading from a repository, though. Is there an easy way to create those, too? They are needed to prevent warnings during build. Regards, Joern. - 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: Property variable not interpolated in parent element when POM is installed
Use dependencyManagement tag for dependency versions in your parent pom. See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html -allan Sasvata Chatterjee wrote: Hi, I have a multipoject build. In the submodules, in the parent section, I am using a variable like this: parent groupIdmygroup/groupId artifactIdmyartifact/myartifact version${mygroup.myartifact.version}/version /parent In the parent pom, I define: project properties mygroup.myartifact.version2.2-SNAPSHOT/mygroup.myartifact.version /properties /project When I kick off my multiproject build, everything works fine. But, if I go into a module dir and build it individually like this it fails (I have also specified the property in settings.xml as a test), where I have dependencies into other modules built like this: mvn -Dmygroup.myartifact.version=2.2-SNAPSHOT install The reason is that when the POMs installed do not have the version element interpolated, instead have the ${...} syntax verbatim. Is this a bug? Thanks, Shash - 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 can I store artifacts in our remote repository?
http://docs.codehaus.org/display/MAVENUSER/FAQs-1#FAQs-1-HowdoIinstallartifactstoaremoterepository%3F -allan Marcin Maciukiewicz wrote: On 2/14/06, ravi kumar [EMAIL PROTECTED] wrote: Hi, I am Ravikumar. I came to get help form you. That is : How can I store artifacts in our remote repository? Could you please give the solution for this? I am waiting for you solution…. Thanks and Regards, Ravikumar.M I think you may find those links useful: http://maven.apache.org/guides/mini/guide-deploy-ftp.html http://maven.apache.org/guides/mini/guide-deploy-ssh-external.html http://maven.apache.org/guides/mini/guide-deployment-security-settings.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xDoc i18n for a dozen languages
On 2/26/06, Lance Bader [EMAIL PROTECTED] wrote: Would it be worthwile to just contribute this small subset of values in 12 languages (really 9 more languages since you already have English, German, and French? It would be adequate for those, like me, who don't use any of the Maven reports but still produce web sites in multiple languages, but I won't bother if it has insufficient value. All contributions have value. Definitely submit your work. ;-) Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help with Internal Repository - FTP
Try to use the wagon-ftp build ... extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-alpha-3/version /extension /extensions ... /build -allan Dixit, Sandeep (ProSource Solutions) wrote: Can someone help me with the setting up an internal repository and accessing it using ftp? I keep getting the following error: Reason: Error getting POM for 'XXX:XXX' from the repository: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp I want the local repositories to use internal repository only. Is this possible? I am using Maven 2.0.2 and have the following in my settings.xml settings profiles profile idmyConfig-dev/id repositories repository idncc-repository/id nameNCC Repository/name urlftp://10.49.209.166//pub/url layoutdefault/layout /repository myConfig-dev is a default active profile I also have server defined in settings.xml as server idncc-repository/id usernameanonymous/username passwordanonymous/password /server Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Not building EAR for an application
Hi Emmanuel, We use CVS (I wish it was svn). Each project of application corresponds to a module in CVS. at root level pom.xml (Not in cvs) failed as it doesn't exist in CVS. I copied it manually to folder 1. In working directory I was able to see pom.xml parentPOM ( in cvs) in continuum folder name 2 common (in cvs) in continuum folder name 3 ejb1 (in cvs) folder name 4 ejb2 (in cvs) folder name 5 war (in cvs) folder name 6 Java (in cvs) folder name 7 ear (in cvs) folder name 8 All the projects in CVS has pom.xml Now when I run mvn compile (or anyother phase) it doesn't work. It looks for the directory common , java, war etc. which are not present. (Which I expected) ( I don't know the design reason, but it would have been great if we had real folder names instead of numeric numbers.) Let me know if I am doing something wrong here!! -Sanjay On 2/26/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: ok you don't use the standard maven layout. If you want to build all in one time, you should add a new pom in the root directory of your parent pom and add one module in it (the parent pom), so all your modules will be checkout in the correct directory structure Emmanuel Sanjay Choudhary a écrit : Hi Emmanuel I like option 2 and I tried it too but it doesn't work My Parent pom has module definition as below: modules modules module../common/module module../ejb1/module module../ejb2/module module../war1/module module../java1/module module../ear/module /modules /modules But since Continuum uses number instead of folder name -N option doesn't work. Is there a work around to this issue? -Sanjay On 2/25/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: Actually a build start only if you have some changes in scm for your project. In future, we'll can start a build if a dependecies is new. If you want the latest EAR, without changes in your EAR project, you must build it manually from Continuum. or you can build all from parent project if you remove -N parameter in the build definition Emmanuel Sanjay Choudhary a écrit : Hi All, We hv. and application building thru continuum Our application is a normal J2EE application pom.xml EAR Project EJB1 Project EJB2 Project Jar Project Jar Project War Project Each of them has pom.xml. Now if we have change in Jar Project and EJB1 project, continuum builds the projects fine but doesn't rebuild the EAR. Now we don't have a latest EAR and deploy. Is there a workaround to this? Or this is a normal behavior of Continuum. If it is the normal behavior, then how we we get the latest EAR? Thanks, Sanjay
site descriptor reference docs
Is there a DTD for the site descriptor (site.xml) file? Or some other reference documentation beyond what's in the site guide? Thanks, L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with Internal Repository - FTP
Btw, the latest ftp wagon is 1.0-alpha-6 -Original Message- From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 9:47 PM To: Maven Users List Subject: Re: Need help with Internal Repository - FTP Try to use the wagon-ftp build ... extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-ftp/artifactId version1.0-alpha-3/version /extension /extensions ... /build -allan Dixit, Sandeep (ProSource Solutions) wrote: Can someone help me with the setting up an internal repository and accessing it using ftp? I keep getting the following error: Reason: Error getting POM for 'XXX:XXX' from the repository: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp I want the local repositories to use internal repository only. Is this possible? I am using Maven 2.0.2 and have the following in my settings.xml settings profiles profile idmyConfig-dev/id repositories repository idncc-repository/id nameNCC Repository/name urlftp://10.49.209.166//pub/url layoutdefault/layout /repository myConfig-dev is a default active profile I also have server defined in settings.xml as server idncc-repository/id usernameanonymous/username passwordanonymous/password /server Thanks, Sandeep --- ***National City made the following annotations --- This communication is a confidential and proprietary business communication. It is intended solely for the use of the designated recipient(s). If this communication is received in error, please contact the sender and delete this communication. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site descriptor reference docs
On 2/26/06, Laurie Harper [EMAIL PROTECTED] wrote: Is there a DTD for the site descriptor (site.xml) file? Or some other reference documentation beyond what's in the site guide? Brett mentioned that a schema will be available with the final 2.0 version of the site plugin. http://www.nabble.com/-M2-site.xml-schema-t1039579.html#a2752133 The site archetype and the site guide are probably the best references. The MyFaces site is done with m2, so they should have some good examples. Is something not working? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Parent POM and dependencies
Hi Jim, All POMs' dependencies needs to be validated regardless of its packaging. Regards, John Jim Carroll wrote: It appears that the transitive dependency mechanism is not sensitive to the packaging. This seems odd to me and is causing me an incredible amount of grief. I have a parent pom that defines a dependency. I intend this parent pom to be used almost like an include. For example: project modelVersion4.0.0/modelVersion groupIdmycompany.poms/groupId artifactIdparentpom/artifactId versionxxx/version packagingpom/packaging dependencies dependency groupIdmycompany.lib/groupId artifactIdutility/artifactId versionxxx/version /dependency /dependencies The odd thing is, the installation and/or deployment of the parent pom itself REQUIRES the lib. It's as if the dependency is a dependency on the building of the POM and not a dependency on the building of any OTHER poms that list this pom as a parent. It seems to me that if the packaging of the artifact being built is pom then dependencies ought to be ignored. Am I missing something? Thanks in advance. Jim - 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]javax.comm - missing in iBiblio
I don't have access to the Maven ibiblio repository myself, but I doubt this Sun API Jar will be accepted into the Maven repo until the licensing is changed by Sun to allow it, or they release it under another license which freely allows distribution. The important sections are 1. Software Internal Use and Development License Grant and 2. License to Distribute Software. The entire license from the javax.comm download page follows below... Wayne Sun Microsystems, Inc. Binary Code License Agreement READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY AGREEMENT) CAREFULLY BEFORE OPENING THE SOFTWARE MEDIA PACKAGE. BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING THE SOFTWARE ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE ACCEPT BUTTON AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE DECLINE BUTTON AT THE END OF THIS AGREEMENT. 1. LICENSE TO USE. Sun grants you a non-exclusive and non-transferable license for the internal use only of the accompanying software and documentation and any error corrections provided by Sun (collectively Software), by the number of users and the class of computer hardware for which the corresponding fee has been paid. 2. RESTRICTIONS. Software is confidential and copyrighted. Title to Software and all associated intellectual property rights is retained by Sun and/or its licensors. Except as specifically authorized in any Supplemental License Terms, you may not make copies of Software, other than a single copy of Software for archival purposes. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. Licensee acknowledges that Licensed Software is not designed or intended for use in the design, construction, operation or maintenance of any nuclear facility. Sun Microsystems, Inc. disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Sun or its licensors is granted under this Agreement. 3. LIMITED WARRANTY. Sun warrants to you that for a period of ninety (90) days from the date of purchase, as evidenced by a copy of the receipt, the media on which Software is furnished (if any) will be free of defects in materials and workmanship under normal use. Except for the foregoing, Software is provided AS IS. Your exclusive remedy and Sun's entire liability under this limited warranty will be at Sun's option to replace Software media or refund the fee paid for Software. 4. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. 5. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event will Sun's liability to you, whether in contract, tort (including negligence), or otherwise, exceed the amount paid by you for Software under this Agreement. The foregoing limitations will apply even if the above stated warranty fails of its essential purpose. 6. Termination. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Sun if you fail to comply with any provision of this Agreement. Upon Termination, you must destroy all copies of Software. 7. Export Regulations. All Software and technical data delivered under this Agreement are subject to US export control laws and may be subject to export or import regulations in other countries. You agree to comply strictly with all such laws and regulations and acknowledge that you have the responsibility to obtain such licenses to export, re-export, or import as may be required after delivery to you. 8. U.S. Government Restricted Rights. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation will be only as set forth in this Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212 (for
RE: RE: [m2] Hibernate doclet
Hello Andres 1) Not much documentation sadly, but I say it's pretty straightforward. If you have problems remapping something you can just send me an email or find me at irc://irc.codehaus.org/#maven 2) Use the 1.0.3 version of xdoclet-plugin-hibernate instead of 1.0.4-SNAPSHOT and give it a try Regards Johann Reyes -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 7:41 PM To: Maven Users List Subject: Re: RE: [m2] Hibernate doclet Thanks Johann: About xdoclet2 1) Yes, there are changes like that, but mostly they are minimal if you don't use many collections in your objects. Is there documentation about the differences between Hibernate xdoclet and xdoclet2?. I mean, the only difference is to replace collection-xxx tags for just xxx?. I only noticed the obvious errors. 2) The empty query is because you are breaking your queries in 2 or more lines, with queries, you just have to create the whole query in one line or else the query just breaks and your hibernate mapping with it. No, the query is in just 1 line: /** * @hibernate.class table=I18N_Textos * * @hibernate.query name=getTextoI18N query=from I18NTextos i where i.locale=:locale and i.texto=:texto * */ The generated XML is: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (the representation node raises an error) And the pom.xml: plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config pluginorg.xdoclet.plugin.hibernate.HibernateMappingPlugin/plugin params version2.0/version destdir${basedir}/target/classes//destdir /params /config /configs /configuration dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-hibernate/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies executions execution goals goalxdoclet/goal /goals /execution /executions /plugin Thanks in advance, Andrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site descriptor reference docs
Wendy Smoak wrote: On 2/26/06, Laurie Harper [EMAIL PROTECTED] wrote: Is there a DTD for the site descriptor (site.xml) file? Or some other reference documentation beyond what's in the site guide? Brett mentioned that a schema will be available with the final 2.0 version of the site plugin. http://www.nabble.com/-M2-site.xml-schema-t1039579.html#a2752133 The site archetype and the site guide are probably the best references. The MyFaces site is done with m2, so they should have some good examples. Is something not working? Yeah :-) I'm trying to publish a site to sourceforge, and they require a banner image on every page hosted there. I want to stick it at the bottom of the navigation sidebar, but putting an img tag in a menu causes an error. I was looking for a DTD or something so I could find out what was possible/allowd in site.xml, in hopes of figuring out a way to do this. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use external jar's while compiling
Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments.
RE: How to use external jar's while compiling
Use a dependency tag like below ... dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies change your groupId, artifactId, version and scope to compile ... as per ur need Thanks Regards, A.S.KRISHNAN, AZTEC, BANGALORE. -Original Message- From: tanya Rust [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 12:13 PM To: users@maven.apache.org Subject: How to use external jar's while compiling Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments. ** The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to use external jar's while compiling
In Maven2, if plugin or dependency can not be found in ibiblio, for example, weblogic.jar, you can use below lines to install the jar into local repository: set wl-home=D:/bea91/weblogic91 set group-id=com.bea.mytest set version=9.1 set packaging=jar @rem #weblogic set path-to-file=%wl-home%/server/lib/weblogic.jar set artifact-id=weblogic mvn install:install-file -Dfile=%path-to-file% -DgroupId=%group-id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% then you can use the jar as a dependency, as: dependency groupIdcom.bea.mytest/groupId artifactIdweblogic/artifactId version9.1/version /dependency Thanks, -- Qiang Wang [Kevin] -Original Message- From: tanya Rust [mailto:[EMAIL PROTECTED] Sent: 2006年2月27日 14:43 To: users@maven.apache.org Subject: How to use external jar's while compiling Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]Execute target on child, but not parent?
Hi Matt, Try to individually declare and configure the plugin only in the modules that needs it and don't declare it in your parent POM. Regards, John Matt McGill wrote: I have a multi-module project, and for various reasons only want to execute maven on the parent pom. However, I have a plugin that only makes sense to configure/execute on some of the child modules. The plugin target I want to execute shouldn't really be attached to a phase in the build lifecycle, but I can't think of a way to configure my project such that executing mvn plugin:target on the parent pom will result in the plugin target being executed on only those child modules for which the plugin is configured. Is there any way to pull this off (by explicitly disabling the plugin in the parent and children for which is should not run, for instance)? Thanks, -Matt - 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: RE: [m2] Hibernate doclet
2006/2/27, Akbarr [EMAIL PROTECTED]: No, the query is in just 1 line: /** * @hibernate.class table=I18N_Textos * * @hibernate.query name=getTextoI18N query=from I18NTextos i where i.locale=:locale and i.texto=:texto * */ The generated XML is: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (the representation node raises an error) Hi, This is a bug, which I've come across, too. I once checked out the sources of plugin-hibernate to fix it, but was unable to find some spare time to do it actually. Andrés Jacek -- Jacek Laskowski http://www.laskowski.org.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use external jar's while compiling
Hi Tanya, Please provide more information. What version of Maven are you using (please indicate [M2] on your email's subject if its version 2)? What error message are you getting and what external jar are you trying to use? You might find it useful to look at the online documentation: Maven 2: http://maven.apache.org/ Maven 1: http://maven.apache.org/maven-1.x Regards, John tanya Rust wrote: Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to use external jar's while compiling
C:\sample-mvn\subset sub-home=D: C:\sample-mvn\subset group-id=com.ncso C:\sample-mvn\subset version=1.0 C:\sample-mvn\subset packaging=jar C:\sample-mvn\subset path-to-file=%sub-home%/ncso/ncso.jar C:\sample-mvn\subset artifact-id=ncso C:\sample-mvn\submvn install:install-file -Dfile=%path-to-file% -DgroupId=%group -id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% till this step it is ok when i compile using mvn compile C:\sample-mvn\submvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [compile] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.jar [WARNING] Unable to get resource from repository central (http://repo1.maven.org /maven2) [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. Kevin Wang [EMAIL PROTECTED] wrote: In Maven2, if plugin or dependency can not be found in ibiblio, for example, weblogic.jar, you can use below lines to install the jar into local repository: set wl-home=D:/bea91/weblogic91 set group-id=com.bea.mytest set version=9.1 set packaging=jar @rem #weblogic set path-to-file=%wl-home%/server/lib/weblogic.jar set artifact-id=weblogic mvn install:install-file -Dfile=%path-to-file% -DgroupId=%group-id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% then you can use the jar as a dependency, as: com.bea.mytest weblogic 9.1 Thanks, -- Qiang Wang [Kevin] -Original Message- From: tanya Rust [mailto:[EMAIL PROTECTED] Sent: 2006Äê2ÔÂ27ÈÕ 14:43 To: users@maven.apache.org Subject: How to use external jar's while compiling Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.