Re: [m2] deploy via scp
On 8/9/05, andrew [EMAIL PROTECTED] wrote: I'm using the current svn build with the project pom additions suggested previously. ok, that's a bug. Would you mind filing it at http://jira.codehaus.org/browse/MNG so that we can keep track of it and keep in touch with you in case it can't be reproduced. wagon-ssh-external now uses my native scp and ssh-agent as expected, however it still requires a username tag in settings.xml: Sounds like a missing feature - and another one for JIRA :) Anyway, I can handle having a username in settings.xml and using scpexe:// for my deploy URLs. Great. Hopefully we can sort out the other issues too. Cheers, Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] deploy via scp
Brett Porter wrote: ok, that's a bug. Would you mind filing it at http://jira.codehaus.org/browse/MNG so that we can keep track of it and keep in touch with you in case it can't be reproduced. MNG-713 http://jira.codehaus.org/browse/MNG-713 Sounds like a missing feature - and another one for JIRA :) MNG-712 http://jira.codehaus.org/browse/MNG-712 Thanks, ...andrew -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site plugin template problem
It can also be this one : http://jira.codehaus.org/browse/MPXDOC-153 I'm not sure it's a duplicated issue. you can test the last snapshot with : maven plugin:download -DgroupId=maven -DartifactId=maven-xdoc-plugin -Dversion=SNAPSHOT -Dmaven.repo.remote=http://cvs.apache.org/repository tell us if it fixes your problem. Arnaud On 8/9/05, Brett Porter [EMAIL PROTECTED] wrote: erm, I meant not on Windows :) http://jira.codehaus.org/browse/MPXDOC-148 - Brett On 8/9/05, Vinod Panicker [EMAIL PROTECTED] wrote: On 8/8/05, Brett Porter [EMAIL PROTECTED] wrote: It's the xdoc plugin, and you're on Windows. This has been fixed in SVN and a release is pending. I'm on Linux. Let me know the bug id if I need to update it. Vinod. On 8/8/05, Vinod Panicker [EMAIL PROTECTED] wrote: Hi, Since I've upgraded to Maven 1.1 the site plugin has been having problems with displaying headings et al. Examples - ???template.maven_reports.section.title??? ???template.maven_reports.section.subsection.document??? ???template.maven_reports.section.subsection.description??? etc etc. Any clues on how to fix this? Maven is using site plugin version 1.6.1 Regards, Vinod. - 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] Maven PMD errors
Mine does... I guess it does require some tidying. :D Brett Porter wrote: Does the rpeort get generated correctly? I know we have some tidying up to do in the velocity portion of the site generation. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: Does anybody else know what I can do to get rid of these PMD errors? I am working with the nightly build of M2 from a few days ago and I'm getting a bunch of errors like this: [INFO] Generate PMD Report report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] [INFO] Generate Dependencies report. [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] It goes on for several more errors. My guess is that it's a config problem on my part, but I can't find any examples of setting up this plugin in the POM, so any example would be very welcome. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] NPE when executing surefire:test
On 08.08.2005, at 19:25, Kenney Westerhof wrote: You should call 'm2 test', not each individual plugin. Thanks, 'm2 test' works as expected. However, seems you discovered a bug! We'll look into it. Glad I could help :) Cheers, -Ralph. On Mon, 8 Aug 2005, [ISO-8859-1] Ralph Pöllath wrote: I always get a NPE when executing surefire:test. Here's what I'm doing (see below for details): $ m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create $ cd myApp $ m2 compiler:compile $ m2 compiler:testCompile $ m2 surefire:test [INFO] Diagnosis: Error configuring plugin for execution of 'surefire:test'. Caused by: java.lang.NullPointerException at org.apache.maven.project.MavenProject.getTestClasspathElements (MavenProject.java:360) Any help would be appreciated. Thanks, -Ralph. --- /tmp % m2 -DgroupId=myCompany -DartifactId=myApp -Dversion=0.1 archetype:create [INFO] - --- [INFO] Building Maven Default Project [INFO] - --- [INFO] maven-archetype-plugin: resolved to version 1.0-alpha-1 from local repository [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/ velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] maven-archetype-quickstart: resolved to version 1.0-alpha-2 from local repository [INFO] - --- [INFO] Using following parameters for creating Archetype: maven- archetype-quickstart:RELEASE [INFO] - --- [INFO] Parameter: groupId, Value: myCompany [INFO] Parameter: outputDirectory, Value: /private/tmp/myApp [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: version, Value: 0.1 [INFO] Parameter: artifactId, Value: myApp [INFO] ResourceManager : found archetype-resources/pom.xml with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/main/java/ App.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ResourceManager : found archetype-resources/src/test/java/ AppTest.java with loader org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] Archetype created in dir: /private/tmp/myApp [INFO] - --- [INFO] BUILD SUCCESSFUL [INFO] - --- [INFO] Total time: 3 seconds [INFO] Finished at: Mon Aug 08 19:13:09 CEST 2005 [INFO]
[m2] marmalade-parent pom 1.0-a3 malformed?
While trying to build the latest M2 trunk, which presumably now includes stricter pom.xml parsing (with much more readable errors - yay!), the marmalade parent pom dependency failed to parse. marmalade:marmalade-parent:1.0-alpha-3:pom It seems to need a rename from repository to scm to correctly wrap connection, developerConnection, etc. As a workaround, I just modified the cached marmalade-parent pom in ~/.m2/repository. Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] version string loses a zero during dependency resolution for pom
Using the latest M2 trunk. Suppose a JAR dependency has version0.09/version. When this dependency is being resolved, the POM that is used has a filename ending in 0.9.pom rather than 0.09.pom. It loses the first zero after the decimal point, leading to a dependency resolution failure. Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] marmalade-parent pom 1.0-a3 malformed?
really? it looks ok in the repository. Can you try removing it locally and letting it get downloaded again? Thanks, Brett On 8/9/05, John Fallows [EMAIL PROTECTED] wrote: While trying to build the latest M2 trunk, which presumably now includes stricter pom.xml parsing (with much more readable errors - yay!), the marmalade parent pom dependency failed to parse. marmalade:marmalade-parent:1.0-alpha-3:pom It seems to need a rename from repository to scm to correctly wrap connection, developerConnection, etc. As a workaround, I just modified the cached marmalade-parent pom in ~/.m2/repository. Kind Regards, John Fallows. - 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] Maven PMD errors
OK, yes it does get generated for me too. I guess I shouldn't believe every error I read :) I read the config docs for the maven-1 plugin, which gives extensive config options, which is why I was asking for an example for M2 showing how to configure it in the POM. I presume there must be an example somewhere from the person who developed it, but I couldn't find it. Adam Brett Porter on 09/08/05 00:07, wrote: Does the rpeort get generated correctly? I know we have some tidying up to do in the velocity portion of the site generation. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: Does anybody else know what I can do to get rid of these PMD errors? I am working with the nightly build of M2 from a few days ago and I'm getting a bunch of errors like this: [INFO] Generate PMD Report report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] [INFO] Generate Dependencies report. [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] It goes on for several more errors. My guess is that it's a config problem on my part, but I can't find any examples of setting up this plugin in the POM, so any example would be very welcome. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] version string loses a zero during dependency resolution for pom
Fixed in SVN (if a version part has a leading 0, version comparison falls back to a basic string comparison). - Brett On 8/9/05, John Fallows [EMAIL PROTECTED] wrote: Using the latest M2 trunk. Suppose a JAR dependency has version0.09/version. When this dependency is being resolved, the POM that is used has a filename ending in 0.9.pom rather than 0.09.pom. It loses the first zero after the decimal point, leading to a dependency resolution failure. Kind Regards, John Fallows. - 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: Site plugin template problem
On 8/9/05, Arnaud HERITIER [EMAIL PROTECTED] wrote: It can also be this one : http://jira.codehaus.org/browse/MPXDOC-153 I'm not sure it's a duplicated issue. you can test the last snapshot with : maven plugin:download -DgroupId=maven -DartifactId=maven-xdoc-plugin -Dversion=SNAPSHOT -Dmaven.repo.remote=http://cvs.apache.org/repository tell us if it fixes your problem. The latest snapshot fixes the problem. Thanks. Regards, Vinod. On 8/9/05, Brett Porter [EMAIL PROTECTED] wrote: erm, I meant not on Windows :) http://jira.codehaus.org/browse/MPXDOC-148 - Brett On 8/9/05, Vinod Panicker [EMAIL PROTECTED] wrote: On 8/8/05, Brett Porter [EMAIL PROTECTED] wrote: It's the xdoc plugin, and you're on Windows. This has been fixed in SVN and a release is pending. I'm on Linux. Let me know the bug id if I need to update it. Vinod. On 8/8/05, Vinod Panicker [EMAIL PROTECTED] wrote: Hi, Since I've upgraded to Maven 1.1 the site plugin has been having problems with displaying headings et al. Examples - ???template.maven_reports.section.title??? ???template.maven_reports.section.subsection.document??? ???template.maven_reports.section.subsection.description??? etc etc. Any clues on how to fix this? Maven is using site plugin version 1.6.1 Regards, Vinod. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Maven PMD errors
I developed it, and many of the configuration options are not yet implemented. You're welcome to submit a patch! :) If you'd like to check the Maven Plugin Matrix (just google that string with I'm felling lucky) you can see the progress of a) creation, b) getting up to par with m1 and c) documenting the plugins. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: OK, yes it does get generated for me too. I guess I shouldn't believe every error I read :) I read the config docs for the maven-1 plugin, which gives extensive config options, which is why I was asking for an example for M2 showing how to configure it in the POM. I presume there must be an example somewhere from the person who developed it, but I couldn't find it. Adam Brett Porter on 09/08/05 00:07, wrote: Does the rpeort get generated correctly? I know we have some tidying up to do in the velocity portion of the site generation. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: Does anybody else know what I can do to get rid of these PMD errors? I am working with the nightly build of M2 from a few days ago and I'm getting a bunch of errors like this: [INFO] Generate PMD Report report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] [INFO] Generate Dependencies report. [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] It goes on for several more errors. My guess is that it's a config problem on my part, but I can't find any examples of setting up this plugin in the POM, so any example would be very welcome. Thanks Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] alpha3 - xdoclet, compile, ear and install
Kenney Westerhof on 09/08/05 06:51, wrote: On Thu, 28 Jul 2005, Adam Hardy wrote: (1) I can't get the maven-xdoclet-plugin to install using the docs on http://www.neonics.com/projects/maven-xdoclet-plugin/ When I try to install it, I use this cmd: [EMAIL PROTECTED]:~/java/projects/garg-ejb$ m2 install:install-file -DartifactId=plexus-override-component-configurator -DgroupId=plexus -Dversion=1.0-SNAPSHOT -Dfile=plexus-override-component-configurator-1.0-SNAPSHOT.jar -Dpackaging=jar and get an error saying that the plugin is not found in my project directory, which is obviously my cmd line being wrong. What would be the correct cmd line to install it? That's weird. I can partly reproduce: [snip] and that's because the file is not in the current directory. Did you download it? Doh! I didn't realise I had to download the file and run the command from the dir where i downloaded it. Sorry. I had moronically assumed it would go and get the file from the repo. (2) Even if I could get the xdoclet to run in m2, I can't figure out how to include a second source directory (containing the xdoclet generated classes). Is it just a comma-delimited list in the sourceDirectory attribute of the pom? Brett answered this. I can add the following: Yes, I figured that out. Thanks. Sorry for the late reply, and thanks for trying it out! No problem. Thank you for putting it together. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven properties inside java code
Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined in my project.properties. for example, i have to load a connection to a database (in my dbunit test), and i would like to pick databasename,user,password etc from project.properties. i have defined thos eproperties in project.properties, and in my dbunit file i am calling System.getProperty(db.user) for example but i get back null can anyone help me ou t? thanx in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] alpha3 - xdoclet, compile, ear and install
Brett Porter on 09/08/05 02:11, wrote: (3) m2 can't find the maven-ear-plugin. According to the msg here http://marc.theaimsgroup.com/?l=turbine-maven-userm=111962447408741w=2 it looks like I have to copy it from maven2/org/apache/maven/plugins to my local repository and change its directory structure. Is there a command line to get m2 to download it, so I then only have to change the dir? No, not until it is released and deployed. I manually downloaded it and set it up where my POM said it should be, and got it to work after some confusion between /org/apache/maven/plugins and /plugins/org/apache/maven, where my config errors were causing m2 to try to download it from non-existent repository dirs even though I had it in my local repo somewhere wrong. :O I certainly learnt about the repo quite quickly. Thanks for the help. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
scm taggins!!!
Hello All, can anyone tell me when iam trying to execute the CVS chjeckout from remote reposiroty...foll error is coming... In build.properties: maven.scm.url= scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:2401/cvsnt/source:dir1 D:\Maven 1.0.2\binmaven scm:checkout __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: scm:find-connection: [echo] Using connection: scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:240 1/cvsnt/source:dir1 scm:checkout: [echo] Checking out scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:2401/cvs nt/source:dir1 BUILD FAILED File.. C:\Documents and Settings\mnirmala\.maven\cache\maven-scm-plugin-1.5\ plugin.jelly Element... scm:checkout Line.. 110 Column 233 The scm url is invalid. Total time: 4 seconds Finished at: Tue Aug 09 14:41:10 GMT+05:30 2005 Thanks, Nirmala Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven properties inside java code / solved
hello, sorry i solve dit by defining # Maven JUnit SysProperties... maven.junit.sysproperties=db.url db.user db.password db.driver db.seedfile db.url=jdbc:mysql://localhost:3306/test db.user=root db.password=mypass db.driver=com.mysql.jdbc.Driver db.seedfile=/budget-seed.xml thanx anyway and regards marco On 8/9/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined in my project.properties. for example, i have to load a connection to a database (in my dbunit test), and i would like to pick databasename,user,password etc from project.properties. i have defined thos eproperties in project.properties, and in my dbunit file i am calling System.getProperty(db.user) for example but i get back null can anyone help me ou t? thanx in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Maven PMD errors
If I can, I will, but I have to say I always admire you committers for finding the time to do this stuff, shaming my good intentions! I found and bookmarked the Plugin Matrix. Thanks Adam Brett Porter on 09/08/05 10:20, wrote: I developed it, and many of the configuration options are not yet implemented. You're welcome to submit a patch! :) If you'd like to check the Maven Plugin Matrix (just google that string with I'm felling lucky) you can see the progress of a) creation, b) getting up to par with m1 and c) documenting the plugins. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: OK, yes it does get generated for me too. I guess I shouldn't believe every error I read :) I read the config docs for the maven-1 plugin, which gives extensive config options, which is why I was asking for an example for M2 showing how to configure it in the POM. I presume there must be an example somewhere from the person who developed it, but I couldn't find it. Adam Brett Porter on 09/08/05 00:07, wrote: Does the rpeort get generated correctly? I know we have some tidying up to do in the velocity portion of the site generation. - Brett On 8/9/05, Adam Hardy [EMAIL PROTECTED] wrote: Does anybody else know what I can do to get rid of these PMD errors? I am working with the nightly build of M2 from a few days ago and I'm getting a bunch of errors like this: [INFO] Generate PMD Report report. [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0 [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] [INFO] Generate Dependencies report. [ERROR] RHS of #set statement is null. Context will not be modified. org/apache/maven/doxia/maven-site.vm [line 1, column 1] It goes on for several more errors. My guess is that it's a config problem on my part, but I can't find any examples of setting up this plugin in the POM, so any example would be very welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] Advice on creating a plugin to compile and deploy dotnet pro jects
Trygve, Many thanks for the detailed response. It's been very helpful. I've been going through the m2 plugins in svn but armed with your advice I think I can progress now. Brett, if you could point me to the partially done/defunct dotnet plugin when you've checked it in I'll try and steal as much from this as possible. Thanks for the advice. I'll keep the list updated with my progress and submit the plugin when it gets to a decent standard. Cheers, Chris -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: 08 August 2005 17:43 To: Maven Users List Subject: Re: [m2] Advice on creating a plugin to compile and deploy dotnet pro jects On Mon, Aug 08, 2005 at 05:05:49PM +0100, Stevenson, Chris wrote: Hello All, I'm looking for a bit of advice from any of the plugin developers out there. I'm currently in the process of reviewing m2 before my team upgrade from Maven 1.0. As part of this we need to build a Maven2 plugin to compile dotnet dll's and install them into the repository. We previously achieved this through several generous helpings of jelly but I'd like to move it over to the new m2 Mojo architecture. However, I'm a little confused at where to start. What I want to achieve: - Write a Mojo to wrap the CSC/Mono exe which compiles all the source in the src/main/dotnet directory to the a dll with the finalName property in Maven2 There I think that you should be able to reuse the existing compiler and test compiler mojo and just write a new implementation of the Plexus Compiler interface. The Plexus Compiler interface can be checked out from [1] using Subversion. As I'm pretty .NET cluefree, will the CSC/Mono compiler compile all types of .NET source code? Or only a specific subset? Can new languanges be supported using plugin to the compiler? - Write a Mojo to wrap the CSC/Mono exe which compiles all the test resources in the test dir Compiles the test resources? - Write a Mojo to wrap the Nunit exe which will run all of the Nunit tests and which depends on the compile step to have occurred - Hook these into the build schedule at the right points. Here you want to implement your own dotnet or dotnet-assembly lifecycle. This lifecycle will be selected by setting packagingdotnet/packaging. The a lifecycle will set default values for what plugins to run when. If you in [2] look for the LifecycleMapping you can see the different lifecycles already implemented. - Use the existing M2 infrastructure to deploy it out to repository and get in back as req.. What I need to do seems to be: - Create the pom.xml detailing that the plugin will be this will probably contain only the references to the standards: dependency groupIdorg.apache.maven/groupId artifactIdmaven-project/artifactId version2.0-beta-1-SNAPSHOT/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact/artifactId version2.0-beta-1-SNAPSHOT/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-artifact-manager/artifactId version2.0-beta-1-SNAPSHOT/version /dependency - Specificfy in the javadoc annotations where I'd like the 2 plugins to occur in the build cycle: ie: CSC/Mono compile would be either compile or package I guess. the CSC/Mono Test compile would occur in test and the Nunit wrapper would also occur in test after the compile. - In the projects that will use the plugin set the output type/packaging as dll? John Casey suggested dotnet-assembly as the packaging type, dll is only the file format. What you also need to implement is the ArtifactHandler[3] interface and declare that like in [4]. My questions are really: - How can I inject the project information into the plugin, I can see that it is through the annotations in the existing plugins but is that all I need to do? Yeah, that's all you need to do. As you're going to make stuff that's pretty similar to what we already have for Java stuff I suggest that you take a look at the existing plugins and how they're written. - Is there anything else I need to specify other than annotation to get the plugin to run at the correct point in build process? - When I've set the type in the pom of the dotnet projects that will use the plugin to dll and my new plugin has built the dll's will m2 pick them up and run with them and stick them in the repo without any more configuration? In you .net projects you'll need to set packagingdotnet-assembly/packaging and Maven will pick your new dotnet lifecycle. When installing the artifact the install plugin will look at the packaging of the project and use the correct artifact handler to install it. You will also need to include a reference to the maven-dotnet-assembly-plugin (which is the one you're writing) in your projects and set extensionstrue/extensions so that Maven
[m2] goals for plugins
Hi, Is there a way to find out about valid goals of a plugin/all plugins available? I am looking for the one that creates reports of dependent projects. And I am curious what else I could do with the available plugins for m2. Thanks, Friedger
RE: [m2] goals for plugins
It may 'M2 -g' Sasi -Original Message- From: Mueffke, Friedger [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:46 PM To: users@maven.apache.org Subject: [m2] goals for plugins Hi, Is there a way to find out about valid goals of a plugin/all plugins available? I am looking for the one that creates reports of dependent projects. And I am curious what else I could do with the available plugins for m2. Thanks, Friedger Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scm taggins!!!
sspi protocol isn't supported by maven. Emmanuel NIRMALA Manivasagam wrote: Hello All, can anyone tell me when iam trying to execute the CVS chjeckout from remote reposiroty...foll error is coming... In build.properties: maven.scm.url= scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:2401/cvsnt/source:dir1 D:\Maven 1.0.2\binmaven scm:checkout __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: scm:find-connection: [echo] Using connection: scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:240 1/cvsnt/source:dir1 scm:checkout: [echo] Checking out scm:cvs:sspi:snatarajan2:[EMAIL PROTECTED]:2401/cvs nt/source:dir1 BUILD FAILED File.. C:\Documents and Settings\mnirmala\.maven\cache\maven-scm-plugin-1.5\ plugin.jelly Element... scm:checkout Line.. 110 Column 233 The scm url is invalid. Total time: 4 seconds Finished at: Tue Aug 09 14:41:10 GMT+05:30 2005 Thanks, Nirmala Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - 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] goals for plugins
m2 -g site throws an ReactorException caused by LifecycleExecutionException: Invalid task 'site' Friedger -Original Message- From: NATARAJAN Sasi Kumar [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 12:21 PM To: Maven Users List Subject: RE: [m2] goals for plugins It may 'M2 -g' Sasi -Original Message- From: Mueffke, Friedger [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:46 PM To: users@maven.apache.org Subject: [m2] goals for plugins Hi, Is there a way to find out about valid goals of a plugin/all plugins available? I am looking for the one that creates reports of dependent projects. And I am curious what else I could do with the available plugins for m2. Thanks, Friedger Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - 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] Advice on creating a plugin to compile and deploy dotnet pro jects
On Tue, Aug 09, 2005 at 11:12:31AM +0100, Stevenson, Chris wrote: Trygve, Many thanks for the detailed response. It's been very helpful. I've been going through the m2 plugins in svn but armed with your advice I think I can progress now. Brett, if you could point me to the partially done/defunct dotnet plugin when you've checked it in I'll try and steal as much from this as possible. Thanks for the advice. Seems that he didn't get around to checking it in, I'll make sure he does it when he get up. I'll keep the list updated with my progress and submit the plugin when it gets to a decent standard. Thanks! A .NET plugin is going to be very useful. -- Trygve signature.asc Description: Digital signature
substitution of properties in normal files during build
hello all, i am building an application using Maven. I have defined some custom properties in project.properties, and i can successfully retrieve them inside my java code using System.getPRoperteis. I was wondering however if maven can substitute properties defined inside project.properties also in normal configuration files. example: i have a config file called openejb.config in which i have to define a datasource wiht url, username and password i need same informations also for my dbunit tests, so i have defined those 3passwords inside my project properteis. in my java code i use System.getPRoperty(username) to get value from properties, but in my config file i have tried to do ${username} hoping that during compiation/build maven would have substituted it with the value of the property username defined in project.properties But it didn't work... Is it possible to do that? if so, how? thanks in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: substitution of properties in normal files during build
Hello Marco For such a need, use the jelly variable. What you would do typically is initiate your variable using the property value, then you can modify its value. That would do the trick in runtime but if you need to actually write this value in a property, check the Ant property tag, that should allow you to write the value in your property file. Hope it helps Eric. Marco Mistroni wrote: hello all, i am building an application using Maven. I have defined some custom properties in project.properties, and i can successfully retrieve them inside my java code using System.getPRoperteis. I was wondering however if maven can substitute properties defined inside project.properties also in normal configuration files. example: i have a config file called openejb.config in which i have to define a datasource wiht url, username and password i need same informations also for my dbunit tests, so i have defined those 3passwords inside my project properteis. in my java code i use System.getPRoperty(username) to get value from properties, but in my config file i have tried to do ${username} hoping that during compiation/build maven would have substituted it with the value of the property username defined in project.properties But it didn't work... Is it possible to do that? if so, how? thanks in advance and regards marco - 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: Beautified source-code?
Joao Victor wrote: Is there any way to make Maven show source between source tags already beautified (ie., with syntax colors)? Cheers, J.V. It's not what you are asking for, but FWIW, the JXR plugin produced syntax colored code. here's example output, a class within the JXR project: http://maven.apache.org/reference/plugins/jxr/xref/org/apache/maven/jxr/CodeTransform.html Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: substitution of properties in normal files during build
Hello again I don,t think that you will be able to use the variable directly in the property file thought. Only jelly scripts can have variables replaced by their runtime value. Like the Ant properties, they get assigned only in Ant scripts executed by Ant. Jelly variable are a little like the Ant properties, except that the jelly vars. can have their value change over time. Unlike properties (in Ant), these can have a value set but its immutable after setting it. Jelly can be a little, well, complicated, especially if you embedded Java code in expression. I've not figured out yet exactly all the rules in jelly expressions, the jelly expression parser is a nasty beast... But you can get around pretty easily. Maybe I've misguided you. If you need the value of that variable inside a property file, you have to actually write this value in the property file using Ant/Jelly code. Otherwise, if you put the variable name in there (in the property file), the variable name will be the value of the property. NP! Hope it does help you do what you need. Eric. Marco Mistroni wrote: hello eric, thanx for the tip.. beside, i have to learn jelly, but is it reasonablet to use a jelly variable my property s hould be in both java code and a config file? thanx and regards marco On 8/9/05, Eric Giguère [EMAIL PROTECTED] wrote: Hello Marco For such a need, use the jelly variable. What you would do typically is initiate your variable using the property value, then you can modify its value. That would do the trick in runtime but if you need to actually write this value in a property, check the Ant property tag, that should allow you to write the value in your property file. Hope it helps Eric. Marco Mistroni wrote: hello all, i am building an application using Maven. I have defined some custom properties in project.properties, and i can successfully retrieve them inside my java code using System.getPRoperteis. I was wondering however if maven can substitute properties defined inside project.properties also in normal configuration files. example: i have a config file called openejb.config in which i have to define a datasource wiht url, username and password i need same informations also for my dbunit tests, so i have defined those 3passwords inside my project properteis. in my java code i use System.getPRoperty(username) to get value from properties, but in my config file i have tried to do ${username} hoping that during compiation/build maven would have substituted it with the value of the property username defined in project.properties But it didn't work... Is it possible to do that? if so, how? thanks in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven properties inside java code
Marco, You have to pass the location of poroject.properties to the JVM by adding - Dproperties.path=/yourpath/to/project.properties. Then you use the Java properties api to load this properties file and read your key. Rgds, Thomas On 8/9/05, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined in my project.properties. for example, i have to load a connection to a database (in my dbunit test), and i would like to pick databasename,user,password etc from project.properties. i have defined thos eproperties in project.properties, and in my dbunit file i am calling System.getProperty(db.user) for example but i get back null can anyone help me ou t? thanx in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven War deploy
Hello, I wanted to deploy a war with the goal war:deploy and I've this error : Fichier... d:\Outil\Maven_1.1-beta-1\cache\maven-artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Ligne. 90 Colonne... 9 org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V What does it mean? I don't understand and i'm a newbie! Thanks Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven War deploy
Hi Aurélie, It's a known bug. You can solve it with the last release of the artifact plugin : maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.6 Arnaud On 8/9/05, Faucher Aurélie [EMAIL PROTECTED] wrote: Hello, I wanted to deploy a war with the goal war:deploy and I've this error : Fichier... d:\Outil\Maven_1.1-beta-1\cache\maven- artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Ligne. 90 Colonne... 9 org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V What does it mean? I don't understand and i'm a newbie! Thanks Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven War deploy
Thank you, I'll try Aurélie -Message d'origine- De : Arnaud HERITIER [mailto:[EMAIL PROTECTED] Envoyé : mardi 9 août 2005 16:51 À : Maven Users List Objet : Re: Maven War deploy Hi Aurélie, It's a known bug. You can solve it with the last release of the artifact plugin : maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.6 Arnaud On 8/9/05, Faucher Aurélie [EMAIL PROTECTED] wrote: Hello, I wanted to deploy a war with the goal war:deploy and I've this error : Fichier... d:\Outil\Maven_1.1-beta-1\cache\maven- artifact-plugin-1.5.2\plugin.jelly Element... artifact:artifact-deploy Ligne. 90 Colonne... 9 org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V What does it mean? I don't understand and i'm a newbie! Thanks Aurélie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven properties inside java code
You need to set the maven.junit.sysproperties to a space-delimited list of the properties you need your tests to know about. See http://maven.apache.org/reference/plugins/test/properties.html for a description of this property with an example. -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:32 AM To: users@maven.apache.org Subject: Maven properties inside java code Hello all, i am using Maven to build my project, but i am stuck with a problem. In running my tests, i would like to reuse inside my tests some properties defined in my project.properties. for example, i have to load a connection to a database (in my dbunit test), and i would like to pick databasename,user,password etc from project.properties. i have defined thos eproperties in project.properties, and in my dbunit file i am calling System.getProperty(db.user) for example but i get back null can anyone help me ou t? thanx in advance and regards marco - 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]
Mavenide Eclipse Project Template. Where are them??
Good morning, Somebody can tell me where can I found templates for the mavenide create maven projects? Actually the combo is empty in eclipse. Any ideas? Thanks in advance. -- Marcelo Alcantara Senior Developer/Architect [EMAIL PROTECTED] +55 11 81968823 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Lustbuild fails to run site goal
Hi, I am trying to use Luntbuild over maven. When I trigger a build manually the site goal fails when executing the maven-xdoc-plugin-1.9.1. If I run the site goal from the command line (not using Luntbuild) the build is succefull. Any Ideas? Here is the build_log.txt tail: xdoc:jelly-transform: About to use JSL stylesheet file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl [echo] en [echo] The current Locale is the default one [echo] Scanning 'D:\luntbuild\work\ITG Deployment Mngmnt\sourceCode\java\target\generated-xdocs'... [echo] Generating D:/luntbuild/work/ITG Deployment Mngmnt/sourceCode/java/target/docs/cvs-usage.html from D:\luntbuild\work\ITG Deployment Mngmnt\sourceCode\java\target\generated-xdocs\cvs-usage.xml BUILD FAILED File.. C:\Documents and Settings\rhirshfeld\.maven\cache\maven-xdoc-plugin-1.9.1\plugin.jelly Element... j:include Line.. 479 Column -1 file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:33:-1: jsl:stylesheet file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:146:-1: jsl:applyTemplates file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:230:-1: maven:property You must define an attribute called 'defaultValue' for this tag. Total time : 29 seconds Finished at : Tuesday, August 9, 2005 5:24:30 PM IDT Maven builder failed: build success condition not met! Thanks, Yaron __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
RE: Multiproject site navigation question
Our approach is to have a dedicated documentation sub-project, with just xdocs. The multiproject parent project has little if anything in it, so the default navigation is fine. One of the links then leads to Documentation. That project then has a customized navigation.xml linking together all the root-level documentation for the multiproject. You mention that you need to have the documentation as part of the root web site. Would having it one link down but clearly labeled at the top of the sub-project list satisfy the need? Jay -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Monday, August 08, 2005 8:54 PM To: Maven Users List Subject: Re: Multiproject site navigation question Wendy Smoak wrote: From: dan tran [EMAIL PROTECTED] Wendy, from maven-site-plugin doco, you dont create nagivation.xml at the root. Let the multiproejct:site generate it for you. I have a bunch of user-supplied documentation that I need to link in, and I need it to be part of the root website. AFAICT, to do that I need to make a navigation.xml file. True? Thanks, FWIW, I struggled with this on a couple of projects and ended up finding it easier and more flexible to just maintain navigation.xml at each level. One thing that can make it slightly easier to manage the common elements (assuming you have these) is to use XML entities. Have a look at the commons-build project http://svn.apache.org/repos/asf/jakarta/commons/proper/commons-build/ that defines a setup shared by Jakarta Commons components. The navigation.xml file there and in all of the commons subprojects refer to an external dtd that defines xml entities corresponding to the shared menu items. This is a little convoluted - maybe not maven best practice - but works and is not that hard to maintain once you have it set up. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven surefire plugin
On 04.07.2005, at 04:29, Nadeem Bitar wrote: Where can I find documentation for the maven-surefire-plugin. I am looking on using testng instead of junit to run my tests. TestNG 2.5 has been released and comes with a maven plugin: http://testng.org/doc/maven.html Cheers, -Ralph. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parent Projects
Is there a best practices for using the extend tag in the POM? My structure is something like: holder-dir Project1 project.xml Project2 project.xml Project3 project.xml Some things are common between the projects (by convention, not by using the extend). I would like to take advantage of the multiproject plugin for site generation, etc. Have seen suggested something like: holder-dir project.xml -- Multiproject POM maven-common project.xml -- Common properties Project1 project.xml Project2 project.xml Project3 project.xml Each of the Project POMs would extend the POM in maven-common. Any thoughts/suggestions? What successes or failures have people had going this route? Thanks, Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parent Projects
I like adding a pom to my Maven installation directory, share it in SCM and then all projects can extend from the pom added to Maven by referering to it as extend${maven.home}/project.xml/extend I like to refer to this pom added to Maven as the program-level pom. Each project extends the program-level pom with an application-level pom. The application-level pom is then extended by module poms. Rgds, Thomas On 8/9/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Is there a best practices for using the extend tag in the POM? My structure is something like: holder-dir Project1 project.xml Project2 project.xml Project3 project.xml Some things are common between the projects (by convention, not by using the extend). I would like to take advantage of the multiproject plugin for site generation, etc. Have seen suggested something like: holder-dir project.xml -- Multiproject POM maven-common project.xml -- Common properties Project1 project.xml Project2 project.xml Project3 project.xml Each of the Project POMs would extend the POM in maven-common. Any thoughts/suggestions? What successes or failures have people had going this route? Thanks, Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parent Projects
On 8/9/05, Thomas Van de Velde [EMAIL PROTECTED] wrote: I like adding a pom to my Maven installation directory, share it in SCM and then all projects can extend from the pom added to Maven by referering to it as extend${maven.home}/project.xml/extend I like to refer to this pom added to Maven as the program-level pom. Each project extends the program-level pom with an application-level pom. The application-level pom is then extended by module poms. Rgds, Thomas On 8/9/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Is there a best practices for using the extend tag in the POM? My structure is something like: holder-dir Project1 project.xml Project2 project.xml Project3 project.xml Some things are common between the projects (by convention, not by using the extend). I would like to take advantage of the multiproject plugin for site generation, etc. Have seen suggested something like: holder-dir project.xml -- Multiproject POM maven-common project.xml -- Common properties Project1 project.xml Project2 project.xml Project3 project.xml Each of the Project POMs would extend the POM in maven-common. Any thoughts/suggestions? What successes or failures have people had going this route? Thanks, Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] If you are using Eclipse, you can/should skip the holder-dir/project.xml; just have everything extend from maven-common/project.xml -- Jamie Bisotti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
No such provider: 'svn+ssh'
Hi, i am trying to get started with maven 1.0.2 and svn over ssh but I am always stuck with: maven scm:bootstrap -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk ... BUILD FAILED File.. /home/bernd/.maven/cache/maven-scm-plugin-1.5-rc1/plugin.jelly Element... scm:checkout Line.. 110 Column 233 No such provider: 'svn+ssh'. What goes wrong? (subversion on its own is ok) where can I get more information? What information do you need? Bernd Here are more details: - maven 1.0.2 freshly installed (on debian sarge) - got scm 1.5.1rc1: --- [EMAIL PROTECTED]:~$ maven plugin:download -DgroupId=maven -DartifactId=maven-scm-plugin -Dversion=1.5-rc1 -Dmaven.repo. remote=http://cvs.apache.org/repository,http://www.ibiblio.org/maven,http://maven-plugins.sf.net/maven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Plugin cache will be regenerated Directory /home/bernd/.maven/repository does not exist. Attempting to create. Attempting to download commons-io-20030203.000550.jar. 59K downloaded Attempting to download commons-net-1.1.0.jar. 139K downloaded Attempting to download commons-httpclient-2.0.jar. 217K downloaded Attempting to download commons-lang-2.0.jar. 165K downloaded Attempting to download commons-logging-1.0.3.jar. 30K downloaded Attempting to download jsch-0.1.5.jar. 79K downloaded Attempting to download commons-jelly-20030902.160215.jar. 150K downloaded Attempting to download commons-jelly-tags-velocity-20030303.205659.jar. 7K downloaded Attempting to download velocity-1.4-dev.jar. 351K downloaded Attempting to download commons-jelly-tags-xml-20030211.142705.jar. 31K downloaded Attempting to download commons-jelly-tags-interaction-20030211.143817.jar. 4K downloaded build:start: plugin:download-artifact: [mkdir] Created dir: /home/bernd/.maven/repository/maven/plugins [echo] repo is 'http://cvs.apache.org/repository' [echo] trying to download http://cvs.apache.org/repository/maven/plugins/maven-scm-plugin-1.5-rc1.jar 18K downloaded plugin:download: [delete] Deleting 1 files from /home/bernd/maven-1.0.2/plugins [delete] /home/bernd/.maven/plugins not found. [delete] Deleting 8 files from /home/bernd/.maven/cache [delete] Deleted 3 directories from /home/bernd/.maven/cache [copy] Copying 1 file to /home/bernd/maven-1.0.2/plugins BUILD SUCCESSFUL --- - tried to bootstrap project: --- [EMAIL PROTECTED]:~$ maven scm:bootstrap -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://maven-plugins.sf.net/ma ven -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 plugin maven-scm-plugin-1.4.1 is cached (dynatag dep) but no longer present Cache invalidated due to out of date plugins Attempting to download dom4j-1.4-dev-8.jar. 475K downloaded Attempting to download xml-apis-1.0.b2.jar. 106K downloaded Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. 14K downloaded Attempting to download commons-jelly-tags-log-20030211.142821.jar. 8K downloaded Attempting to download commons-jelly-tags-xml-20040613.030723.jar. 33K downloaded Attempting to download velocity-dvsl-0.45.jar. 25K downloaded Attempting to download isorelax-20030108.jar. 188K downloaded Attempting to download jing-20030619.jar. 475K downloaded Attempting to download xerces-2.4.0.jar. 874K downloaded Attempting to download jaxen-1.0-FCS-full.jar. 187K downloaded Attempting to download saxpath-1.0-FCS.jar. 23K downloaded Attempting to download commons-jelly-tags-interaction-1.0.jar. 7K downloaded Attempting to download plexus-container-default-1.0-alpha-3.jar. 279K downloaded Attempting to download plexus-utils-1.0-alpha-3.jar. 152K downloaded Attempting to download classworlds-1.1-alpha-1.jar. 36K downloaded Attempting to download maven-scm-api-1.0-alpha-1.jar. 48K downloaded Attempting to download maven-scm-provider-cvs-1.0-alpha-1.jar. 33K downloaded Attempting to download maven-scm-provider-svn-1.0-alpha-1.jar. 35K downloaded build:start: scm:find-connection: [echo] Using connection: scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk scm:checkout: [echo] Checking out scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk BUILD FAILED File.. /home/bernd/.maven/cache/maven-scm-plugin-1.5-rc1/plugin.jelly Element... scm:checkout Line.. 110 Column 233 No such provider: 'svn+ssh'.
Fwd: maven.jar.final.name usage - plugin 1.7
Posting again!! Sanjay -- Forwarded message -- From: Sanjay Choudhary [EMAIL PROTECTED] Date: Aug 8, 2005 3:15 PM Subject: maven.jar.final.name http://maven.jar.final.name usage - plugin 1.7 To: Maven Users List users@maven.apache.org I wish to use maven.jar.final.name http://maven.jar.final.name/ property. I want my jar file name to be different.(basiclly, don't want any version appended to it, I know it is not in alignment with maven best practice but life is not always straight). If I use maven jar:install -Dmaven.jar.final.name=foo.jar 1. It creates foo.jar in target directory. 2. It copies foo.jar to foo-1.1.jar in maven local repository. ?? what is the use of maven.jar.final.name http://maven.jar.final.name/? Let us assumt, I have another java project fred that is dependent on project foo. fred and foo - both extend from same project.xml and share the same pom-version. In fred project, project.xml is as below dependency artifactIdfoo/artifactId groupId${pom.groupId}/groupId properties jar.manifest.classpathtrue/jar.manifest.classpath /properties version${pom.currentVersion}/version /dependency Is it possible to define dependecy of fred on foo in project.xml without the version # ? so that when I use multiproject:goal -Djar:install it will first build foo and then fred. Please advice. Thanks, sanjay
maven2 duplicate class error
Hi, I found this issue mentioned earlier on the archive. I am having problems compiling my project. Maven2 gives me a duplicate class error as follows no more tokens - could not parse error message: C:\Documents and Settings\rizwan .ALPHAGLOBE\UHM\source\com\alpha\patient\patientencounter\client\dbgui\Patie ntRe ferralPanel.java:55: duplicate class: com.alpha.patient.client.dbgui.PatientRefe rralPanel public class PatientReferralPanel extends JPanel { I looked for all instances of PatientReferralPanel.class on my computer and deleted them all. that didnt help. The archived message shown below indicates that this was classified as a bug at some point. Please could you tell me if there is an update on this issue? Am I having this problem because of the bug or am I doing something wrong? Thanks, -Riz. --- This seems to be a bug... can you please file it in JIRA? Thanks, Brett On 4/20/05, Ilyevsky, Leonid (Equity Trading) [EMAIL PROTECTED] wrote: When I check out the file for editing, CVS puts a copy of it in CVS/Base. Then maven complains about duplicate class. Is there a way to tell maven to ignore those extra files? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Test Plug-in 1.7 release
The maven team is pleased to announce the Maven Test Plug-in 1.7 release! http://maven.apache.org/reference/plugins/test/ Run JUnit tests. Changes in this version include: New Features: o Added maven.junit.forkmode property o Added testnotmatchpattern that can be used in test:match Fixed bugs: o Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match Issue: MPTEST-48. Changes: o Allow multiple patterns in testmatchpattern and testnotmatchpattern o Deprecate dependency handle To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-test-plugin -Dversion=1.7 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-test-plugin-1.7.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Test Plug-in 1.7 release
Carlos, is there any plan to allow different test frameworks? I have several projects which use Junit and several which use TestNG. I want 'maven jar' to run the unit tests no matter which framework is in use, but this only works with junit obviously. I have to explicitly call maven testng to make it work. Can maven support this out of the box today or is this something that the test plugin needs to add support for? mike -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:49 PM To: Maven Developers List; Maven Users List Subject: Maven Test Plug-in 1.7 release The maven team is pleased to announce the Maven Test Plug-in 1.7 release! http://maven.apache.org/reference/plugins/test/ Run JUnit tests. Changes in this version include: New Features: o Added maven.junit.forkmode property o Added testnotmatchpattern that can be used in test:match Fixed bugs: o Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match Issue: MPTEST-48. Changes: o Allow multiple patterns in testmatchpattern and testnotmatchpattern o Deprecate dependency handle To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-test-plugin -Dversion=1.7 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven -test-plugin-1.7.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Test Plug-in 1.7 release
There's no support now. You should check surefire, IIRC it'll be backported from maven2 to maven 1.x. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/maven-surefire-plugin/ On 8/9/05, Mike Perham [EMAIL PROTECTED] wrote: Carlos, is there any plan to allow different test frameworks? I have several projects which use Junit and several which use TestNG. I want 'maven jar' to run the unit tests no matter which framework is in use, but this only works with junit obviously. I have to explicitly call maven testng to make it work. Can maven support this out of the box today or is this something that the test plugin needs to add support for? mike -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:49 PM To: Maven Developers List; Maven Users List Subject: Maven Test Plug-in 1.7 release The maven team is pleased to announce the Maven Test Plug-in 1.7 release! http://maven.apache.org/reference/plugins/test/ Run JUnit tests. Changes in this version include: New Features: o Added maven.junit.forkmode property o Added testnotmatchpattern that can be used in test:match Fixed bugs: o Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match Issue: MPTEST-48. Changes: o Allow multiple patterns in testmatchpattern and testnotmatchpattern o Deprecate dependency handle To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-test-plugin -Dversion=1.7 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven -test-plugin-1.7.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven Test Plug-in 1.7 release
One option would be to override the test goal in maven.xml and have it run testng instead. -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:14 PM To: Maven Users List Subject: Re: Maven Test Plug-in 1.7 release There's no support now. You should check surefire, IIRC it'll be backported from maven2 to maven 1.x. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/m aven-surefire-plugin/ On 8/9/05, Mike Perham [EMAIL PROTECTED] wrote: Carlos, is there any plan to allow different test frameworks? I have several projects which use Junit and several which use TestNG. I want 'maven jar' to run the unit tests no matter which framework is in use, but this only works with junit obviously. I have to explicitly call maven testng to make it work. Can maven support this out of the box today or is this something that the test plugin needs to add support for? mike -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:49 PM To: Maven Developers List; Maven Users List Subject: Maven Test Plug-in 1.7 release The maven team is pleased to announce the Maven Test Plug-in 1.7 release! http://maven.apache.org/reference/plugins/test/ Run JUnit tests. Changes in this version include: New Features: o Added maven.junit.forkmode property o Added testnotmatchpattern that can be used in test:match Fixed bugs: o Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match Issue: MPTEST-48. Changes: o Allow multiple patterns in testmatchpattern and testnotmatchpattern o Deprecate dependency handle To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-test-plugin -Dversion=1.7 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/mav en -test-plugin-1.7.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No such provider: 'svn+ssh'
Bernd, i dont thing maven-scm-plugin-1.5.1-rc1 is released yet, but if you get from the trunk it should be very close. Second, according to 1.5.1 doc ( still in svn) try this scm:svn:ssh://[EMAIL PROTECTED]/var/spool/svnrepos/szue2/trunk hope this helps -D On 8/9/05, berndq [EMAIL PROTECTED] wrote: Hi, i am trying to get started with maven 1.0.2 and svn over ssh but I am always stuck with: maven scm:bootstrap -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk ... BUILD FAILED File.. /home/bernd/.maven/cache/maven-scm-plugin-1.5-rc1/plugin.jelly Element... scm:checkout Line.. 110 Column 233 No such provider: 'svn+ssh'. What goes wrong? (subversion on its own is ok) where can I get more information? What information do you need? Bernd Here are more details: - maven 1.0.2 freshly installed (on debian sarge) - got scm 1.5.1rc1: --- [EMAIL PROTECTED]:~$ maven plugin:download -DgroupId=maven -DartifactId=maven-scm-plugin -Dversion=1.5-rc1 -Dmaven.repo. remote=http://cvs.apache.org/repository,http://www.ibiblio.org/maven,http://maven-plugins.sf.net/maven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Plugin cache will be regenerated Directory /home/bernd/.maven/repository does not exist. Attempting to create. Attempting to download commons-io-20030203.000550.jar. 59K downloaded Attempting to download commons-net-1.1.0.jar. 139K downloaded Attempting to download commons-httpclient-2.0.jar. 217K downloaded Attempting to download commons-lang-2.0.jar. 165K downloaded Attempting to download commons-logging-1.0.3.jar. 30K downloaded Attempting to download jsch-0.1.5.jar. 79K downloaded Attempting to download commons-jelly-20030902.160215.jar. 150K downloaded Attempting to download commons-jelly-tags-velocity-20030303.205659.jar. 7K downloaded Attempting to download velocity-1.4-dev.jar. 351K downloaded Attempting to download commons-jelly-tags-xml-20030211.142705.jar. 31K downloaded Attempting to download commons-jelly-tags-interaction-20030211.143817.jar. 4K downloaded build:start: plugin:download-artifact: [mkdir] Created dir: /home/bernd/.maven/repository/maven/plugins [echo] repo is 'http://cvs.apache.org/repository' [echo] trying to download http://cvs.apache.org/repository/maven/plugins/maven-scm-plugin-1.5-rc1.jar 18K downloaded plugin:download: [delete] Deleting 1 files from /home/bernd/maven-1.0.2/plugins [delete] /home/bernd/.maven/plugins not found. [delete] Deleting 8 files from /home/bernd/.maven/cache [delete] Deleted 3 directories from /home/bernd/.maven/cache [copy] Copying 1 file to /home/bernd/maven-1.0.2/plugins BUILD SUCCESSFUL --- - tried to bootstrap project: --- [EMAIL PROTECTED]:~$ maven scm:bootstrap -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://maven-plugins.sf.net/ma ven -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 plugin maven-scm-plugin-1.4.1 is cached (dynatag dep) but no longer present Cache invalidated due to out of date plugins Attempting to download dom4j-1.4-dev-8.jar. 475K downloaded Attempting to download xml-apis-1.0.b2.jar. 106K downloaded Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. 14K downloaded Attempting to download commons-jelly-tags-log-20030211.142821.jar. 8K downloaded Attempting to download commons-jelly-tags-xml-20040613.030723.jar. 33K downloaded Attempting to download velocity-dvsl-0.45.jar. 25K downloaded Attempting to download isorelax-20030108.jar. 188K downloaded Attempting to download jing-20030619.jar. 475K downloaded Attempting to download xerces-2.4.0.jar. 874K downloaded Attempting to download jaxen-1.0-FCS-full.jar. 187K downloaded Attempting to download saxpath-1.0-FCS.jar. 23K downloaded Attempting to download commons-jelly-tags-interaction-1.0.jar. 7K downloaded Attempting to download plexus-container-default-1.0-alpha-3.jar. 279K downloaded Attempting to download plexus-utils-1.0-alpha-3.jar. 152K downloaded Attempting to download classworlds-1.1-alpha-1.jar. 36K downloaded Attempting to download maven-scm-api-1.0-alpha-1.jar. 48K downloaded Attempting to download maven-scm-provider-cvs-1.0-alpha-1.jar. 33K downloaded Attempting to download maven-scm-provider-svn-1.0-alpha-1.jar. 35K downloaded build:start: scm:find-connection: [echo] Using
Re: No such provider: 'svn+ssh'
hi dan, thanks for you help! Bernd, i dont thing maven-scm-plugin-1.5.1-rc1 is released yet, but if you get from the trunk it should be very close. for now I stayed with rc1 Second, according to 1.5.1 doc ( still in svn) try this scm:svn:ssh://[EMAIL PROTECTED]/var/spool/svnrepos/szue2/trunk scm:find-connection: [echo] Using connection: scm:svn:ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk scm:checkout: [echo] Checking out scm:svn:ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk [INFO] Working directory: /home/bernd/target/checkout [INFO] Command line: svn --username ssh://bernd --non-interactive checkout 192.168.3.3/var/spool/svn-repos/szu e2/trunk checkout Provider message: The svn command failed. Command output: svn: '192.168.3.3/var/spool/svn-repos/szue2/trunk' does not appear to be a URL BUILD FAILED File.. /home/bernd/.maven/cache/maven-scm-plugin-1.5-rc1/plugin.jelly Element... scm:checkout Line.. 110 Column 233 Error! Total time: 2 seconds Finished at: Wed Aug 10 00:10:59 CEST 2005 Bernd hope this helps -D On 8/9/05, berndq [EMAIL PROTECTED] wrote: Hi, i am trying to get started with maven 1.0.2 and svn over ssh but I am always stuck with: maven scm:bootstrap -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk ... BUILD FAILED File.. /home/bernd/.maven/cache/maven-scm-plugin-1.5-rc1/plugin.jelly Element... scm:checkout Line.. 110 Column 233 No such provider: 'svn+ssh'. What goes wrong? (subversion on its own is ok) where can I get more information? What information do you need? Bernd Here are more details: - maven 1.0.2 freshly installed (on debian sarge) - got scm 1.5.1rc1: --- [EMAIL PROTECTED]:~$ maven plugin:download -DgroupId=maven -DartifactId=maven-scm-plugin -Dversion=1.5-rc1 -Dmaven.repo. remote=http://cvs.apache.org/repository,http://www.ibiblio.org/maven,http://maven-plugins.sf.net/maven __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 Plugin cache will be regenerated Directory /home/bernd/.maven/repository does not exist. Attempting to create. Attempting to download commons-io-20030203.000550.jar. 59K downloaded Attempting to download commons-net-1.1.0.jar. 139K downloaded Attempting to download commons-httpclient-2.0.jar. 217K downloaded Attempting to download commons-lang-2.0.jar. 165K downloaded Attempting to download commons-logging-1.0.3.jar. 30K downloaded Attempting to download jsch-0.1.5.jar. 79K downloaded Attempting to download commons-jelly-20030902.160215.jar. 150K downloaded Attempting to download commons-jelly-tags-velocity-20030303.205659.jar. 7K downloaded Attempting to download velocity-1.4-dev.jar. 351K downloaded Attempting to download commons-jelly-tags-xml-20030211.142705.jar. 31K downloaded Attempting to download commons-jelly-tags-interaction-20030211.143817.jar. 4K downloaded build:start: plugin:download-artifact: [mkdir] Created dir: /home/bernd/.maven/repository/maven/plugins [echo] repo is 'http://cvs.apache.org/repository' [echo] trying to download http://cvs.apache.org/repository/maven/plugins/maven-scm-plugin-1.5-rc1.jar 18K downloaded plugin:download: [delete] Deleting 1 files from /home/bernd/maven-1.0.2/plugins [delete] /home/bernd/.maven/plugins not found. [delete] Deleting 8 files from /home/bernd/.maven/cache [delete] Deleted 3 directories from /home/bernd/.maven/cache [copy] Copying 1 file to /home/bernd/maven-1.0.2/plugins BUILD SUCCESSFUL --- - tried to bootstrap project: --- [EMAIL PROTECTED]:~$ maven scm:bootstrap -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://maven-plugins.sf.net/ma ven -Dmaven.scm.url=scm:svn+ssh://[EMAIL PROTECTED]/var/spool/svn-repos/szue2/trunk __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 plugin maven-scm-plugin-1.4.1 is cached (dynatag dep) but no longer present Cache invalidated due to out of date plugins Attempting to download dom4j-1.4-dev-8.jar. 475K downloaded Attempting to download xml-apis-1.0.b2.jar. 106K downloaded Attempting to download commons-jelly-tags-jsl-20030211.143151.jar. 14K downloaded Attempting to download commons-jelly-tags-log-20030211.142821.jar. 8K downloaded Attempting to download commons-jelly-tags-xml-20040613.030723.jar. 33K downloaded Attempting to download velocity-dvsl-0.45.jar. 25K downloaded Attempting to download isorelax-20030108.jar. 188K downloaded Attempting to download jing-20030619.jar. 475K downloaded Attempting to download xerces-2.4.0.jar. 874K downloaded Attempting to
maven-jdeveloper-plugin
Hello, Can someone please help me find the maven-jdeveloper-plugin project. I set up a CVS repository location in Eclipse and the path listed on the web page doesn't exist. http://cvs.apache.org/viewcvs/maven-plugins/jdeveloper/ Thanks, Manuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-jdeveloper-plugin
It's in subversion http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins-sandbox/trunk/jdeveloper/ Was moved to the sandbox because it was no longer actively mantained. Regards Carlos Sanchez On 8/9/05, Manuel G. Chacon [EMAIL PROTECTED] wrote: Hello, Can someone please help me find the maven-jdeveloper-plugin project. I set up a CVS repository location in Eclipse and the path listed on the web page doesn't exist. http://cvs.apache.org/viewcvs/maven-plugins/jdeveloper/ Thanks, Manuel - 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: maven2 duplicate class error
It happens because you have a public class PatientReferralPanel in 2 different .java files. The bug before was because copies in .svn and CVS directories were picked up, but that has been fixed. This is likely an error in your application (unless you are using an old version, or there has been a regression). It appears that it is an error on your end though, note the package does not match the directory: com.alpha.patient.client.dbgui com\alpha\patient\patientencounter\client\dbgui\ It's possible you also have a version in com\alpha\patient\client\dbgui\ HTH, Brett On 8/10/05, Rizwan Merchant [EMAIL PROTECTED] wrote: Hi, I found this issue mentioned earlier on the archive. I am having problems compiling my project. Maven2 gives me a duplicate class error as follows no more tokens - could not parse error message: C:\Documents and Settings\rizwan .ALPHAGLOBE\UHM\source\com\alpha\patient\patientencounter\client\dbgui\Patie ntRe ferralPanel.java:55: duplicate class: com.alpha.patient.client.dbgui.PatientRefe rralPanel public class PatientReferralPanel extends JPanel { I looked for all instances of PatientReferralPanel.class on my computer and deleted them all. that didnt help. The archived message shown below indicates that this was classified as a bug at some point. Please could you tell me if there is an update on this issue? Am I having this problem because of the bug or am I doing something wrong? Thanks, -Riz. --- This seems to be a bug... can you please file it in JIRA? Thanks, Brett On 4/20/05, Ilyevsky, Leonid (Equity Trading) [EMAIL PROTECTED] wrote: When I check out the file for editing, CVS puts a copy of it in CVS/Base. Then maven complains about duplicate class. Is there a way to tell maven to ignore those extra files? - 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: Lustbuild fails to run site goal
It seems luntbuild is forcing an old Jelly dependency on you. You will have to report this to them since it works from the command line but not under LB. - Brett On 8/10/05, Yaron Jacobson [EMAIL PROTECTED] wrote: Hi, I am trying to use Luntbuild over maven. When I trigger a build manually the site goal fails when executing the maven-xdoc-plugin-1.9.1. If I run the site goal from the command line (not using Luntbuild) the build is succefull. Any Ideas? Here is the build_log.txt tail: xdoc:jelly-transform: About to use JSL stylesheet file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl [echo] en [echo] The current Locale is the default one [echo] Scanning 'D:\luntbuild\work\ITG Deployment Mngmnt\sourceCode\java\target\generated-xdocs'... [echo] Generating D:/luntbuild/work/ITG Deployment Mngmnt/sourceCode/java/target/docs/cvs-usage.html from D:\luntbuild\work\ITG Deployment Mngmnt\sourceCode\java\target\generated-xdocs\cvs-usage.xml BUILD FAILED File.. C:\Documents and Settings\rhirshfeld\.maven\cache\maven-xdoc-plugin-1.9.1\plugin.jelly Element... j:include Line.. 479 Column -1 file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:33:-1: jsl:stylesheet file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:146:-1: jsl:applyTemplates file:/C:/Documents and Settings/rhirshfeld/.maven/cache/maven-xdoc-plugin-1.9.1/plugin-resources/si te.jsl:230:-1: maven:property You must define an attribute called 'defaultValue' for this tag. Total time : 29 seconds Finished at : Tuesday, August 9, 2005 5:24:30 PM IDT Maven builder failed: build success condition not met! Thanks, Yaron __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] goals for plugins
It's not yet implemented. http://jira.codehaus.org/browse/MNG-698 - Brett On 8/9/05, Mueffke, Friedger [EMAIL PROTECTED] wrote: m2 -g site throws an ReactorException caused by LifecycleExecutionException: Invalid task 'site' Friedger -Original Message- From: NATARAJAN Sasi Kumar [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 12:21 PM To: Maven Users List Subject: RE: [m2] goals for plugins It may 'M2 -g' Sasi -Original Message- From: Mueffke, Friedger [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:46 PM To: users@maven.apache.org Subject: [m2] goals for plugins Hi, Is there a way to find out about valid goals of a plugin/all plugins available? I am looking for the one that creates reports of dependent projects. And I am curious what else I could do with the available plugins for m2. Thanks, Friedger Confidentiality Statement: This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email. - 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]
Plugin passing values to a Jelly Swing display?
It appears that the best way to execute a jelly:swing is with the following script: java classname=org.apache.commons.jelly.Jelly fork=true classpath refid=jelly.swing.classpath/ arg value=${plugin.resources}/showProperties.jelly/ /java Since in this case the jelly:swing is running in a forked process, how would you pass the information to be displayed in the script. The only thing I can think of is to write out a file in the $(plugin.resources} folder and let the jelly:swing script read it. Perhaps one of you can think of a better way. I tried to run without forking and I can't keep the GUI up. It just flashes and returns to the next plugin statement. Perhaps one of you have had that experience and figured out how to get the jelly:swing to work within the plugin. The only reason I'm thinking of running without the fork is to get access to the plugin's variables. Any suggestions would be appreciated. Bud Curtis JDIMS Project L-3 Communications (719) 637-5633 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven.jar.final.name usage - plugin 1.7
http://maven.apache.org/faq.html#unversioned-jars you can do what you want in your project, but you must obey the rules in the local repository as that's Maven's private area. - Brett On 8/9/05, Sanjay Choudhary [EMAIL PROTECTED] wrote: I wish to use maven.jar.final.name http://maven.jar.final.name property. I want my jar file name to be different.(basiclly, don't want any version appended to it, I know it is not in alignment with maven best practice but life is not always straight). If I use maven jar:install -Dmaven.jar.final.name=foo.jar 1. It creates foo.jar in target directory. 2. It copies foo.jar to foo-1.1.jar in maven local repository. ?? what is the use of maven.jar.final.name http://maven.jar.final.name? Let us assumt, I have another java project fred that is dependent on project foo. fred and foo - both extend from same project.xml and share the same pom-version. In fred project, project.xml is as below dependency artifactIdfoo/artifactId groupId${pom.groupId}/groupId properties jar.manifest.classpathtrue/jar.manifest.classpath /properties version${pom.currentVersion}/version /dependency Is it possible to define dependecy of fred on foo in project.xml without the version # ? so that when I use multiproject:goal -Djar:install it will first build foo and then fred. Please advice. Thanks, sanjay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Test Plug-in 1.7 release
On 8/9/05, David Jackman [EMAIL PROTECTED] wrote: One option would be to override the test goal in maven.xml and have it run testng instead. -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:14 PM To: Maven Users List Subject: Re: Maven Test Plug-in 1.7 release There's no support now. You should check surefire, IIRC it'll be backported from maven2 to maven 1.x. http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-plugins/m aven-surefire-plugin/ On 8/9/05, Mike Perham [EMAIL PROTECTED] wrote: Carlos, is there any plan to allow different test frameworks? I have several projects which use Junit and several which use TestNG. I want 'maven jar' to run the unit tests no matter which framework is in use, but this only works with junit obviously. I have to explicitly call maven testng to make it work. Can maven support this out of the box today or is this something that the test plugin needs to add support for? mike -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 3:49 PM To: Maven Developers List; Maven Users List Subject: Maven Test Plug-in 1.7 release The maven team is pleased to announce the Maven Test Plug-in 1.7 release! http://maven.apache.org/reference/plugins/test/ Run JUnit tests. Changes in this version include: New Features: o Added maven.junit.forkmode property o Added testnotmatchpattern that can be used in test:match Fixed bugs: o Deprecated testmatch property by testmatchpattern to allow more complex patterns in test:match Issue: MPTEST-48. Changes: o Allow multiple patterns in testmatchpattern and testnotmatchpattern o Deprecate dependency handle To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven -DartifactId=maven-test-plugin -Dversion=1.7 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/mav en -test-plugin-1.7.jar Have fun! -The maven team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 'maven.junit.forkmode' only works in 1.1, not 1.0.2, correct? -- Jamie Bisotti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Test Plug-in 1.7 release
Correct (we've just discussed this on the dev list, and Carlos is going to document it). - Brett On 8/10/05, Jamie Bisotti [EMAIL PROTECTED] wrote: On 8/9/05, David Jackman [EMAIL PROTECTED] wrote: One option would be to override the test goal in maven.xml and have it run testng instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mavenide Eclipse Project Template. Where are them??
Marcelo Alcantara wrote: Good morning, Somebody can tell me where can I found templates for the mavenide create maven projects? Actually the combo is empty in eclipse. Any ideas? Thanks in advance. You have written to the wrong list. You are more likely to get a response if you wrote to the Mevenide users list. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No such provider: 'svn+ssh'
dan tran wrote on Wednesday, August 10, 2005 12:01 AM: Bernd, i dont thing maven-scm-plugin-1.5.1-rc1 is released yet, but if you get from the trunk it should be very close. Second, according to 1.5.1 doc ( still in svn) try this scm:svn:ssh://[EMAIL PROTECTED]/var/spool/svnrepos/szue2/trunk Nope, you messed up the protocol now that really is svn+ssh. So use: scm:svn:svn+ssh://[EMAIL PROTECTED]/var/spool/svnrepos/szue2/trunk hope this helps this time :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]