Re: Managing dependencies which are not in the Reposistory
Ah cool, thanks very much for that. Andy 2009/11/30 Stevo Slavić ssla...@gmail.com: Herehttp://jasperforge.org/plugins/espforum/view.php?group_id=112forumid=102topicid=45277you can find instructions on how to setup jasperreports maven repository. It seems 3.6.2 hasn't been published there yet, but 3.6.0 is and 3.6.2-snapshot too. You can use 3.6.0 and wait for official 3.6.2 to be published there, or download and install:install-file/deploy:deploy-file 3.6.2 to your local/corporate repository. In second case you have to provide 3.6.2 pom yourself, while maybe 3.6.2-snapshot pom and/or 3.6.2 release notes / documentation might be of some help. Regards, Stevo. On Mon, Nov 30, 2009 at 7:34 PM, Wayne Fay wayne...@gmail.com wrote: We need to use the latest release of Jasper Reports 3.2.6 However this library doesn't exist in a Maven Repository. How do we manage this dependency and all its transitive dependencies? Complain to the JasperReports people until they upload a proper pom for that version (and the jar). Alternatively, grab the previous version pom file, update the version tag, upload it to your corporate repo, and hope/pray you don't run into any conflicts or missing deps. Wayne - 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
Managing dependencies which are not in the Reposistory
Hello, We have a Maven 2 project and one of the libraries we need to add is Jasper Reports. We need to use the latest release of Jasper Reports 3.2.6 However this library doesn't exist in a Maven Repository. How do we manage this dependency and all its transitive dependencies? (i.e. all the dependencies it relies on) Downloading jasperreports.3.2.6.jar from their website is not a problem, however this library depends on a whole host of other libraries. Do we have to find what these these libraries are and add them to our POM file manually? That seems to be a bit excessive, laborious and error prone. Not to mention our POM file being cluttered with all these Jasper Report dependencies. Is there a standard way of managing dependencies like this in a Maven project? Thanks in advance for any help anyone can give. Andy B - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Where are Sun java jars in any public maven2 repo?
Can't you use the one in central? http://repo1.maven.org/maven2/javax/servlet/servlet-api/2.5/ 2009/11/30 jvsrvcs jvsr...@gmail.com: I'm looking for the latest and greates servlet.jar so I can put a dependency in my maven2 pom.xml and am pointed by this page: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html to http://download.java.net/maven/2/javax/servlet/ But nothing but /jsp/ is there. There is no dir that contains the latest servlet.jar What up? Where do I find the latest servelet.jar in a maven2 repo? thanks for the help jv -- View this message in context: http://old.nabble.com/Where-are-Sun-java-jars-in-any-public-maven2-repo--tp26579489p26579489.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
Getting and using the latest archetype plugin
Hello, I wish to use the latest archetype plugin, 2.0-alpha-2 (I think that's the latest, although one's never quite sure in the mysterious world of Maven!) However when I run mvn archetype:genearte it uses the 1.0-alpha-4 version and subsequently can't find this goal. Even if I delete this plugin from my local repository maven still downloads the 1.0-alpha-4 version and attempts to use that. (Note: not even the 1.0-alpha-7 version!) The documentation states that the default behaviour of Maven is to use the latest version of a plugin. How can I get Maven to download and use the latest archetype automatically? Thanks for any help anyone can give. Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting and using the latest archetype plugin
On 28/02/2008, Wendy Smoak [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 9:02 AM, Andrew Birchall [EMAIL PROTECTED] wrote: I wish to use the latest archetype plugin, 2.0-alpha-2 (I think that's the latest, although one's never quite sure in the mysterious world of Maven!) Are you following the announcements mailing list? The plugins page also has versions listed: http://maven.apache.org/plugins/index.html What could we do better? [Archetype is perhaps not our best example right now, the documentation does not exactly match the release.] The plugins page has the version listed as 2.0-alpha-1. So there you go - you could do better there. Its these little things that cause confusion and a sense of doubt. However when I run mvn archetype:genearte it uses the 1.0-alpha-4 version and subsequently can't find this goal. Even if I delete this plugin from my local repository maven still downloads the 1.0-alpha-4 version and attempts to use that. (Note: not even the 1.0-alpha-7 version!) How did you delete it? You'll need to delete the entire maven-archetype-plugin directory including the metadata and all the versions. My mistake. I was deleting the entire archetype directory, but the wrong one. I was deleting \.m2\repository\org\apache\maven\archetype instead of \.m2\repository\org\apache\maven\plugins\maven-archetype-plugin The documentation states that the default behaviour of Maven is to use the latest version of a plugin. How can I get Maven to download and use the latest archetype automatically? It should Just Work. 2.0-alpha-2 is in the central repo and the maven-metadata.xml correctly lists that version as the latest: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/ Are you using a mirror or an internal repository? If so, check the metadata file, it may be incorrect. No I'm using the main central reposiitory not a mirror or an internal repoistory. To force it, use the version number on the command line. Something like: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-2:create ... I ran it with the -U switch, i.e. mvn -U archtype:generate and it updated to the latest plugin. Thanks for your help. Andy -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Creating internal remote repsistory for Oracle ADF project
Thanks a lot Wayne, that's great help. It does seem a lot of work to do this for every jar file the project depends on but I guess I can write a script to do it. I feel that the documentation for Maven is not that good. Its not very clear or well structured, making it hard to find what you need, especially for people who are new to it. For example, the Introduction to Repositories page (http://maven.apache.org/guides/introduction/introduction-to-repositories.html), which talks about Internal Repositories, contains no information about using mvn deploy:deploy-file. There's also hardly anything on this in the Better Build with Maven book from Mergere. I think this is a gap in the Maven documentation. But I also feel that the Maven documentation is weakness in the Maven project generally and probably hinders it's adoption. Thanks very much Andy Birchall On 07/06/07, Wayne Fay [EMAIL PROTECTED] wrote: mvn install:install-file and mvn deploy:deploy-file are your friends -- and they are very well-documented [1] [2] including a FAQ [3]. Assuming you have oc4j.jar and want to push it into the shared corporate repo: mvn deploy:deploy-file -DgroupId=com.oracle.jdeveloper -DartifactId=oc4j -Dversion=10.1.3.2 -Dpackaging=jar -Dfile=oc4j.jar -DgeneratePom=true -DrepositoryId=your_id -Durl=file://somewhere/m2/repo You will have to pick the groupId, artifactId, version for all your jars. Also, you will need to follow the directions regarding setting up the repositoryId in your settings.xml and of course get the right file:// path. But that's it. Wayne [1] http://maven.apache.org/plugins/maven-install-plugin/usage.html [2] http://maven.apache.org/plugins/maven-deploy-plugin/usage.html [3] http://maven.apache.org/guides/mini/guide-deploying-3rd-party-jars.html On 6/7/07, Andrew Birchall [EMAIL PROTECTED] wrote: Hello, I am trying to Mavenize a multi-module J2EE Oracle ADF project that is currently built with several Ant scripts and developed in JDeveloper 10.1.3.2 One of the main problems I have is that the project depends on many Artifacts (jar files) distributed with JDeveloper. Thus, In order to build this project with Maven I have to set up an internal repository in our company with all the JDeveloper jar files. At the moment I am trying to do this with the file:// protocol on a network share. However I'm not really sure the way to go about this and I can't seem to find any good documentation on it. Non of the jars distributed with JDeveloper are versioned. Do I have to version all the jar files myself and put them in the correct package directories, in order to conform to the Maven repository layout convention? How do I know what version to re-name the jar files to? If I do have to do this its a BIG and tedious job because there's so many dependencies. And what about the pom files for each jar, how do these get created? I'd be very grateful to hear from anyone who can help Kind regards Andy Birchall ----- 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] Creating internal remote repsistory for Oracle ADF project
Thanks Vanja that looks pretty good, though even here, they don't seem to mention mvn:deploy much. The section on Wagon and Repositories looks pretty good though, I'll take a closer look at it later. Cheers Andy On 08/06/07, Vanja Petreski [EMAIL PROTECTED] wrote: Hi, try with this one: http://www.sonatype.com/book/index.html ;) Vanja On 6/8/07, Andrew Birchall [EMAIL PROTECTED] wrote: Thanks a lot Wayne, that's great help. It does seem a lot of work to do this for every jar file the project depends on but I guess I can write a script to do it. I feel that the documentation for Maven is not that good. Its not very clear or well structured, making it hard to find what you need, especially for people who are new to it. For example, the Introduction to Repositories page ( http://maven.apache.org/guides/introduction/introduction-to-repositories.html ), which talks about Internal Repositories, contains no information about using mvn deploy:deploy-file. There's also hardly anything on this in the Better Build with Maven book from Mergere. I think this is a gap in the Maven documentation. But I also feel that the Maven documentation is weakness in the Maven project generally and probably hinders it's adoption. Thanks very much Andy Birchall On 07/06/07, Wayne Fay [EMAIL PROTECTED] wrote: mvn install:install-file and mvn deploy:deploy-file are your friends -- and they are very well-documented [1] [2] including a FAQ [3]. Assuming you have oc4j.jar and want to push it into the shared corporate repo: mvn deploy:deploy-file -DgroupId=com.oracle.jdeveloper -DartifactId=oc4j -Dversion=10.1.3.2 -Dpackaging=jar -Dfile=oc4j.jar -DgeneratePom=true -DrepositoryId=your_id -Durl=file://somewhere/m2/repo You will have to pick the groupId, artifactId, version for all your jars. Also, you will need to follow the directions regarding setting up the repositoryId in your settings.xml and of course get the right file:// path. But that's it. Wayne [1] http://maven.apache.org/plugins/maven-install-plugin/usage.html [2] http://maven.apache.org/plugins/maven-deploy-plugin/usage.html [3] http://maven.apache.org/guides/mini/guide-deploying-3rd-party- jars.html On 6/7/07, Andrew Birchall [EMAIL PROTECTED] wrote: Hello, I am trying to Mavenize a multi-module J2EE Oracle ADF project that is currently built with several Ant scripts and developed in JDeveloper 10.1.3.2 One of the main problems I have is that the project depends on many Artifacts (jar files) distributed with JDeveloper. Thus, In order to build this project with Maven I have to set up an internal repository in our company with all the JDeveloper jar files. At the moment I am trying to do this with the file:// protocol on a network share. However I'm not really sure the way to go about this and I can't seem to find any good documentation on it. Non of the jars distributed with JDeveloper are versioned. Do I have to version all the jar files myself and put them in the correct package directories, in order to conform to the Maven repository layout convention? How do I know what version to re-name the jar files to? If I do have to do this its a BIG and tedious job because there's so many dependencies. And what about the pom files for each jar, how do these get created? I'd be very grateful to hear from anyone who can help Kind regards Andy Birchall ----- 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] Creating internal remote repsistory for Oracle ADF project
Yeah I mentioned that in a previous reply. Thanks Andy On 08/06/07, Wayne Fay [EMAIL PROTECTED] wrote: There's also a free PDF better Builds with Maven book from Mergere.com which is a big help as well. Wayne On 6/8/07, Andrew Birchall [EMAIL PROTECTED] wrote: Thanks Vanja that looks pretty good, though even here, they don't seem to mention mvn:deploy much. The section on Wagon and Repositories looks pretty good though, I'll take a closer look at it later. Cheers Andy On 08/06/07, Vanja Petreski [EMAIL PROTECTED] wrote: Hi, try with this one: http://www.sonatype.com/book/index.html ;) Vanja On 6/8/07, Andrew Birchall [EMAIL PROTECTED] wrote: Thanks a lot Wayne, that's great help. It does seem a lot of work to do this for every jar file the project depends on but I guess I can write a script to do it. I feel that the documentation for Maven is not that good. Its not very clear or well structured, making it hard to find what you need, especially for people who are new to it. For example, the Introduction to Repositories page ( http://maven.apache.org/guides/introduction/introduction-to-repositories.html ), which talks about Internal Repositories, contains no information about using mvn deploy:deploy-file. There's also hardly anything on this in the Better Build with Maven book from Mergere. I think this is a gap in the Maven documentation. But I also feel that the Maven documentation is weakness in the Maven project generally and probably hinders it's adoption. Thanks very much Andy Birchall On 07/06/07, Wayne Fay [EMAIL PROTECTED] wrote: mvn install:install-file and mvn deploy:deploy-file are your friends -- and they are very well-documented [1] [2] including a FAQ [3]. Assuming you have oc4j.jar and want to push it into the shared corporate repo: mvn deploy:deploy-file -DgroupId=com.oracle.jdeveloper -DartifactId=oc4j -Dversion=10.1.3.2 -Dpackaging=jar -Dfile=oc4j.jar -DgeneratePom=true -DrepositoryId=your_id -Durl=file://somewhere/m2/repo You will have to pick the groupId, artifactId, version for all your jars. Also, you will need to follow the directions regarding setting up the repositoryId in your settings.xml and of course get the right file:// path. But that's it. Wayne [1] http://maven.apache.org/plugins/maven-install-plugin/usage.html [2] http://maven.apache.org/plugins/maven-deploy-plugin/usage.html [3] http://maven.apache.org/guides/mini/guide-deploying-3rd-party- jars.html On 6/7/07, Andrew Birchall [EMAIL PROTECTED] wrote: Hello, I am trying to Mavenize a multi-module J2EE Oracle ADF project that is currently built with several Ant scripts and developed in JDeveloper 10.1.3.2 One of the main problems I have is that the project depends on many Artifacts (jar files) distributed with JDeveloper. Thus, In order to build this project with Maven I have to set up an internal repository in our company with all the JDeveloper jar files. At the moment I am trying to do this with the file:// protocol on a network share. However I'm not really sure the way to go about this and I can't seem to find any good documentation on it. Non of the jars distributed with JDeveloper are versioned. Do I have to version all the jar files myself and put them in the correct package directories, in order to conform to the Maven repository layout convention? How do I know what version to re-name the jar files to? If I do have to do this its a BIG and tedious job because there's so many dependencies. And what about the pom files for each jar, how do these get created? I'd be very grateful to hear from anyone who can help Kind regards Andy Birchall ----- 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] Creating internal remote repsistory for Oracle ADF project
Hello, I am trying to Mavenize a multi-module J2EE Oracle ADF project that is currently built with several Ant scripts and developed in JDeveloper 10.1.3.2 One of the main problems I have is that the project depends on many Artifacts (jar files) distributed with JDeveloper. Thus, In order to build this project with Maven I have to set up an internal repository in our company with all the JDeveloper jar files. At the moment I am trying to do this with the file:// protocol on a network share. However I'm not really sure the way to go about this and I can't seem to find any good documentation on it. Non of the jars distributed with JDeveloper are versioned. Do I have to version all the jar files myself and put them in the correct package directories, in order to conform to the Maven repository layout convention? How do I know what version to re-name the jar files to? If I do have to do this its a BIG and tedious job because there's so many dependencies. And what about the pom files for each jar, how do these get created? I'd be very grateful to hear from anyone who can help Kind regards Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] JUnit test setUp() and tearDown() not called
Sorry its me being dumb and not looking far enough into it. Eclipse was using JUnit 4, which Maven doesn't support yet. Simple as that really. Sorry Andy On 09/01/07, berndq [EMAIL PROTECTED] wrote: Hi Andy, Ah, i figured it out it was Eclipse being clever and running setUp() and tearDown() when it shouldn't have been. just curious: where did eclipse behave incorrectly? (Hope this is not too much off topic for a maven list) Bernd Maven was behaving correctly. Thanks for your help guys. Andy On 08/01/07, Chris Hilton [EMAIL PROTECTED] wrote: My guess would be that your tests were working with Ant's junit task which uses a forkmode of 'pertest' by default, but they are now failing because Maven's surefire plugin uses a default of 'once' by default. You can change the setting for the surefire plugin by adding a configuration something like the following to your pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration forkModealways/forkMode /configuration /plugin That should get you running, but you should also consider rewriting the tests to run with the default; all that forking can take a lot of time. Chris -Original Message- From: Andrew Birchall [mailto:[EMAIL PROTECTED] Sent: Monday, 08 January, 2007 07:26 To: Maven Users List Subject: [m2] JUnit test setUp() and tearDown() not called Hello, When I run my JUnut test suit from Maven using mvn test some tests fail because setUp() and tearDown() are never called. Surley these should be called automatically when the test is run? The tests work fine when run from Eclipse. Is there something stupidly obvious that I'm missing? (Please don't say 'a brain') Thanks a lot Andrew Birchall - 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]
[m2] JUnit test setUp() and tearDown() not called
Hello, When I run my JUnut test suit from Maven using mvn test some tests fail because setUp() and tearDown() are never called. Surley these should be called automatically when the test is run? The tests work fine when run from Eclipse. Is there something stupidly obvious that I'm missing? (Please don't say 'a brain') Thanks a lot Andrew Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] JUnit test setUp() and tearDown() not called
Ah, i figured it out it was Eclipse being clever and running setUp() and tearDown() when it shouldn't have been. Maven was behaving correctly. Thanks for your help guys. Andy On 08/01/07, Chris Hilton [EMAIL PROTECTED] wrote: My guess would be that your tests were working with Ant's junit task which uses a forkmode of 'pertest' by default, but they are now failing because Maven's surefire plugin uses a default of 'once' by default. You can change the setting for the surefire plugin by adding a configuration something like the following to your pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId configuration forkModealways/forkMode /configuration /plugin That should get you running, but you should also consider rewriting the tests to run with the default; all that forking can take a lot of time. Chris -Original Message- From: Andrew Birchall [mailto:[EMAIL PROTECTED] Sent: Monday, 08 January, 2007 07:26 To: Maven Users List Subject: [m2] JUnit test setUp() and tearDown() not called Hello, When I run my JUnut test suit from Maven using mvn test some tests fail because setUp() and tearDown() are never called. Surley these should be called automatically when the test is run? The tests work fine when run from Eclipse. Is there something stupidly obvious that I'm missing? (Please don't say 'a brain') Thanks a lot Andrew Birchall - 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]
[M2] Adding latest version of a dependency
Hello, I am using 3.2 version of Hibernate in a project and I wish to add this to my pom. However Hibernate 3.2 isn't in the Maven repository. Is there a way I can add 3.2 to the pom and have Maven download all the dependencies? Thanks a lot. Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] error using maven with windows vista 64
Yes I did. It downloaded some artifacts but it barfed about half-way through. The funny thing is its actaully working today. Computers eh? Mind of their own sometimes. Cheers Andy On 05/12/06, Dan Tran [EMAIL PROTECTED] wrote: this is your error message: [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. did you run it in a directory with an existing pom.xml? -D On 12/5/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hello, I'm trying to run Maven 2.0.4 with Windows 64-bit Vista but it throws the following error when it starts downloading the artifacts after running 'mvn compile' on a project: [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java :430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, b ut the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:339) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:534) ... 16 more Is Maven supposed to run on Vista? Kind regards Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] error using maven with windows vista 64
Hello, I'm trying to run Maven 2.0.4 with Windows 64-bit Vista but it throws the following error when it starts downloading the artifacts after running 'mvn compile' on a project: [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute mojo: resources. It requires a project with an existing pom.xml, b ut the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:339) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 16 more Is Maven supposed to run on Vista? Kind regards Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Problem creating an Eclipse project
Hi, I'm a new user of Maven 2 so please excuse the noddy nature of this problem. I have created a very simple Maven Java project with two classes and App.class and AppTest.class and a very simple pom.xml that was created with the Artifact project creation process. I am trying to create an Eclipse project from this pom using mvn eclipse:eclipse I have successfully run mvn -Declipse.workspace=path-to-eclipse-workspace eclipse:add-maven-repo However when I run mvn eclipse:eclipse I get the following error: [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping [INFO] [eclipse:eclipse] [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] org.apache.maven.artifact.factory.ArtifactFactory.createDependencyArtifac t(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/artifact/versioning/Vers ionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/mav en/artifact/Artifact; [INFO] - --- [INFO] Trace java.lang.NoSuchMethodError: org.apache.maven.artifact.factory.ArtifactFactory.c reateDependencyArtifact(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/ar tifact/versioning/VersionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/St ring;Z)Lorg/apache/maven/artifact/Artifact; at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.getProjectArtifact s(AbstractIdeSupportMojo.java:550) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolu tion(AbstractIdeSupportMojo.java:425) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractId eSupportMojo.java:378) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:452) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) As fa as I can tell, this should just work. Unless I'm missing something? Can anybody tell me what is causing the problem? Thanks a lot Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Problem creating an Eclipse project
Hi, I tried what you said but I'm still getting the same thing. I tried it with -U first and it reported that it couldn't find the eclipse plugin. I then deleted my entire local repository and ran mvn eclipse:eclipse but it still came up with the same error. i.e: java.lang.NoSuchMethodError: org.apache.maven.artifact.factory.ArtifactFactory.c reateDependencyArtifact I have the latest maven-eclipse-plugin-2.2.jar in my repository. Hmm... I'm very confused and frustrated, Andy On 05/10/06, Tom Huybrechts [EMAIL PROTECTED] wrote: It looks like the maven-eclipse-plugin is using the wrong version of one of the maven libraries. I'd try running with '-U' or cleaning out the org/apache/maven/maven-artifact part of my repository. On 10/5/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hi, I'm a new user of Maven 2 so please excuse the noddy nature of this problem. I have created a very simple Maven Java project with two classes and App.class and AppTest.class and a very simple pom.xml that was created with the Artifact project creation process. I am trying to create an Eclipse project from this pom using mvn eclipse:eclipse I have successfully run mvn -Declipse.workspace=path-to-eclipse-workspace eclipse:add-maven-repo However when I run mvn eclipse:eclipse I get the following error: [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping [INFO] [eclipse:eclipse] [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] org.apache.maven.artifact.factory.ArtifactFactory.createDependencyArtifac t(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/artifact/versioning/Vers ionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/mav en/artifact/Artifact; [INFO] - --- [INFO] Trace java.lang.NoSuchMethodError: org.apache.maven.artifact.factory.ArtifactFactory.c reateDependencyArtifact(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/ar tifact/versioning/VersionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/St ring;Z)Lorg/apache/maven/artifact/Artifact; at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.getProjectArtifact s(AbstractIdeSupportMojo.java:550) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolu tion(AbstractIdeSupportMojo.java:425) at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute (AbstractId eSupportMojo.java:378) at org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPlugi nManager.java:399) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:519) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone Goal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (Defau ltLifecycleExecutor.java:452) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLi fecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) As fa as I can tell, this should just work. Unless I'm missing something? Can anybody tell me what is causing the problem? Thanks a lot Andy Birchall - 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] Problem creating an Eclipse project
Hi thanks for your response but its not that. I have Java 1.5 installed and JAVA_HOME pointing to it, with no other versions of Java installed on my machine. Andy On 05/10/06, Dirk Olmes [EMAIL PROTECTED] wrote: Andrew Birchall wrote: Hi, I tried what you said but I'm still getting the same thing. I tried it with -U first and it reported that it couldn't find the eclipse plugin. I then deleted my entire local repository and ran mvn eclipse:eclipse but it still came up with the same error. i.e: java.lang.NoSuchMethodError: org.apache.maven.artifact.factory.ArtifactFactory.c reateDependencyArtifact I have the latest maven-eclipse-plugin-2.2.jar in my repository. Hmm... I'm very confused and frustrated, Andy Very strange things happen when your JAVA_HOME points to a different java installation than the one that's running. In my case that was JAVA_HOME pointing to a java 1.4 installation when the java.exe that was running was a java 5 one. Could that be your problem? -dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[maven 1.x] downloading dependencies
Hello, I'm using Maven 1.0.2 and 'm having a problem downloading some of my dependencies that are listed in my project.xml file. I have 100 dependecies and most of them download fine but 14 fail and I can't figure out why. I have checked thoroughly that I have the correct artifactId and url values set in project.xml. Is there a common reason for why some dependencies might fail to download? Thanks Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven 1.x] downloading dependencies
One of the dependencies failing is Bouncy Castle cryptography library. I have it listed in the project.xml file as this: dependency idbcprov/id versionjdk15-124/version urlhttp://www.bouncycastle.org/url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency bcprov-jdk15-124.jar is in the maven repository at Ibiblio http://www.ibiblio.org/maven/bouncycastle/jars/ so I can't see why its not downloading it? Thanks a lot Andy On 12/09/06, Nicolas De Loof [EMAIL PROTECTED] wrote: url is not used by maven to download artifacts, it is only there for information. Some artifacts are not free ot redistribute, like java API (java activation framework, javamail ...) so you have to download them and put them in your repository manualy. What artifacts are failing ? Nico. Andrew Birchall a écrit : Hello, I'm using Maven 1.0.2 and 'm having a problem downloading some of my dependencies that are listed in my project.xml file. I have 100 dependecies and most of them download fine but 14 fail and I can't figure out why. I have checked thoroughly that I have the correct artifactId and url values set in project.xml. Is there a common reason for why some dependencies might fail to download? Thanks Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this 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 1.x] downloading dependencies
Ah... thank you! It was the groupId I was missing. I did in fact have artifactId not id like I said. I cut and pasted an old version which I sent you. Thanks a lot! Andy On 12/09/06, Lukas Theussl [EMAIL PROTECTED] wrote: It should be groupIdbouncycastle/groupId artifactIdbcprov/artifactId instead of idbcprov/id. HTH, -Lukas Andrew Birchall wrote: One of the dependencies failing is Bouncy Castle cryptography library. I have it listed in the project.xml file as this: dependency idbcprov/id versionjdk15-124/version urlhttp://www.bouncycastle.org/url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency bcprov-jdk15-124.jar is in the maven repository at Ibiblio http://www.ibiblio.org/maven/bouncycastle/jars/ so I can't see why its not downloading it? Thanks a lot Andy On 12/09/06, Nicolas De Loof [EMAIL PROTECTED] wrote: url is not used by maven to download artifacts, it is only there for information. Some artifacts are not free ot redistribute, like java API (java activation framework, javamail ...) so you have to download them and put them in your repository manualy. What artifacts are failing ? Nico. Andrew Birchall a écrit : Hello, I'm using Maven 1.0.2 and 'm having a problem downloading some of my dependencies that are listed in my project.xml file. I have 100 dependecies and most of them download fine but 14 fail and I can't figure out why. I have checked thoroughly that I have the correct artifactId and url values set in project.xml. Is there a common reason for why some dependencies might fail to download? Thanks Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this 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] - 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: problem downloading dependencies
Hi I tried replacing id with artifactId but it made no difference. I didn't know I had to set up a proxy to access ibiblio. There is nothing in the documentation about that How do you do it? Thanks a lot Andy On 04/09/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Don't you have a proxy to access to ibiblio ? Did you try to replace id (deprecated) by artifactId dependency groupIdbouncycastle/groupId artifactIdbcprov-jdk14/artifactId version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency Arnaud On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hello I am using Maven 1.0.2 for a project and I'm having a problem downloading a few of the artifacts (jar files) that the project uses. I have declared them in project.xml with all the right attributes. For example, for the Bouncy Castle crytography library: dependency groupIdbouncycastle/groupId idbcprov-jdk14/id version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency But bcprov-jdk14-124.jar fails to download, even though it is there in Ibiblio: http://www.ibiblio.org/maven/bouncycastle/jars/ and on the bouncycastle website http://www.bouncycastle.org/download/ I have also set: maven.repo.remote=http://www.ibiblio.org/maven in project.properties There about 14 other jars that aren't downloaded and I can't figure out why. Can anyone help? Thanks Andy Birchall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem downloading dependencies
Hi thanks for the pointer, but I'm not sure I need a Proxy. Why would I need one? In any case I dont have one. I am doing this from home and just have a standard cable internet connection. Also, why would some jars succeed in downloading from ibiblio and others not? Cheers Andy On 04/09/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties cheers arnaud On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hi I tried replacing id with artifactId but it made no difference. I didn't know I had to set up a proxy to access ibiblio. There is nothing in the documentation about that How do you do it? Thanks a lot Andy On 04/09/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Don't you have a proxy to access to ibiblio ? Did you try to replace id (deprecated) by artifactId dependency groupIdbouncycastle/groupId artifactIdbcprov-jdk14/artifactId version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency Arnaud On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hello I am using Maven 1.0.2 for a project and I'm having a problem downloading a few of the artifacts (jar files) that the project uses. I have declared them in project.xml with all the right attributes. For example, for the Bouncy Castle crytography library: dependency groupIdbouncycastle/groupId idbcprov-jdk14/id version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency But bcprov-jdk14-124.jar fails to download, even though it is there in Ibiblio: http://www.ibiblio.org/maven/bouncycastle/jars/ and on the bouncycastle website http://www.bouncycastle.org/download/ I have also set: maven.repo.remote=http://www.ibiblio.org/maven in project.properties There about 14 other jars that aren't downloaded and I can't figure out why. Can anyone help? Thanks Andy Birchall - 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: problem downloading dependencies
Thanks but the dependecies that are failing fail every time I run the build (and I've run it many, many times). On 04/09/06, Alexander Sack [EMAIL PROTECTED] wrote: I've noticed this that occasionally the connection drops or it can't download a dependency for a split second and then when I retry it works (this is using the default ibiblio repo- my guess is usage of the server). -aps On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hi thanks for the pointer, but I'm not sure I need a Proxy. Why would I need one? In any case I dont have one. I am doing this from home and just have a standard cable internet connection. Also, why would some jars succeed in downloading from ibiblio and others not? Cheers Andy On 04/09/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: http://maven.apache.org/maven-1.x/reference/properties.html#Proxy_Properties cheers arnaud On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hi I tried replacing id with artifactId but it made no difference. I didn't know I had to set up a proxy to access ibiblio. There is nothing in the documentation about that How do you do it? Thanks a lot Andy On 04/09/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: Don't you have a proxy to access to ibiblio ? Did you try to replace id (deprecated) by artifactId dependency groupIdbouncycastle/groupId artifactIdbcprov-jdk14/artifactId version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency Arnaud On 9/4/06, Andrew Birchall [EMAIL PROTECTED] wrote: Hello I am using Maven 1.0.2 for a project and I'm having a problem downloading a few of the artifacts (jar files) that the project uses. I have declared them in project.xml with all the right attributes. For example, for the Bouncy Castle crytography library: dependency groupIdbouncycastle/groupId idbcprov-jdk14/id version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency But bcprov-jdk14-124.jar fails to download, even though it is there in Ibiblio: http://www.ibiblio.org/maven/bouncycastle/jars/ and on the bouncycastle website http://www.bouncycastle.org/download/ I have also set: maven.repo.remote=http://www.ibiblio.org/maven in project.properties There about 14 other jars that aren't downloaded and I can't figure out why. Can anyone help? Thanks Andy Birchall - 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] -- What lies behind us and what lies in front of us is of little concern to what lies within us. -Ralph Waldo Emerson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem downloading dependencies
Hello I am using Maven 1.0.2 for a project and I'm having a problem downloading a few of the artifacts (jar files) that the project uses. I have declared them in project.xml with all the right attributes. For example, for the Bouncy Castle crytography library: dependency groupIdbouncycastle/groupId idbcprov-jdk14/id version124/version url http://www.bouncycastle.org/download//url properties war.bundletrue/war.bundle shippabletrue/shippable /properties /dependency But bcprov-jdk14-124.jar fails to download, even though it is there in Ibiblio: http://www.ibiblio.org/maven/bouncycastle/jars/ and on the bouncycastle website http://www.bouncycastle.org/download/ I have also set: maven.repo.remote=http://www.ibiblio.org/maven in project.properties There about 14 other jars that aren't downloaded and I can't figure out why. Can anyone help? Thanks Andy Birchall
Re: Using Maven 1.0.2 with JDK 1.5
Hey thanks a lot for the reply. I tried it again this today and guess what? It worked! Computers are just plain strange sometimes Cheers Andy - Original Message - From: Helck, Christopher [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, August 10, 2006 10:24 PM Subject: RE: Using Maven 1.0.2 with JDK 1.5 Maven 1.0.2 definitely works with jdk1.5.0_07 on Windows XP. I can't imagine that 1.5.0_8 would cause the problem you describe. I would turn on tracing in the maven.bat script. -Christopher Helck -Original Message- From: Andrew Birchall [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 4:35 PM To: users@maven.apache.org Subject: Using Maven 1.0.2 with JDK 1.5 Hello, I'm having trouble running Maven 1.0.2 with the latest version of Java (1.5.0_08) on Windows XP Maven resides in C:\maven-1.0.2 and Java is in C:\java\jdk1.5.0_08 I have set MAVEN_HOME to maven-1.0.2 and JAVA_HOME to JDK 1.5.0_08 And I have set maven-1.0.2\bin in my PATH However when I run maven -version it just prints out the usage instructions for Java (???!!!) Is maven 1.x supposed to work with the latest version of Java? I can't find any documentation on this on the Maven website I have no problems with Maven 2. However I need to used Maven 1 for an old project. Thanks for any help anyone can give Andy Birchall See below for what is displayed when I run maven -version C:\maven -version Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:libname[=options] load native agent library libname, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:pathname[=options] load native agent library by full pathname -javaagent:jarpath[=options] load Java programming language agent, see java.lang.instrument C:\ ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thank you for being part of it. The information contained in this e-mail is confidential. This e-mail is intended only for the stated addressee. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. if you have received this e-mail in error, please inform us immediately and delete it and all copies from your system. EBS Dealing Resources International Limited. Registered address: 10 Paternoster Square, London EC4M 7DY, United Kingdom. Registered number 2669861. EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, Parsippany, NJ 07054, USA. EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo 104-0033, Japan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC
Using Maven 1.0.2 with JDK 1.5
Hello, I'm having trouble running Maven 1.0.2 with the latest version of Java (1.5.0_08) on Windows XP Maven resides in C:\maven-1.0.2 and Java is in C:\java\jdk1.5.0_08 I have set MAVEN_HOME to maven-1.0.2 and JAVA_HOME to JDK 1.5.0_08 And I have set maven-1.0.2\bin in my PATH However when I run maven -version it just prints out the usage instructions for Java (???!!!) Is maven 1.x supposed to work with the latest version of Java? I can't find any documentation on this on the Maven website I have no problems with Maven 2. However I need to used Maven 1 for an old project. Thanks for any help anyone can give Andy Birchall See below for what is displayed when I run maven -version C:\maven -version Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A ; separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:libname[=options] load native agent library libname, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:pathname[=options] load native agent library by full pathname -javaagent:jarpath[=options] load Java programming language agent, see java.lang.instrument C:\ ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]