MevenIDE - Error when running within eclipse 3.0.2
Hi Folks, when I try to run maven with the Mevenide plugin I get this: An internal error occurred during: Launching. java.lang.NoSuchMethodError: org.eclipse.debug.internal.ui.DebugUIPlugin.getProcessConsoleManager()Lorg/eclipse/debug/internal/ui/views/console/ProcessConsoleManager; org.mevenide.ui.eclipse.launch.configuration.MavenLaunchDelegate.launch(MavenLaunchDelegate.java:138) org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569) org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788) org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955) org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) Any ideas? Thanks Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MevenIDE - Error when running within eclipse 3.0.2
Christian - This should really get posted to [EMAIL PROTECTED] as it is a mevenide plugin question. Regardless, you are seeing the result of relying on internal eclipse libraries in 3.1 that do not exist in 3.0. This will be corrected soon. However, note that it does not actually prevent you from running maven within eclipse; it is just an annoying message! jeff Christian Schlaefcke wrote: Hi Folks, when I try to run maven with the Mevenide plugin I get this: An internal error occurred during: Launching. java.lang.NoSuchMethodError: org.eclipse.debug.internal.ui.DebugUIPlugin.getProcessConsoleManager()Lorg/eclipse/debug/internal/ui/views/console/ProcessConsoleManager; org.mevenide.ui.eclipse.launch.configuration.MavenLaunchDelegate.launch(MavenLaunchDelegate.java:138) org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569) org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788) org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955) org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) Any ideas? Thanks Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jeff bonevich mailto: [EMAIL PROTECTED] Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Rich Cook All programmers are playwrights and all computers are lousy actors. Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-scm-plugin fails
Hi, We're trying to setup a build system using maven2, but the following error occurs while trying to checkout a project from cvs. It seems that the maven-scm-plugin cannot be downloaded from the maven repository due to a missing release file. When I try to manually download and install the plugin, there are some dependency problems. Is there anyone who knows how to get around this problem ? Thanks, Mario. - [EMAIL PROTECTED] ~/projects/jade2/scripts/gfdi/projects/fwk2/fwk_client $ m2 -e scm:checkout + Error stacktraces are turned on. [INFO] [INFO] Building Client Framework [INFO] [INFO] maven-scm-plugin: checking for updates from central-plugins [INFO] Retrieving release information for maven-scm-plugin FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the reactor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190) at org.apache.maven.cli.MavenCli.main(MavenCli.java:269) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) at org.codehaus.classworlds.Launcher.main(Launcher.java:363) Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving plugin version at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:537) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:149) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103) at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180) ... 9 more Caused by: org.apache.maven.plugin.version.PluginVersionResolutionException: Error resolving version for 'org.apache.maven.plugins:maven-scm-plugin': Cannot resolve RELEASE version of this plugin. at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReleaseVersion(DefaultPluginVersionManager.java:570) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:130) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:192) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:528) ... 14 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Unable to find release for artifact org.apache.maven.plugins:maven-scm-plugin:maven-plugin:RELEASE org.apache.maven.plugins:maven-scm-plugin:RELEASE:maven-plugin from the specified remote repositories: http://repo1.maven.org/maven2/plugins at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:88) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReleaseVersion(DefaultPluginVersionManager.java:566) ... 17 more Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to find release for artifact org.apache.maven.plugins:maven-scm-plugin:maven-plugin:RELEASE at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.retrieveFromRemoteRepository(ReleaseArtifactTransformation.java:86) at org.apache.maven.artifact.transform.AbstractVersionTransformation.resolveVersion(AbstractVersionTransformation.java:104) at org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:51) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:84) ... 18 more Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:81) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:70) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:310) at
multiproject and Eclipse
Hi I would like a advice... When you are working with multiproject, Do you create one eclipse project for each maven project or create only one eclipse project and mount the directory structure(maven project) in this eclipse project ? I use one eclipse project for each maven project and, because this, I have a lot of eclipse project. I have been used the mevenide plugin. Is this plugin the best for this situation ? I appreciate any advice. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] plugin matrix - status meaning of plugins in list
How do I know the difference between a plugin that will not get converted to M2 and one that is planned but not done yet? A follow on question on that is - When a plugin is on the list with the red X in M2 column, what does that mean? For example, M1 plugins we use that do not have a green check mark or N/A in the M2 column Cruise control Dashboard Junit report JXR Simian Validator Or is it assumed that all will eventually get either replaced or converted? I would also like to confirm that this list is only for tracking plugins shipping with Maven, e.g. not the SF plugins. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MevenIDE - Error when running within eclipse 3.0.2
Thank you and sorry for posting in the wrong place. Regards, Chris Jeffrey Bonevich schrieb: Christian - This should really get posted to [EMAIL PROTECTED] as it is a mevenide plugin question. Regardless, you are seeing the result of relying on internal eclipse libraries in 3.1 that do not exist in 3.0. This will be corrected soon. However, note that it does not actually prevent you from running maven within eclipse; it is just an annoying message! jeff Christian Schlaefcke wrote: Hi Folks, when I try to run maven with the Mevenide plugin I get this: An internal error occurred during: Launching. java.lang.NoSuchMethodError: org.eclipse.debug.internal.ui.DebugUIPlugin.getProcessConsoleManager()Lorg/eclipse/debug/internal/ui/views/console/ProcessConsoleManager; org.mevenide.ui.eclipse.launch.configuration.MavenLaunchDelegate.launch(MavenLaunchDelegate.java:138) org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569) org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788) org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955) org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) Any ideas? Thanks Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven2: Wrong ACK
This happens consistently. All the time, so I cannot do my build with this. However, I found this workaround: replaced scp by file, and it works. I remember trying file long time back, with alpha-1 release, and it was not supported at that time. Question: should file protocol work when repository is really a remote repository? In my case, I refer to it as remote, but that directory happens to also be mounted on my machine. I wonder what happens if it is not mounted. -Original Message- From: Trygve Laugstøl [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 9:01 PM To: Maven Users List Subject: Re: Maven2: Wrong ACK On Wed, Jul 13, 2005 at 05:07:42PM -0400, Ilyevsky, Leonid (Equity Trading) wrote: This used to work before. At least with alpha-1 release, I remember it worked. What could be the problem? This is most likely a error message from the scp provider (I noticed that you're using the scp:// url), did you get this error message if you tried again? -- Trygve Downloading: http://repo1.maven.org/maven2/pt/pttech/1.0/pttech-1.0.jar [WARNING] Unable to get resource from repository http://repo1.maven.org/maven2 Downloading: scp://mlqsa-as2-d.dev.etsd.ml.com/home/qsa/mavenrepo/pt/pttech/1.0/pttec h-1.0.jar 498K downloaded [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Main Error: Wrong ACK pt:pttech:1.0:jar from the specified remote repositories: http://repo1.maven.org/maven2, scp://mlqsa-as2-d.dev.etsd.ml.com/home/qsa/mavenrepo Path to dependency: 1) qsa:lex:jar:1.0 2) pt:pttech:jar:1.0 Root error: Wrong ACK [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jul 13 16:51:32 EDT 2005 [INFO] Final Memory: 3M/5M [INFO] If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] plugin matrix - status meaning of plugins in list
On Thu, 2005-07-14 at 08:34 -0500, Jeff Jensen wrote: How do I know the difference between a plugin that will not get converted to M2 and one that is planned but not done yet? This is just a list to compare what is available in m1 versus m2. We are hoping people add comments to those plugins they wish to convert. We would like to convert all of them but as time permits. We're hoping folks in the community help out with the porting effort. A follow on question on that is - When a plugin is on the list with the red X in M2 column, what does that mean? It means that plugin is not available for m2 yet. For example, M1 plugins we use that do not have a green check mark or N/A in the M2 column Cruise control Dashboard Junit report JXR Simian Validator Right, they have not been converted yet. Or is it assumed that all will eventually get either replaced or converted? Yes. I would also like to confirm that this list is only for tracking plugins shipping with Maven, e.g. not the SF plugins. We're trying to track all publicly available plugins. In m2 no plugins ship with the core, they are downloaded transparently as needed. Hope that helps. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org Three people can keep a secret provided two of them are dead. -- Unknown - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] plugin matrix - status meaning of plugins in list
Quoting Jason van Zyl [EMAIL PROTECTED]: On Thu, 2005-07-14 at 08:34 -0500, Jeff Jensen wrote: [snip] I would also like to confirm that this list is only for tracking plugins shipping with Maven, e.g. not the SF plugins. We're trying to track all publicly available plugins. In m2 no plugins ship with the core, they are downloaded transparently as needed. Great. Can I then request the following additions to the list?: cobertura findbugs lint4j qalab Hope that helps. Indeed it does, thank you. A suggestion I have as a result is to add these kinds of notes/explanations to the top of that page for those like me who do not understand! :-) Just some simple bullet points. For example, something like: ul liThis list compares plugin availability between M1 and M2, tracking all publicly available plugins./li liIf a publicly available plugin is not on the list, please email the Maven users list asking to add it./li liNote that in M2, no plugins ship with the core. M2 downloads them transparently as needed./li liA red X in the M2 column means the plugin is not yet available for M2./li liWe hope to convert all plugins in a priority order (popularity?) and as time permits./li liWe need folks in the community to help out with the porting effort./li liIf you can convert a plugin from M1 to M2, please email the Maven users list to have your comments added./li /ul Thank you again for the info. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add other repository [m2]
I have seen this URL, thanks. In fact, I even tried a number of things to understand how it works, but I'm not sure if I'm required to add a mirror add a server add a profile with a repository What do you suggest? Thanks, Wilfred On Thu, 2005-07-14 at 16:34, Dennis Geurts wrote: try this URL: http://maven.apache.org/maven2/maven-settings/settings.html Dennis On 7/14/05, Wilfred Springer [EMAIL PROTECTED] wrote: All, I want my project to check for a maven plugin from my own repository, before trying the http://repo1.maven.org/maven2/plugins repository. Any clues? Thanks, Wilfred -- _ Wilfred Springer Phone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client Solutions Fax : +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems Netherlands AIM : wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] plugin matrix - status meaning of plugins in list
On Thu, 2005-07-14 at 10:36 -0500, Jeff Jensen wrote: Quoting Jason van Zyl [EMAIL PROTECTED]: Great. Can I then request the following additions to the list?: cobertura findbugs lint4j qalab Added. Hope that helps. Indeed it does, thank you. A suggestion I have as a result is to add these kinds of notes/explanations to the top of that page for those like me who do not understand! :-) Just some simple bullet points. For example, something like: Thanks, I've added your notes to the matrix. Thanks! -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org happiness is like a butterfly: the more you chase it, the more it will elude you, but if you turn your attention to other things, it will come and sit softly on your shoulder ... -- Thoreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 1.0.2 and junitreport?
On Thu, 2005-07-14 at 13:15 +1000, Washusen, Dan wrote: I'd stick with Maven 1.1 if you want to use ant tasks as it includes a more recent version of ant. Makes sense... Out of interest, why are you using the ant junit report instead of maven junit report plugin http://maven.apache.org/reference/plugins/junit-report/goals.html? Currently, we are. However, the unified JUnit report seems to make little distinction if there are test names that are identical (in two different test classes). If one defines a couple of large test suites, each running the _same_ tests with a different configuration set, then the report seems to conflate the test names in such a way that it is difficult to discern the class in which a particular result was found. The ant JUnit report uses the class name as a namespace, and it's a bit easier to navigate, IMO. (but that's just a matter of style) I have a feeling that I'm just missing something in my poor command of maven scripting... -- Matt Meola Contractor Vericept Corporation 555 17th Street, Suite 1500 Denver, Colorado 80202 Protecting Your Information and Reputation tm tel: (303) 798-1568 ext. 5009 fax: (303) 268-0520 http://www.vericept.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2-repo] POM for commons-jelly-SNAPSHOT missing
I don't know if there is a better place for this, but I am trying to use m2 to build something that uses maven1 classes. The m2 repo for the maven 1 dependencies is pretty good except when it comes time to resolve commons-jelly SNAPSHOT. The jar is on ibiblio, but there is no POM http://www.ibiblio.org/maven2/commons-jelly/commons-jelly/SNAPSHOT/ I assume I should raise a Jira issue for this, but per haps there is a better place to deal with it Thanks, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-repo] POM for commons-jelly-SNAPSHOT missing
filed an issue (http://jira.codehaus.org/browse/MEV) Emmanuel J. Matthew Pryor wrote: I don't know if there is a better place for this, but I am trying to use m2 to build something that uses maven1 classes. The m2 repo for the maven 1 dependencies is pretty good except when it comes time to resolve commons-jelly SNAPSHOT. The jar is on ibiblio, but there is no POM http://www.ibiblio.org/maven2/commons-jelly/commons-jelly/SNAPSHOT/ I assume I should raise a Jira issue for this, but per haps there is a better place to deal with it Thanks, Matthew - 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]
M2: JUnit Testing
Hi, Using M2. Firstly, when I run test, it runs surefire and not JUnit as shown in Maven 1 documentation. Is surefire better and/or how do I get JUnit to run the tests? Secondly, how do I get a HTML report showing the outcome of the JUnit tests run e.g. number of successful tests, error messages for invalid ones etc. on HTML page? (Any chance of saying what needs to be put in pom.xml file) Many thanks, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2: JUnit Testing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Surefire is used to setup and run the JUnit tests (I think it's a replacement for the JUnit test-runner tools, but I'm not sure). The long and the short of it is that surefire *should* produce the same results as the m1 junit stuff... ...with the exception of reporting, which is still in the work queue for 2.0, I believe. You're welcome to lend a hand toward this goal, if you'd like. ;-) - -john Michael Owen wrote: | Hi, | | Using M2. | | Firstly, when I run test, it runs surefire and not JUnit as shown in | Maven 1 documentation. Is surefire better and/or how do I get JUnit to | run the tests? | | Secondly, how do I get a HTML report showing the outcome of the JUnit | tests run e.g. number of successful tests, error messages for invalid | ones etc. on HTML page? (Any chance of saying what needs to be put in | pom.xml file) | | Many thanks, | | Mike | | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFC1poMK3h2CZwO/4URAmFmAKCms0dNhIH8GAq7ZyxVjv9IzberygCgkHc4 5ph7p74e9lLy2bxOKDaS8hU= =5btN -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-repo] POM for commons-jelly-SNAPSHOT missing
That SNAPSHOT shouldn't be there, where is it referenced from? On 7/14/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: filed an issue (http://jira.codehaus.org/browse/MEV) Emmanuel J. Matthew Pryor wrote: I don't know if there is a better place for this, but I am trying to use m2 to build something that uses maven1 classes. The m2 repo for the maven 1 dependencies is pretty good except when it comes time to resolve commons-jelly SNAPSHOT. The jar is on ibiblio, but there is no POM http://www.ibiblio.org/maven2/commons-jelly/commons-jelly/SNAPSHOT/ I assume I should raise a Jira issue for this, but per haps there is a better place to deal with it Thanks, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNI dll gets loaded multiple times during JUnit tests
I'm converting an opensource project to use maven. The is a java COM wrapper. Accordingly, it relies on underlying JNI and dlls for the native support. When running its JUnit tests, I get the following error. Testcase: testEnv(com.moesol.bindings.platform_sdk.base_services.ProcessTest):Ca used an ERROR Native Library C:\Program Files\USMC\CJB\com_moesol_bindings.dll already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\CJB\com_moe sol_bindings.dll already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482) at java.lang.Runtime.load0(Runtime.java:737) at java.lang.System.load(System.java:811) at com.moesol.bindings.NativeLibraryLoader.load(NativeLibraryLoader.java The native library is getting loaded multiple times by the class loader. We have static blocks that load the libraries for every test. This does work under ant, presumably because ant fully unloads each test case after it is tested, thus the dlls aren't loaded more than once. Can anyone provide guidance on how to work around this. Thanks, Adam
StatCVS plugin help?
Hey all, I'm setting up and learning about Maven. I've gotten a few reports to work, but I'm having trouble with the statcvs plugin. Specifically, when I run 'maven statcvs' I get the following error: BUILD FAILED Goal 'statcvs' does not exist in this project. Adding reportmaven-statcvs-plugin/report per the instructions at: http://maven.apache.org/reference/plugins/statcvs and generating the site produces this problem: BUILD FAILED org.apache.maven.werkz.NoSuchGoalException: No goal [maven-statcvs-plugin:register] at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:207) rest of stack trace snipped Anyone know how I can get this working? I'm using Maven 1.1 beta1 and have other reports being generated correctly. Thanks in advance. -ryan Ryan Shriver Managing Consultant Dominion Digital dominiondigital.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JNI dll gets loaded multiple times during JUnit tests
Just a suggestion, try adding: maven.junit.fork=true to your project.properties. Doug Adam Perry-Pelletier wrote: I'm converting an opensource project to use maven. The is a java COM wrapper. Accordingly, it relies on underlying JNI and dlls for the native support. When running its JUnit tests, I get the following error. Testcase: testEnv(com.moesol.bindings.platform_sdk.base_services.ProcessTest):Ca used an ERROR Native Library C:\Program Files\USMC\CJB\com_moesol_bindings.dll already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\CJB\com_moe sol_bindings.dll already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482) at java.lang.Runtime.load0(Runtime.java:737) at java.lang.System.load(System.java:811) at com.moesol.bindings.NativeLibraryLoader.load(NativeLibraryLoader.java The native library is getting loaded multiple times by the class loader. We have static blocks that load the libraries for every test. This does work under ant, presumably because ant fully unloads each test case after it is tested, thus the dlls aren't loaded more than once. Can anyone provide guidance on how to work around this. Thanks, Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] MNG-320 .svn files get copied in the generated WAR file
MNG-320 seems to still be a problem in 2.0-alpha-3. http://jira.codehaus.org/browse/MNG-320 Looking at the WarMojo source on the trunk, it seems there is a TODO comment indicating that includes and excludes should be applied while copying resources. if ( new File( warSourceDirectory ).exists() ) { //TODO : Use includes and excludes FileUtils.copyDirectoryStructure( sourceDirectory, webappDirectory ); } It seems that this should read: if ( new File( warSourceDirectory ).exists() ) { FileUtils.copyDirectoryStructure( sourceDirectory, webappDirectory, includes, excludes ); } given that all the hard work was done in Plexus-utils to support a version of FileUtils.copyDirectoryStructure that also takes includes and excludes, but it is not being called from WarMojo. Should MNG-320 be reopened, or is something else going on here? Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Build.properties Equivalent
All, Does any one know the equivalent of build.properties in M2? How can I do something like pom.xml: dependency ... artifactId${my.dep.version}/artifactId ... /dependency Regards, David Le Strat. David Le Strat Blogging @ http://dlsthoughts.blogspot.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Build.properties Equivalent - Correction
All, Does any one know the equivalent of build.properties in M2? How can I do something like pom.xml: dependency ... version${my.dep.version}/version ... /dependency Regards, David Le Strat. David Le Strat Blogging @ http://dlsthoughts.blogspot.com Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Build.properties Equivalent - Correction
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You should never need to do that in maven2. Instead, you have an option of defining a hierarchy of poms, and within that hierarchy defining a set of managed dependencies. This is an important concept, since it allows you to declare properties (notably version) of a dependency for use in that hierarchy BUT NOT EVERYWHERE. What I mean is, you can define it once in a parent pom in this way: project ... ~ dependencyManagement ~dependencies ~ dependency ~groupIdjunit/groupId ~artifactIdjunit/artifactId ~version3.8.1/version ~scopetest/scope ~ /dependency ~/dependencies ~ /dependencyManagement ... /project in the parent pom, and then refer to this in one or more of the child poms like so: project ... ~ dependencies ~dependency ~ groupIdjunit/groupId ~ artifactIdjunit/artifactId ~/dependency ~ /dependencies ... /project In this child pom, the scope and version will be inferred from the managed dependencies section of it's ancestry. However, if you define another child pom like such: project ... ~ dependencies ~dependency ~ groupIdsomething-else/groupId ~ artifactIdsomething-else/artifactId ~ version1.0/version ~/dependency ~!-- NOTE: no reference to junit here -- ~ /dependencies ... /project then THIS child will NOT have any dependency on junit; it will not be included in any of the compile, test, or other classpaths during the build, and it will not be bundled with that second child in any way. Therefore, the managed dependencies allow you to provide standardization of the usage for certain dependencies used in your project hierarchy, without requiring that they be used in all subprojects. For maven2, the pom is completely self-contained for portability. In rare cases, you may also provide build profiles to specify certain plugin configurations for different targeted builds, like for a development environment vs. a testing environment. However, in general, we're discouraging the old non-portable companion file approach that we used in maven 1.x. Hope that helps, john David Le Strat wrote: | All, | | Does any one know the equivalent of build.properties | in M2? How can I do something like | | pom.xml: | | | dependency | ... | version${my.dep.version}/version | ... | /dependency | | Regards, | | David Le Strat. | | | David Le Strat | Blogging @ http://dlsthoughts.blogspot.com | | | | | Start your day with Yahoo! - make it your home page | http://www.yahoo.com/r/hs | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFC1rC+K3h2CZwO/4URAu1OAKCCypl68GInmU50jPrJd+199TLxTwCeOsYN IcI3KmCWN7xQWk9BAyKOqUU= =o+On -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven / EJB / Swing - How to organise?
Maven question for the community... May be one could post an example? I am quite new to Maven but have read a few books and articles on it... nobody seems to deal with this architecture: Say my architecture is a SWING GUI delivered by WebStart using an EJB server and passing back and forth some POJOs. Say I want to use a multi-project Maven environment, as standard as possible (ie I do not want to fiddle with lots of maven.xml configurations). Maven says, 1 project - 1 artifact (jar/war/etc)... When one develops a swing client to an ejb server, where and how do you give the home and remote interfaces to the Gui env? How do you generate the appropriate jars for distribution (including the signed WebStart ones) Say you have the following multi-project env: Proj project.xml - common - project.xml (the maven project bits common to all sub-projects) - CORE (jar) - project.xml - the dao and shared classes (between gui/server) - SERVER (ear) - project.xml - the EJB/server code - GUI (jar) - project.xml - the swing client And SERVER depends on CORE And GUI depends on core BUT it should also depends on the home/remote interfaces... however those are part of the SERVER ear? That is that last bit that I am not sure how to organise it within maven... How could you 'extract' the home remote interfaces... One option would be to have the home remote interfaces manually created in another sub-project generating a standard jar and that jar given to the GUI... but this looks very messy and would forbid (unless I am mistaken) the use of automatic tools like doclet. Any suggestion or pointer? Could someone post an example of project.xml (s) for such an architecture? How would you also sign the jars required for WebStart and deploy them? many thanks in advance, Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Build.properties Equivalent - Correction
Thanks John. Great email. I guess the models are just different. One of the nice things about the old build.properties approach is that it offered a way to share properties between an Ant build and a maven build. Let say I have a set of components built using Maven and a larger project (consumer of the components) with a complicated ant process, let's call it Z. Each components has a set of dependencies to other. Let say we have A, B, C. A depends on B, B depends on C. And all A, B, C are dependencies for Z. When I build Z, i need to specify the dependency for A, B, C. In the new world, the way to do this I guess is to invoke the artifact:dependencies task to set the dependencies from a maven pom in an Ant path environment property. This is quite an elegant approach. Just takes some getting used to. Regards, David Le Strat. --- John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You should never need to do that in maven2. Instead, you have an option of defining a hierarchy of poms, and within that hierarchy defining a set of managed dependencies. This is an important concept, since it allows you to declare properties (notably version) of a dependency for use in that hierarchy BUT NOT EVERYWHERE. What I mean is, you can define it once in a parent pom in this way: project ... ~ dependencyManagement ~dependencies ~ dependency ~groupIdjunit/groupId ~artifactIdjunit/artifactId ~version3.8.1/version ~scopetest/scope ~ /dependency ~/dependencies ~ /dependencyManagement ... /project in the parent pom, and then refer to this in one or more of the child poms like so: project ... ~ dependencies ~dependency ~ groupIdjunit/groupId ~ artifactIdjunit/artifactId ~/dependency ~ /dependencies ... /project In this child pom, the scope and version will be inferred from the managed dependencies section of it's ancestry. However, if you define another child pom like such: project ... ~ dependencies ~dependency ~ groupIdsomething-else/groupId ~ artifactIdsomething-else/artifactId ~ version1.0/version ~/dependency ~!-- NOTE: no reference to junit here -- ~ /dependencies ... /project then THIS child will NOT have any dependency on junit; it will not be included in any of the compile, test, or other classpaths during the build, and it will not be bundled with that second child in any way. Therefore, the managed dependencies allow you to provide standardization of the usage for certain dependencies used in your project hierarchy, without requiring that they be used in all subprojects. For maven2, the pom is completely self-contained for portability. In rare cases, you may also provide build profiles to specify certain plugin configurations for different targeted builds, like for a development environment vs. a testing environment. However, in general, we're discouraging the old non-portable companion file approach that we used in maven 1.x. Hope that helps, john David Le Strat wrote: | All, | | Does any one know the equivalent of build.properties | in M2? How can I do something like | | pom.xml: | | | dependency | ... | version${my.dep.version}/version | ... | /dependency | | Regards, | | David Le Strat. | | | David Le Strat | Blogging @ http://dlsthoughts.blogspot.com | | | | | Start your day with Yahoo! - make it your home page | http://www.yahoo.com/r/hs | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFC1rC+K3h2CZwO/4URAu1OAKCCypl68GInmU50jPrJd+199TLxTwCeOsYN IcI3KmCWN7xQWk9BAyKOqUU= =o+On -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] David Le Strat Blogging @ http://dlsthoughts.blogspot.com Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.library.path ant equivalent
I add load library paths in an ant's build.xml files like: target name=junit-run depends=prepare junit printsummary=true failureproperty=junit.failed sysproperty key=com_moesol_bindings.library.path value=${basedir}/src/lib/com_moesol_bindings/${jni.compile.type} / We do this in build.xml so we can parametize wheterh we want to load the Debug or Release version of the dll. Any suggestions would be appreciated. Thanks Adam
Re: JNI dll gets loaded multiple times during JUnit tests
On Thu, 14 Jul 2005, Adam Perry-Pelletier wrote: You could use a TestSuite that does the dll initialization and contains (references to) all the TestCases, which of course no longer load the dll. I'm not entirely sure about the details, but I bet the JUnit documentation can be helpful there. -- Kenney I'm converting an opensource project to use maven. The is a java COM wrapper. Accordingly, it relies on underlying JNI and dlls for the native support. When running its JUnit tests, I get the following error. Testcase: testEnv(com.moesol.bindings.platform_sdk.base_services.ProcessTest):Ca used an ERROR Native Library C:\Program Files\USMC\CJB\com_moesol_bindings.dll already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library C:\Program Files\CJB\com_moe sol_bindings.dll already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482) at java.lang.Runtime.load0(Runtime.java:737) at java.lang.System.load(System.java:811) at com.moesol.bindings.NativeLibraryLoader.load(NativeLibraryLoader.java The native library is getting loaded multiple times by the class loader. We have static blocks that load the libraries for every test. This does work under ant, presumably because ant fully unloads each test case after it is tested, thus the dlls aren't loaded more than once. Can anyone provide guidance on how to work around this. Thanks, Adam -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add other repository [m2]
If you specify a plugin repository in your POM, like: pluginRepositories pluginRepository idmy-plugins/id nameMy Plugin Repository/name urlhttp://repository.mycompany.org/url /pluginRepository /pluginRepositories then, this plugin repository is always consulted before the central maven plugin repository. At least, that is what I experience. I'm using the latest from SVN. Could this be different for alpha-3 or whatever version you are using? HTH, Peter Wilfred Springer wrote: I have seen this URL, thanks. In fact, I even tried a number of things to understand how it works, but I'm not sure if I'm required to add a mirror add a server add a profile with a repository What do you suggest? Thanks, Wilfred On Thu, 2005-07-14 at 16:34, Dennis Geurts wrote: try this URL: http://maven.apache.org/maven2/maven-settings/settings.html Dennis On 7/14/05, Wilfred Springer [EMAIL PROTECTED] wrote: All, I want my project to check for a maven plugin from my own repository, before trying the http://repo1.maven.org/maven2/plugins repository. Any clues? Thanks, Wilfred -- _ Wilfred Springer Phone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client Solutions Fax : +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems Netherlands AIM : wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 error
i get something like this now with v alpha-3. $ m2 -e archtype:create -DgroupID=ts -DartifactId=demoapp + Error stacktraces are turned on. [INFO] [INFO] Building Maven Default Project [INFO] [INFO] maven-archtype-plugin: checking for updates from central-plugins [INFO] Retrieving release information for maven-archtype-plugin FATAL ERROR: Error executing Maven for a project Error stacktrace: org.apache.maven.reactor.ReactorException: Error executing project within the reactor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190) at org.apache.maven.cli.MavenCli.main(MavenCli.java:269) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) at org.codehaus.classworlds.Launcher.main(Launcher.java:363) Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving plugin version at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:537) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:149) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:133) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:103) at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180) ... 9 more Caused by: org.apache.maven.plugin.version.PluginVersionResolutionException: Error resolving version for 'org.apache.maven.plugins:maven-archtype-plugin': Cannot resolve RELEASE version of this plugin. at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveReleaseVersion(DefaultPluginVersionManager.java:570) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:130) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:192) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:528) On 4/30/05, Brett Porter [EMAIL PROTECTED] wrote: I have corrected the problem in the velocity metadata and am pushing it out now. It lists a lot of optional dependencies - for now they are commented out. - Brett m2 archetype:create -DgroupId=com.pcmsgroup.v21.common.logging -DartifactId=v21-common-logging as detailed, and once I'd sorted my proxy settings, all looked well, until I got the little stack trace at the end. From what I could find on mailing lists it seems to be an invalid or missing dependency, how can I fix it? Also where'd the wiki go? FAQ's for M2 would be quite handy. Thanks Simon org.apache.maven.reactor.ReactorException: Error executing project within the reactor at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:144) at org.apache.maven.cli.MavenCli.main(MavenCli.java:233) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303) at org.codehaus.classworlds.Launcher.launch(Launcher.java:243) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416) at org.codehaus.classworlds.Launcher.main(Launcher.java:363) Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error during lifecycle execution at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(De faultLifec ycleExecutor.java:154) at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:212) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:136) ... 9 more Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException : Error transitively resolving artifacts: at org.apache.maven.artifact.resolver.DefaultArtifactResolver.res olveTransi tively(DefaultArtifactResolver.java:191)
Re: Maven 2 error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 solo turn wrote: snip/ | 'org.apache.maven.plugins:maven-archtype-plugin': Cannot resolve This appears to be a typo, probably from your command line or from your POM. It should be maven-archetype-plugin, so if you're invoking directly from the command line, use: m2 archetype:goal other-options HTH, john -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFC1sNLK3h2CZwO/4URAiT7AKCm55NF84Np5griP+frjlGwLSRIYwCeMuiP Z7wtx5f4x1pZpvKDazfU0cw= =eca3 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven 1.0.2] URGENT custome application.xml not being included in ear
This application.xml is kicking my butt Why must this be so fricking difficult? PLEASE someone help me fix this. All I want to do is include the ./ear-subproject/src/conf/META-INF/application.xml into my ear as the application.xml file and I can get this stupid thing to work! Here is all I have: in ./fastforward (my root folder) project.xml: ?xml version=1.0 encoding=ISO-8859-1? project xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=/Maven_1.0.2/maven-project.xsd pomVersion3/pomVersion idfastforwardProject/id groupIdff/groupId nameFastforward/name currentVersion1.1.0/currentVersion !-- -- !--Project management section -- !-- -- !-- Start Global Dependancies ==-- !-- Dependencies used for the build, and not included in the EAR or WAR -- dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.8/version typejar/type properties jar.manifest.classpathtrue/jar.manifest.classpath /properties /dependency dependency groupIdejb-2.1/groupId artifactIdejb/artifactId typejar/type version2.1/version /dependency dependency groupIdxdoclet/groupId artifactIdmaven-xdoclet-plugin/artifactId typeplugin/type version1.2.3/version /dependency dependency groupIdxdoclet/groupId artifactIdxdoclet-ibm-module/artifactId typejar/type version1.2.3/version /dependency dependency groupIdxdoclet/groupId artifactIdmaven-xdoclet-plugin/artifactId typeplugin/type version1.2.3/version !-- urlhttp://10.34.30.113/maven/xdoclet/plugins/url -- /dependency dependency groupIdmaven-plugins/groupId artifactIdmaven-was5-plugin/artifactId typeplugin/type version1.2/version /dependency dependency groupIdmaven-plugins/groupId artifactIdmaven-axis-plugin/artifactId typeplugin/type version0.7/version /dependency !-- END Dependencies used for the build, and not included in the EAR or WAR -- !-- -- !-- Dependencies to be included in the EAR and/or WAR ==-- !-- Spring framework related dependancies ==-- dependency groupIdspringframework/groupId artifactIdspring/artifactId version1.2.1/version typejar/type properties jar.manifest.classpathtrue/jar.manifest.classpath ejb.manifest.classpathtrue/ejb.manifest.classpath war.bundletrue/war.bundle ear.bundletrue/ear.bundle /properties /dependency dependency groupIdspringframework/groupId artifactIdspring-mock/artifactId version1.2.1/version urlhttp://www.springframework.org//url properties jar.manifest.classpathtrue/jar.manifest.classpath ejb.manifest.classpathtrue/ejb.manifest.classpath war.bundletrue/war.bundle ear.bundletrue/ear.bundle /properties /dependency dependency groupIdaopalliance/groupId artifactIdaopalliance/artifactId version1.0/version urlhttp://aopalliance.sourceforge.net//url properties jar.manifest.classpathtrue/jar.manifest.classpath ejb.manifest.classpathtrue/ejb.manifest.classpath war.bundletrue/war.bundle ear.bundletrue/ear.bundle /properties /dependency dependency groupIdcglib/groupId artifactIdcglib/artifactId version2.1/version typejar/type properties jar.manifest.classpathtrue/jar.manifest.classpath ejb.manifest.classpathtrue/ejb.manifest.classpath war.bundletrue/war.bundle ear.bundletrue/ear.bundle /properties /dependency !-- Hibernate related dependancies
[maven 1.0.2] How to update all the default plugins for maven?
I want to update all the default plugins for my Maven 1.0.2 install. How can I force Maven to get the latest of all plugins? Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven test:single - TestCase class reports no package name
I am running a JUnit test case two ways; the one that works is 'maven test:ui' and then I select the test case class in the GUI and it runs successfully. However, running 'maven -Dtestcase=com.echostar.partners.webtest.welcome.LoginPageTestCase test:single' will fail when my code calls getPackageName() on the class LoginPageTestCase and gets a null instead of 'com.echostar.partners.webtest.welcome'. Is this a classloader issue? When running 'maven test:single' with the -X option, it reports that the class is loaded from the 'ant loader'. Below is the partial output when using the -X option. Notice my debug output ' inTestCaseClass' at the bottom. Thanks for any help, Oliver. ++ Verbose output: Processing dependencies for project Partners WAR Project; classloader [ForeheadClassLoader: name=root.maven] [java] [VERBOSE] Executing 'E:\bea81sp4\jdk142_05\jre\bin\java.exe' with arguments: '-classpath' 'E:\mavenrepo\dev\commons-logging\jars\commons-logging-1.0.4.jar; E:\mavenrepo\dev\log4j\jars\log4j-1.2.9.jar; E:\mavenrepo\dev\commons-collections\jars\commons-collections-2.1.1.jar; E:\mavenrepo\dev\commons-beanutils\jars\commons-beanutils-1.6.1.jar; E:\mavenrepo\dev\commons-digester\jars\commons-digester-1.5.jar; E:\mavenrepo\dev\commons-lang\jars\commons-lang-2.0.jar; E:\mavenrepo\dev\commons-validator\jars\commons-validator-1.1.3.jar; E:\mavenrepo\dev\antlr\jars\antlr-2.7.2.jar; E:\mavenrepo\dev\oro\jars\oro-2.0.7.jar; E:\mavenrepo\dev\taglibs\jars\standard-1.0.6.jar; E:\mavenrepo\dev\jstl\jars\jstl-1.0.6.jar; E:\mavenrepo\dev\struts\jars\struts-1.2.4.jar; E:\mavenrepo\dev\struts\jars\struts-el-1.2.4.jar; E:\mavenrepo\dev\echostar\jars\connectionpool-4.0.0.0.jar; E:\mavenrepo\dev\echostar\jars\toolkit-4.0.2.0.jar; E:\mavenrepo\dev\echostar\jars\webapi-4.0.2.0.jar; E:\mavenrepo\dev\echostar\jars\enterprise-ejb-4.0.2.0.jar; E:\mavenrepo\dev\echostar\jars\api-ejb-4.0.2.0.jar; E:\mavenrepo\dev\echostar\jars\netqual-ejb-4.0.2.0.jar; E:\mavenrepo\dev\webmethods\jars\activeworks-1.0.0.jar; E:\mavenrepo\dev\weblogic\jars\weblogic-8.1.4.0.jar; E:\mavenrepo\dev\xmlbeans\jars\xbean-1.0.4.jar; E:\mavenrepo\dev\xmlbeans\jars\xbean_xpath-1.0.4.jar; E:\mavenrepo\dev\rhino\jars\js-1.6R1.jar; E:\mavenrepo\dev\jwebunit\jars\jwebunit-1.2.jar; E:\mavenrepo\dev\httpunit\jars\httpunit-1.6.jar; E:\mavenrepo\dev\junit\jars\junit-3.8.1.jar; E:\mavenrepo\dev\nekohtml\jars\nekohtml-0.8.1.jar; E:\mavenrepo\dev\xercesImpl\jars\xercesImpl-2.6.2.jar' 'org.apache.xmlbeans.impl.tool.SchemaCompiler' '-src' 'E:\pvcs_working\echostar\partners\webapp\src\java' '-d' 'E:\pvcs_working\echostar\partners\webapp\test\resources\webtestschema' 'E:\pvcs_working\echostar\partners\webapp\test\webtestxsd\*.xsd' ... [junit] [DEBUG] Finding class com.echostar.partners.webtest.welcome.LoginPageTestCase [junit] [DEBUG] Finding class com.echostar.partners.webtest.EchoWebTestCase [junit] [DEBUG] Finding class net.sourceforge.jwebunit.WebTestCase [junit] [DEBUG] Class junit.framework.TestCase loaded from parent loader [junit] [DEBUG] Class net.sourceforge.jwebunit.WebTestCase loaded from ant loader [junit] [DEBUG] Class com.echostar.partners.webtest.EchoWebTestCase loaded from ant loader [junit] [DEBUG] Class com.echostar.partners.webtest.welcome.LoginPageTestCase loaded from ant loader [junit] [DEBUG] Class java.lang.Object loaded from parent loader ... getName(): testLoginNotExpired getClass(): class com.echostar.partners.webtest.welcome.LoginPageTestCase [junit] [DEBUG] Finding class com.echostar.partners.webtest.util.DataUtility [junit] [DEBUG] Class com.echostar.partners.webtest.util.DataUtility loaded from ant loader [junit] [DEBUG] Finding class org.apache.xmlbeans.XmlException [junit] [DEBUG] Class org.apache.xmlbeans.XmlException loaded from ant loader inTestCaseClass:class com.echostar.partners.webtest.welcome.LoginPageTestCase inTestCaseClass.getPackage():null [junit] [DEBUG] Class java.lang.Package loaded from parent loader [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.266 sec [junit] [ERROR] TEST com.echostar.partners.webtest.welcome.LoginPageTestCase FAILED - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2-repo] POM for commons-jelly-SNAPSHOT missing
Its referenced from commons-jelly-ant-1.0 IIRC -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 3:24 AM To: Maven Users List Subject: Re: [m2-repo] POM for commons-jelly-SNAPSHOT missing That SNAPSHOT shouldn't be there, where is it referenced from? On 7/14/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: filed an issue (http://jira.codehaus.org/browse/MEV) Emmanuel J. Matthew Pryor wrote: I don't know if there is a better place for this, but I am trying to use m2 to build something that uses maven1 classes. The m2 repo for the maven 1 dependencies is pretty good except when it comes time to resolve commons-jelly SNAPSHOT. The jar is on ibiblio, but there is no POM http://www.ibiblio.org/maven2/commons-jelly/commons-jelly/SNAPSHOT/ I assume I should raise a Jira issue for this, but per haps there is a better place to deal with it Thanks, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2-repo] POM for commons-jelly-SNAPSHOT missing
Please file an issue at http://jira.codehaus.org/browse/MEV On 7/14/05, J. Matthew Pryor [EMAIL PROTECTED] wrote: Its referenced from commons-jelly-ant-1.0 IIRC -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Friday, July 15, 2005 3:24 AM To: Maven Users List Subject: Re: [m2-repo] POM for commons-jelly-SNAPSHOT missing That SNAPSHOT shouldn't be there, where is it referenced from? On 7/14/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: filed an issue (http://jira.codehaus.org/browse/MEV) Emmanuel J. Matthew Pryor wrote: I don't know if there is a better place for this, but I am trying to use m2 to build something that uses maven1 classes. The m2 repo for the maven 1 dependencies is pretty good except when it comes time to resolve commons-jelly SNAPSHOT. The jar is on ibiblio, but there is no POM http://www.ibiblio.org/maven2/commons-jelly/commons-jelly/SNAPSHOT/ I assume I should raise a Jira issue for this, but per haps there is a better place to deal with it Thanks, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add other repository [m2]
Wilfred, I must confess I never used the 'repo override' myself... ;-) people: correct me if I'm wrong !! I guess since you want to always override you best create a profile that always 'activates' e.g. profile idjdk-1.5/id activation jdk1.5/jdk /activation repositories repository idmy own repo/id nameMy own Repository/name urlhttp://localhost:8080/myownrepo/maven2/url layoutdefault/layout snapshotPolicyalways/snapshotPolicy /repository /repositories /profile Dennis On 7/14/05, Peter van de Hoef [EMAIL PROTECTED] wrote: If you specify a plugin repository in your POM, like: pluginRepositories pluginRepository idmy-plugins/id nameMy Plugin Repository/name urlhttp://repository.mycompany.org/url /pluginRepository /pluginRepositories then, this plugin repository is always consulted before the central maven plugin repository. At least, that is what I experience. I'm using the latest from SVN. Could this be different for alpha-3 or whatever version you are using? HTH, Peter Wilfred Springer wrote: I have seen this URL, thanks. In fact, I even tried a number of things to understand how it works, but I'm not sure if I'm required to add a mirror add a server add a profile with a repository What do you suggest? Thanks, Wilfred On Thu, 2005-07-14 at 16:34, Dennis Geurts wrote: try this URL: http://maven.apache.org/maven2/maven-settings/settings.html Dennis On 7/14/05, Wilfred Springer [EMAIL PROTECTED] wrote: All, I want my project to check for a maven plugin from my own repository, before trying the http://repo1.maven.org/maven2/plugins repository. Any clues? Thanks, Wilfred -- _ Wilfred Springer Phone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client Solutions Fax : +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems Netherlands AIM : wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2-repo] POM for commons-jelly-SNAPSHOT missing
http://jira.codehaus.org/browse/MEV-38 Done - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven 1.0.2] How to update all the default plugins for maven?
There is now update all method. It's a manual process. On 7/14/05, Mick Knutson [EMAIL PROTECTED] wrote: I want to update all the default plugins for my Maven 1.0.2 install. How can I force Maven to get the latest of all plugins? Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com HP Consulting Services (Walnut Creek, CA) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jamie Bisotti Software Engineer Lexmark International, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven 1.0.2 and junitreport?
I've used the latest hibernate ant tasks with Maven 1.1. I had to include it's dependencies in my project.xml but it worked. I notice that the documentation for the junitreport task mentions the Xalan libraries, have you check that out? (http://ant.apache.org/manual/OptionalTasks/junitreport.html) -Original Message- From: Matt Meola [mailto:[EMAIL PROTECTED] Sent: Friday, 15 July 2005 1:49 AM To: Maven Users List Subject: RE: Maven 1.0.2 and junitreport? On Thu, 2005-07-14 at 13:15 +1000, Washusen, Dan wrote: I'd stick with Maven 1.1 if you want to use ant tasks as it includes a more recent version of ant. Makes sense... Out of interest, why are you using the ant junit report instead of maven junit report plugin http://maven.apache.org/reference/plugins/junit-report/goals.html? Currently, we are. However, the unified JUnit report seems to make little distinction if there are test names that are identical (in two different test classes). If one defines a couple of large test suites, each running the _same_ tests with a different configuration set, then the report seems to conflate the test names in such a way that it is difficult to discern the class in which a particular result was found. The ant JUnit report uses the class name as a namespace, and it's a bit easier to navigate, IMO. (but that's just a matter of style) I have a feeling that I'm just missing something in my poor command of maven scripting... -- Matt Meola Contractor Vericept Corporation 555 17th Street, Suite 1500 Denver, Colorado 80202 Protecting Your Information and Reputation tm tel: (303) 798-1568 ext. 5009 fax: (303) 268-0520 http://www.vericept.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.about.sensis.com.au A leading Australian advertising, information and directories business. www.sensis.com.au www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au www.tradingpost.com.au www.universalpublishers.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 8653 5000] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Local Repository Issue
I'm having problems getting Maven (1.0.2) to find .JAR files in my local repository. Basic problem, but I can't get it to work for the life of me. Here is my setup: My repository is in the default location (/.maven/repository/), and I added a path to a j2ee .JAR I placed in this directory... ie: /.maven/repository/j2ee/jars/j2ee-1.4.jar Here is my dependency entry in the project.xml. I even tried using the jar tag to explicitly name the file, with no luck: dependency groupIdj2ee/groupId artifactIdj2ee/artifactId version1.4/version typejar/type jarj2ee-1.4.jar/jar /dependency I'm running: maven -0 jar:jar, and I get the following error: The build cannot continue because of the following unsatisfied dependency: j2ee-1.4.jar Any help would be appreciated ! Thanks ! == Dylan
[M2] Mix between Provided and Test Scopes
I'm attempting to utilize the servlet api within some mock tests (in addition to needing it to compile my main source). I have attempted to mark the scope of the servlet api in the following manners: 1) Provided Scope 2) Test Scope 3) Two Separate Dependencies of Provided Scope AND Test Scope And none of these seem to work. When the scope is 'provided', the tests throw a class not found exception. When the scope is 'test' the main source fails to compile. When I attempt to use both, it appears as though the second dependency is ignored. Has anyone else encountered this and found a work around? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] plugin parameter value configuration for non primitive types?
What syntax is supported for M2 Plugin parameters of non-primitive types? For example, java.util.Collection (and subclasses), java.util.Map (and subclasses), arrays, Properties and JavaBeans. /** * Items to be processed, defaults to the empty set. * * @parameter */ private Set items = Collections.EMPTY_SET; configuration items???/items /configuration Kind Regards, John Fallows. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Mix between Provided and Test Scopes
On Thu, 14 Jul 2005, David H. DeWolf wrote: What you could do is depend on a pom, scopetest/scope, that itself depends on the servlet api. -- Kenney I'm attempting to utilize the servlet api within some mock tests (in addition to needing it to compile my main source). I have attempted to mark the scope of the servlet api in the following manners: 1) Provided Scope 2) Test Scope 3) Two Separate Dependencies of Provided Scope AND Test Scope And none of these seem to work. When the scope is 'provided', the tests throw a class not found exception. When the scope is 'test' the main source fails to compile. When I attempt to use both, it appears as though the second dependency is ignored. Has anyone else encountered this and found a work around? Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]