Re: where is my wagon's dependency??
Hi Brett, I am working on some local fixes for wagon-ftp-1.0-beta-5-SNAPSHOT so that i can get wagon:list to work with wagon-ftp. and I run wagon:list on command line without a pom. That is why I added wagon-ftp-1.0-beta-5 SNAPSHOT to the plugin's dependency. and obviously maven ignores it. However if I ran it with a pom.xml and using extensions tag, it works -D On Wed, Dec 10, 2008 at 11:38 PM, Brett Porter [EMAIL PROTECTED] wrote: does wagon-ftp beta-2 work without this? There were a couple of extension bugs fixed in 2.0.10 - that might be worth trying as well. - Brett On 09/12/2008, at 4:13 PM, Dan Tran wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run mvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/incoming This command runs without the need of a pom.xml but maven could not load my desired maven-ftp. What can i do? G:\dev\mojo\wagon-maven-pluginmvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/ incoming -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'wagon'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Maven Wagon plugin [INFO]task-segment: [wagon:list] (aggregator-style) [INFO] [INFO] [wagon:list] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming Embedded error: Cannot find wagon which supports the requested protocol: ftp Component descriptor cannot be found in the component repository: org.apache.mav en.wagon.Wagonftp. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:701) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:521) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:369) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:266) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:302) 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:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to create a Wa gon instance for ftp://ftp.ibiblio.org/incoming at org.codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:83) at org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingl eWagonMojo.java:62) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:676) ... 16 more Caused by: org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wago n which supports the requested protocol: ftp at org.apache.maven.artifact.manager.DefaultWagonManager.getWagon(Defaul tWagonManager.java:147) at org.apache.maven.artifact.manager.DefaultWagonManager.getWagon(Defaul tWagonManager.java:128) at org.codehaus.mojo.wagon.shared.WagonUtils.createWagon(WagonUtils.java :53) at org.codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:79) ... 19 more Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc eption: Component descriptor cannot be found in the component repository: org.ap ache.maven.wagon.Wagonftp. at
maven plugin with an XML configuration
Hello, I'm developing a maven plugin with a configuration containing an XML String. However, I would like to get it as a regular String. In my context it is not possible to use DOM objects as the content undetermined. Here is an example of such configuration: configuration meta component classname=org.apache.felix.ipojo.arch.ArchCommandImpl public=false Provides / requires field=m_archs optional=true / requires field=m_handlers optional=true/ /component /meta /configuration Is it possible to get the meta parameter as a regular String ? Best regards, Clement
Re: [2.0.10 RC] please test
On Thursday 11 December 2008 Brian E. Fox wrote: Please try it out and see if we have any remaining regressions over 2.0.9. No problems with 2.0.10-RC5 here. However, the versioning seems strange: some months ago i tested 2.0.10-RC9, now I'm testing 2.0.10-RC5 which is newer. I know that the RC9 became 2.1.0-M1 and this one is another branch, but still the versioning of the RCs might be a bit confusing. hth, - martin signature.asc Description: This is a digitally signed message part.
Fwd: Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4
Send this a while back, but I'm still running against the same problem. Can someone verify this? Is it possible to have checksums repaired when they are wrong? With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl -- Forwarded message -- From: Nick Stolwijk [EMAIL PROTECTED] Date: Mon, Nov 17, 2008 at 11:55 AM Subject: Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4 To: Maven Users List users@maven.apache.org Our hudson server is giving us errors on the checksum of portals-bridges-common: Downloading: http://projectserver/artifactory/repo/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.pom 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '7c9e919c352f347a001885f7eb0da8df28790a65'; remote = 'fa61e182aa95c29c5f8a36223f95b15754156887' - RETRYING Downloading: http://projectserver/artifactory/repo/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.pom 2K downloaded Downloading: http://projectserver/artifactory/repo/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.jar 20K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'c7ee4640a35fc158cf8c4a645b8e3e21ca3b52ff'; remote = '2a74d0df0f3e4dac5f2992373a0a33d4b9fc2d92' - RETRYING Downloading: http://projectserver/artifactory/repo/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.jar 20K downloaded The artifact is retrieved from an Artifactory server, but I have downloaded them from the central repository to verify. When I retrieve [1] myself and run sha1sum on the jar file it gives me the checksum: c7ee4640a35fc158cf8c4a645b8e3e21ca3b52ff, while in the repository it says: 2a74d0df0f3e4dac5f2992373a0a33d4b9fc2d92 Can someone verify this for me? [1] http://repo1.maven.org/maven2/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.jar [2] http://repo1.maven.org/maven2/org/apache/portals/bridges/portals-bridges-common/1.0.4/portals-bridges-common-1.0.4.jar.sha1 Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4
On Thursday 11 December 2008 Nick Stolwijk wrote: Send this a while back, but I'm still running against the same problem. Can someone verify this? I can verify that SHA1 checksum for portals-bridges-common-1.0.4.jar on central seems to be broken. MD5 sum seems to be correct. Is it possible to have checksums repaired when they are wrong? No idea, sorry. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4
On 11/12/2008, at 10:31 PM, Nick Stolwijk wrote: Send this a while back, but I'm still running against the same problem. Can someone verify this? Is it possible to have checksums repaired when they are wrong? Yes, you need to make sure they are fixed in the apache repository first: http://people.apache.org/repo/m2-ibiblio-rsync-repository which is up to the project in question. Then they can ask for them to be re-synced (checks only, not POMs or artifact changes). Thanks, Brett -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Checksums of org.apache.portals.bridges:portals-bridges-common:1.0.4
I have send a message to the dev list to ask if they can repair this. With regards, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Thu, Dec 11, 2008 at 12:57 PM, Martin Höller [EMAIL PROTECTED] wrote: On Thursday 11 December 2008 Nick Stolwijk wrote: Send this a while back, but I'm still running against the same problem. Can someone verify this? I can verify that SHA1 checksum for portals-bridges-common-1.0.4.jar on central seems to be broken. MD5 sum seems to be correct. Is it possible to have checksums repaired when they are wrong? No idea, sorry. hth, - martin
Re: maven plugin with an XML configuration
You could use DOM and convert it to a string in the plugin, but that means that you have to use a DOM object :) Other than that, I think you need to wrap it in a CDATA. Plexus has no internal converter for turning a DOM into a string at the moment. - Brett On 11/12/2008, at 9:17 PM, clement escoffier wrote: Hello, I'm developing a maven plugin with a configuration containing an XML String. However, I would like to get it as a regular String. In my context it is not possible to use DOM objects as the content undetermined. Here is an example of such configuration: configuration meta component classname=org.apache.felix.ipojo.arch.ArchCommandImpl public=false Provides / requires field=m_archs optional=true / requires field=m_handlers optional=true/ /component /meta /configuration Is it possible to get the meta parameter as a regular String ? Best regards, Clement -- Brett Porter [EMAIL PROTECTED] http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where is my wagon's dependency??
Unfortunately, this will continue to be the case - you're best to work with a test POM for now. - Brett On 11/12/2008, at 8:05 PM, Dan Tran wrote: Hi Brett, I am working on some local fixes for wagon-ftp-1.0-beta-5-SNAPSHOT so that i can get wagon:list to work with wagon-ftp. and I run wagon:list on command line without a pom. That is why I added wagon-ftp-1.0-beta-5 SNAPSHOT to the plugin's dependency. and obviously maven ignores it. However if I ran it with a pom.xml and using extensions tag, it works -D On Wed, Dec 10, 2008 at 11:38 PM, Brett Porter [EMAIL PROTECTED] wrote: does wagon-ftp beta-2 work without this? There were a couple of extension bugs fixed in 2.0.10 - that might be worth trying as well. - Brett On 09/12/2008, at 4:13 PM, Dan Tran wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run mvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/incoming This command runs without the need of a pom.xml but maven could not load my desired maven-ftp. What can i do? G:\dev\mojo\wagon-maven-pluginmvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/ incoming -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'wagon'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Maven Wagon plugin [INFO]task-segment: [wagon:list] (aggregator-style) [INFO] [INFO] [wagon:list] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming Embedded error: Cannot find wagon which supports the requested protocol: ftp Component descriptor cannot be found in the component repository: org.apache.mav en.wagon.Wagonftp. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:701) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:551) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:521) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:369) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:266) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:302) 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:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to create a Wa gon instance for ftp://ftp.ibiblio.org/incoming at org .codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:83) at org .codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingl eWagonMojo.java:62) at org .apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:458) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:676) ... 16 more Caused by: org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wago n which supports the requested protocol: ftp at org .apache.maven.artifact.manager.DefaultWagonManager.getWagon(Defaul tWagonManager.java:147) at org .apache.maven.artifact.manager.DefaultWagonManager.getWagon(Defaul tWagonManager.java:128) at org .codehaus.mojo.wagon.shared.WagonUtils.createWagon(WagonUtils.java :53) at org .codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:79) ... 19 more Caused by: org .codehaus.plexus.component.repository.exception.ComponentLookupExc eption: Component descriptor cannot be found in the component repository:
Print on the same line.
I running a long application on an X session that i do not view it as it runs headless. I just see the command line that i am using in order to help me debug. Since there are a lot of steps in the program that i am performing i want it to show some sort of progress bar. I have managed to make this work if i run the program with out maven. When i try to do it with mvn the out.print command will not show me anything until i actually print a new line. This is killing me as my screen will end up filling with a lot of junk as i want to keep a progress bar that the system is actually running and not have crushed. I just want to know how i will be able to do the normal out.print and display it with out having to use println. I hope it is clear what i am asking. --sTelios
RE: Using a SNAPSHOT version for a parent
When you say yes it's right does that mean that SNAPSHOT parents should automatically get downloaded or does that mean that SNAPSHOT parents should NOT automatically get downloaded. My snapshot Nexus repository is set to SNAPSHOT policy, which I believe is correct. --- Todd Thiessen -Original Message- From: Brian Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 7:10 PM To: Maven Users List Subject: Re: Using a SNAPSHOT version for a parent Yes it's right but make sure you have enabled snapshots for the repo in question. By default only releases are enabled for repos --Brian (mobile) On Dec 10, 2008, at 4:19 PM, Todd Thiessen [EMAIL PROTECTED] wrote: If I deploy a SNAPSHOT version of a parent POM, POMs that reference it do not automatically download (even when running a bootstrap profile). ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent If the artifact already exists in my local repo, everything is fine. However, if I deploy a released version of the artifact and change the parent reference accordingly parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1/version /parent POMs that reference it, automatically download it. Is it supposed to work this way? --- Todd Thiessen - 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]
dependency.getDependencies()
Is there a way to do what the pseudo code in the subject line is talking about in a maven plugin? We wrote a home grown, depth first dependency traversing package (because we couldn't find this documented anywhere), but there are short comings to it. I'd prefer that we leverage the built in maven dependency mechanism versus trying to create our own.
RE: dependency.getDependencies()
Nvm - I found a much better approach to doing any of this - -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 9:33 AM To: users@maven.apache.org Subject: dependency.getDependencies() Is there a way to do what the pseudo code in the subject line is talking about in a maven plugin? We wrote a home grown, depth first dependency traversing package (because we couldn't find this documented anywhere), but there are short comings to it. I'd prefer that we leverage the built in maven dependency mechanism versus trying to create our own. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dependency.getDependencies()
Well, I'm getting ahead of myself a bit - is there a way to get ALL dependencies (including transitive ones)? It can be as high as from the project level, not from an individual dependency. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 9:55 AM To: Maven Users List Subject: RE: dependency.getDependencies() Nvm - I found a much better approach to doing any of this - -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 9:33 AM To: users@maven.apache.org Subject: dependency.getDependencies() Is there a way to do what the pseudo code in the subject line is talking about in a maven plugin? We wrote a home grown, depth first dependency traversing package (because we couldn't find this documented anywhere), but there are short comings to it. I'd prefer that we leverage the built in maven dependency mechanism versus trying to create our own. - 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.getDependencies()
On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella [EMAIL PROTECTED] wrote: is there a way to get ALL dependencies (including transitive ones)? It sounds like this thread might help: http://www.nabble.com/How-to-get-all-dependecy-in-a-mojo---td19533728.html#a19533728 depth first dependency traversing package When my mojo needed needed a hierarchical view of the dependency tree, I used the API that dependency:tree uses: org.apache.maven.shared.dependency.tree.DependencyNode http://maven.apache.org/shared/maven-dependency-tree/apidocs/org/apache/maven/shared/dependency/tree/DependencyNode.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Images in APT
The subject is over a year old, but as far as I know there is still no release available with a solution for the Image inclusión in the automatic PDF-document generation. Because I really needed a solution for this problem I created a quick-and-dirty solution for the short term. The problem with reading images from the site/resources/images directory is that iText isnt using the relative paths correctly (classpath problem), you can solve this by adding the path manually to Maven startup classpath (I said it was quick and dirty ) Look up the following lines in MVN.bat and add the directories manually to the classpath.. @REM Start MAVEN2 :runm2 %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath ./src/site/resources;%CLASSWORLDS_JAR% -Dclassworlds.conf=%M2_HOME%\bin\m2.conf -Dmaven.home=%M2_HOME% org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end All images will be added without a problem and site/book generation works as intended.
Re: [2.0.10 RC] please test
On Wed, 10 Dec 2008 21:14:29 -0500, Brian E. Fox wrote: This RC fixes the SCP wagon problem identified in RC2 (MNG-3717). We have reverted the 2.0.x branch back to use wagon beta-2 where it was historically for stability. Users that require fixes for wagon beta-3+ should use 2.1.0-M1 instead. Why is the stable plugin version still called beta? -h - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does requireProperty consider system environment variables?
This is only looking at properties in the POM/Model. One way to make it work would be to define in your pom hierarchy: javaHome${env.java_home}/javaHome And then check that javaHome is set. Otherwise, there would need to be a new custom rule that would look specifically at env-vars, which admittedly would be handy. Actually on second thought, try checking if env.java_home works if you specify that in the enforcer config. -Original Message- From: Jaikiran [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 9:34 AM To: users@maven.apache.org Subject: Re: Does requireProperty consider system environment variables? Thanks, That answers my question :-) Stephen Connolly-2 wrote: Write a custom enforcer rule! -- View this message in context: http://www.nabble.com/Does-requireProperty-consider-system-environment-v ariables--tp20936086p20936504.html 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: Does requireProperty consider system environment variables?
Do'h. Guess I should read the whole thread before I reply ;-) -Original Message- From: Jaikiran [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2008 1:48 AM To: users@maven.apache.org Subject: Re: Does requireProperty consider system environment variables? Great, the intermediate property trick works! Here's what i did: properties java.home${JAVA_HOME}/java.home /properties Then in the enforcer plugin: requireProperty propertyjava.home/property messagePlease set JAVA_HOME/message /requireProperty Thanks for the help :) Jaikiran wrote: Matthew, That's a good idea :) Let me give it a try and see how it behaves. Will post the outcome. -- View this message in context: http://www.nabble.com/Does-requireProperty-consider-system-environment-v ariables--tp20936086p20950262.html 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: Print on the same line.
Would System.out.flush() help? Alternatively, System.err.println - the error stream isn't buffered; the output stream is buffered, hence needing to write a newline. On Thu, Dec 11, 2008 at 1:12 PM, Stelios Philippou [EMAIL PROTECTED]wrote: I running a long application on an X session that i do not view it as it runs headless. I just see the command line that i am using in order to help me debug. Since there are a lot of steps in the program that i am performing i want it to show some sort of progress bar. I have managed to make this work if i run the program with out maven. When i try to do it with mvn the out.print command will not show me anything until i actually print a new line. This is killing me as my screen will end up filling with a lot of junk as i want to keep a progress bar that the system is actually running and not have crushed. I just want to know how i will be able to do the normal out.print and display it with out having to use println. I hope it is clear what i am asking. --sTelios -- Matthias Grünwalde
RAD 7 + EJB Stubs generation + Maven 2
Hi All, my problem is that I would like to have the maven to generate my EJB stubs instead of using RAD 7. Here is how my system looks like: 1. maven 2.0.9 2. RAD 7.0.0.7 3. JDK 1.5 I use the WAS 6.1 runtime which is found under C:\Program Files\IBM\SDP70\runtimes\base_v61 So far I have tried using the following: artifactIdmaven-antrun-plugin/artifactId executions execution phaseverify/phase configuration tasks property name=was6.home value=C:/Program Files/IBM/SDP70/runtimes/base_v61 / property name=user.install.root value=${was6.home} / path id=was.classpath fileset dir=${was6.home}/lib include name=wsanttasks.jar / include name=webservices.jar / include name=wsprofile.jar / include name=j2ee.jar / include name=ffdc.jar / include name=wsdl4j.jar / include name=bootstrap.jar / include name=commons-logging-api.jar / include name=commons-discovery.jar / include name=ras.jar / include name=wsexception.jar / include name=emf.jar / include name=classloader.jar / /fileset fileset dir=${was6.home}/java/jre/lib include name=xml.jar / include name=ibmorb.jar / include name=ibmorbapi.jar / /fileset fileset dir=${was6.home}/bin/ProfileManagement/plugins/com.ibm.websphere.v61.ext_6.1.100 include name=ws_runtime_ext.jar / /fileset fileset dir=${was6.home}/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime include name=ejbdeploy.jar / /fileset /path path id=wsejbdeploy.path path refid=maven.compile.classpath/ fileset dir=${was6.home}/java/jre/lib include name=xml.jar / include name=ibmorb.jar / include name=ibmorbapi.jar / /fileset /path taskdef name=wasEjbDeploy classname=com.ibm.websphere.ant.tasks.WsEjbDeploy classpathref=was.classpath / echo Hello World: FYI project.name=${project.name} project.artifactId=${project.artifactId} project.groupId=${project.groupId} project.version=${project.version} project.packaging=${project.packaging} project.description=${project.description} project.parent.name=${project.parent.name} project.parent.artifactId=${project.parent.artifactId} project.parent.groupId=${project.parent.groupId} project.parent.version=${project.parent.version} /echo delete dir=${project.build.directory}/ejbdeply-working / property name=user.install.root location=C:\Program Files\IBM\SDP70\runtimes\base_v61/ property name=was.root value=C:/Program Files/IBM/SDP70/runtimes/base_v61/ wasEjbDeploy inputJar=${project.build.directory}/${project.artifactId}-${version}.jar outputJar=${project.build.directory}/${project.artifactId}-${version}-OUTPUT.jar wasHome=${user.install.root} classpathref=was.classpath workingDirectory=${project.build.directory}/ejbdeply-working keepGenerated=true failonerror=true trace=true / !-- Rename the JAR generated originally by maven-ejb-plugin -- move file=${project.build.directory}/${project.artifactId}-${version}.jar tofile=${project.build.directory}/${project.artifactId}-${version}-INPUT.jar / !-- Rename the JAR generated instrumented by the WsEjbDeploy anttask to the snapshot name --
Re: where is my wagon's dependency??
Hi Brett, I also have another case where my recent fix for wagon-file for beta-5-SNAPSHOT does not get picked up by extensions. The test is at http://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/wagon-248 I tried with 2.0.9 latest 2.0.10 RC, and 2.1.0-M1 is it the extentions bug you mentioned? Thanks -Dan On Thu, Dec 11, 2008 at 4:20 AM, Brett Porter [EMAIL PROTECTED] wrote: Unfortunately, this will continue to be the case - you're best to work with a test POM for now. - Brett On 11/12/2008, at 8:05 PM, Dan Tran wrote: Hi Brett, I am working on some local fixes for wagon-ftp-1.0-beta-5-SNAPSHOT so that i can get wagon:list to work with wagon-ftp. and I run wagon:list on command line without a pom. That is why I added wagon-ftp-1.0-beta-5 SNAPSHOT to the plugin's dependency. and obviously maven ignores it. However if I ran it with a pom.xml and using extensions tag, it works -D On Wed, Dec 10, 2008 at 11:38 PM, Brett Porter [EMAIL PROTECTED] wrote: does wagon-ftp beta-2 work without this? There were a couple of extension bugs fixed in 2.0.10 - that might be worth trying as well. - Brett On 09/12/2008, at 4:13 PM, Dan Tran wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run mvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/incoming This command runs without the need of a pom.xml but maven could not load my desired maven-ftp. What can i do? G:\dev\mojo\wagon-maven-pluginmvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/ incoming -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'wagon'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Maven Wagon plugin [INFO]task-segment: [wagon:list] (aggregator-style) [INFO] [INFO] [wagon:list] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming Embedded error: Cannot find wagon which supports the requested protocol: ftp Component descriptor cannot be found in the component repository: org.apache.mav en.wagon.Wagonftp. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:701) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:551) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:521) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:369) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:266) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:302) 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:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to create a Wa gon instance for ftp://ftp.ibiblio.org/incoming at org.codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:83) at org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingl eWagonMojo.java:62) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:676) ... 16 more Caused by: org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wago n which supports the requested protocol: ftp at org.apache.maven.artifact.manager.DefaultWagonManager.getWagon(Defaul tWagonManager.java:147) at
Changes plugin accessing an Integrated Windows Authenticated JIRA instance
We have JIRA running in a container that uses IWA for authenticating the web client. I'd like to take advantage of the maven-changes-plugin to generate a change report from JIRA but it complains with the following error : Dec 6, 2008 12:29:02 PM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: ntlm authentication scheme selected Dec 6, 2008 12:29:02 PM org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge INFO: No credentials available for NTLM any realm@..com:443 [ERROR] Unable to extract a JIRA pid from the page at the url https://..com/browse/X Has anyone successfully accomplished this? Peter Hayes Architecture Shared Technology Services | Fidelity Investments Management Technology
Re: RAD 7 + EJB Stubs generation + Maven 2
Embedded error: Unable to parse setupCmdLine: null\bin\setupCmdLine.bat (The system cannot find the path specified.) I don't have RAD so my ability to help with this specific issue is pretty limited. But where is this setupCmdLine.bat coming from -- is that in RAD somewhere? I'd assume the EJB stub generation tools assume you are running the tools from the RAD directories, and it is getting confused when it cannot find files it depends on during its execution. Find the setupCmdLine.bat file in your file system, and then try to find what files are invoking it, and either provide it to them as they require or find a way to stop them from invoking it. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dependency.getDependencies()
Thank you - let me digest -Original Message- From: Luke Patterson [mailto:lukewpatter...@gmail.com] Sent: Thursday, December 11, 2008 10:46 AM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? It sounds like this thread might help: http://www.nabble.com/How-to-get-all-dependecy-in-a-mojo---td19533728.ht ml#a19533728 depth first dependency traversing package When my mojo needed needed a hierarchical view of the dependency tree, I used the API that dependency:tree uses: org.apache.maven.shared.dependency.tree.DependencyNode http://maven.apache.org/shared/maven-dependency-tree/apidocs/org/apache/ maven/shared/dependency/tree/DependencyNode.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Print on the same line.
i have tried flush it had no effect. If i remember correctly .err didnt display anything when used. but ill check again tommorow. Franklin P. Jones - All women should know how to take care of children. Most of them will have a husband some day. On Thu, Dec 11, 2008 at 6:17 PM, Matthias Grunwalde mgrunwa...@googlemail.com wrote: Would System.out.flush() help? Alternatively, System.err.println - the error stream isn't buffered; the output stream is buffered, hence needing to write a newline. On Thu, Dec 11, 2008 at 1:12 PM, Stelios Philippou stevo...@gmail.com wrote: I running a long application on an X session that i do not view it as it runs headless. I just see the command line that i am using in order to help me debug. Since there are a lot of steps in the program that i am performing i want it to show some sort of progress bar. I have managed to make this work if i run the program with out maven. When i try to do it with mvn the out.print command will not show me anything until i actually print a new line. This is killing me as my screen will end up filling with a lot of junk as i want to keep a progress bar that the system is actually running and not have crushed. I just want to know how i will be able to do the normal out.print and display it with out having to use println. I hope it is clear what i am asking. --sTelios -- Matthias Grünwalde
RE: dependency.getDependencies()
I'm still missing some dependencies that have a scope of provided - does that conflict with @requiresDependencyResolution setting? -Original Message- From: EJ Ciramella [mailto:ecirame...@upromise.com] Sent: Thursday, December 11, 2008 1:33 PM To: Maven Users List Subject: RE: dependency.getDependencies() Thank you - let me digest -Original Message- From: Luke Patterson [mailto:lukewpatter...@gmail.com] Sent: Thursday, December 11, 2008 10:46 AM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? It sounds like this thread might help: http://www.nabble.com/How-to-get-all-dependecy-in-a-mojo---td19533728.ht ml#a19533728 depth first dependency traversing package When my mojo needed needed a hierarchical view of the dependency tree, I used the API that dependency:tree uses: org.apache.maven.shared.dependency.tree.DependencyNode http://maven.apache.org/shared/maven-dependency-tree/apidocs/org/apache/ maven/shared/dependency/tree/DependencyNode.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: dependency.getDependencies()
On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? Marking your mojo with @requiresDependencyResolution test ought to resolve all this out for you and populate the artifacts variables on the MavenProject object. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Starting a jetty server for client side tests
I have a WAR project that exposes some web services I also have a JAR project that acts as a client application for the web services. The client application makes http requests to the web services. To run unit tests I need to set up a jetty server running the web services. I have tried the following 1) use the maven-dependency-plugin to extract the correct WAR from the repository and copy it to sub directory in target. 2) use the maven-jetty-plugin to start a server running the WAR downloaded in the previous step. The server can be started before running the unit tests and stopped when the tests have finished. The jetty plugin is as follows plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId configuration stopPort9966/stopPort webApp ${basedir}/target/iceCreamWar/ICECream.war /webApp stopKeystop/stopKey /configuration executions execution idstart-jetty/id phaseprocess-test-classes/phase goals goalrun/goal /goals /execution execution idstop-jetty/id phaseprepare-package/phase goals goalstop/goal /goals /execution /executions /plugin However if I run it I get the following error message [ERROR] BUILD ERROR [INFO] [INFO] Webapp source directory C:\Workspace_MavenBuild\ICECreamClient\src\main\webapp does not exist which is expected as the rungoal assumes you have a normal web project with a context. If I change the goal to run-war, then the jetty server does start for the unit test, but only afterwoods. - the jetty documentation talks about Invokes the execution of the lifecycle phase package prior to executing itself. which I presume is what is happening. Any ideas how to get around this one? Richard
Re: Using a SNAPSHOT version for a parent
On Thu, Dec 11, 2008 at 8:44 AM, Todd Thiessen thies...@nortel.com wrote: When you say yes it's right does that mean that SNAPSHOT parents should automatically get downloaded or does that mean that SNAPSHOT parents should NOT automatically get downloaded. My snapshot Nexus repository is set to SNAPSHOT policy, which I believe is correct. I guess I'm a little confused. We use SNAPSHOT parents all the time. They get downloaded just like anything else. ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent Yep. Are you saying that, if no 0.0.1-SNAPSHOT already exists in your local repository, but it does in the server repository, then it is not downloaded by your local Maven run? If so it sounds like your repository may not be configured to serve snapshots, as Brian suggested. Maven should list the repositories it's attempting to download from, and give you even more information if you pass -X. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Using a SNAPSHOT version for a parent
-Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:17 PM To: Maven Users List Subject: Re: Using a SNAPSHOT version for a parent ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent Yep. Are you saying that, if no 0.0.1-SNAPSHOT already exists in your local repository, but it does in the server repository, then it is not downloaded by your local Maven run? If so it sounds like your repository may not be configured to serve snapshots, as Brian suggested. Maven should list the repositories it's attempting to download from, and give you even more information if you pass -X. - John Yes, I am saying exactly that. And it does list the repos it is trying to download from. It just say it can't find it. Here is the exactly snippet of the error: Reason: Unable to download the artifact from any repository thegroup:theid:pom:0.0.1-SNAPSHOT from the specified remote repositories: Nexus (http://reposerver:8081/nexus/content/groups/public) The SNAPSHOT version is in my SNAPSHOT repo and the public group does contain the SNAPSHOT repo. It is likely that my Nexus repository isn't properly setup. I don't know what I am supposed to specifically change though. Its policy is set to snapshot and I thought that was all that was needed. I will investigate further. --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: dependency.getDependencies()
That still doesn't return a dependency of a dependency where the last one is of scope provided. A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:20 PM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? Marking your mojo with @requiresDependencyResolution test ought to resolve all this out for you and populate the artifacts variables on the MavenProject object. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
I keep getting this messaeg This artifact has been relocated to javax.servlet:servlet-api:2.4-20040521
Please help me what is worng with this and what should i do to get rid of this warning -- View this message in context: http://www.nabble.com/I-keep-getting-this-messaeg--This-artifact-has-been-relocated-to-javax.servlet%3Aservlet-api%3A2.4-20040521-tp20964763p20964763.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Using a SNAPSHOT version for a parent
Ok, I found the problem. It was in my settings.xml file. When you guys said your repository probably isn't setup correctly I thought that meant the repository itself (ie: Nexus). I had read this before in the definitive guide but it didn't dawn on me right away. For anyone else who may want to know, I had to add this to my settings file. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Thursday, December 11, 2008 3:57 PM To: Maven Users List Subject: RE: Using a SNAPSHOT version for a parent -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:17 PM To: Maven Users List Subject: Re: Using a SNAPSHOT version for a parent ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent Yep. Are you saying that, if no 0.0.1-SNAPSHOT already exists in your local repository, but it does in the server repository, then it is not downloaded by your local Maven run? If so it sounds like your repository may not be configured to serve snapshots, as Brian suggested. Maven should list the repositories it's attempting to download from, and give you even more information if you pass -X. - John Yes, I am saying exactly that. And it does list the repos it is trying to download from. It just say it can't find it. Here is the exactly snippet of the error: Reason: Unable to download the artifact from any repository thegroup:theid:pom:0.0.1-SNAPSHOT from the specified remote repositories: Nexus (http://reposerver:8081/nexus/content/groups/public) The SNAPSHOT version is in my SNAPSHOT repo and the public group does contain the SNAPSHOT repo. It is likely that my Nexus repository isn't properly setup. I don't know what I am supposed to specifically change though. Its policy is set to snapshot and I thought that was all that was needed. I will investigate further. --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Using a SNAPSHOT version for a parent
Bah. Sent by mistake ;-) I had to add this to my settings file. profile iddevelopment/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idcentral/id urlhttp://central/url releasesenabledtrue/enabled/releases snapshotsenabledtrue/enabled/snapshots /repository /repositories /profile This is already documented in the guide. Sorry for all the noice guys and thanks for helping. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Thursday, December 11, 2008 4:44 PM To: 'Maven Users List' Subject: RE: Using a SNAPSHOT version for a parent Ok, I found the problem. It was in my settings.xml file. When you guys said your repository probably isn't setup correctly I thought that meant the repository itself (ie: Nexus). I had read this before in the definitive guide but it didn't dawn on me right away. For anyone else who may want to know, I had to add this to my settings file. --- Todd Thiessen -Original Message- From: Thiessen, Todd (BVW:9T16) Sent: Thursday, December 11, 2008 3:57 PM To: Maven Users List Subject: RE: Using a SNAPSHOT version for a parent -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:17 PM To: Maven Users List Subject: Re: Using a SNAPSHOT version for a parent ie: Is this supported? parent artifactIdtheid/artifactId groupIdthegroup/groupId version0.0.1-SNAPSHOT/version /parent Yep. Are you saying that, if no 0.0.1-SNAPSHOT already exists in your local repository, but it does in the server repository, then it is not downloaded by your local Maven run? If so it sounds like your repository may not be configured to serve snapshots, as Brian suggested. Maven should list the repositories it's attempting to download from, and give you even more information if you pass -X. - John Yes, I am saying exactly that. And it does list the repos it is trying to download from. It just say it can't find it. Here is the exactly snippet of the error: Reason: Unable to download the artifact from any repository thegroup:theid:pom:0.0.1-SNAPSHOT from the specified remote repositories: Nexus (http://reposerver:8081/nexus/content/groups/public) The SNAPSHOT version is in my SNAPSHOT repo and the public group does contain the SNAPSHOT repo. It is likely that my Nexus repository isn't properly setup. I don't know what I am supposed to specifically change though. Its policy is set to snapshot and I thought that was all that was needed. I will investigate further. --- Todd Thiessen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Starting a jetty server for client side tests
You might want to try using cargo instead. It should allow you to deploy the WAR project into a container and start up that container. Something like: configuration waittrue/wait container containerIdjetty6x/containerId /container configuration deployables deployable groupIdGROUP_ID/groupId artifactIdARTIFACT_ID/artifactId versionVERSION/version typewar/type /deployable /deployables /configuration ... /configuration -Original Message- From: richard schmidt [mailto:hangst...@gmail.com] Sent: Thursday, December 11, 2008 3:48 PM To: users@maven.apache.org Subject: Starting a jetty server for client side tests I have a WAR project that exposes some web services I also have a JAR project that acts as a client application for the web services. The client application makes http requests to the web services. To run unit tests I need to set up a jetty server running the web services. I have tried the following 1) use the maven-dependency-plugin to extract the correct WAR from the repository and copy it to sub directory in target. 2) use the maven-jetty-plugin to start a server running the WAR downloaded in the previous step. The server can be started before running the unit tests and stopped when the tests have finished. The jetty plugin is as follows plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId configuration stopPort9966/stopPort webApp ${basedir}/target/iceCreamWar/ICECream.war /webApp stopKeystop/stopKey /configuration executions execution idstart-jetty/id phaseprocess-test-classes/phase goals goalrun/goal /goals /execution execution idstop-jetty/id phaseprepare-package/phase goals goalstop/goal /goals /execution /executions /plugin However if I run it I get the following error message [ERROR] BUILD ERROR [INFO] [INFO] Webapp source directory C:\Workspace_MavenBuild\ICECreamClient\src\main\webapp does not exist which is expected as the rungoal assumes you have a normal web project with a context. If I change the goal to run-war, then the jetty server does start for the unit test, but only afterwoods. - the jetty documentation talks about Invokes the execution of the lifecycle phase package prior to executing itself. which I presume is what is happening. Any ideas how to get around this one? Richard - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is Maven / JUnit 4.x broken (annotations)
Eclipse is a major IDE. Please google! If you want to use the default surefire plugin configuration you MUST name your test class according to the default configuration for the surefire plugin. Please see link provided earlier. If not, you need to configure the surefire plugin yourself (see link provided in some other answer). Btw, for JUnit 4.x you should NOT extend TestCase! Please execute your JUnit 4.x test class in your IDE. Does it work? If not, something is wrong with your class (or your IDE is misconfigred). If yes, then your problem is the maven configuration (configuration of the surefire plugin). /Anders CheapLisa wrote: What's Eclipse? Also JUnit4 annotations have no restrictions on file nameing if annotations are used. I simply want to use the JUnit4 features and not name my files the JUnit 3.x way. L Anders Hammar wrote: Or *Test.java, or *TestCase.java. That's the names surefire is configured for by default. (http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes) I would suggest trying it in Eclipse first. If it works there, then there is some configuration issue for Maven. /Anders Josh Suereth wrote: I believe the name of the class still matters. Try calling it Test*.java On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the @Ignore tests get executed. Is something broken? What do I need to do to get this to work like expected and to take advantage of JUnit 4.x which has over a year of release now. thanks Lisa -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20929389.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964773.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Is Maven / JUnit 4.x broken (annotations)
Ok, that could be the problem as I think Lisa said she extends TestCase. Lisa, please try removing that! /A justinedelson wrote: I seem to recall a problem where if you tried to combine JUnit 3.x and 4.x styles (i.e. use annotation and extend TestCase), something like the below would happen. But I'm not sure that was a Maven problem. Justin From: Anders Hammar [mailto:and...@hammar.net] Sent: Wed 12/10/2008 6:31 AM To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) Hi, Just tried it and it works for me, both in Eclipse and from command prompt. How are you executing? /Anders CheapLisa wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the @Ignore tests get executed. Is something broken? What do I need to do to get this to work like expected and to take advantage of JUnit 4.x which has over a year of release now. thanks Lisa -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20933525.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964774.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: dependency.getDependencies()
In that example, I don't believe C will ever show up in a deps tree or report. So I'm not surprised the API does not reveal them. Transitive deps of provided deps are basically your problem. If B to C is compile, do you see any difference in the deps reported? I don't believe so. What is the business case that would indicate this should be supported? This says I will be providing B in my container, but need all of B's deps (which I do not depend on in A directly) included in A -- that makes no sense. Wayne On Thu, Dec 11, 2008 at 1:17 PM, EJ Ciramella ecirame...@upromise.com wrote: That still doesn't return a dependency of a dependency where the last one is of scope provided. A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:20 PM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? Marking your mojo with @requiresDependencyResolution test ought to resolve all this out for you and populate the artifacts variables on the MavenProject object. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: I keep getting this messaeg This artifact has been relocated to javax.servlet:servlet-api:2.4-20040521
Its not a big problem but you should probably change the dependency declaration in your pom to reflect the new location/version. Wayne On Thu, Dec 11, 2008 at 1:43 PM, miro miroconn...@yahoo.com wrote: Please help me what is worng with this and what should i do to get rid of this warning -- View this message in context: http://www.nabble.com/I-keep-getting-this-messaeg--This-artifact-has-been-relocated-to-javax.servlet%3Aservlet-api%3A2.4-20040521-tp20964763p20964763.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: dependency.getDependencies()
Hmmm, where to start Firstly, we've created our own packaging type (atg-module). This packaging type generates a jar and a zip. The zip is what has the scope of provided. This isn't a compile time dependency and we did NOT want the zip showing up in every jar generated where there is a dependency on said zip. So the scope of provided is used. The dependency list is used for generating a special manifest file for the consumer of these modules. I say special because this is a non-standard java manifest file so there aren't options for things we needed to tuck in there or the ordering we needed etc. After talking to a developer here, what we probably could have done is left a compile time dependency and then where we are building a war, configure the war plugin to exclude any atg-module type artifacts from the packaging. What really strikes me as odd is why wouldn't C show up? A to B shows up, so why wouldn't B to C? A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Thursday, December 11, 2008 5:49 PM To: Maven Users List Subject: Re: dependency.getDependencies() In that example, I don't believe C will ever show up in a deps tree or report. So I'm not surprised the API does not reveal them. Transitive deps of provided deps are basically your problem. If B to C is compile, do you see any difference in the deps reported? I don't believe so. What is the business case that would indicate this should be supported? This says I will be providing B in my container, but need all of B's deps (which I do not depend on in A directly) included in A -- that makes no sense. Wayne On Thu, Dec 11, 2008 at 1:17 PM, EJ Ciramella ecirame...@upromise.com wrote: That still doesn't return a dependency of a dependency where the last one is of scope provided. A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:20 PM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? Marking your mojo with @requiresDependencyResolution test ought to resolve all this out for you and populate the artifacts variables on the MavenProject object. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven plugin problem (can not solve after many tries)
I am getting this error message: [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-i zpack-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor --- this is my pom.xml that includes the maven plugin - any ideas? Everything looks correct to me. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdcom.acme/groupId artifactIdizpack.parent-pom/artifactId version1.0/version /parent groupIdcom.acme/groupId artifactIdizpack-maven-plugin/artifactId version2.1.0/version nameAmp Patch (izpack)/name packagingpom/packaging dependencies !-- this will override the one in the plugin -- dependency groupIdorg.izpack/groupId artifactIdizpack/artifactId version4.1.1/version !-- dont want to download this artifact when retrieve the installer as transitive dependency -- optionaltrue/optional /dependency /dependencies !-- * -- build defaultGoalpackage/defaultGoal pluginManagement plugins !-- *** -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.3/version configuration tasks copy todir=${staging.dir} fileset dir=${basedir}/src/main/java/izpack / /copy /tasks /configuration executions execution idcreate-staging-area/id phaseprocess-resources/phase goals goalrun/goal /goals /execution /executions /plugin !-- *** -- plugin groupIdorg.codehaus.izpack/groupId artifactIdizpack-maven-plugin/artifactId version1.0-alpha-4/version !-- common configuration by all executions -- configuration izpackBasedir${staging.dir}/izpackBasedir /configuration executions execution idstandard-installer/id phasepackage/phase goals goalizpack/goal /goals /execution !-- execution idweb-installer/id phasepackage/phase goals goalizpack/goal /goals configuration descriptor${basedir}/izpack/install-web.xml/descriptor kindweb/kind /configuration /execution -- /executions /plugin !-- *** -- !-- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ant-plugin/artifactId version2.1/version /plugin -- /plugins /pluginManagement /build !-- *** -- properties staging.dir${project.build.directory}/staging/staging.dir /properties /project -- View this message in context: http://www.nabble.com/maven-plugin-problem-%28can-not-solve-after-many-tries%29-tp20964990p20964990.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Is Maven / JUnit 4.x broken (annotations)
I do not believe this has anything to do with it and I don't understand what you are saying. L mgainty wrote: place the groupId/artifactId/version in the dependencies in dependencyManagement Section of the parent pom project ... dependencyManagement dependencies dependency groupIdgroup-a/groupId artifactIdartifact-a/artifactId version1.0/version http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html hth Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 10 Dec 2008 12:44:45 -0800 From: l...@purpleblade.net To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) I looked at my effective pom. I have a dependency there on JUnit 4.5. The only reference to surefire was maven-surefire-reports-plugin in the reporting section. how do I know that surefire is using my dependency of JUnit 4.5? Is maven bundled with another version of JUnit and using an earlier version that I'm not aware of? How do I force the surefire plugin to use JUnit 4.5? thanks L John Stoneham wrote: On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the @Ignore tests get executed. Is something broken? What do I need to do to get this to work like expected and to take advantage of JUnit 4.x which has over a year of release now. Hm. Last time this happened to me it was because I was trying to repackage JUnit with a bunch of other things, and it turned out surefire was inspecting my POM to look for a junit:junit dependency, then pulling the version off that to determine whether to look for JUnit 4 tests. Sounds to me like surefire thinks your JUnit dependency is version 3. We've got JUnit 4.4 configured here and it runs both 3- and 4-style tests properly. Is it possible to post the output of mvn help:effective-pom here? - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20943444.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964992.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to have a single log4j.xml file in a multi-module project?
so I could make a module for it say logging/pom.xml and then put a dependency to it in a parent pom that all sub-modules have as a parent-pom and this would work? thanks L Stephen Connolly-2 wrote: put it in a jar file (make a module just for it) and add that module as a dependency to all the projects that need it Sent from my iPod On 10 Dec 2008, at 20:35, CheapLisa l...@purpleblade.net wrote: I have a project with many modules (over 30) and some are nested 2-3 deep. With Maven / Log4J I have to put two log4j.xml files in every module: src/main/resources/log4j.xml src/test/resources/log4j.xml This is usually the same file over and over again. 1) How can I have one single log4j.xml file for all tests (src/test/resources/) and one log4j.xml file for all code (/src/main/resources/) 2) How can I have one single log4j.xml file for all modules in the project? thanks L -- View this message in context: http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20943438.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-to-have-a-single-log4j.xml-file-in-a-multi-module-project--tp20943438p20964994.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: where is my wagon's dependency??
It looks like it, but I'd expect it to work in 2.0.10/2.1.0-M1. It'll need more investigation. - Brett On 12/12/2008, at 3:46 AM, Dan Tran wrote: Hi Brett, I also have another case where my recent fix for wagon-file for beta-5-SNAPSHOT does not get picked up by extensions. The test is at http://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/wagon-248 I tried with 2.0.9 latest 2.0.10 RC, and 2.1.0-M1 is it the extentions bug you mentioned? Thanks -Dan On Thu, Dec 11, 2008 at 4:20 AM, Brett Porter br...@apache.org wrote: Unfortunately, this will continue to be the case - you're best to work with a test POM for now. - Brett On 11/12/2008, at 8:05 PM, Dan Tran wrote: Hi Brett, I am working on some local fixes for wagon-ftp-1.0-beta-5-SNAPSHOT so that i can get wagon:list to work with wagon-ftp. and I run wagon:list on command line without a pom. That is why I added wagon-ftp-1.0-beta-5 SNAPSHOT to the plugin's dependency. and obviously maven ignores it. However if I ran it with a pom.xml and using extensions tag, it works -D On Wed, Dec 10, 2008 at 11:38 PM, Brett Porter br...@apache.org wrote: does wagon-ftp beta-2 work without this? There were a couple of extension bugs fixed in 2.0.10 - that might be worth trying as well. - Brett On 09/12/2008, at 4:13 PM, Dan Tran wrote: Hi I add wagon-ftp-beta-4 to wagon-maven-plugin-beta-2-snapshot dependency and run mvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/incoming This command runs without the need of a pom.xml but maven could not load my desired maven-ftp. What can i do? G:\dev\mojo\wagon-maven-pluginmvn wagon:list -Dwagon.url=ftp://ftp.ibiblio.org/ incoming -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'wagon'. WAGON_VERSION: 1.0-beta-2 [INFO] [INFO] Building Maven Wagon plugin [INFO]task-segment: [wagon:list] (aggregator-style) [INFO] [INFO] [wagon:list] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming Embedded error: Cannot find wagon which supports the requested protocol: ftp Component descriptor cannot be found in the component repository: org.apache.mav en.wagon.Wagonftp. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Unable to create a Wagon instance for ftp://ftp.ibiblio.org/incoming at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:701) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:551) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:521) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:369) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:266) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java: 336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:302) 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:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to create a Wa gon instance for ftp://ftp.ibiblio.org/incoming at org .codehaus.mojo.wagon.AbstractWagonMojo.createWagon(AbstractWagonMo jo.java:83) at org .codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingl eWagonMojo.java:62) at org .apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:458) at org .apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:676) ... 16 more Caused by: org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wago n which supports the requested protocol: ftp at org
Looking for good plugin examples
Can anyone point me to good examples of plugins that use these two features: 1) DOM-based configuration 2) Getting a component from Plexus through lookup (ii.e. not via injection) Thanks, Justin
Re: Is Maven / JUnit 4.x broken (annotations)
Lisa, The answer is that although Junit4 might support finding the @Test annotations, the maven surefire plugin (being backwards compatable, AND a completely different tool) looks for Test* *Test and *TestSuite. You need to configure the maven-surefire-plugin (This is the part of maven that calls into junit) for junit4 conventions, or you won't get your desired behavior. -Josh On Thu, Dec 11, 2008 at 6:39 PM, CheapLisa l...@purpleblade.net wrote: I do not believe this has anything to do with it and I don't understand what you are saying. L mgainty wrote: place the groupId/artifactId/version in the dependencies in dependencyManagement Section of the parent pom project ... dependencyManagement dependencies dependency groupIdgroup-a/groupId artifactIdartifact-a/artifactId version1.0/version http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html hth Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 10 Dec 2008 12:44:45 -0800 From: l...@purpleblade.net To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) I looked at my effective pom. I have a dependency there on JUnit 4.5. The only reference to surefire was maven-surefire-reports-plugin in the reporting section. how do I know that surefire is using my dependency of JUnit 4.5? Is maven bundled with another version of JUnit and using an earlier version that I'm not aware of? How do I force the surefire plugin to use JUnit 4.5? thanks L John Stoneham wrote: On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the @Ignore tests get executed. Is something broken? What do I need to do to get this to work like expected and to take advantage of JUnit 4.x which has over a year of release now. Hm. Last time this happened to me it was because I was trying to repackage JUnit with a bunch of other things, and it turned out surefire was inspecting my POM to look for a junit:junit dependency, then pulling the version off that to determine whether to look for JUnit 4 tests. Sounds to me like surefire thinks your JUnit dependency is version 3. We've got JUnit 4.4 configured here and it runs both 3- and 4-style tests properly. Is it possible to post the output of mvn help:effective-pom here? - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20943444.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964992.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Is Maven / JUnit 4.x broken (annotations)
Also to follow that up, Although you didn't specify the maven-surefire-plugin, your build file has inherited it from the ethereal maven super pom. Type mvn help:effective-pom to see what your pom *really* looks like, so you can get an idea of how/what to configure for surefire. On Thu, Dec 11, 2008 at 7:46 PM, Josh Suereth joshua.suer...@gmail.comwrote: Lisa, The answer is that although Junit4 might support finding the @Test annotations, the maven surefire plugin (being backwards compatable, AND a completely different tool) looks for Test* *Test and *TestSuite. You need to configure the maven-surefire-plugin (This is the part of maven that calls into junit) for junit4 conventions, or you won't get your desired behavior. -Josh On Thu, Dec 11, 2008 at 6:39 PM, CheapLisa l...@purpleblade.net wrote: I do not believe this has anything to do with it and I don't understand what you are saying. L mgainty wrote: place the groupId/artifactId/version in the dependencies in dependencyManagement Section of the parent pom project ... dependencyManagement dependencies dependency groupIdgroup-a/groupId artifactIdartifact-a/artifactId version1.0/version http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html hth Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 10 Dec 2008 12:44:45 -0800 From: l...@purpleblade.net To: users@maven.apache.org Subject: Re: Is Maven / JUnit 4.x broken (annotations) I looked at my effective pom. I have a dependency there on JUnit 4.5. The only reference to surefire was maven-surefire-reports-plugin in the reporting section. how do I know that surefire is using my dependency of JUnit 4.5? Is maven bundled with another version of JUnit and using an earlier version that I'm not aware of? How do I force the surefire plugin to use JUnit 4.5? thanks L John Stoneham wrote: On Wed, Dec 10, 2008 at 12:16 AM, CheapLisa l...@purpleblade.net wrote: I have JUnit 4.5 as a dependency in my maven pom and I have imported annotations into my test case but it is not recognizing the @Test and @Ignore annotations. I still have to preface the method name with test and the @Ignore tests get executed. Is something broken? What do I need to do to get this to work like expected and to take advantage of JUnit 4.x which has over a year of release now. Hm. Last time this happened to me it was because I was trying to repackage JUnit with a bunch of other things, and it turned out surefire was inspecting my POM to look for a junit:junit dependency, then pulling the version off that to determine whether to look for JUnit 4 tests. Sounds to me like surefire thinks your JUnit dependency is version 3. We've got JUnit 4.4 configured here and it runs both 3- and 4-style tests properly. Is it possible to post the output of mvn help:effective-pom here? - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20943444.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Send e-mail faster without improving your typing skills. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008 -- View this message in context: http://www.nabble.com/Is-Maven---JUnit-4.x-broken-%28annotations%29-tp20929389p20964992.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven plugin problem (can not solve after many tries)
A few questions: 1) Is your project supposed to be a pom project 2) What's in your parent pom? 3) What are you calling on the maven command line? It's looking for 'org.apache.maven.plugins:maven-izpack-plugin, which is the old maven 1 version. So you either have that specified somewhere, or you're using the command line incorrectly. On Thu, Dec 11, 2008 at 6:37 PM, CheapLisa l...@purpleblade.net wrote: I am getting this error message: [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-i zpack-plugin' does not exist or no valid version could be found at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor --- this is my pom.xml that includes the maven plugin - any ideas? Everything looks correct to me. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdcom.acme/groupId artifactIdizpack.parent-pom/artifactId version1.0/version /parent groupIdcom.acme/groupId artifactIdizpack-maven-plugin/artifactId version2.1.0/version nameAmp Patch (izpack)/name packagingpom/packaging dependencies !-- this will override the one in the plugin -- dependency groupIdorg.izpack/groupId artifactIdizpack/artifactId version4.1.1/version !-- dont want to download this artifact when retrieve the installer as transitive dependency -- optionaltrue/optional /dependency /dependencies !-- * -- build defaultGoalpackage/defaultGoal pluginManagement plugins !-- *** -- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.3/version configuration tasks copy todir=${staging.dir} fileset dir=${basedir}/src/main/java/izpack / /copy /tasks /configuration executions execution idcreate-staging-area/id phaseprocess-resources/phase goals goalrun/goal /goals /execution /executions /plugin !-- *** -- plugin groupIdorg.codehaus.izpack/groupId artifactIdizpack-maven-plugin/artifactId version1.0-alpha-4/version !-- common configuration by all executions -- configuration izpackBasedir${staging.dir}/izpackBasedir /configuration executions execution idstandard-installer/id phasepackage/phase goals goalizpack/goal /goals /execution !-- execution idweb-installer/id phasepackage/phase goals goalizpack/goal /goals configuration descriptor${basedir}/izpack/install-web.xml/descriptor kindweb/kind /configuration /execution -- /executions /plugin !-- *** -- !-- plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ant-plugin/artifactId version2.1/version /plugin -- /plugins /pluginManagement /build !-- *** -- properties staging.dir${project.build.directory}/staging/staging.dir /properties /project -- View this message in context: http://www.nabble.com/maven-plugin-problem-%28can-not-solve-after-many-tries%29-tp20964990p20964990.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: dependency.getDependencies()
2008/12/12 EJ Ciramella ecirame...@upromise.com Hmmm, where to start Firstly, we've created our own packaging type (atg-module). This packaging type generates a jar and a zip. The zip is what has the scope of provided. This isn't a compile time dependency and we did NOT want the zip showing up in every jar generated where there is a dependency on said zip. So the scope of provided is used. The dependency list is used for generating a special manifest file for the consumer of these modules. I say special because this is a non-standard java manifest file so there aren't options for things we needed to tuck in there or the ordering we needed etc. After talking to a developer here, what we probably could have done is left a compile time dependency and then where we are building a war, configure the war plugin to exclude any atg-module type artifacts from the packaging. What really strikes me as odd is why wouldn't C show up? A to B shows up, so why wouldn't B to C? from http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies *provided* This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive. so provided scope dependencies are never transitive, which explains why you see B (the direct dependency) but not C. A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Thursday, December 11, 2008 5:49 PM To: Maven Users List Subject: Re: dependency.getDependencies() In that example, I don't believe C will ever show up in a deps tree or report. So I'm not surprised the API does not reveal them. Transitive deps of provided deps are basically your problem. If B to C is compile, do you see any difference in the deps reported? I don't believe so. What is the business case that would indicate this should be supported? This says I will be providing B in my container, but need all of B's deps (which I do not depend on in A directly) included in A -- that makes no sense. Wayne On Thu, Dec 11, 2008 at 1:17 PM, EJ Ciramella ecirame...@upromise.com wrote: That still doesn't return a dependency of a dependency where the last one is of scope provided. A depends on B depends on C A to B is provided B to C is provided B shows up C does not. -Original Message- From: sirly...@gmail.com [mailto:sirly...@gmail.com] On Behalf Of John Stoneham Sent: Thursday, December 11, 2008 1:20 PM To: Maven Users List Subject: Re: dependency.getDependencies() On Thu, Dec 11, 2008 at 9:25 AM, EJ Ciramella ecirame...@upromise.com wrote: is there a way to get ALL dependencies (including transitive ones)? Marking your mojo with @requiresDependencyResolution test ought to resolve all this out for you and populate the artifacts variables on the MavenProject object. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Cheers, Stuart
Re: Starting a jetty server for client side tests
Gave it a try - it almost works! Based on the example projects, I tried the following 1) Added a normal dependency ( icecream.war.version} is defined elsewhere dependency groupIdcom.metservice/groupId artifactIdICECream/artifactId version${icecream.war.version}/version typewar/type /dependency 2) Added the cargo plug plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId configuration waittrue/wait container containerIdjetty6x/containerId log ${project.build.directory}/${containerId}/cargo.log /log typeembedded/type /container deployables deployable groupIdcom.metservice/groupId artifactIdICECream/artifactId typewar/type properties contextICECream/context /properties /deployable /deployables /configuration /plugin 3) ran the cargo:start target Jetty started on port 8080 but did not deploy my WAR - only a thing called cargocpc.war I cant see anything obviously wrong Richard
Re: Starting a jetty server for client side tests
plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId No version declared for a plugin gives unpredictable results. It is possible that the version of cargo that Maven has chosen to use for this particular build does not support the deployables syntax that you are using, or there's a bug related to it. You really should post this on the Cargo Users list anyway... Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to configure..
Hi, We are planning to use maven in our project. our project has the production server. And we need to configure the maven repository for each developer instance like mirror or something else. So that the developer can test locally their part without touching the main pom.xml. Please guide me how to configure this. Thanks, Radha.C - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: dependency.getDependencies()
Firstly, we've created our own packaging type (atg-module). This packaging type generates a jar and a zip. The zip is what has the scope of provided. This isn't a compile time dependency and we did NOT want the zip showing up in every jar generated where there is a dependency on said zip. So the scope of provided is used. The dependency list is used for generating a special manifest file for the consumer of these modules. I say special because this is a non-standard java manifest file so there aren't options for things we needed to tuck in there or the ordering we needed etc. Seems like the transitive provided dependencies would -have- to be there, on a compile classpath for example. How are you accessing these dependencies again? You shouldn't have to go through this 'pretend it's a compile-time dependency and then exclude it later' rigmarole. Then again I may be showing my lack of experience with provided-scope dependencies. - John - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Unexpected version packaged in war
So, I have a multi-module maven project consisting of a war project and a jar project. The jar is a dependency of the war. I'm seeing some unexpected behavior around which dependencies get bundled up in WEB-INF/lib. Namely, it seems like dependencies from the war project, either direct or transitive, are trumping dependencies of the jar (again, direct or transitive), regardless of version. For example, my jar project depends on projectX-2.0. The war depends on Y-1.1 which has a transitive dependency on projectX-1.0. When the war gets built projectX-1.0 is what winds up in WEB-INF/lib. I know I can work around this using excluded in the war; I'm more curious as to why this is happening. Is it a bug or intended behavior. If it's intended, what's the rationale? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
The apache mailing thread does not support searching functionality?
All, I joined maven mailing thread yesterday. But seem that I can not review the former discussions what I am interested in effectively. All mailing threads of apache do not support searching functionality? If yes, that is so PAINFUL... Regards. Linghua.
Re: The apache mailing thread does not support searching functionality?
Any of the 3 sites listed under Archives here will let you search: http://maven.apache.org/mail-lists.html - Brett On 12/12/2008, at 5:04 PM, Linghua Wang wrote: All, I joined maven mailing thread yesterday. But seem that I can not review the former discussions what I am interested in effectively. All mailing threads of apache do not support searching functionality? If yes, that is so PAINFUL... Regards. Linghua. -- Brett Porter br...@apache.org http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to configure..
We are planning to use maven in our project. our project has the production server. And we need to configure the maven repository for each developer instance like mirror or something else. So that the developer can test locally their part without touching the main pom.xml. Please guide me how to configure this. You probably want to configure the settings.xml file on each of your developer's workstations. But it is hard to tell what exaxctly you are asking, or what your problem is. You will have better luck on this list if you ask specific, detailed questions and demonstrate that you have done your own homework/reading before asking on the list. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to add test classes into jar?
Hi, I want to try maven-surefire-plugin. There are two projects A and B, A depends on B, and some test classes in A depend on that of in B. Both A and B's POM has the following snippet. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration skipfalse/skip /configuration /plugin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Steps: 1. CD to directory of project B, execute mvn compiler:testCompile and mvn install 2. CD to directory of project A, execute mvn compiler:testComplie, maven always complain that some test classes can not be found in project B. Question: Simply, we can resolve it by adding test classes into jar (default packaging). Somebody could tell me how? Or any other suggestions would be appriciated. Thanks. Linghua.
Re: The apache mailing thread does not support searching functionality?
Hi, Brett, Thanks for your feedback. Minor Correct - Any of the 3 sites listed under *Other Archives* here will let you search: http://maven.apache.org/mail-lists.html :-) Regards. Linghua 2008/12/12 Brett Porter br...@apache.org Any of the 3 sites listed under Archives here will let you search: http://maven.apache.org/mail-lists.html - Brett On 12/12/2008, at 5:04 PM, Linghua Wang wrote: All, I joined maven mailing thread yesterday. But seem that I can not review the former discussions what I am interested in effectively. All mailing threads of apache do not support searching functionality? If yes, that is so PAINFUL... Regards. Linghua. -- Brett Porter br...@apache.org http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org