Re: Is TestNG support in M2 2.0.4 already stable?
There was a promise on this mailing list a while ago that many of the plugins would see a new release shortly, so let's hope so, so that we can avoid having to rely on SNAPSHOT versions to get the builds working... regards, Wim 2006/9/27, franz see [EMAIL PROTECTED]: Davy Toch wrote: Hi, I have the following M2 2.0.4 project containing the following 3 files: A. $PROJECT_ROOT/src/test/java/testgroup/AppTest.java : package testgroup; public class AppTest { /** * @testng.test */ public void doSomething() { System.out.println(doSomething() called); } } B. $PROJECT_ROOT/testng.xml : !DOCTYPE suite SYSTEM http://testng.org/testng-1.0.dtd; suite name=Suite1 verbose=1 test name=Regression1 classes class name=testgroup.AppTest/ /classes /test /suite C. $PROJECT_ROOT/pom.xml : 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 groupIdtestgroup/groupId artifactIdtestapp/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version5.1/version scopetest/scope classifierjdk14/classifier /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFiles suiteXmlFiletestng.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin /plugins /build /project When running the tests I get: $mvn test [INFO] Scanning for projects... [INFO] [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [test] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] No sources to compile [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 1 source file to C:\tmp\xxx\testapp\testapp\target\test-classes [INFO] [surefire:test] [INFO] Surefire report directory: C:\tmp\xxx\testapp\testapp\target\surefire-reports --- T E S T S --- Running Regression1 Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Tue Sep 26 21:16:26 CEST 2006 [INFO] Final Memory: 3M/10M [INFO] So no tests were found by M2! However if I directly run the TestNG tests from the command-line, e.g.: $c:\devtools\j2sdk1.4.2_10\bin\java.exe -cp \ target\test-classes;c:\devtools\testng-5.1\testng-5.1-jdk14.jar \ org.testng.TestNG \ -sourcedir src\test\java testng.xml then I get : doSomething() called === Suite1 Total tests run: 1, Failures: 0, Skips: 0 === Remark that before I ran the above tests, I completely deleted ~/.m2, so the local repository would be reinitialized from scratch based on what's available in http://www.ibiblio.org/maven2. Regards, Davy Toch Davy Toch wrote: Hi, I was just wondering whether TestNG support in M2 is already stable and can be used as a viable replacement of JUnit? I already tried using TestNG in M2 but I had different problems (tests not being run, ClassCastException, ...). So before I start posting my TestNG-related problems in detail, I just have this simple question : is M2 2.0.4 already supposed to fully support TestNG or is it recommended to wait until M2 2.0.5 or higher? Regards and thanks, Davy Toch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Good day to you, Davy, Pardon, but I guess I was mistaken. After reading the jira issues and logs again, I realized that it wasn't the maven-surefire-plugin that was patched but the surefire-testng instead. Anyway, the patched surefire-testng (2.1-SNAPSHOT) project is not yet released. You can however, try download it from [1]. Cheers,
RE: Clover fails during compile, but project compiles normally
-Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED] Sent: mardi 26 septembre 2006 20:43 To: Maven Users List Subject: Re: Clover fails during compile, but project compiles normally Vincent Massol wrote: Hi Martin, -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED] Sent: lundi 25 septembre 2006 20:34 To: Maven Users List Subject: Re: Clover fails during compile, but project compiles normally Don't install and clover at the same time.. I think it should work fine... Any bad experience? :-) The clover plugin is pretty solid :) Except some weird behaviour with instrumentation jars ending up in the local repository :) (Cobertura has this problem too I think) If you have an issue with instrumented jars let me know and I'll have a look. There was an issue with the plugin not using the latest of either the non-instrumented jar or the instrumented one but I've fixed it in SVN some time ago. Which reminds me that I should do a release soon. Thanks -Vincent ___ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Retrieving all the modules for a prent project
Hi all, I have a parent project, composed of several modules. I would like to programatically get all the artifacts build from these modules, in order to package my parent's project delivery. I tried to do this trought the following ant file, but, this retrieves only the dependencies of my parent project, whereas i wanted to retrieve the modules. Do you any idea of how to do this ? Thanks in advance for your help, Rémy. ?xml version=1.0 encoding=UTF-8 standalone=yes? project name=ric-delivery-builder basedir=. default=deliverVersion xmlns:artifact=urn:maven-artifact-ant typedef resource=org/apache/maven/artifact/ant/antlib.xml uri=urn:maven-artifact-ant classpath=D:\programs/maven-2.0.4/lib/maven-artifact-ant-2.0.4-dep.jar / artifact:remoteRepository id=remote.repository url=http://ricfiled.as.asd.asf/maven/repository; / artifact:localRepository id=local.repository location=D:\.m2\repository/ property name=svnTagsRepository value=svn://ricfiled:3691/RIC-TST/tags/ property name=mavenrepository value=http://ricfiled.as.asd.asf/maven/repository/fr/as/ric/ric/ property name=path value=${basedir}/svn/bin;${env.Path} / target name=chooseVersion input message=Version de RIC a livrer : addproperty=ricVersion / property name=deliveryFolder value=./RIC_V${ricVersion}/ property name=tagFolder value=./tag/RIC_V${ricVersion}/ /target target name=deliverVersion depends=chooseVersion echo message=creating directories.../ mkdir dir=${deliveryFolder}/apps/ mkdir dir=${deliveryFolder}/apps/dyn/ mkdir dir=${deliveryFolder}/apps/static/ echo message=getting delivery pom.../ exec executable=cmd dir=. env key=Path value=${path} / arg line=/c svn checkout ${svnTagsRepository}/ric_V${ricVersion} ${tagFolder} / /exec !-- get src=${mavenrepository}/${ricVersion}/ric-${ricVersion}.pom dest =pom.xml / -- echo message=loading pom.../ artifact:pom file=${tagFolder}/deliveryPom.xml id =maven.project/ echo message=this pom is for version ${maven.project.version}/ echo message=retrieving dependencies.../ artifact:dependencies filesetid=dependency.fileset pomrefid=maven.project verbose=true type=war usescope=runtime remoteRepository refid=remote.repository/ /artifact:dependencies echo message=copying files.../ copy todir=${deliveryFolder}/apps/dyn flatten=true verbose=true fileset refid=dependency.fileset/ /copy /target /project
Re: java version for all plugins
See the top of http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/core/pom.xml?view=markup It inherits from http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/pom.xml?view=markup Trent Rosenbaum wrote, On 2006-09-26 5:30 PM: So you have a pom.xml file that represents your company/organisation. Within this file you define the plugin versions. Then do you make this the parent to all of your projects? Trent On 26/09/06, Geoffrey De Smet [EMAIL PROTECTED] wrote: I always lock down the plugin versions in my parent project's pluginManagement. That way all childprojects inherit those version and it is shared to the other people of my team. If you do in it your home dir, it's not shared with your team (but it is shared for all your projects). alexsun wrote, On 2006-09-26 12:19 PM: Is it posible to set up java version for all maven plugins, that used in project, in one place? And forget about it? )) -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Surefires test order
Is no one interested by that question ? Or maybe I should not reply to a so old question ? chris christophe blin wrote: Hi, searching into the nabble archives, I found a thread which talks about my problem. I quote the relevant part at the end of my message. First, I'd like to know if there is finally a possibility to run the JUnit tests in a specific order when they are executed with surefire ? Second, I perfectly agree with David : surefire should run the tests in the order they are written in the file. While this is not important for unit tests, this is really important for integration tests. The reality is that you do not want to write a integration test that is 200 lines so you split up the test in various functions. Then, you'd like that each function is a separate test case to have a report that indicates precisely at which moment the test fail (it is easier to know that the 3rd test case failed whereas to read the stacktrace of the testcase to find where it crashes). So my question is : who do not care about the order of integration tests (i.e how do you do integration testing with surefire not executing the test cases in the 'right' order) ? Best regards, chris David Jackman wrote: Actually, JUnit tests do run in a simple and predictable order (especially when a test class provides its own suite). I agree that it's a bad idea to write tests that depend on their ordering, but it should not be the build system that enforces this (especially when the XML report is the only way to determine what order surefire used) unless it's through a property that explicitly tells it to do so. ..David.. -- View this message in context: http://www.nabble.com/Surefires-test-order-tf734875.html#a6521850 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java version for all plugins
Yeah this makes complete sense and I think I will start to following this process as well. Cheers for the examples Trent On 27/09/06, Geoffrey De Smet [EMAIL PROTECTED] wrote: See the top of http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/core/pom.xml?view=markup It inherits from http://svn.sourceforge.net/viewvc/spring-rich-c/trunk/spring-richclient/pom.xml?view=markup Trent Rosenbaum wrote, On 2006-09-26 5:30 PM: So you have a pom.xml file that represents your company/organisation. Within this file you define the plugin versions. Then do you make this the parent to all of your projects? Trent On 26/09/06, Geoffrey De Smet [EMAIL PROTECTED] wrote: I always lock down the plugin versions in my parent project's pluginManagement. That way all childprojects inherit those version and it is shared to the other people of my team. If you do in it your home dir, it's not shared with your team (but it is shared for all your projects). alexsun wrote, On 2006-09-26 12:19 PM: Is it posible to set up java version for all maven plugins, that used in project, in one place? And forget about it? )) -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
missing Administration tasks in daily build
Hello after I have a nice looking WebApp, going thru the first steps (eg. registered the administrator, repository and index) now i can login, and get redirected to the browse window, but i miss the administrator menu on the left. Looking at the tomcat log, tells that the admin logged in succesfully, but there must be a problem with detecting the login in the menu tree... Any hints ? -Daniel
RE: [solved] missing Administration tasks in daily build
just for the records, this is a stupid error of my configuration behind a Apache webserver using a vhost working vhost-config: NameVirtualHost archiva.your-domain:* VirtualHost archiva.your-domain:* ServerName archiva.your-domain ServerAlias archiva RewriteEngine On RewriteRule ^/archiva/(.*) http://your-server:8080/archiva/$1 [P,L] RewriteRule ^/(.*) http://your-server:8080/archiva/$1 [P,L] ProxyPreserveHost On ProxyPassReverse / http://your-server:8080/archiva/ ErrorLog logs/archiva.your-domain-error.log CustomLog logs/archiva.your-domain-access.log common /VirtualHost if you disable 'ProxyPreserveHost On' the cookie can not be identified. - Daniel -Original Message- From: Mohni, Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 10:07 AM To: archiva-users@maven.apache.org Subject: missing Administration tasks in daily build Hello after I have a nice looking WebApp, going thru the first steps (eg. registered the administrator, repository and index) now i can login, and get redirected to the browse window, but i miss the administrator menu on the left. Looking at the tomcat log, tells that the admin logged in succesfully, but there must be a problem with detecting the login in the menu tree... Any hints ? -Daniel
RE: Maven+Checkstyle - Configuration file location
Hi Stephen / Roy, I would like to include a LICENSE.txt file as part of the jar (checkstyle-1.0-SNAPSHOT.jar) as listed below. 0 Wed Sep 27 02:05:48 EST 2006 META-INF/ 127 Wed Sep 27 02:05:46 EST 2006 META-INF/MANIFEST.MF 26 Wed Sep 27 02:05:46 EST 2006 LICENSE.txt 433 Wed Sep 27 02:05:46 EST 2006 CheckstyleSuppressions.xml 14230 Wed Sep 27 02:05:46 EST 2006 CustomisedCheckstyle.xml 0 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/ 0 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/customised/ 0 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/customised/checkstyle/ 1310 Wed Sep 27 02:05:40 EST 2006 META-INF/maven/customised/checkstyle/pom.xml 112 Wed Sep 27 02:05:48 EST 2006 META-INF/maven/customised/checkstyle/pom.properties When I reference it within CustomisedCheckstyle.xml as follows it is unable to find it. module name=Header property name=headerFile value=LICENSE.txt/ property name=ignoreLines value=1, 2/ /module Could you please let me know what I should be putting in the value field to get checkstyle to find it. Thanks Lakshman -Original Message- From: Lakshman Srilakshmanan Sent: Wednesday, 20 September 2006 4:23 PM To: '[EMAIL PROTECTED]' Subject: RE: Maven+Checkstyle - Configuration file location Hi Stephen, Thanks, it works well now. Lakshman -Original Message- From: Stephen Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 20 September 2006 1:48 AM To: Maven Users List Subject: Re: Maven+Checkstyle - Configuration file location You need to set up your dependency as an extension, not as a plugin dependency. I'm not 100% clear on whether this is because of a bug, or if this is how things are intended to be, but it should work if you move the dependency and declare it as an extension, like in the example a the bottom of this page: http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html -Stephen On 9/19/06, Lakshman Srilakshmanan [EMAIL PROTECTED] wrote: Hi Roy, I was trying to implement the checkstyle configuration as you have done without much success. I was hoping you could help me. I created a project that builds a jar file containing my checkstyle and suppression and installed it in my local repository. The contents of this jar file (checkstyle-1.0-SNAPSHOT.jar) is listed below. 0 Tue Sep 19 14:32:08 EST 2006 META-INF/ 127 Tue Sep 19 14:32:06 EST 2006 META-INF/MANIFEST.MF 433 Tue Sep 19 14:32:06 EST 2006 CheckstyleSuppressions.xml 14161 Tue Sep 19 14:32:06 EST 2006 CustomisedCheckstyle.xml 0 Tue Sep 19 14:32:08 EST 2006 META-INF/maven/ 0 Tue Sep 19 14:32:08 EST 2006 META-INF/maven/customised/ 0 Tue Sep 19 14:32:08 EST 2006 META-INF/maven/customised/checkstyle/ 678 Mon Sep 18 15:03:24 EST 2006 META-INF/maven/customised/checkstyle/pom.xml 112 Tue Sep 19 14:32:06 EST 2006 META-INF/maven/customised/checkstyle/pom.properties I then included the above file under pluginManagement in my POM as follows. pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId dependencies dependency groupIdcustomised.checkstyle/groupId artifactIdcheckstyle/artifactId version1.0-SNAPSHOT/version /dependency /dependencies /plugin /pluginManagement I then included the above definition of the plugin under reports as follows. reporting plugins plugin artifactIdmaven-checkstyle-plugin/artifactId configuration configLocationCustomisedCheckstyle.xml/configLocation suppressionsLocationCheckstyleSuppressions.xml/suppressionsLocation /configuration /plugin /plugins /reporting When I run mvn clean site I get the following error Embedded error: Error rendering Maven report: Unable to find configuration file location. Unable to find location 'CustomisedCheckstyle.xml' as URL, File or Resource. The funny thing is, when I ran it first I forgot to install the checkstyle-1.0-SNAPSHOT.jar and maven did not complain about not finding the jar file. Not sure what I am doing wrong, but your assistance is greatly appreciated. Thanks Lakshman -Original Message- From: Roy van der Kuil [mailto:[EMAIL PROTECTED] Sent: Monday, 4 September 2006 10:10 PM To: Maven Users List Subject: Re: Maven+Checkstyle - Configuration file location Hi, We have a similar setup and have created a 'project' with only a couple of resources. (our own version of the checkstyle xml and suppressions). We deployed
Error retrieving artifact from file
Hi! I have Maven integrate into Eclipse, when i try to build my project it crashes. The console of Eclipse shows this messages: Error retrieving artifact from [file://C:\Archivos de programa\Hotsip\M2CE SCE/repository/m2ce-core/jars/serviceframework-3.2.0-87.jar This jar exists in the route. ¿What can I do? Thank you. Javi. MAVEN VERSION: __ __ |\/ |__ _Apache__ ___ | |\/| / _` \ V / -_)' \ ~ intelligent projects ~ |_ | |_ \__,_|\_/\___ |_||_| v. 1.0.2 ECLIPSE SDK VERSION: 3.1.2 BUILD.PROPERTIES: sce.repo.remote=file:///C:\\Archivos\ de\ programa\\Hotsip\\M2CE\ SCE/repository maven.repo.remote=${sce.repo.remote},http://www.ibiblio.org/maven/ maven.compile.debug=true maven.compile.target=1.5 maven.compile.source=1.5 AVISO DE CONFIDENCIALIDAD. Este correo y la información contenida o adjunta al mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. DMR Consulting informa a quien pueda haber recibido este correo por error que contiene información confidencial cuyo uso, copia, reproducción o distribución está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo. CONFIDENTIALITY WARNING. This message and the information contained in or attached to it are private and confidential and intended exclusively for the addressee. DMR Consulting informs to whom it may receive it in error that it contains privileged information and its use, copy, reproduction or distribution is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail.
M2 EJB plugin
Hi there, I'm trying to package an EJB 3.0 module using the maven-ejb-plugin for Maven 2.x. The problem is that when the plugin tries to package the jar archive, it fails because it can't find the META-INF/ejb-jar.xml file. The point is that I'm using EJB 3.0 and I don't need that file. Here is an extract from my pom.xml file: nameERS Platform - Model Layer/name artifactIdersplatform-model/artifactId groupIdcom.social_labs.ers.platform/groupId packagingejb/packaging . build plugins plugin artifactIdmaven-ejb-plugin/artifactId groupIdorg.apache.maven.plugins/groupId configuration ejbVersion3.0/ejbVersion /configuration /plugin /plugins /build The mvn's output when I run mvn install is as follows: [INFO] [ejb:ejb] [INFO] Building ejb ersplatform-model-1.0-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling EJB Embedded error: C:\fuentes\projects\ERS\platform\model\target\classes\META-INF\e jb-jar.xml isn't a file. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Wed Sep 27 10:50:42 CEST 2006 [INFO] Final Memory: 5M/11M [INFO] Does anyone know where is the problem? Regards, Alonso
Wrong artifactHandler
Hello, I am a strange problem with a plugin that I develop. This plugin do a bytecode manipulation of java classes during the packaging of the artifact. It works with simple project (non multi-module). Nevertheless, when I use my plugin inside a multi-module project, Maven does not use the good artifact handler. To trace the problem, I modify the install-plugin to display some info after the installation. To check the ArtifactHandler, I set the language to foo inside my plugin : component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintipojo-bundle/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler/implementation configuration typeipojo-bundle/type includesDependenciestrue/includesDependencies languagefoo/language extensionjar/extension addedToClasspathtrue/addedToClasspath /configuration /component When I launch mvn clean install on the single project I have the following result : ... [INFO] [install:install] [INFO] Installing F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : foo Artifact Handler Extension : jar Artifact Handler Packaging : ipojo-bundle So, it works in this case. But when I launch mvn clean install on the multi module project, the I have the following (strange) result : [INFO] Installing f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch-0.6.0-SNAPSHOT.ipojo-bundle Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : none Artifact Handler Extension : ipojo-bundle Artifact Handler Packaging : ipojo-bundle So, I think that when used in multi-module Maven does not use the good artifact handler. But how I can solve this problem ? Thank you very much for all ideas Clement Escoffier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] install4j plugin
Hi, Anyone know if there is such a beast as an install4j plugin for maven? Regards Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-war-plugin error /
hi all i m experiencing some errors with Maven2 war plugin situationis like this i am trying to use maven2 with an existing project (developed in RAD) heres' the project structure webProject | JavaSource |com ... |mw |___resources | appresources.properties |___configurations | myPopulator.xml |___ WebContent |__ WEB-INF ...misc jsp files now, my problem is that , in the mw directory, the 'resources' directory files should go under WEB-INF\classes and the configurations/myPopulator.xml should go under WEB-INF i m tyring to use maven2 filtering, i want to avoid use ant tasks.. here's the excerpt plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/WebContent/warSourceDirectory webResources resource directory${basedir}/JavaSource/ngenmw/directory excludes exclude**/dataSourcePopulator.xml/exclude /excludes /resource resource directory${basedir}/JavaSource/ngenmw/configurations/directory targetPathWEB-INF/targetPath filteringtrue/filtering /resource /webResources /configuration /plugin according ot docs of maven war plugin, i can do the above... but when i launch mvn it results in the following exception [INFO] Executed tasks [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp webResources to D:\Sw\step-by-step\middleware\ngenMiddlewareW eb\target\ngenMiddlewareWeb-1.0-SNAPSHOT [INFO] Copy webapp webResources to D:\Sw\step-by-step\middleware\ngenMiddlewareW eb\target\ngenMiddlewareWeb-1.0-SNAPSHOT [INFO] [ERROR] FATAL ERROR [INFO] [INFO] org.apache.maven.project.MavenProject [INFO] [INFO] Trace java.lang.ClassCastException: org.apache.maven.project.MavenProject at org.codehaus.plexus.util.InterpolationFilterReader.read (Interpolation FilterReader.java:269) at org.codehaus.plexus.util.InterpolationFilterReader.read (Interpolation FilterReader.java:201) at org.codehaus.plexus.util.InterpolationFilterReader.read (Interpolation FilterReader.java:162) at java.io.Reader.read(Reader.java:122) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:212) at org.codehaus.plexus.util.IOUtil.copy(IOUtil.java:200) at org.apache.maven.plugin.war.AbstractWarMojo.copyFilteredFile (Abstract WarMojo.java:907) at org.apache.maven.plugin.war.AbstractWarMojo.copyResources (AbstractWar Mojo.java:442) at org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp (Abstr actWarMojo.java:355) at org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java :161 ) at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:127) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi nManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (Defa ultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (Defau ltLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.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 (DelegatingMethodAcces sorImpl.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) [INFO] anyone could hlep me out? thanks in advance and regards marco
SV: Build errors
Anyone got any tips for me about this issue? It is starting to become a showstopper. Continuum almost never have a successfully build anymore. The failure is always the same where the exception is: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'dataSource' defined in class path resource [commons-context.xml]: Could not resolve placeholder 'jdbc.driverClassName' My common-context.xml (spring config) is located in common artifact. Other artifacts depends on this common artifact. Common-context.xml -- bean id=propertyConfigurator class=org.springframework.beans.factory.config.PropertyPlaceholderConfi gurer property name=locations list valuedatabase.properties/value valuetoolbox.properties/value /list /property /bean bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassName value${jdbc.driverClassName}/value /property property name=url value${jdbc.url}/value /property property name=username value${jdbc.username}/value /property property name=password value${jdbc.password}/value /property /bean Common artifact has two (2) resources named database.propeties. These files is located in main/resources and test/resources, where the one under test is the one used when testing (you did'nt see that comming did ya?). Database.properties (in test/resourses) --- jdbc.driverClassName=org.hsqldb.jdbcDriver jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal jdbc.username=sa jdbc.password= The commons pom.xml has test-jar goal so the dependent artifacts can include this test-jar file when running tests (scope=test). Now, when I try to test or install some of my artifacts that depend on common artifact I recive the error mentioned above. An as you can se a from my earlier posts its more or less random. Sometime it works sometime not. I am very much stuck on this matter and I could need a good tips in how to solve this problem. I am thinking that I might maybe hardcode two spring configs only containing the datasource part. One for test and one for main and that way skip the whole PropertyPlaceHolderConfigurer part that creates all this frustration. -Ronny -Opprinnelig melding- Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] Sendt: 25. september 2006 13:00 Til: Maven Users List Emne: SV: Build errors I have tried different things but no pattern is discovered. I am logged on the unix server that Continuum is running on. I then change directory to the artifact that fails. Things I have tried: mvn install - failure mvn clean - success mvn test- success mvn install - failure mvn install - failure mvn install - failure mvn test- failure mvn test- failure mvn clean test - failure mvn clean - success mvn test- success mvn clean - success mvn test- success mvn clean - success mvn test- success mvn clean test - failure mvn clean test - failure mvn clean test - failure mvn test- failure mvn test- failure mvn clean - success mvn test- success mvn test- failure mvn test- failure mvn clean - success mvn install - failure mvn clean - success mvn install - success mvn clean - success mvn install - failure mvn clean - success mvn install - failure mvn clean - success mvn install - success mvn clean - success mvn test- success mvn test- success What I can see so far. 'mvn clean test' always failure 'mvn clean' followed by 'mvn test' always success (however failed several times on my Win XP laptop) 'mvn test' followed by 'mvn test' sometimes success and sometimes failure 'mvn clean' followed by 'mvn install' sometimes success and sometimes failure Could it be that my pom has something that could give me the unstable pattern that is shown here? My pom.xml ?xml version=1.0 encoding=iso-8859-1? 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/xsd/maven-v4_0_0.xsd; parent artifactIdansattportal/artifactId groupIdno.avinor/groupId version1.0-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion
Maven2 JUnit4
Hi, i just wanted to ask if there are any news on the JUnit4 front. I've tried that unofficial plugin but it didn't work, so i was wondering if JUnit4 support is somewhere soon on the roadmap. thanks in advance! cheers, severin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 EJB plugin
hELLO, found same error when i tried.. i m deploying on jboss4.0.4 i made project as a jar project that won't create ejb client though... beside that, with EJB3 using POJO i m not exactly sure why would you need an ejb-client.. hth marco
Excluding the unit tests from Javadocs in Maven 2.x
Hi All, I am currently using Maven 2.0. Can anyone please let me know how to exclude unit tests while generating Javadocs report? I have tried by adding the following in my pom.xml file but it didn?t work. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version2.0/version configuration testExcludes exclude${basedir}/src/test/*.*/exclude /testExcludes /configuration /plugin Please note that the java files and unit test files are in the same package. Please let me know the necessary changes required in pom.xml to exclude unit tests. Thanks in advance, Pavan. -- View this message in context: http://www.nabble.com/Excluding-the-unit-tests-from-Javadocs-in-Maven-2.x-tf2344021.html#a6524500 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaCC plug-in and multiple grammar files
Hi All, I have multiple grammar files, each going into a different package. Therefore, I cannot specify either the output directory nor the package. I created the attached pom, but when maven generates the parser, all source codes go in the same generated-files directory. Looking at the code of the plug-in, it looks like it is a limitation in the plug-in (please forgive me if I am saying an heresy, it is the first time I see a mojo... :) ). Has anyone ever encountered the same problem? How did you fix it? Thanks in advance. Ste -- Stefano Fornari - Funambol Chief Architect / Funambol CTO === Home: http://www.funambol.org Documents: http://www.funambol.org/documentation/documents.html FAQ: http://www.funambol.org/support/faq.html WIKI: https://wiki.objectweb.org/sync4j/ Mailinglist archives: http://groups.yahoo.com/group/Sync4j (login required) http://sourceforge.net/mailarchive/forum.php?forum_id=215 (sync4j-users) http://sourceforge.net/mailarchive/forum.php?forum_id=48877 (funambol-dev) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] install4j plugin
Hi Ben, if not you can wrap the install4j thingie within an Maven build using +) maven-antrun-plugin +) build-helper-maven-plugin Cheers, Siegfried Goeschl ben short wrote: Hi, Anyone know if there is such a beast as an install4j plugin for maven? Regards Ben - 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]
Problems in command line arguments - internationalization?
Hi guys, I have this problem in Maven 2.0.4: *mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app* [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'com.mycompany.app': you must specify a valid lifecycle phas e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV ersion:goal [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Sep 27 10:18:45 BRT 2006 [INFO] Final Memory: 1M/3M [INFO] This machine use a Windows XP Professional SP2 Portuguese Brazilian. In the same machine, if i use this comand line: *mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app* * *[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] - --- [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] - --- [INFO] Setting property: classpath.resource.loader.class = ' org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.pr operties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime. resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLo aderResourceLoader [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 'V M_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 glob al in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: com.mycompany.app [INFO] - --- [INFO] Using following parameters for creating Archetype: maven-archetype-quicks tart:RELEASE [INFO] - --- [INFO] Parameter: groupId, Value: com.mycompany.app [INFO] Parameter: packageName, Value: com.mycompany.app [INFO] Parameter: basedir, Value: C:\projetos [INFO] Parameter: package, Value: com.mycompany.app [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: my-app [INFO] * End of debug info from resources from generated POM *** [INFO] Archetype created in dir: C:\projetos\my-app [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Sep 27 10:21:01 BRT 2006 [INFO] Final Memory: 4M/8M [INFO]
SV: Build errors
I bypassed the problem, replaced the two database.properties with two datasource-context.xml (imported into commons-config.xml) and typed the properties in for both test and main. It works well now and continuum gave me a big smile :-) Sure, why PropertyPlaceholderConfigurator fails I still do not know. -Ronny -Opprinnelig melding- Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] Sendt: 27. september 2006 12:17 Til: Maven Users List Emne: SV: Build errors Anyone got any tips for me about this issue? It is starting to become a showstopper. Continuum almost never have a successfully build anymore. The failure is always the same where the exception is: org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'dataSource' defined in class path resource [commons-context.xml]: Could not resolve placeholder 'jdbc.driverClassName' My common-context.xml (spring config) is located in common artifact. Other artifacts depends on this common artifact. Common-context.xml -- bean id=propertyConfigurator class=org.springframework.beans.factory.config.PropertyPlaceholderConfi gurer property name=locations list valuedatabase.properties/value valuetoolbox.properties/value /list /property /bean bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassName value${jdbc.driverClassName}/value /property property name=url value${jdbc.url}/value /property property name=username value${jdbc.username}/value /property property name=password value${jdbc.password}/value /property /bean Common artifact has two (2) resources named database.propeties. These files is located in main/resources and test/resources, where the one under test is the one used when testing (you did'nt see that comming did ya?). Database.properties (in test/resourses) --- jdbc.driverClassName=org.hsqldb.jdbcDriver jdbc.url=jdbc:hsqldb:file:../ansattportal-commons/hsqldb/ansattportal jdbc.username=sa jdbc.password= The commons pom.xml has test-jar goal so the dependent artifacts can include this test-jar file when running tests (scope=test). Now, when I try to test or install some of my artifacts that depend on common artifact I recive the error mentioned above. An as you can se a from my earlier posts its more or less random. Sometime it works sometime not. I am very much stuck on this matter and I could need a good tips in how to solve this problem. I am thinking that I might maybe hardcode two spring configs only containing the datasource part. One for test and one for main and that way skip the whole PropertyPlaceHolderConfigurer part that creates all this frustration. -Ronny -Opprinnelig melding- Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] Sendt: 25. september 2006 13:00 Til: Maven Users List Emne: SV: Build errors I have tried different things but no pattern is discovered. I am logged on the unix server that Continuum is running on. I then change directory to the artifact that fails. Things I have tried: mvn install - failure mvn clean - success mvn test- success mvn install - failure mvn install - failure mvn install - failure mvn test- failure mvn test- failure mvn clean test - failure mvn clean - success mvn test- success mvn clean - success mvn test- success mvn clean - success mvn test- success mvn clean test - failure mvn clean test - failure mvn clean test - failure mvn test- failure mvn test- failure mvn clean - success mvn test- success mvn test- failure mvn test- failure mvn clean - success mvn install - failure mvn clean - success mvn install - success mvn clean - success mvn install - failure mvn clean - success mvn install - failure mvn clean - success mvn install - success mvn clean - success mvn test- success mvn test- success What I can see so far. 'mvn clean test' always failure 'mvn clean' followed by 'mvn test' always success (however failed several times on my Win XP laptop) 'mvn test' followed by 'mvn test' sometimes success and sometimes failure 'mvn clean' followed by 'mvn install' sometimes success and sometimes failure Could it be that my pom has something that could give me the unstable pattern that is shown here? My pom.xml
proxying multiple repositories
Hello Archiva is now running fine for the default repository. I have configured 2 different repositories one for the internal artefacts and one for thirdparty artefacts that are currently not available in a maven repository. I have configured a profile in my settings.xml like this profile idRepository Proxy/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idmaven-release/id urlhttp://archiva:8080/archiva/proxy/maven_release/url /repository repository idinternal-release/id urlhttp://archiva:8080/archiva/proxy/internal_release/url /repository repository id3p-release/id urlhttp://archiva:8080/archiva/proxy/3p_release/url /repository /repositories /profile the first repository added after creating the admin was 'maven_release', and this is proxied to http://repo1.maven.org/maven2/ Artefacts in this repository will be found and can be accessed using the ../archiva/proxy/maven_release/.. but the artefacts in the other repositories are not delivered, does someone has a similar working setup ? tnx Daniel
Re: Wrong artifactHandler
add your vote to this jira http://jira.codehaus.org/browse/MNG-1682 in the mean while, have you tried setting your packaging extension as jar? -D On 9/27/06, Clement Escoffier [EMAIL PROTECTED] wrote: Hello, I am a strange problem with a plugin that I develop. This plugin do a bytecode manipulation of java classes during the packaging of the artifact. It works with simple project (non multi-module). Nevertheless, when I use my plugin inside a multi-module project, Maven does not use the good artifact handler. To trace the problem, I modify the install-plugin to display some info after the installation. To check the ArtifactHandler, I set the language to foo inside my plugin : component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintipojo-bundle/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler /implementation configuration typeipojo-bundle/type includesDependenciestrue/includesDependencies languagefoo/language extensionjar/extension addedToClasspathtrue/addedToClasspath /configuration /component When I launch mvn clean install on the single project I have the following result : ... [INFO] [install:install] [INFO] Installing F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : foo Artifact Handler Extension : jar Artifact Handler Packaging : ipojo-bundle So, it works in this case. But when I launch mvn clean install on the multi module project, the I have the following (strange) result : [INFO] Installing f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.ipojo-bundle Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : none Artifact Handler Extension : ipojo-bundle Artifact Handler Packaging : ipojo-bundle So, I think that when used in multi-module Maven does not use the good artifact handler. But how I can solve this problem ? Thank you very much for all ideas Clement Escoffier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
the default central repository for maven 2 is not ibiblio?
Hi, I thought the major central repository for maven 2 is http://www.ibiblio.org/maven2 but in fact the hard-coded central repository is http://repo1.maven.org/maven2. And I have to specify the ibiblio one as a mirror if I want to use it. Is it meant to be like that? or is it a bug to fix? Cheers, Louis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-native-plugin long command lines and individual files ...
that portion of unused code has been removed -D On 9/26/06, Brad Harper [EMAIL PROTECTED] wrote: Anyone: Was this question (below) ever addressed? It didn't appear so. I looked at the source at http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/maven-native/maven-native-api/src/main/java/org/codehaus/mojo/natives/NativeSources.java?r=435 and noted the method public static File [] getAllSourceFilesWithExtensionTranslation( NativeSources [] sources, String extension ) { ... } but it isn't clear what the plugin configurationsources element would look like. Thanks. Brad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 1:58 AM To: Maven Users List Subject: maven-native-plugin long command lines and individual files ... does the native plugin always want files specified individually? AFAICT I have to do this ... source directory${generated.native.source.dir}/directory fileNames fileNamedevices.c/fileName fileNameerrors.c/fileName /fileNames /source source directory${basedir}/src/main/c/directory fileNames fileNameavrprog.c/fileName fileNamehpl_bootloader.c/fileName etc etc rather than *.c The end result is that my final link line end up being too long for the Windows command processor after it has passed each file with a fully qualified path name to the linker Error is : The following character string is too long: -mmcu=atmega128 -gstabs -Wl,-T,C:\projects\linkages\avr\ExeStatic/src/main/conf/avr5_ext.x -Wl,-Map,ExeStatic.map -Wl,--defsym=__heap_start=0x804000 -Wl,--defsym=__heap_end=0x80-Wl,--section-start=.jumptable=0x1efe8 -o C:\projects\linkages\avr\ExeStatic\ges\avr\ExeStatic\target\hp l_coreio.objC:\projects\linkages\avr\ExeStatic\target\hpl_debu gprot.obj C:\projects\linkages\avr\ExeStatic\target\hpl_ds1602.obj C:\projects\linkages\avr\ExeStatic\target\hpl_eeprom.obj C:\projects\linkages\avr\ExeStatic\target\hpl_flash.obj C:\projects\linkages\avr\ExeStatic\target\hpl_meminit.objC:\pr ojects\linkages\avr\ExeStatic\target\hpl_misc.obj C:\projects\linkages\avr\ExeStatic\target\hpl_power.objC:\proj ects\linkages\avr\ExeStatic\target\hpl_radio.obj C:\projects\linkages\avr\ExeStatic\target\hpl_radioctl.objC:\p rojects\linkages\avr\ExeStatic\target\hpl_reset.obj C:\projects\linkages\avr\ExeStatic\target\hpl_serial.objC:\pro jects\linkages\avr\ExeStatic\target\hpl_spi.obj C:\projects\linkages\avr\ExeStatic\target\hpl_timer.obj [snip] Is there any way to avoid this, I'd rather not have to beak it up into separate libraries just to get it to link Thanks - 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: Wrong artifactHandler
dan tran a écrit : add your vote to this jira http://jira.codehaus.org/browse/MNG-1682 in the mean while, have you tried setting your packaging extension as jar? Yes I do, but it does not work. -D On 9/27/06, Clement Escoffier [EMAIL PROTECTED] wrote: Hello, I am a strange problem with a plugin that I develop. This plugin do a bytecode manipulation of java classes during the packaging of the artifact. It works with simple project (non multi-module). Nevertheless, when I use my plugin inside a multi-module project, Maven does not use the good artifact handler. To trace the problem, I modify the install-plugin to display some info after the installation. To check the ArtifactHandler, I set the language to foo inside my plugin : component roleorg.apache.maven.artifact.handler.ArtifactHandler/role role-hintipojo-bundle/role-hint implementationorg.apache.maven.artifact.handler.DefaultArtifactHandler /implementation configuration typeipojo-bundle/type includesDependenciestrue/includesDependencies languagefoo/language extensionjar/extension addedToClasspathtrue/addedToClasspath /configuration /component When I launch mvn clean install on the single project I have the following result : ... [INFO] [install:install] [INFO] Installing F:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : foo Artifact Handler Extension : jar Artifact Handler Packaging : ipojo-bundle So, it works in this case. But when I launch mvn clean install on the multi module project, the I have the following (strange) result : [INFO] Installing f:\workspaces\Felix\ipojo.arch\target\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.jar to F:\mvn_repository\org\apache\felix\org.apache.felix.ipojo.arch\0.6.0-SNAPSHOT\org.apache.felix.ipojo.arch- 0.6.0-SNAPSHOT.ipojo-bundle Artifact Type : ipojo-bundle Packaging : ipojo-bundle Language : none Artifact Handler Extension : ipojo-bundle Artifact Handler Packaging : ipojo-bundle So, I think that when used in multi-module Maven does not use the good artifact handler. But how I can solve this problem ? Thank you very much for all ideas Clement Escoffier - 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: JavaCC plug-in and multiple grammar files
Hi did not find your attached pom. You can however run the javacc plugin multiple times with different configurations (output dir/package). Regards Mark Donszelmann On Sep 27, 2006, at 4:10 AM, Stefano Fornari wrote: Hi All, I have multiple grammar files, each going into a different package. Therefore, I cannot specify either the output directory nor the package. I created the attached pom, but when maven generates the parser, all source codes go in the same generated-files directory. Looking at the code of the plug-in, it looks like it is a limitation in the plug-in (please forgive me if I am saying an heresy, it is the first time I see a mojo... :) ). Has anyone ever encountered the same problem? How did you fix it? Thanks in advance. Ste -- Stefano Fornari - Funambol Chief Architect / Funambol CTO === Home: http://www.funambol.org Documents: http://www.funambol.org/documentation/documents.html FAQ: http://www.funambol.org/support/faq.html WIKI: https://wiki.objectweb.org/sync4j/ Mailinglist archives: http://groups.yahoo.com/group/Sync4j (login required) http://sourceforge.net/mailarchive/forum.php?forum_id=215 (sync4j- users) http://sourceforge.net/mailarchive/forum.php?forum_id=48877 (funambol-dev) - 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]
archetype plugin can't fetch archetype from my own repository
Hi, I create my own artifacts and archetypes, and deploy them into my own repository. The repository is specified in settings.xml. Maven can get artifacts from the repository, but not the archetype: mvn archetype:create -DgroupId=helloworld -DartifactId=helloworld -DarchetypeGroupId=uk.ac.ncl.cs.instantsoap -DarchetypeArtifactId=archetype-escience-tool -DarchetypeVersion=1.0-SNAPSHOT the error message is as follows: === [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: uk.ac.ncl.cs.instantsoap ArtifactId: archetype-escience-tool Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=uk.ac.ncl.cs.instantsoap -DartifactId=archetype-escience-tool \ -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file uk.ac.ncl.cs.instantsoap:archetype-escience-tool:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) === However, when I specified -DremorteRepositories=http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot; It works properly. I think it's because maven does not use the repositories specified in settings.xml when fetching archetypes. My settings.xml is as follows: === profiles profile idinstantsoap/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idcodehaus/id nameCodehaus maven repository/name urlhttp://repository.codehaus.org//url /repository repository idinstantsoap-snapshot/id urlhttp://deanmoor.ncl.ac.uk/fluxions/repo-snapshot/url /repository repository idinstantsoap/id urlhttp://deanmoor.ncl.ac.uk/fluxions/repo/url /repository /repositories profile /profiles == Cheers, Louis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archetype plugin can't fetch archetype from my own repository
On 9/27/06, Cheng-Yang.Tang [EMAIL PROTECTED] wrote: I create my own artifacts and archetypes, and deploy them into my own repository. The repository is specified in settings.xml. Maven can get artifacts from the repository, but not the archetype: ... However, when I specified -DremorteRepositories=http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot; It works properly. I think it's because maven does not use the repositories specified in settings.xml when fetching archetypes. Correct. The 'remoteRepositories' attribute was added in response to this issue: http://jira.codehaus.org/browse/ARCHETYPE-1 If you search the list archives for posts from Jason van Zyl, I'm pretty sure he explained why Archetype does not use settings.xml. I don't remember if this is something that will be changed in the future or if it's like that for a reason. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependency management
Hi, I have a few questions about modules and dependencies. Does the order of modules listed in the parent pom.xml matter? For example, if C depends on A and B depends on C, then the correct order would be:A, C B moduleA/module moduleC/module moduleB/module If I specify instead moduleA/module moduleB/module moduleC/module, will Maven pick up the right dependency order and build as if I had written A,C,B? As for my second question, if I declare a dependency in a project, will that artifact be automatically built and deployed to maven repo so that it would be picked up for build? For example, if I declare: dependency groupIdb/groupId artifactIda/artifactId version1.0/version /dependency Will Maven go and build a for me or do I need to include a as a submodule? 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]
release:perform using clearcase-scm
Hello, I'm experimenting with the release-plugin of maven using scm:clearcase at the moment. I finally got to a point, where the snapshot view is successfully created, and the originally started mvn release:perform calls mvn deploy site-deploy --no-plugin-updates -DperformRelease=true which fails (Error stacktraces at the end of this message) If I run mvn deploy site-deploy -no-plugin-updates in the snapshot view that maven creates directly in the right path, it works without any problem, so I guess the problem is that mvn release:perform executes mvn deploy site-deploy in the wrong place/path. I would be glad if anyone could help me with this. Greets, Ulli Brennenstuhl [INFO] Executing: mvn deploy site-deploy --no-plugin-updates -DperformRelease=true + Error stacktraces are turned on. Maven version: 2.0.4 [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und Einstellungen\brennenu\.m2\plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: 'C:\Programme\Maven\bin\..\conf\plugin-registry.xml' [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [deploy, site-deploy] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-surefire-plugin:maven-plugin:2.2 from t he repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-jar-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::3 for project: null:maven-jar-plugin:maven-plugin:2.1 from the re pository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project: org.apache.maven.plugins:maven-plugins:pom:3 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:4 from the repository. [DEBUG] maven-install-plugin: resolved to version 2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-install-plugin:maven-plugin:2.1 from the repository. [DEBUG] maven-deploy-plugin: resolved to version 2.2.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-deploy-plugin:maven-plugin:2.2.1 from t he repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-javadoc-plugin: resolved to version 2.0 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-javadoc-plugin:maven-plugin:2.0 from th e repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repos itory. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository. [DEBUG] maven-source-plugin: resolved to version 2.0.1 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-source-plugin:maven-plugin:2.0.1 from t he repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1
maven-native-plugin always re-runs native:link
Have I mis-configured the native:link goal? The maven-native-plugin /always/ re-links even when all of the .o files are up to date. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: passing along maven built classpath to ant plugin
Can I get access to the localRepository variable in the same fashion? Is there something like project.localRepository or maven.localRepository? We're using a different location for the repository as configured in our settings.xml file. -Original Message- From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 4:36 PM To: Maven Users List Subject: Re: passing along maven built classpath to ant plugin Yup, you can use these classpaths: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Zarar On 9/26/06, EJ Ciramella [EMAIL PROTECTED] wrote: Is there some easy way to do something like ${project.classpath} and have that passed along to my plugin? - 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]
Create an aggregate jar merging XML descriptor files?
In Maven 2, how do I create an aggregate jar of a given number of dependencies, but merge their XML configuration files? For the merge, I was thinking of using chained N-1 XSLT transformations. The single jar I understand through an assembly and unpack, but how do I run code to process the unpacked files before they are combined into the single jar? Thanks, Don - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: passing along maven built classpath to ant plugin
you can use ${settings.localRepository} Thanks, Raghurajan Gurunathan EJ Ciramella [EMAIL PROTECTED] 09/27/2006 11:36 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:RE: passing along maven built classpath to ant plugin Can I get access to the localRepository variable in the same fashion? Is there something like project.localRepository or maven.localRepository? We're using a different location for the repository as configured in our settings.xml file. } -Original Message- From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 4:36 PM To: Maven Users List Subject: Re: passing along maven built classpath to ant plugin Yup, you can use these classpaths: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Zarar On 9/26/06, EJ Ciramella [EMAIL PROTECTED] wrote: Is there some easy way to do something like ${project.classpath} and have that passed along to my plugin? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Re: maven-native-plugin always re-runs native:link
yes, the link state always relink, just like java( jar ) packaging. -D On 9/27/06, Brad Harper [EMAIL PROTECTED] wrote: Have I mis-configured the native:link goal? The maven-native-plugin /always/ re-links even when all of the .o files are up to date. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: passing along maven built classpath to ant plugin
I keep getting this: E:\work\up-svcs\lty\proj\LTY-P39\${settings.localRepository} not found. How come this isn't getting expanded? I'm trying to write a findbugs ant plugin and attempting to load some stuff out of there. I have the following in my mojo: parameter namelocalRepository/name propertylocalRepository/property requiredtrue/required expression${settings.localRepository}/expression typejava.lang.String/type descriptionThis is the location of your local repository/description /parameter And the following in my findbugs.build.xml: ... fileset dir=${settings.localRepository} casesensitive=yes ... And finally the following in my pom.xml where I have this plugin configured: configuration findbugs.home${findbugs.home}/findbugs.home localRepository${settings.localRepository}/localRepository /configuration Thanks for the quick response! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 12:45 PM To: Maven Users List Cc: Maven Users List Subject: RE: passing along maven built classpath to ant plugin you can use ${settings.localRepository} Thanks, Raghurajan Gurunathan EJ Ciramella [EMAIL PROTECTED] 09/27/2006 11:36 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:RE: passing along maven built classpath to ant plugin Can I get access to the localRepository variable in the same fashion? Is there something like project.localRepository or maven.localRepository? We're using a different location for the repository as configured in our settings.xml file. } -Original Message- From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 4:36 PM To: Maven Users List Subject: Re: passing along maven built classpath to ant plugin Yup, you can use these classpaths: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Zarar On 9/26/06, EJ Ciramella [EMAIL PROTECTED] wrote: Is there some easy way to do something like ${project.classpath} and have that passed along to my plugin? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: the default central repository for maven 2 is not ibiblio?
Hi Louis, http://repo1.maven.org/maven2/ is the official URL, but was once redirected to www.ibiblio.org/maven2/ . AFAIK, both repos are identical, so you don't need to specify any mirror. Though, if you want to use mirrors, you can check those : http://maven.apache.org/guides/mini/guide-mirror-settings.html - Yann 2006/9/27, Cheng-Yang.Tang [EMAIL PROTECTED]: Hi, I thought the major central repository for maven 2 is http://www.ibiblio.org/maven2 but in fact the hard-coded central repository is http://repo1.maven.org/maven2. And I have to specify the ibiblio one as a mirror if I want to use it. Is it meant to be like that? or is it a bug to fix? Cheers, Louis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: passing along maven built classpath to ant plugin
Nvm - I realized only after I sent this that the property needs to be settings.localRepository, not localRepository. Ok, I'm moving along now... -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 12:55 PM To: Maven Users List Subject: RE: passing along maven built classpath to ant plugin I keep getting this: E:\work\up-svcs\lty\proj\LTY-P39\${settings.localRepository} not found. How come this isn't getting expanded? I'm trying to write a findbugs ant plugin and attempting to load some stuff out of there. I have the following in my mojo: parameter namelocalRepository/name propertylocalRepository/property requiredtrue/required expression${settings.localRepository}/expression typejava.lang.String/type descriptionThis is the location of your local repository/description /parameter And the following in my findbugs.build.xml: ... fileset dir=${settings.localRepository} casesensitive=yes ... And finally the following in my pom.xml where I have this plugin configured: configuration findbugs.home${findbugs.home}/findbugs.home localRepository${settings.localRepository}/localRepository /configuration Thanks for the quick response! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 12:45 PM To: Maven Users List Cc: Maven Users List Subject: RE: passing along maven built classpath to ant plugin you can use ${settings.localRepository} Thanks, Raghurajan Gurunathan EJ Ciramella [EMAIL PROTECTED] 09/27/2006 11:36 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:RE: passing along maven built classpath to ant plugin Can I get access to the localRepository variable in the same fashion? Is there something like project.localRepository or maven.localRepository? We're using a different location for the repository as configured in our settings.xml file. } -Original Message- From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 4:36 PM To: Maven Users List Subject: Re: passing along maven built classpath to ant plugin Yup, you can use these classpaths: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html Zarar On 9/26/06, EJ Ciramella [EMAIL PROTECTED] wrote: Is there some easy way to do something like ${project.classpath} and have that passed along to my plugin? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency management
Hi Alexander, 2006/9/27, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]: Hi, I have a few questions about modules and dependencies. Does the order of modules listed in the parent pom.xml matter? For example, if C depends on A and B depends on C, then the correct order would be:A, C B moduleA/module moduleC/module moduleB/module If I specify instead moduleA/module moduleB/module moduleC/module, will Maven pick up the right dependency order and build as if I had written A,C,B? Order doesn't matter, Maven does well. But you could simply try. ^_^ As for my second question, if I declare a dependency in a project, will that artifact be automatically built and deployed to maven repo so that it would be picked up for build? For example, if I declare: dependency groupIdb/groupId artifactIda/artifactId version1.0/version /dependency Will Maven go and build a for me or do I need to include a as a submodule? Thanks. Maven won't build it - if your dependency was Spring, Maven wouldn't build Spring. So, yes, you need to include a as a submodule. HTH, - Yann 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] Mirror
Or as an alternative, you can look for Proximity: http://proximity.abstracthorizon.org/ ~t~ On 9/26/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi Johan, Try rsync -rlHtSv [EMAIL PROTECTED]::maven2 /var/www/maven2 where /var/www/maven2 is the location where you want to put the files. You would then have to make the location available over HTTP. I am trying this command but I have some trouble with the corporate security and proxy. I will also try archiva ( http://maven.apache.org/archiva/maven-repository-utils/index.html) Many thanks, Rémy
Re: maven-native-plugin always re-runs native:link
Feel free to file jira, but i dont think you gain much performance on this feature. -D On 9/27/06, dan tran [EMAIL PROTECTED] wrote: yes, the link state always relink, just like java( jar ) packaging. -D On 9/27/06, Brad Harper [EMAIL PROTECTED] wrote: Have I mis-configured the native:link goal? The maven-native-plugin /always/ re-links even when all of the .o files are up to date. Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repository configuration
Hi all, I have a security question. I would like to set up a repository on the net for a side project some friends and I are working on. However I don't want the uploaded artifacts to be available to the public. Is it possible to secure the repository with a .htaccess file, and enter the user name and password into settings.xml? Thanks, Todd
Re: the default central repository for maven 2 is not ibiblio?
Hi Yann, Thanks very much for your explanation. Louis On Wed, 2006-09-27 at 18:56 +0200, Yann Le Du wrote: Hi Louis, http://repo1.maven.org/maven2/ is the official URL, but was once redirected to www.ibiblio.org/maven2/ . AFAIK, both repos are identical, so you don't need to specify any mirror. Though, if you want to use mirrors, you can check those : http://maven.apache.org/guides/mini/guide-mirror-settings.html - Yann 2006/9/27, Cheng-Yang.Tang [EMAIL PROTECTED]: Hi, I thought the major central repository for maven 2 is http://www.ibiblio.org/maven2 but in fact the hard-coded central repository is http://repo1.maven.org/maven2. And I have to specify the ibiblio one as a mirror if I want to use it. Is it meant to be like that? or is it a bug to fix? Cheers, Louis - 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: archetype plugin can't fetch archetype from my own repository
Hi Wendy, Thanks very much for your explanation. Louis On Wed, 2006-09-27 at 07:44 -0700, Wendy Smoak wrote: On 9/27/06, Cheng-Yang.Tang [EMAIL PROTECTED] wrote: I create my own artifacts and archetypes, and deploy them into my own repository. The repository is specified in settings.xml. Maven can get artifacts from the repository, but not the archetype: ... However, when I specified -DremorteRepositories=http://deanmoor.ncl.ac.uk/fluxions/repo-snapshot; It works properly. I think it's because maven does not use the repositories specified in settings.xml when fetching archetypes. Correct. The 'remoteRepositories' attribute was added in response to this issue: http://jira.codehaus.org/browse/ARCHETYPE-1 If you search the list archives for posts from Jason van Zyl, I'm pretty sure he explained why Archetype does not use settings.xml. I don't remember if this is something that will be changed in the future or if it's like that for a reason. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: M2 EJB plugin
Which version of the plugin? I think you have to use 2.1 which I believe is still a SNAPSHOT. -Original Message- From: alonso [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 4:23 AM To: users@maven.apache.org Subject: M2 EJB plugin Hi there, I'm trying to package an EJB 3.0 module using the maven-ejb-plugin for Maven 2.x. The problem is that when the plugin tries to package the jar archive, it fails because it can't find the META-INF/ejb-jar.xml file. The point is that I'm using EJB 3.0 and I don't need that file. Here is an extract from my pom.xml file: nameERS Platform - Model Layer/name artifactIdersplatform-model/artifactId groupIdcom.social_labs.ers.platform/groupId packagingejb/packaging . build plugins plugin artifactIdmaven-ejb-plugin/artifactId groupIdorg.apache.maven.plugins/groupId configuration ejbVersion3.0/ejbVersion /configuration /plugin /plugins /build The mvn's output when I run mvn install is as follows: [INFO] [ejb:ejb] [INFO] Building ejb ersplatform-model-1.0-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling EJB Embedded error: C:\fuentes\projects\ERS\platform\model\target\classes\META-INF\e jb-jar.xml isn't a file. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Wed Sep 27 10:50:42 CEST 2006 [INFO] Final Memory: 5M/11M [INFO] Does anyone know where is the problem? Regards, Alonso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multimodule builds with same-named sub-modules
Hi everyone. I have two projects which are modules of a parent project. These projects have modules that are named the same. When run separate, the builds for the projects work fine. However, when run from the parent, [INFO] Project 'a:a' is duplicated in the reactor is produced. Here is what I have -Parent -pom.xml moduleA/module moduleB/module -A -pom.xml modulea/module -a -pom.xml -B -pom.xml modulea/module -a -pom.xml I tried defining the modules with relative references to the parent to avoid duplicate module definitions, but this did not solve the problem. Please suggest what I can do. 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: Multimodule builds with same-named sub-modules
Hi Alexander Your problem does not belong to where are exactly located your projects on your filesystem. Your problem is that you have define two projects with the same groupId and artifactId. In maven there must be unicity between a project and it name which is composed on groupId, artifactId and version. (not sure for the version) To correct your problem, please modify the sub-sub-projects artifactIds. Hope this helps. Raphaël Morgovsky, Alexander (US - Glen Mills) a écrit : Hi everyone. I have two projects which are modules of a parent project. These projects have modules that are named the same. When run separate, the builds for the projects work fine. However, when run from the parent, [INFO] Project 'a:a' is duplicated in the reactor is produced. Here is what I have -Parent -pom.xml moduleA/module moduleB/module -A -pom.xml modulea/module -a -pom.xml -B -pom.xml modulea/module -a -pom.xml I tried defining the modules with relative references to the parent to avoid duplicate module definitions, but this did not solve the problem. Please suggest what I can do. 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Repository configuration
I think you cross reference by the id, although I've never done this before. If this isn't implemented, it's definitely a good idea and worthy of a JIRA ticket. mirror -- idextranet.repo/id mirrorOfsnapshots/mirrorOf nameProject Snapshots/name urlhttp://./maven2//url /mirror server -- idextranet.repo/id usernamename/username passwordpass/password /server kris bravo -Original Message- From: Todd Nine [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 1:43 PM To: users@maven.apache.org Subject: Repository configuration Hi all, I have a security question. I would like to set up a repository on the net for a side project some friends and I are working on. However I don't want the uploaded artifacts to be available to the public. Is it possible to secure the repository with a .htaccess file, and enter the user name and password into settings.xml? Thanks, Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: War: Exclude A Transitive Dependency
That only works for war overlay right? This is a war with jar deps. I am picking up the j2ee.jar through a jar dep. I want it at compile time but I don't want it in my war. I think the only solution is to duplicate the transitivbe dependency in the local project and mark it provided. -Original Message- From: franz see [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 10:16 PM To: users@maven.apache.org Subject: Re: War: Exclude A Transitive Dependency Douglas Ferguson wrote: I have a project that generates a war file, the j2ee jar is inheritented as a transitive dependency, however if the j2ee jar is included, then tomcat prints a warning but websphere refuses to deploy. Is there anyway to tell the war plugin not to include this lib? I know I could mark the dependency as provided but I thought I would see if there is a more elegant way to do this without having to specify a version that I could obtain transitively. D- Good day to you, Douglas, You can try and add the paths (relative paths), of those jars that you don't want to get included to your warDependencyExcludes (comma separated). For more info, please see [1] Configuring the war-overlay section. However, [1] is not yet released. But please feel free to let us know what you think so that we can improve it. Thanks, Franz [1] http://people.apache.org/~vsiveton/maven-war-plugin/examples/war-overlay.html -- View this message in context: http://www.nabble.com/War%3A-Exclude-A-Transitive-Dependency-tf2340250.html#a6519812 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Uploading multiproject to central repo: Packaging cannot be POM when creating an upload bundle.
We 'll wait with pushing Spring-richclient to Ibiblio till http://jira.codehaus.org/browse/MREPOSITORY-3 is fixed. (Anyone else is free to push it up there though) With kind regards, Geoffrey De Smet Geoffrey De Smet wrote: We 'd like to get spring-richclient 0.2.1 (build with m2) on the central repo. We have it deployed in our repo: http://spring-rich-c.sourceforge.net/maven2repository/org/springframework/richclient/ and we have the source here: https://svn.sourceforge.net/svnroot/spring-rich-c/tags/spring-richclient-0.2.1/ So I followed Guide to uploading artifacts to Ibiblio from http://maven.apache.org/guides/mini/guide-ibiblio-upload.html but as soon as I did mvn source:jar javadoc:jar repository:bundle-create I got this error: Packaging cannot be POM when creating an upload bundle. which is probably related to this bug: http://jira.codehaus.org/browse/MREPOSITORY-3 so what's the easiest way to get spring-richclient on the central repo? - ask for a sync from our repo? is that possible? - mess around with manually doing each module (which are a lot...) and do the parent pom's also manually? - Just wait till MREPOSITORY-3 is fixed and then do it (even it's just a snapshot)? - Will Archiva help in this in any way in the future? Thanks for any and all help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
packaging for projects that do not produce artifacts
Hi I am not sure whether this question is in agreement with the Maven paradigm. I want to have a Maven project that only deploys an application. Therefore, I can create a plugin that does the job. But packaging still has to be set to something even if the output (an empty jar) is thrown away. What is the best way to set up such projects? Thanks. Janos Mucsi 415-422-1692
Re: packaging for projects that do not produce artifacts
configure the project's packaging as pom, then only pom is deployed. -D On 9/27/06, Janos Mucsi [EMAIL PROTECTED] wrote: Hi I am not sure whether this question is in agreement with the Maven paradigm. I want to have a Maven project that only deploys an application. Therefore, I can create a plugin that does the job. But packaging still has to be set to something even if the output (an empty jar) is thrown away. What is the best way to set up such projects? Thanks. Janos Mucsi 415-422-1692
Re: Creating a Java application
On 26/09/06, Xavier Toth [EMAIL PROTECTED] wrote: Great, do you have a url for appassembler? http://mojo.codehaus.org/appassembler-maven-plugin/ On 9/25/06, Kaare Nilsen [EMAIL PROTECTED] wrote: check out the appassembler plugin in the mojo project, works great /Kaare On 25/09/06, Xavier Toth [EMAIL PROTECTED] wrote: I want to do the same thing so I'm looking at using http://one-jar.sourceforge.net/ and building a jar as per its' docs. However, I'm looking for more extensive docs for the jar plugin version 2.1 inorder to do this job. On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Alexandre! POMStrap is great. I'll sure use it a lot for development purposes. However, what I'd like is to package an application and then distribute it (without requiring users to have Maven installed). Let's say I've written a cool application. You download it. You have Java on your machine. You unzip and run it. -Original Message- From: Alexandre Russel [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 5:14 PM To: Maven Users List Subject: Re: Creating a Java application Do you know POMStrap ? http://pomstrap.prefetch.com/en/index.xml Commande Line Interface POMStrap can work as an application bootstrap. It just requires a pom file (Maven 2 project file) and a class/method to fetch all required dependencies and launch the application using a command line syntax such as: java -jar pomstrap-1.0.4.jar groupId:artifact:version classname[:method] [method args] for example: java -jar pomstrap-1.0.4.jar pomstrap:testApp:1.0 com.prefetch.pomstrap.App:run If no method is provided it will try to start the classical java static main method. On Thursday 21 September 2006 10:44, [EMAIL PROTECTED] wrote: 10x Martin. The assembly plugin just bundles binaries and (optionally) sources. What I'd like is something that I can open and execute. For example, uberjar bundles the java application, along with all its dependencies into one executable jar (you need only to specify in your project properties what is the main class). When you execute the jar - the application opens. As I understood from the assembly plugin site, it is not built to do such things. Please inform me if I missed something. -Original Message- From: Martin Gilday [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 11:32 AM To: Maven Users List Subject: Re: Creating a Java application I think you need the Assembly plugin http://maven.apache.org/plugins/maven-assembly-plugin/introduction.html HTH, Martin. - Original message - From: [EMAIL PROTECTED] To: users@maven.apache.org Date: Thu, 21 Sep 2006 04:22:57 -0400 Subject: Creating a Java application I know of two plugins for the purpose of creating a Java application (i.e. something that packages an application along with it's dependencies): 1. uberjar 2. javaapp However, both of them look like history. Does anyone know of such a plugin that works with Maven2 ? Thanks ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
All files not being copied when deploying
Hi, I have a web application and when I deploy, only some of my files are being copied from my webapp directory to the target directory. I get the following error which makes sense as the files are not being copied. [INFO] [war:war] [INFO] Exploding webapp... [INFO] Copy webapp webResources to D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal [INFO] Assembling webapp ManagementPortal in D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal [INFO] Generating war D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal.war [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error assembling WAR: Deployment descriptor: D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal\ -INF\web.xml does not exist. Why are some and not all of the files being copied? I am new to maven and would appreciate any help in understanding why this is happening. Thanks in advance. Tom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: All files not being copied when deploying
On 9/27/06, Tom Hurley [EMAIL PROTECTED] wrote: I have a web application and when I deploy, only some of my files are being copied from my webapp directory to the target directory. I get the following error which makes sense as the files are not being copied. ... [INFO] Error assembling WAR: Deployment descriptor: D:\maven\rainier\IDRS\client\ManagementPortal\target\ManagementPortal\ -INF\web.xml does not exist. Why are some and not all of the files being copied? I am new to maven and would appreciate any help in understanding why this is happening. Where is the web.xml file in your source code for your project? Normally, it would be in project/src/main/webapp/WEB-INF/web.xml . If it's somewhere else, you'll have to tell Maven where that is, probably by configuring the war plugin. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Repository configuration
Unfortunately I don't think this exists, I receive the following error Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://maven.nineconsulting.net/org/apache/maven/wagon/wagon-ftp/1.0-alpha-6/wagon-ftp-1.0-alpha-6.pom at sun.net.www.protocol.http.HttpURLConnection.getInputStream( HttpURLConnection.java:814) at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData( LightweightHttpWagon.java:85) ... 28 more with the following in my settings.xml server idmaven2/id usernamemaven/username passwordfoo/password /server repositories repository releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots idmaven2/id nameMaven Nineconsulting repository/name url http://maven.nineconsulting.net /url layoutdefault/layout /repository /repositories It looks like I'll need to submit a jira request. I think this is a bug. If you take a look at the source for the lightweight http wagon here http://svn.apache.org/viewvc/maven/wagon/tags/wagon-1.0-alpha-6/wagon-providers/wagon-http-lightweight/src/main/java/org/apache/maven/wagon/providers/http/LightweightHttpWagon.java?revision=368228view=markup You can see that authenticationInfo should not be null, and it should be used in the openConnection method. I'm guessing its not being set from settings.xml. Toodd On 9/27/06, Bravo, Kris [EMAIL PROTECTED] wrote: I think you cross reference by the id, although I've never done this before. If this isn't implemented, it's definitely a good idea and worthy of a JIRA ticket. mirror -- idextranet.repo/id mirrorOfsnapshots/mirrorOf nameProject Snapshots/name urlhttp://./maven2//url /mirror server -- idextranet.repo/id usernamename/username passwordpass/password /server kris bravo -Original Message- From: Todd Nine [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 1:43 PM To: users@maven.apache.org Subject: Repository configuration Hi all, I have a security question. I would like to set up a repository on the net for a side project some friends and I are working on. However I don't want the uploaded artifacts to be available to the public. Is it possible to secure the repository with a .htaccess file, and enter the user name and password into settings.xml? Thanks, Todd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2] Mirror
Hi Remy, I would seriously question the need to get a mirror of central. For one thing, it's 5GB. Secondly you would never use it all. You would probably use a small fraction (ie at most 10%). As suggested by Tamás Cservenák, you should consider using proximity. It works like central and will hold only what you require. Thanks Lakshman -Original Message- From: Tamás Cservenák [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 September 2006 3:10 AM To: Maven Users List Subject: Re: [M2] Mirror Or as an alternative, you can look for Proximity: http://proximity.abstracthorizon.org/ ~t~ On 9/26/06, Rémy Sanlaville [EMAIL PROTECTED] wrote: Hi Johan, Try rsync -rlHtSv [EMAIL PROTECTED]::maven2 /var/www/maven2 where /var/www/maven2 is the location where you want to put the files. You would then have to make the location available over HTTP. I am trying this command but I have some trouble with the corporate security and proxy. I will also try archiva ( http://maven.apache.org/archiva/maven-repository-utils/index.html) Many thanks, Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency management
Hi Alexander Yann I believe if you declare a dependency and don't have it specified as a module, maven will try and download it from the repository. Thanks Lakshman -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 September 2006 3:05 AM To: Maven Users List Subject: Re: Dependency management Hi Alexander, 2006/9/27, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]: Hi, I have a few questions about modules and dependencies. Does the order of modules listed in the parent pom.xml matter? For example, if C depends on A and B depends on C, then the correct order would be:A, C B moduleA/module moduleC/module moduleB/module If I specify instead moduleA/module moduleB/module moduleC/module, will Maven pick up the right dependency order and build as if I had written A,C,B? Order doesn't matter, Maven does well. But you could simply try. ^_^ As for my second question, if I declare a dependency in a project, will that artifact be automatically built and deployed to maven repo so that it would be picked up for build? For example, if I declare: dependency groupIdb/groupId artifactIda/artifactId version1.0/version /dependency Will Maven go and build a for me or do I need to include a as a submodule? Thanks. Maven won't build it - if your dependency was Spring, Maven wouldn't build Spring. So, yes, you need to include a as a submodule. HTH, - Yann 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency management
I think that's exactly what Yann said :) if it is only a dependency but not a module, maven will NOT build it. It will download from repository (either local or remote) instead. Adrian Shum -Original Message- From: Lakshman Srilakshmanan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 11:13 AM To: Maven Users List Subject: RE: Dependency management Hi Alexander Yann I believe if you declare a dependency and don't have it specified as a module, maven will try and download it from the repository. Thanks Lakshman -Original Message- From: Yann Le Du [mailto:[EMAIL PROTECTED] Sent: Thursday, 28 September 2006 3:05 AM To: Maven Users List Subject: Re: Dependency management Hi Alexander, 2006/9/27, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED]: Hi, I have a few questions about modules and dependencies. Does the order of modules listed in the parent pom.xml matter? For example, if C depends on A and B depends on C, then the correct order would be:A, C B moduleA/module moduleC/module moduleB/module If I specify instead moduleA/module moduleB/module moduleC/module, will Maven pick up the right dependency order and build as if I had written A,C,B? Order doesn't matter, Maven does well. But you could simply try. ^_^ As for my second question, if I declare a dependency in a project, will that artifact be automatically built and deployed to maven repo so that it would be picked up for build? For example, if I declare: dependency groupIdb/groupId artifactIda/artifactId version1.0/version /dependency Will Maven go and build a for me or do I need to include a as a submodule? Thanks. Maven won't build it - if your dependency was Spring, Maven wouldn't build Spring. So, yes, you need to include a as a submodule. HTH, - Yann 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the intended recipient, please delete it from your system and notify the sender immediately. Any unauthorized use, disclosure, dissemination or copying of this email is prohibited. Taifook Securities Group, its group companies and their content providers (Parties) shall not be responsible for the accuracy or completeness of this email or its attachment, if any, which could contain virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. The Parites do not accept liability for any damage caused by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting error in running maven
I noticed that I had the same error when by mistake putting the intstr tag twice inside of emma, and trying to point to a path using the instrpathref attrib instead of instrpath : emma enabled=${emma.enabled} instr instrpathref=${build.exploded.dir}/WEB-INF/classes !-- always exclude every class with a Test in the name: -- filter excludes=*Test* / filter includes=com.redwoodtrust.action / /instr instr instrpathref=${build.exploded.dir}/WEB-INF/classes !-- always exclude every class with a Test in the name: -- filter excludes=*Test* / filter includes=com.redwoodtrust.action / /instr /emma Once I fixed those errors, the problem went away. antonyarund wrote: Hi, I have integerated maven-1.0.2 plugin to IBM Rational Software Development Platform. When I try to run maven from the IDE for a project I am getting the following message. emma:instr: [echo] Performing Emma instrumentation processing instrumentation path ... BUILD FAILED File.. C:\Documents and Settings\d.antonyarun\.maven\cache\maven-emma-plugin-0.6\plugin.jelly Element... ant:emma Line.. 189 Column 15 SECURITY_RESTRICTION: Can any one help me in solving this. Thanks Regards, Antony Arun D -- View this message in context: http://www.nabble.com/Getting-error-in-running-maven-tf1442468.html#a6540352 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]