Antwort: RE: Antwort: RE: Antwort: RE: Proxy settings
Mohni, Daniel [EMAIL PROTECTED] schrieb am 05.12.2006 07:28:36: - Generic proxy (so the POMs can't mess with your mirror settings). from my point of view this has nothing to do with archiva, this is a maven problem. I don't know if you can setup a generic proxy in your settings.xml as I didn't find anyhing in the documentation, but maybe there is a hidden option ;-) checkout http://maven.apache.org/settings.html The setting is called proxy. This allows to inject a proxy server which could filter all HTTP requests sent out by maven. Regards, -- Aaron Digulla
[m2] Build number plugin
Hi, Im trying to use the build number plugin to work. I can get it to create a jar file with the build number in the name but when i try to install or deploy the jar maven removes the build number. Heres the mvn output. [INFO] Scanning for projects... [INFO] [INFO] Building build_no_test [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [buildnumber:create {execution: default}] [INFO] Verifying there are no local modifications ... [INFO] Executing: svn --non-interactive status [INFO] Working directory: D:\Source Code - Maven\build_no_test\trunk [INFO] Unknown file status: ' '. [INFO] Executing: svn --non-interactive update [INFO] Working directory: D:\Source Code - Maven\build_no_test\trunk [INFO] No files needed updating. process = [EMAIL PROTECTED] [INFO] Storing buildNumber: 9 [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: D:\Source Code - Maven\build_no_test\trunk\target\surefire-reports --- T E S T S --- Running com.nexusalpha.build_no_test.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: D:\Source Code - Maven\build_no_test\trunk\target\build_no_test-1.0.9.jar [INFO] [install:install] [INFO] Installing D:\Source Code - Maven\build_no_test\trunk\target\build_no_test-1.0.9.jar to C:\Documents and Settings\Ben Short\.m2\repository\com\nexusalpha\build_no_test\build_no_test\1.0\build_no_test-1.0.jar [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Tue Dec 05 08:52:38 GMT 2006 [INFO] Final Memory: 5M/12M [INFO] And my 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 groupIdcom.nexusalpha.build_no_test/groupId artifactIdbuild_no_test/artifactId packagingjar/packaging version1.0/version namebuild_no_test/name urlhttp://maven.apache.org/url scm connectionscm:svn:svn://10.10.10.9/build_no_test/connection developerConnectionscm:svn:svn://10.10.10.9/build_no_test/developerConnection /scm dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies build finalName${project.artifactId}-${project.version}.${buildNumber}/finalName plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-buildnumber-plugin/artifactId version0.9.5-SNAPSHOT/version configuration skipCheckfalse/skipCheck skipUpdatefalse/skipUpdate /configuration executions execution goals goalcreate/goal /goals /execution /executions /plugin /plugins /build /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Continuum Clearcase
Hi All, I have a project that uses clearcase for scm. The viewstore location is not the default so I created a .scm folder in the location of the pom.xml file and added a clearcase-settings.xml file with the location of the viewstore as instructed by the maven site. However when I come to run the project through continuum, it's like it doesn't pick up the .scm folder and tries to use the default viewstore location causing an error. Does anyone have any suggestions? Thanks a lot! Rob Langridge This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our IT Service Desk immediately by e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Proxy settings
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 9:43 AM To: archiva-users@maven.apache.org Subject: Antwort: RE: Antwort: RE: Antwort: RE: Proxy settings Mohni, Daniel [EMAIL PROTECTED] schrieb am 05.12.2006 07:28:36: - Generic proxy (so the POMs can't mess with your mirror settings). from my point of view this has nothing to do with archiva, this is a maven problem. I don't know if you can setup a generic proxy in your settings.xml as I didn't find anyhing in the documentation, but maybe there is a hidden option ;-) checkout http://maven.apache.org/settings.html The setting is called proxy. This allows to inject a proxy server which could filter all HTTP requests sent out by maven. never tried this one :-( , do you get any artefacts from archiva using only the proxy setup ? there was a problem with the proxy servlet, as soon as you have more than one proxied repo's the access without 'repo-id' didn't work, maybe this is fixed now I don't think that the proxy servlet is implemented the way you want to use it, but I may be wrong... check org.apache.maven.archiva.proxy.DefaultProxyManager org.apache.maven.archiva.proxy.DefaultProxyRequestHandler maybe you can provide a patch Regards Daniel
Creating Archetypes
Hi Is it possible to create an archetype with sub-projects? You can imagine that I want to create nested archetypes: the end-user should obtain a project that contains sub-projects. Thanks for any help! Greetings Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
504 in maven, works everywhere else
Hello, All of a sudden, archiva doesn't like maven anymore (or the other way 'round): Caused by: java.io.IOException: Server returned HTTP response code: 504 for URL: http://m2proxy:8080/archiva/repository/snapshot/org/apache/maven/plugi ns/maven-deploy-plugin/2.3-SNAPSHOT/maven-metadata.xml at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:1153) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD ata(LightweightHttpWagon.java:85) When I download the very same file in a browser or with wget, it works! Maven together with Archiva is starting to drive me nuts! Sometimes, something works, sometimes, it doesn't. I have three repositories with releases and maven says oh, I checked all of them but when I run maven with -X, I see it just checks the snapshot repository! The *snapshot* repository! For a RELEASE! What's wrong with this crap :- Regards, -- Aaron Digulla
RE: 504 in maven, works everywhere else
Hello Aaron you need to provide some information about what is in your settings.xml sometimes it also helps to use mvn -U ... to update the dependencies regards Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 11:19 AM To: archiva-users@maven.apache.org Subject: 504 in maven, works everywhere else Hello, All of a sudden, archiva doesn't like maven anymore (or the other way 'round): Caused by: java.io.IOException: Server returned HTTP response code: 504 for URL: http://m2proxy:8080/archiva/repository/snapshot/org/apache/maven/plugi ns/maven-deploy-plugin/2.3-SNAPSHOT/maven-metadata.xml at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:1153) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD ata(LightweightHttpWagon.java:85) When I download the very same file in a browser or with wget, it works! Maven together with Archiva is starting to drive me nuts! Sometimes, something works, sometimes, it doesn't. I have three repositories with releases and maven says oh, I checked all of them but when I run maven with -X, I see it just checks the snapshot repository! The *snapshot* repository! For a RELEASE! What's wrong with this crap :- Regards, -- Aaron Digulla
Re: Antwort: RE: Antwort: RE: Proxy settings
On 12/4/06, Mohni, Daniel [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] My position is that the POMs which come from the main sites can (and will) contain anything (even illegal XML, broken checksums, etc). The proxy has to handle all these case gracefully or at least to support the admin in doing so. I'm missing these functions in archiva: - Generic proxy (so the POMs can't mess with your mirror settings). from my point of view this has nothing to do with archiva, this is a maven problem. I don't know if you can setup a generic proxy in your settings.xml as I didn't find anyhing in the documentation, but maybe there is a hidden option ;-) checkout http://maven.apache.org/settings.html You can use * as mirror id to mactch all servers since maven 2.0.5 (not yet released) or Maestro 1.1 that you can get from http://www.mergere.com/ - Regenerate checksum (for all downloads which I needed to fix) As far as I know this is one of the features that will be implemented into archiva, maybe it's already in the daily builds but I didn't tested them the last few days... - Lock down file (so Archiva will not try to download it again even if the remote site says but I have new version or the user says get the newest, hottest snapshots!). this can be done be done on user site with the usePluginRegistry property set to true, but this is not realy nice as you will have to confirm every plugin version... loking files in the proxy is only usefull if this is used for all users, is this realy what you want ? What will you do if another team use another version I can live without the last two but the first one is a must, IMHO. - fill an issue on the maven project, maybe it's already in jira... just my two cents Daniel -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride
RE: Continuum Clearcase - RESOLVED
I managed to resolve the problem stated below. If you want to use a clearcase-setings.xml for continuum you must place it in the following directory: C:\continuum-1.0.3\bin\win32\.scm\clearcase-setings.xml From here continuum will pick up your viewstore location and work correctly! Cheers. -Original Message- From: Robert Langridge Sent: 04 December 2006 11:32 To: Maven Users List Subject: Continuum Clearcase Hi All, I have a project that uses clearcase for scm. The viewstore location is not the default so I created a .scm folder in the location of the pom.xml file and added a clearcase-settings.xml file with the location of the viewstore as instructed by the maven site. However when I come to run the project through continuum, it's like it doesn't pick up the .scm folder and tries to use the default viewstore location causing an error. Does anyone have any suggestions? Thanks a lot! Rob Langridge This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our IT Service Desk immediately by e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
site deploy and ftp
Hi, apologies for the newbie question but I'm having trouble with site:deploy and ftp. my site dir is generated fine by mvn site, however the site:deploy docs state that a zip will be created, uploaded to remote and unzipped. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
site deploy and ftp
apologies, previous email sent half written. I'm having trouble with site:deploy and ftp. My site dir is generated fine by mvn site, however the site:deploy docs state that a zip will be created, uploaded to remote and unzipped. http://maven.apache.org/plugins/maven-site-plugin/deploy-mojo.html when running mvn site:deploy, all I get is an error stating Wagon protocol 'ftp' doesn't support directory copying. I can see no zip file created. I have added the correct distributionManagement to pom.xml, server to settings.xml, wagon-ftp to build/extensions. is it something to do with this bug? http://jira.codehaus.org/browse/WAGONFTP-7 will the problems go away if I try to deploy using some other protocol such as scp? thanks in advance, Nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Proxy settings
You can use * as mirror id to mactch all servers since maven 2.0.5 (not yet released) or Maestro 1.1 that you can get from http://www.mergere.com/ 1. How can I get maven 2.0.5? Or maven 2.1? Should I checkout from Subversion or is there a download? 2. Which proxy supports this? In Archiva, I have to specify exactly which URL should be mirrored (additionally to the mirrors in settings.xml). Does it work with Proxmitiy? Or maven-proxy? Regards, -- Aaron Digulla
Google Web Toolkit Tests
Has anyone been able to run JUnit tests on GWT sources from within Maven? I have hacked the GWT plugin to make tests work (the version of the plugin I have built works as part of a WAR project instead of as a GWT-only project), but it is real ugly since I strictly follow the sample command script produced by GWT: It only puts output to the console and won't show up in surefire reports. I tried just making the GWT tests as test cases for surefire but found no way to get the strange class path requirements into place. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 with VSS: Has maven scm plugin implemented scm:checkout for VSS?
scm:checkout is supported for VSS but not in the release version, only in our svn. We'll release a new version in few days. Emmanuel [EMAIL PROTECTED] a écrit : try command line mvn scm:checkout following error found, Embedded error: No such command 'checkout' Anyone can help? Thanks! Regards, Joy IMPORTANT NOTICE Email from OOCL is confidential and may be legally privileged. If it is not intended for you, please delete it immediately unread. The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in doing so. Without limitation, OOCL and its affiliates accept no liability whatsoever and howsoever arising in connection with the use of this email. Under no circumstances shall this email constitute a binding agreement to carry or for provision of carriage services by OOCL, which is subject to the availability of carrier's equipment and vessels and the terms and conditions of OOCL's standard bill of lading which is also available at http://www.oocl.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Eclipse with Maven
I'm still experiencing some trouble with the mvn eclipse:eclipse command. I'm probably misusing this particular command, so maybe people can help me :). I've installed Eclipse Callisto, with the plugins for J2EE development. Now, what I do is the following. I create a project with mvn archetype:create in my Eclipse workspace. Normally, you run mvn eclipse:eclipse and everything is OK. The problem is that I want to create a Struts-application. So I create a new web application in Eclipse and give a name identical to the artifactId. I choose as source folder src/main/java and content directory equal to src/main/webapp. I don't know whether this is a good approach. The problem is that if I add dependencies to the pom-file, Eclipse recognizes those dependencies and adds them, but when I choose Run on server ... he doesn't publish the *.jar files in my lib-folder. Also, the component file generated doesn't contain the *.jar (I don't know if that's required). Can somebody please help me? :). Each time I try to run, I've got a 50% chance of receiving an error. Tia Björn De Bakker This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: Creating Archetypes
On 12/5/06, Deluigi Marcus [EMAIL PROTECTED] wrote: Is it possible to create an archetype with sub-projects? You can imagine that I want to create nested archetypes: the end-user should obtain a project that contains sub-projects. Things may have changed since I last tried, but I wasn't able to do it in a single archetype. By adding more than one module to an archetype, I lost the ability to insert the package name in the directory structure under src/main/java. What does work is running 'mvn archetype:create' more than once. If you run it in a directory with a pom containing modules, Archetype will hook up the parent-child relationships automatically. At the very least, the current plugin needs another layer that calls the existing archetype:create more than once to create the multi-module project. I believe there's some work going on in Appfuse that might be relevant. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] problems with site:deploy and PuTTy
I am having trouble getting Maven's site:deploy to properly utilize PuTTy's plink. I am not sure what is going on, but it seems to use pscp just fine, but then it fails while executing the following command: Executing command: ssh -o BatchMode yes ... This fails because I do not have any ssh executable available...gives me this error message: 'ssh' is not recognized as an internal or external command, operable program or batch file. Shouldn't the site plugin recognize that in my settings.xml server configuration, I have declared that it uses plink? It should be trying to call plink and not ssh. Here is an excerpt from my settings.xml: configuration sshExecutableplink/sshExecutable scpExecutablepscp/scpExecutable /configuration Is there a fix for this or is this a bug in the site plugin?
[M2] checkstyle plugin - correct groupid?
hi, i just found out about the existence of two checkstyle plugins: http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-checkstyle-plugin/ http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ i found (a relative) new version for both: maven: 3.0 (16-Nov-2006) org.apache.maven.plugins: 2.1 (14-May-2006) does anybody know, which one is still supported? which one should i use? thx 4 help R.C. -- View this message in context: http://www.nabble.com/-M2--checkstyle-plugin---correct-groupid--tf2762404s177.html#a7701728 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How to run a testng singletest with surefire ?
hello, I have described my problem recently in a post but I have had no response. So I that s one of my prioblems: I m trying to run maven-surefire-plugin with testng. I specified a testsuite in a xml file. Unfortunately, I have the following problem: When I try to run only one testcase described in a testsuite I always have the following behaviour: The surefire plugin runs all the test suite and not only the specified test case I did the following command : mvn -Dtest=LoginTest test How to run only one testcase ? Thanks in advance for your help! Regards, Alexandre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] checkstyle plugin - correct groupid?
On 12/5/06, CodingPlayer [EMAIL PROTECTED] wrote: i just found out about the existence of two checkstyle plugins: http://mirrors.ibiblio.org/pub/mirrors/maven2/maven/maven-checkstyle-plugin/ http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-checkstyle-plugin/ i found (a relative) new version for both: maven: 3.0 (16-Nov-2006) org.apache.maven.plugins: 2.1 (14-May-2006) The first one is a Maven 1 plugin. (You can tell from the url in the pom.) The second one (in org.apache.maven.plugins) is the Maven 2 version. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mojo Dev question: Binding to phases?
When you bind to a phase, when does it gets executed? Are all goals belonging to a phase executed in parallel? Or is there an order? For instance, I have 2 mojos and I'd like one executed before testing begins (and after test-compile completes) and after testing ends (before the next phase begins). What is the best way to accomplish this? Thanks! Eric Miles
Re: Resources with different encoding
Hi Franz! Thank you for your reply. Your solution looks very cool! I tried what you mentioned, but it seems I'm using a different version of maven (2.0.4). When I examine the schema (http://maven.apache.org/POM/4.0.0) I use to validate my POM, I get an error telling me that there is no element called 'encoding'. Do I have to upgrade maven? May I use a different POM for validating? I found no hint on the release plugin page either. May I ask for some more advice about where to look for? Thank you in advance! Best regards, Robert franz see wrote: Good day to you, Robert, You must declare your UTF-8 files as one resource and your ISO-8859-1 files as another. For example, project ... build resources resource directorysrc/main/resources/directory encodingUTF-8/encoding includes include**/*.xml/include /includes /resource resource directorysrc/main/resources/directory encodingISO-88591/encoding includes include**/*.properties/include /includes /resource resource directorysrc/main/resources/directory excludes exclude**/*.xml/exclude exclude**/*.properties/exclude /excludes /resource /resources /project For more information, kindly take a look at [1]. Cheers, Franz [1] http://maven.apache.org/plugins/maven-resources-plugin/ Robert Reiner wrote: Hi! I have a question concerning the maven-resources-plugin: In my resource folder I have files with different encodings. The XML files are UTF-8, the properties files are ISO-8859-1. Since I set the encoding for copying the files to UTF-8, my property files are not copied properly. A workaround I can think of is running the resources plugin a second time and include only the property files with the encoding set to ISO-8859-1. But how can I specify these files in the configuration of the second execution block? Maybe there is a more maven-like way to do this: Can someone give me advice how to handle resource files with different encodings? Thanks for your answer. Robert -- View this message in context: http://www.nabble.com/Resources-with-different-encoding-tf2736719s177.html#a7702872 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Properties in profiles
Hi all! I'm trying to create a pom for my project that has two different deployment environments, which are mutually exclusive, but I need to have one by default. I tried using properties but even when maven-help-plugin tells me the correct profile gets activated and the effective pom is correct, seems that the properties don't get overwritten. Here is what I'm doing: project ... properties buildStatedev/buildState jr2DeployPath/devDeployPath/jr2DeployPath repositoryURLhttp://developmentRepository/repositoryURL /properties repositories repository idalm-${buildState}/id url${repositoryURL}/url /repository /repositories pluginRepositories pluginRepository idalm-${buildState}/id url${repositoryURL}/url /pluginRepository /pluginRepositories profiles profile idprod/id properties buildStateprod/buildState jr2DeployPath/repos/HCOI/R2-ALM/repository/group-m2/jr2DeployPath repositoryURLhttp://r2alm.ghq.hsbc:8080/alm/proxy/hsbc/group-m2/repositoryURL /properties /profile /profiles build plugins plugin groupIdcom.mygroup/groupId artifactIdmaven-my-plugin/artifactId version1.0.1/version extensionstrue/extensions configuration jr2Deploy path${jr2DeployPath}/path /jr2Deploy /configuration /plugin /plugins /build ... /project And even when I execute this pom, activating the profile with -Pprod, the development path and repository are active. Looks like the profile's properties can't overwrite those from the main pom. Is that the case?? or am I doing something wrong? Thanks for your help Laura Hinojosa This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named. If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone. E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses. ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission. The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.
Central settings.xml file
I would like to create several profiles in a settings.xml file which I would like to store in the company-wide shared Maven repository which we have. Is there a way that I could do this? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Projects with empty modules
Maybe a JIRA issue... I've been setting up a project framework with no code in the modules yet, but with dependencies, and I notice that running mvn from the top causes the empty module to be skipped and subsequent dependency failures, but running mvn from within the empty project will cause an empty jar file to be created, available for dependency resolution in a subsequent build from the top. Obviously, the solution is to put at least one stub class into every module, but I do wonder why the reactor build behaves differently than the module build... -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Merging vs Overriding Settings?
I'm not clear on the algorithm used for inheritance of pom settings. It would seem that some settings are merged (obvious example: dependencies), whereas others seem to override. Is there any consistent rule about this or is it just whatever was deemed appropriate by whomever writing that section? For example, I would like to be able to do this, but it doesn't seem to work: In the parent pom.xml: .. build !-- Always exclude this file -- resources resource excludes exclude**/.cook.fp/exclude /excludes /resource /resources In the module pom.xml: build !-- Cause resource filtering -- resources resource directorysrc/main/assembly/directory filteringtrue/filtering /resource /resources And I would like to end up with the effective pom of: build !-- Cause resource filtering -- resources resource directorysrc/main/assembly/directory filteringtrue/filtering excludes exclude**/.cook.fp/exclude /excludes /resource /resources but I don't, instead the module setting replaces the parent setting. -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] error using maven with windows vista 64
Hello, I'm trying to run Maven 2.0.4 with Windows 64-bit Vista but it throws the following error when it starts downloading the artifacts after running 'mvn compile' on a project: [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, b ut the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:339) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Is Maven supposed to run on Vista? Kind regards Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] error using maven with windows vista 64
this is your error message: [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. did you run it in a directory with an existing pom.xml? -D On 12/5/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hello, I'm trying to run Maven 2.0.4 with Windows 64-bit Vista but it throws the following error when it starts downloading the artifacts after running 'mvn compile' on a project: [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, b ut the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:339) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:534) ... 16 more Is Maven supposed to run on Vista? Kind regards Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting the ArtifactRepository with the Test Harness
Hi, I have a mojo that gets the ArtifactRepository injected by Maven. The mojo works fine when I run it, but when I use the method: MyMojo.getArtifactRepository() inside my Test-Harness test I get null. Anyone know if this is just something that's not supported by the test harness? Thanks, - Ole Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSR for SCM
Hello everyone, I do understand that maven has maven-scm-api. However, is there a JSR for this the effort of standardizing SCM works? THanks -Dan
Re: Projects with empty modules
Christian Goetze wrote: Maybe a JIRA issue... I've been setting up a project framework with no code in the modules yet, but with dependencies, and I notice that running mvn from the top causes the empty module to be skipped and subsequent dependency failures, but running mvn from within the empty project will cause an empty jar file to be created, available for dependency resolution in a subsequent build from the top. Obviously, the solution is to put at least one stub class into every module, but I do wonder why the reactor build behaves differently than the module build... Well, turns out that doesn't fix the problem. Something is causing it to not install. How would I go about debugging this? mvn -e doesn't say anything useful... I see it actually building the jar, but for some reason it isn't installing it... -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSR for SCM
we should probably implement the JCR api On 12/5/06, Dan Tran [EMAIL PROTECTED] wrote: Hello everyone, I do understand that maven has maven-scm-api. However, is there a JSR for this the effort of standardizing SCM works? THanks -Dan -- I could give you my word as a Spaniard. No good. I've known too many Spaniards. -- The Princess Bride - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven with XDoclet - Failing to generate code
There is none yet, I configured the project and tryied to build it with no code yet, the only java files are ones without any xdoclet tags. I was trying to see if I got the maven-xdoclet stuff right. At first maven complained that it was not finding the XDoclet stuff in the repository, I found no way for it to be downloaded from the external repository(as per the tutorial) then I manualy installed it localy with the install:file goal(as in the tutorial too), but then the build started to give me that acess denied for the dir where the generated should go. I even tried to change the destination generated dir, but it gave me the same message. Note that the dest dir would not exist previously and it was the build itself that created it as a target dir's subdir. This is my build section, with the XDoclet configured(almost like the one in the tutorials, only that it is configured with the spring component): build plugins plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId version2.0.5-SNAPSHOT/version executions execution idxdoclet/id phasegenerate-sources/phase goals goalxdoclet/goal /goals /execution /executions !--since maven plusgin does not specify dependencies on concrete xdoclet-2 plugins, you must specify them explicitely. as well as dependencies which may be needed by plugin itself-- dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-spring/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies goals goalxdoclet/goal /goals configuration configs !--each config defines single xdoclet2 run for some plugins. more than one run can be specified with different parameters-- config components !-- components are xdoclet2 plugins to be run and sometimes configuration objects -- component !-- classname of the component -- classname org.xdoclet.plugin.spring.SpringConfigXMLPlugin/classname /component /components includes**/*.java/includes !--common parameters for all used plugins. individual plugins can override them.-- params destdir${project.build.directory }/generated-resources/xdoclet//destdir /params /config /configs /configuration /plugin /plugins /build On 12/4/06, Mick Knutson [EMAIL PROTECTED] wrote: Post your xdoclet code please. On 12/4/06, Leonardo Postacchini [EMAIL PROTECTED] wrote: Hello there! I am trying to run XDoclet 2 through Maven 2 and I am getting build failures saying the acess to the diretory where the generated sources was denied. I am running it under Windows XP professional, I checked the directory permissions and all seems fine. All processes are running under my user that is the system administrator. Does someone have gone through similar case? Any Ideas where to find the cause of the acess denial? I am fairly new to Maven and I have no clue about how it works. I have being digging the documentation for the past few days, but could not find the answer by myself. Thanks for your time and the attention, Notivago. -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
module builds but doesn't install
I have a situation where a module with packaging jar builds, i.e. it produces a .jar file, but it doesn't install if maven is run from the parent project directory. No indication by mvn why. It will install if I run maven from the module directory. Any ideas how I can debug this? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error in running mvn
Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj
Build fails with maven-cobertura-plugin and projects without Java sources
Hi everyone, I faced the problem with the current release of the maven-cobertura-plugin 2.0 that the cobertura.ser file could not be found in case of projects that do not contain Java source code - one project for parent pom and one for the multimodule build of my application. As far as I know this issue should be fixed in the latest SNAPSHOT version (2.1-SNAPSHOT) of the plugin. Thus I checked out the latest code from SVN, built the plugin on my own and deployed it in our inhouse proxy. Unfortenately I am facing now another error instead: Error getting reports from the plugin 'org.codehaus.mojo:cobertura-maven-plugin': Unable to find the mojo 'org.codehaus.mojo:cobertura-maven-plugin:2.1-SNAPSHOT:dump-datafile' in the plugin 'org.codehaus.mojo:cobertura-maven-plugin' I use Maven 2.0.4 along with JDK 1.5. Any idea? Thanks for an info about that :o) Cheers, Chris -- Giniality AG - Christian Sauer; Steinenberg 21, CH-4051 Basel P: +41 61 226 99 66 - F: +41 61 226 99 69 - M: +41 79 828 9416; E-Mail: christian.sauerATginiality.ch; WWW: http://www.giniality.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone seen a M2 XSTLC plugin?
Just curious if anyone has seen or created a Maven2 XSLTC plugin? I googled but didn't find anything. I've recently decided to try compiling the XSLTs in our WAR in hopes of improving the performance of our webapp. I got things to work from the command line and I think this is a good approach, but before I write my own plugin, I thought I'd see if anyone else is doing this already. Thanks. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant-Contrib foreach in Maven 2
I am trying to create an Ant task using the maven-antrun-plugin in Maven 2. I would like to use the optional task foreach. In Ant, I did this by declaring the Ant-Contrib jar in a taskdef object in the build.xml. How may I do this in Maven 2? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: [M2] How to run a testng singletest with surefire ?
On 05/12/06, Alexandre Touret [EMAIL PROTECTED] wrote: hello, I have described my problem recently in a post but I have had no response. So I that s one of my prioblems: I m trying to run maven-surefire-plugin with testng. I specified a testsuite in a xml file. Unfortunately, I have the following problem: When I try to run only one testcase described in a testsuite I always have the following behaviour: The surefire plugin runs all the test suite and not only the specified test case I did the following command : mvn -Dtest=LoginTest test How to run only one testcase ? Thanks in advance for your help! Regards, Alexandre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Have a look at this : http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html -- Regards, Petar! Karlovo, Bulgaria.
Re: Ant-Contrib foreach in Maven 2
On Today at 11:30am, MAUGM=Morgovsky, Alexander (US - Glen Mills)...: AM I am trying to create an Ant task using the maven-antrun-plugin in AM Maven 2. I would like to use the optional task foreach. In Ant, I AM did this by declaring the Ant-Contrib jar in a taskdef object in the AM build.xml. How may I do this in Maven 2? Thanks. AM AM I have the following in the dependencies section of my pom dependency groupIdant-contrib/groupId artifactIdant-contrib/artifactId version0.6/version scopeprovided/scope /dependency then in my maven-antrun-plugin tasks section, I have the following: configuration tasks taskdef resource=net/sf/antcontrib/antcontrib.properties classpathref=maven.compile.classpath/ .. /tasks /configuration Hope this helps. -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant-Contrib foreach in Maven 2
Ah crap, beat me too itwhat he said! :D! I use ant-contrib too for other projects as well (exactly for the foreach target). -aps On 12/5/06, Haroon Rafique [EMAIL PROTECTED] wrote: On Today at 11:30am, MAUGM=Morgovsky, Alexander (US - Glen Mills)...: AM I am trying to create an Ant task using the maven-antrun-plugin in AM Maven 2. I would like to use the optional task foreach. In Ant, I AM did this by declaring the Ant-Contrib jar in a taskdef object in the AM build.xml. How may I do this in Maven 2? Thanks. AM AM I have the following in the dependencies section of my pom dependency groupIdant-contrib/groupId artifactIdant-contrib/artifactId version0.6/version scopeprovided/scope /dependency then in my maven-antrun-plugin tasks section, I have the following: configuration tasks taskdef resource=net/sf/antcontrib/antcontrib.properties classpathref=maven.compile.classpath/ .. /tasks /configuration Hope this helps. -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson
Re: Ant-Contrib foreach in Maven 2
On 12/5/06, Haroon Rafique [EMAIL PROTECTED] wrote: I have the following in the dependencies section of my pom dependency groupIdant-contrib/groupId artifactIdant-contrib/artifactId version0.6/version scopeprovided/scope /dependency If this is something that is only needed at build time, it might be more appropriate either as a dependency of the antrun plugin, or as a buildextensionsextension. (It's probably not hurting anything on the compile-time classpath, but the less your compilation classpath differs from runtime, the better.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant-Contrib foreach in Maven 2
On Today at 5:05pm, HR=Haroon Rafique [EMAIL PROTECTED] wrote: HR I have the following in the dependencies section of my pom HR HR dependency HR groupIdant-contrib/groupId HR artifactIdant-contrib/artifactId HR version0.6/version HR scopeprovided/scope HR /dependency HR The maven2 official repos have the following versions: 1.0b2 20020829 I decided to put 0.6 in my internal repo (which is how maven finds it now in my project). HR HR [..snip..] HR -- Haroon Rafique [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Workaround: module builds but doesn't install
Christian Goetze wrote: I have a situation where a module with packaging jar builds, i.e. it produces a .jar file, but it doesn't install if maven is run from the parent project directory. No indication by mvn why. It will install if I run maven from the module directory. By removing all modules and adding them back in one by one, I discovered that as soon as I add in a module with an assembly, subsequently built modules do not get installed. This looks like a bug to me. My workaround is to add dummy dependencies with scopeprovided/scope to force the reactor to execute builds in an order where the modules with assemblies are built last. This will of course only work as long as the modules with the assemblies remain leaves in the dependency tree... Comments? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MAVEN_INSTALL_DIR/conf/settings.xml
-Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 2:15 PM To: Maven Users List Subject: Re: MAVEN_INSTALL_DIR/conf/settings.xml On 12/4/06, Marilyn Sander -X (marilysa - Digital-X, Inc. at Cisco) [EMAIL PROTECTED] Perhaps I mis-stated a bit. There is not a time dependency. There are two ways that we invoke maven. The first is with the mvn command, to do the java build. The second is later, after the mvn build has created the local repository, where we invoke a maven copy ant task to fetch some artifacts from the local repository. The fetching from the local repository is so we can build an install file using a commercial tool for building a GUI installer. The local repository is intended to be used by a single developer. If you need to share artifacts, then deploy them to a remote internal corporate repository. The snapshot and release deployment urls are set in distributionManagement for each project. The point here is that a single developer who works on multiple products or product releases may need one local repository per product or release. This is particularly true if the different releases need to be built simultaneously, because the build puts artifacts compiled/created during the build into the local repository. Simultaneous builds using the same local repository would clobber each others' files. This is all run under a single top-level ant script, and therefore all in one run by the same user. The top ant script runs maven for the java build. Then it runs some Makefiles for modules written in C/C++. Then it runs another ant script, build_installer.xml, which collects artifacts from the build and creates an install file for shipment to customers. It is build_installer.xml that uses the copy ant task from antlib to fetch artifacts from the local repository for inclusion in the install file. One solution we've contemplated, and probably will implement, is that build_installer.xml will no longer use antlib nor the local repository, but will fetch artifacts from the source directories where they were created. Please note, the documentation for antlib specifically calls out the authors' desire to be able to share the local repository between Maven and ant. They just overlooked the fact that, just as Maven has provision for alternative settings.xml files, so should antlib. --Marilyn -- 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]
Python xmlrpc scripts
What is the status of the python scripts are they functional. I downloaded them from subversion but no documentation on how to be used even the one that says use the help is not clear. So has anybody gotten those to work I am trying to make those work so I can use it in the subversion hooks. Thank you -- View this message in context: http://www.nabble.com/Python-xmlrpc-scripts-tf2765106.html#a7710620 Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Python xmlrpc scripts
I think the xmlrpc interface is a bit of a work in progress at the moment...we have had a raft of changes in things regarding project groups and stuff and I would like to see these api's cleaned up and consolidated to use the project group and project keys mentioned in another thread. I know rahul is interested in getting these cleaned up soon. I so I think using them as they are on the trunk is a bit of a hit or miss atm...some of it probably works 100%...so I can tell you that its slated to get cleaned up and use at your own risk off of trunk atm. and bother rahul about it :) jesse On 12/5/06, kkrikor [EMAIL PROTECTED] wrote: What is the status of the python scripts are they functional. I downloaded them from subversion but no documentation on how to be used even the one that says use the help is not clear. So has anybody gotten those to work I am trying to make those work so I can use it in the subversion hooks. Thank you -- View this message in context: http://www.nabble.com/Python-xmlrpc-scripts-tf2765106.html#a7710620 Sent from the Continuum - Users mailing list archive at Nabble.com. -- jesse mcconnell [EMAIL PROTECTED]
DefaultArtifactRepository subversion location?
Hi, Does anyone have a link to the Subversion DefaultArtifactRepository.java? I looked all over in the various maven-artifact directories... If I could find it, I could probably figure this out. Here's what I'm trying to figure out just in case you have know. I created a testcase with a DefaultArtifactRepository instance, like this: artifactRepository = new DefaultArtifactRepository(/home/ole/.m2/,/home/ole/.m2/, null); Then I try to get it to tell me the path to an artifact like this: public void testTemp() { String artifactId = apacheds-server-main; String groupId = org.apache.directory.server; String version = 1.5.0-SNAPSHOT; ArtifactFactory artifactFactory = mojo.getArtifactFactory(); assertNotNull(artifactFactory); Artifact pom = artifactFactory.createArtifact(groupId, artifactId, version, null, pom); assertNotNull(pom); String string = artifactRepository.pathOf(pom); System.out.println(string); } However when I run this I get a NullPointerException like this: java.lang.NullPointerException at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf(DefaultArtifactRepository.java:107) Thanks, - Ole Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultArtifactRepository subversion location?
[EMAIL PROTECTED]:~/svn/apache/maven$ find . -name DefaultArtifactRepository.java ./components/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java -Max Ole Ersoy wrote: Hi, Does anyone have a link to the Subversion DefaultArtifactRepository.java? I looked all over in the various maven-artifact directories... If I could find it, I could probably figure this out. Here's what I'm trying to figure out just in case you have know. I created a testcase with a DefaultArtifactRepository instance, like this: artifactRepository = new DefaultArtifactRepository(/home/ole/.m2/,/home/ole/.m2/, null); Then I try to get it to tell me the path to an artifact like this: public void testTemp() { String artifactId = apacheds-server-main; String groupId = org.apache.directory.server; String version = 1.5.0-SNAPSHOT; ArtifactFactory artifactFactory = mojo.getArtifactFactory(); assertNotNull(artifactFactory); Artifact pom = artifactFactory.createArtifact(groupId, artifactId, version, null, pom); assertNotNull(pom); String string = artifactRepository.pathOf(pom); System.out.println(string); } However when I run this I get a NullPointerException like this: java.lang.NullPointerException at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf(DefaultArtifactRepository.java:107) Thanks, - Ole Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - 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: DefaultArtifactRepository subversion location?
Oooh - Very Cool - I'll definitely be putting find to good use in the future. Thanks, - Ole --- Max Cooper [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~/svn/apache/maven$ find . -name DefaultArtifactRepository.java ./components/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java -Max Ole Ersoy wrote: Hi, Does anyone have a link to the Subversion DefaultArtifactRepository.java? I looked all over in the various maven-artifact directories... If I could find it, I could probably figure this out. Here's what I'm trying to figure out just in case you have know. I created a testcase with a DefaultArtifactRepository instance, like this: artifactRepository = new DefaultArtifactRepository(/home/ole/.m2/,/home/ole/.m2/, null); Then I try to get it to tell me the path to an artifact like this: public void testTemp() { String artifactId = apacheds-server-main; String groupId = org.apache.directory.server; String version = 1.5.0-SNAPSHOT; ArtifactFactory artifactFactory = mojo.getArtifactFactory(); assertNotNull(artifactFactory); Artifact pom = artifactFactory.createArtifact(groupId, artifactId, version, null, pom); assertNotNull(pom); String string = artifactRepository.pathOf(pom); System.out.println(string); } However when I run this I get a NullPointerException like this: java.lang.NullPointerException at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf(DefaultArtifactRepository.java:107) Thanks, - Ole Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - 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] Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I need help with multi-module project site generation.
So I have a multi-module project and I would like to generate a site which includes javadoc and jxr. What am I supposed to do? I would be extremelty grateful to anyone who can provide an example which has a shot at working... If I generate the default site according to the mergere book, I get essentially a useless cover page with a navigation menu that lists the modules, but without links If in the parent pom.xml, I say: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration aggregatetrue/aggregate /configuration /plugin mvn site fails with an internal error, stumbling over a dependency which seems to stem from the java code being javadoc'ed itself. If I set it to false, I don't see any link or anything at all. Is the intent to let maven generate some of the pages, and I need to add the static pages linking them all together myself? I cannot stress enough how frustrating it is the wade through the many twisty XML hierarchies -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I need help with multi-module project site generation.
On 12/5/06, Christian Goetze [EMAIL PROTECTED] wrote: If I generate the default site according to the mergere book, I get essentially a useless cover page with a navigation menu that lists the modules, but without links I've seen that happen too. Most of my projects have a custom site.xml and aren't using ${modules} (?) though, so I've never tried to chase it down. Can you reproduce it with a simple parent-and-two-children multi-module project? mvn site fails with an internal error, stumbling over a dependency which seems to stem from the java code being javadoc'ed itself. Are you using dependencyManagement ? This sounds familiar, but I thought it was fixed. First try 'mvn site -U' to make sure you've got the latest plugin versions, or (better) add a version element to set the version you want to use. If I set it to false, I don't see any link or anything at all. Javadoc will be under 'Project Reports' at the bottom of the menu. Do you have ${reporting} (or possibly ${reports}) in site.xml? Is the intent to let maven generate some of the pages, and I need to add the static pages linking them all together myself? Not sure what you mean here... 'mvn site' is only going to generate the pieces of a multi-module site under the various 'target' directories. To see what the whole thing looks like you'll need to use either site:stage or site:deploy. The default index.html page will include the description from the pom, if you want more than that, add src/site/apt/index.apt with your content. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: delete a directory by maven-antrun-plugin?
Currently, I delete the directory via command rm -rf the_directory. But I'll search the problem continuously. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, As your said, the trouble is very strange. I created a build.xml, project basedir=. default=delete property name=dir value=Absolate_Path_To_The_Directory / target name=delete delete dir=${dir} includeemptydirs=true / /target /project and run ant, then I got a right result. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: I'd expect there's some verbose=true kind of settings you can use in your ant call to get more information from Ant. This isn't really a Maven issue, per se, so you'll need to consult the Ant docs. Wayne On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, Now, I used absolute path, but the result wasn't changed :( I just run mvn antrun:run [INFO] [antrun:run] [INFO] Executing task [INFO] Executed tasks a cup of Java, cheers! Sha Jiang Ryan Slobojan wrote: Hi Sha, It appears that the antrun task is executing, but I suspect it's not finding the directory correctly. From the block of code you pasted, it looks like you're using a relative path to select the folder for deletion - I'd recommend that you use something like ${project.build.directory}/checkout/whatever as opposed to just checkout/whatever. You may find that antrun isn't running in the folder that you think it is, so you have to specify an absolute path. In case you're wondering, ${project.build.directory} points at [project]\target. Thanks, Ryan Slobojan -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Sun 12/3/2006 8:33 PM To: users@maven.apache.org Subject: Re: delete a directory by maven-antrun-plugin? Dear Wayne, I followed your instructions, but didn't find any interesting things. It's some of output below [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for runtime) [DEBUG] ant:ant:jar:1.6.5:runtime (selected for runtime) [DEBUG] ant:ant-launcher:jar:1.6.5:runtime (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-- [DEBUG] (f) artifacts = [ant:ant:jar:1.6.5:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime] [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) tasks = [DEBUG] -- end configuration -- [INFO] [antrun:run] [INFO] Executing tasks [INFO] Executed tasks [INFO] [INFO] BUILD SUCCESSFUL a cup of Java, cheers! Sha Jiang Wayne Fay wrote: Add an -X ie mvn -X scm:checkout antrun:run to get more information while Maven is running. Wayne On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote: Hello Ryan, Really, I didn't create a right Ant statements. But my trouble isn't related to Ant scripts, but Maven work flow. The following is my main pom scripts, build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-scm-plugin/artifactId version1.0-beta-3/version configuration usernameusername/username passwordpassword/password checkoutDirectorycheckout/myproject/checkoutDirectory /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution idcompile/id phasegenerate-resources/phase configuration tasks delete dir=checkout\myproject\specific_directory includeemptydirs=true/ /tasks /configuration goals goalrun/goal /goals /execution /executions
Re: Error in running mvn
you have not set java_home or maven home On 12/6/06, Dheeraj Agrawal [EMAIL PROTECTED] wrote: Hi, I just downloaded the bin tar ball for maven. Extracted it and now trying to run it. But I am getting the following error. [EMAIL PROTECTED]:~/maven-2.0/bin$ ./mvn Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher I had installed this earlier also but never got such an error. Thanks dheeraj
Re: I need help with multi-module project site generation.
Wendy Smoak wrote: On 12/5/06, Christian Goetze [EMAIL PROTECTED] wrote: If I generate the default site according to the mergere book, I get essentially a useless cover page with a navigation menu that lists the modules, but without links I've seen that happen too. Most of my projects have a custom site.xml and aren't using ${modules} (?) though, so I've never tried to chase it down. Can you reproduce it with a simple parent-and-two-children multi-module project? In order to make it works you will nee to give a value to the url tag : urlhttp://yoururl/url in your pom parent. (I don't know why but you cannot use relative url) Yann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultArtifactRepository subversion location?
On 06/12/06, Ole Ersoy [EMAIL PROTECTED] wrote: Oooh - Very Cool - I'll definitely be putting find to good use in the future. Thanks, - Ole --- Max Cooper [EMAIL PROTECTED] wrote: [EMAIL PROTECTED]:~/svn/apache/maven$ find . -name DefaultArtifactRepository.java ./components/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepository.java -Max Ole Ersoy wrote: Hi, Does anyone have a link to the Subversion DefaultArtifactRepository.java? I looked all over in the various maven-artifact directories... If I could find it, I could probably figure this out. Here's what I'm trying to figure out just in case you have know. I created a testcase with a DefaultArtifactRepository instance, like this: artifactRepository = new DefaultArtifactRepository(/home/ole/.m2/,/home/ole/.m2/, null); Then I try to get it to tell me the path to an artifact like this: public void testTemp() { String artifactId = apacheds-server-main; String groupId = org.apache.directory.server; String version = 1.5.0-SNAPSHOT; ArtifactFactory artifactFactory = mojo.getArtifactFactory(); assertNotNull(artifactFactory); Artifact pom = artifactFactory.createArtifact(groupId, artifactId, version, null, pom); assertNotNull(pom); String string = artifactRepository.pathOf(pom); System.out.println(string); } However when I run this I get a NullPointerException like this: java.lang.NullPointerException at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf( DefaultArtifactRepository.java:107) Thanks, - Ole Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - 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] Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] locate DefaultArtifactRepository.java -- Regards, Petar! Karlovo, Bulgaria.
RE: Eclipse with Maven
Ok, I've discovered a way to create a webapp with Maven. The problem is that if I run Eclipse and choose to import an existing project into workspace everything goes fine, but when I want to run the whole thing on the server I receive The selection did not contain anything that can be run on a server. Plz help :-/. Björn De Bakker -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 5 december 2006 15:28 Aan: users@maven.apache.org Onderwerp: Eclipse with Maven I'm still experiencing some trouble with the mvn eclipse:eclipse command. I'm probably misusing this particular command, so maybe people can help me :). I've installed Eclipse Callisto, with the plugins for J2EE development. Now, what I do is the following. I create a project with mvn archetype:create in my Eclipse workspace. Normally, you run mvn eclipse:eclipse and everything is OK. The problem is that I want to create a Struts-application. So I create a new web application in Eclipse and give a name identical to the artifactId. I choose as source folder src/main/java and content directory equal to src/main/webapp. I don't know whether this is a good approach. The problem is that if I add dependencies to the pom-file, Eclipse recognizes those dependencies and adds them, but when I choose Run on server ... he doesn't publish the *.jar files in my lib-folder. Also, the component file generated doesn't contain the *.jar (I don't know if that's required). Can somebody please help me? :). Each time I try to run, I've got a 50% chance of receiving an error. Tia Björn De Bakker This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DefaultArtifactRepository subversion location?
http://www.google.com/codesearch?hl=enlr=q=DefaultArtifactRepository.javabtnG=Search On 12/6/06, Ole Ersoy [EMAIL PROTECTED] wrote: Hi, Does anyone have a link to the Subversion DefaultArtifactRepository.java? I looked all over in the various maven-artifact directories... If I could find it, I could probably figure this out. Here's what I'm trying to figure out just in case you have know. I created a testcase with a DefaultArtifactRepository instance, like this: artifactRepository = new DefaultArtifactRepository(/home/ole/.m2/,/home/ole/.m2/, null); Then I try to get it to tell me the path to an artifact like this: public void testTemp() { String artifactId = apacheds-server-main; String groupId = org.apache.directory.server; String version = 1.5.0-SNAPSHOT; ArtifactFactory artifactFactory = mojo.getArtifactFactory(); assertNotNull(artifactFactory); Artifact pom = artifactFactory.createArtifact(groupId, artifactId, version, null, pom); assertNotNull(pom); String string = artifactRepository.pathOf(pom); System.out.println(string); } However when I run this I get a NullPointerException like this: java.lang.NullPointerException at org.apache.maven.artifact.repository.DefaultArtifactRepository.pathOf(DefaultArtifactRepository.java:107) Thanks, - Ole Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - 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: JSR for SCM
Dan Tran wrote: Hello everyone, I do understand that maven has maven-scm-api. However, is there a JSR for this the effort of standardizing SCM works? Not that I know of and it might be useful to have a simple API to access SCMs from Java as there are a number of applications that's built on top of SCMs. Feel like taking this further? :) -- Trygve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]