how to force archiva download an artifact
Hi, I have successfully setup a ProxyConnector with my own Repository url. One of the artifact has been downloaded into my local repo already. But when I create a new project pom.xml and refer to second artifact from the same proxy, it keeps error out with with missing artifact. From the error I can see the specified remote repositories does indeed contains my archiva url. I also manually checked my archiva instance with path like http://myhost/archiva/repository/internal/org/mygroup2/myartifact2 and it's NOT there. So the questions is how do I force archiva to download it from the repository url(proxied repo) that I have setup? Thanks Zemian Deng
Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.
Hi Wayne Fay, How to checkout the project through tags name. I am giving the folder modules to checkout ,but i want to checkout the particular tag .example I am having tags like branch ,Version .In version I want to checkout the Regular tag. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm Now I am giving like this - urlscm:cvs:pserver:${myname}:[EMAIL PROTECTED] :/istcvs/CVSHOME:EAI/XT/${mybranch}/url But if i give the foldername it is working fine , but if i give the particular tag example : xtlients/xttest/Version/PROD_1.1 It is giving the error cvs checkout: cannot find module Please let me know what will be the solution for this issue. On Wed, Mar 19, 2008 at 8:49 PM, Wayne Fay [EMAIL PROTECTED] wrote: You could use: mvn -Dmyname=abc -Dmypass=xyz And then in the pom: ...:pserver:${myname}:[EMAIL PROTECTED] But really, this is not how most people use Maven. Instead you should look at storing these values in settings.xml. Wayne On 3/19/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne, I am trying to do for CVS not with the remote repository. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm To connect to cvs.But i want to pass username and password to connect cvs in command line .Please provide me the information . Thanks, Sowmya.R On 3/19/08, Wayne Fay [EMAIL PROTECTED] wrote: Take a look at the SCM plugin: http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html Wayne On 3/18/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi, I am working on the maven tool for my project ,where I have to checkout from CVS and I want to ask for CVS user id and password from the user while checkingout the project.This process I want to do dynamically to checkout multiple projects. I am new user of maven ,Pleases help me out to resove this issue. -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R
Is there really a problem with the plugin repository???
I've tried in every possible way, I can't get maven to work anymore. I always get a '~does not exist or no valid version could be found', whichever goal I try to execute. I've tried on different project on my Mac, even on the 'mvn install' goal on the Maven source tree itself, I've tried on a fresh Windows installation. Fresh installation downloaded many artifacts, but ended up with the same error. I'm lost here. Is there anything else I can try. Something obvious I haven't check? Or is there really a problem with the main repo? --nodje -- View this message in context: http://www.nabble.com/Is-there-really-a-problem-with-the-plugin-repositorytp16246236s177p16246236.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: package does not exit error with 3rd party jar dependency
well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: package does not exit error with 3rd party jar dependency
Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- 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: package does not exit error with 3rd party jar dependency
ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- 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: package does not exit error with 3rd party jar dependency
yep, same .jar file, no error on eclipse, yes error on maven... On Mon, Mar 24, 2008 at 11:32 AM, simon [EMAIL PROTECTED] wrote: When you are compiling with Eclipse, is eclipse configured to use *exactly* the same jarfile that maven is putting on the classpath, ie something under ~/.m2/repository/gigaspaces? If not try that, and see what happens. If eclipse is using exactly the same file, then I have no idea what the problem might be. Nobody else using maven has this problem, so it's something specific to you. But I don't know what it might be. Regards, Simon On Mon, 2008-03-24 at 11:03 +0200, Avi Laviad wrote: ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugins vs Ant tasks
Siarhei Dudzin wrote: There is one big difference between a plugin and an ant-script that is run via ant-tasks (I think you meant a ant-run plugin here?): I was referring to an ant script embedded within the antrun plugin, bound to a phase, as opposed to a maven plugin bound to a phase. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: package does not exit error with 3rd party jar dependency
When you are compiling with Eclipse, is eclipse configured to use *exactly* the same jarfile that maven is putting on the classpath, ie something under ~/.m2/repository/gigaspaces? If not try that, and see what happens. If eclipse is using exactly the same file, then I have no idea what the problem might be. Nobody else using maven has this problem, so it's something specific to you. But I don't know what it might be. Regards, Simon On Mon, 2008-03-24 at 11:03 +0200, Avi Laviad wrote: ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: package does not exit error with 3rd party jar dependency
Hi, As Simon guessed, too, I guess it's just a char-set/file-encoding issue. Can you go to a plain texteditor available on your platform (notepad, gedit, kate, nano ... whatever is available) and create a simple test class in src/main/java: Test.java: import com.gigaspaces.*; public class Test {} and try if this is compiled by maven. If yes, then it's really just an encoding issue. Then just try to delete the import statement from App.java and the readd it. And no, there is no chance that maven tries to compile without your specified jar dependency. You can double check by invoking maven with debug output enabled 'mvn -X ...' Maven then prints the classpath it's using for compilation. -Tim Avi Laviad schrieb: ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] cobertura code coverage for dbunit test classes with testNG and OpenJPA?
Hi Mick, We have surefire 2.4.2 + testng + cobertura 2.2 works. Your cofiguration looks fine to me, but, I'm missing the cobertura definition in the reporting section. The only difference I see from out build (other then the need to add cobertuar to reporting section) is usage of ${basedir} as value. Try to remove it, I know surefire has some issues passing values of ${properties}. Here is what we have: In surefire plugin: property namenet.sourceforge.cobertura.datafile/name valuetarget/cobertura/cobertura.ser/value /property /systemProperties In the reporting section: reporting plugins ... ... plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.2/version /plugin /plugins /reporting HTH, Erez. On Sun, Mar 23, 2008 at 12:48 PM, Mick Knutson [EMAIL PROTECTED] wrote: Anyone have any ideas? I have tried cobertura 2.0 and 2.2 maven plugin and still the same result. On Fri, Mar 21, 2008 at 2:36 PM, Mick Knutson [EMAIL PROTECTED] wrote: I have a Spring, OpenJPA, DBUnit, TestNG, HSQL build with Maven 2.0.8and there are 20 DAO tests that now pass. I am trying to now add cobertura to this. I have used Cobertura extensively in the past, but never with DBUnit. So, I am getting the report to generate, but everything is zero. So it appears that nothing was instrumented. Here is my surefire and cobertura plugins: reporting plugin artifactIdmaven-surefire-report-plugin/artifactId version2.4.2/version configuration includes include implementation=java.lang.String **/*.java/include /includes excludes exclude implementation=java.lang.String **/*Point*.java/exclude /excludes systemProperties property namenet.sourceforge.cobertura.datafile /name value${basedir}/target/cobertura/cobertura.ser/value /property /systemProperties argLine-Xmx256m/argLine testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugins... plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId version1.0-beta-1/version configuration dataTypeFactoryName${dbunit.dataTypeFactoryName }/dataTypeFactoryName driver${jdbc.driverClassName}/driver username${jdbc.username}/username password${jdbc.password}/password url${jdbc.url}/url srcsrc/test/resources/test-data.xml/src type${dbunit.operation.type}/type schema${dbunit.schema}/schema skip${maven.test.skip}/skip /configuration executions execution phasetest-compile/phase goals goaloperation/goal /goals /execution /executions dependencies dependency groupId${jdbc.groupId}/groupId artifactId${jdbc.artifactId}/artifactId version${jdbc.version}/version /dependency /dependencies /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.2/version configuration formats formatxml/format formathtml/format /formats instrumentation ignores ignoreorg.apache.commons.logging.* /ignore /ignores excludes excludecom/**/*Test.class/exclude excludeorg/apache/log4j/**/*.class/exclude /excludes /instrumentation /configuration executions execution goals goalclean/goal /goals /execution /executions /plugin plugin
Re: package does not exit error with 3rd party jar dependency
hi, i think i found the problem. i tried to compile the .java file with javac and it failed (in eclipse it was successful). when i make some change at the .java file and javac worked well then maven worked well also. thanks for your help. Avi. On Mon, Mar 24, 2008 at 12:33 PM, Tim Kettler [EMAIL PROTECTED] wrote: Hi, As Simon guessed, too, I guess it's just a char-set/file-encoding issue. Can you go to a plain texteditor available on your platform (notepad, gedit, kate, nano ... whatever is available) and create a simple test class in src/main/java: Test.java: import com.gigaspaces.*; public class Test {} and try if this is compiled by maven. If yes, then it's really just an encoding issue. Then just try to delete the import statement from App.java and the readd it. And no, there is no chance that maven tries to compile without your specified jar dependency. You can double check by invoking maven with debug output enabled 'mvn -X ...' Maven then prints the classpath it's using for compilation. -Tim Avi Laviad schrieb: ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it should reference to - and this is my problem - i added a dependency in the pom.xmlfor the .jar that i need but it seems that maven ignores it and try to compile without it. We need to see more of the pom and the error in order to help. I'll take one more guess... any chance that dependency you posted is inside dependencyManagement instead of just dependencies ? Add -X to the command line and Maven will print out a lot of information, including the classpath. Then you can see if the jar is on the classpath at all. -- Wendy
RE: Is there really a problem with the plugin repository???
We need more info to help. What plugin artifact is missing? Paste the relevant part of your log output. -Original Message- From: nodje [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:47 AM To: users@maven.apache.org Subject: Is there really a problem with the plugin repository??? I've tried in every possible way, I can't get maven to work anymore. I always get a '~does not exist or no valid version could be found', whichever goal I try to execute. I've tried on different project on my Mac, even on the 'mvn install' goal on the Maven source tree itself, I've tried on a fresh Windows installation. Fresh installation downloaded many artifacts, but ended up with the same error. I'm lost here. Is there anything else I can try. Something obvious I haven't check? Or is there really a problem with the main repo? --nodje -- View this message in context: http://www.nabble.com/Is-there-really-a-problem-with-the-plugin-reposito rytp16246236s177p16246236.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.
Hi Wayne , I got where is that problem . When I am doing the direct checkout from the cvs it is creating Entries,Root,Repository and Tag documents within CVS folder and that particular tag is downloading. But when i am doing with maven it is only creating the Entries,Root,Repository in CVS folder and by default it is downloading the HEAD tag project.It is not creating that Tag document in CVS Folder. example I am having Branch and in that i want checkout september_release. I gave the as follows: scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection tagseptember_release/tag urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm And I tried for the different combinations. still it is not working. Please help me out of this issue... :( Thanks, Sowmya.R On Mon, Mar 24, 2008 at 12:07 PM, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne Fay, How to checkout the project through tags name. I am giving the folder modules to checkout ,but i want to checkout the particular tag .example I am having tags like branch ,Version .In version I want to checkout the Regular tag. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm Now I am giving like this - urlscm:cvs:pserver:${myname}:[EMAIL PROTECTED] :/istcvs/CVSHOME:EAI/XT/${mybranch}/url But if i give the foldername it is working fine , but if i give the particular tag example : xtlients/xttest/Version/PROD_1.1 It is giving the error cvs checkout: cannot find module Please let me know what will be the solution for this issue. On Wed, Mar 19, 2008 at 8:49 PM, Wayne Fay [EMAIL PROTECTED] wrote: You could use: mvn -Dmyname=abc -Dmypass=xyz And then in the pom: ...:pserver:${myname}:[EMAIL PROTECTED] But really, this is not how most people use Maven. Instead you should look at storing these values in settings.xml. Wayne On 3/19/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne, I am trying to do for CVS not with the remote repository. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm To connect to cvs.But i want to pass username and password to connect cvs in command line .Please provide me the information . Thanks, Sowmya.R On 3/19/08, Wayne Fay [EMAIL PROTECTED] wrote: Take a look at the SCM plugin: http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html Wayne On 3/18/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi, I am working on the maven tool for my project ,where I have to checkout from CVS and I want to ask for CVS user id and password from the user while checkingout the project.This process I want to do dynamically to checkout multiple projects. I am new user of maven ,Pleases help me out to resove this issue. -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R -- Regads, Sowmya.R
Re: How to get a list or inventory of plugins in use for a goal in a POM?
I have filed issue MPH-36. http://jira.codehaus.org/browse/MPH-36 Paul Spencer Wayne Fay wrote: The original email sounds like a bug report or rather enhancement request. Those things should be filed in the Maven JIRA. And I agree that this is not currently available, but might be a nice thing to add. So I'd file this as an Improvement in JIRA against the help plugin, and perhaps they can add it. Wayne On 3/21/08, Paul Spencer [EMAIL PROTECTED] wrote: Dennis, I have, and do, use this command, but it does not add the version number to the plugin when no version for the plugin exist in the POM. Also, when a plugin is not defined in the POM, it is not listed. Paul Spencer Dennis Lundberg wrote: I find this command helpful: mvn help:effective-pom It prints the entire pom of your artifact, after inheritance and interpolation has been applied. Paul Spencer wrote: I would like to get an inventory of plugins used by my POM for the purpose of explicitly setting their version in my POM. This will make builds much more reliable. The help:describe can do this for one plugin at a time, but this is tedious and make the incorrect assumption I know all of the plugins used. A command like the following would produce a list of plugins, including the GroupId, ArtifactId, and version used by a specific goal. mvn help:describe -Dgoal=test Going a step further, adding a -DupdatePom=true to actually add the plugin information to the POM wound make the process much easier. Paul Spencer - 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: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.
I am almost no help when it comes to CVS. We moved to Subversion years ago and never looked back. You may want to send a new email to this list with a new subject (SCM checkout from CVS using tag or something) and see if someone has a response. Or just search the list archives at Nabble and see if this has already been answered by someone else in a previous thread. Wayne On 3/24/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne , I got where is that problem . When I am doing the direct checkout from the cvs it is creating Entries,Root,Repository and Tag documents within CVS folder and that particular tag is downloading. But when i am doing with maven it is only creating the Entries,Root,Repository in CVS folder and by default it is downloading the HEAD tag project.It is not creating that Tag document in CVS Folder. example I am having Branch and in that i want checkout september_release. I gave the as follows: scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection tagseptember_release/tag urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm And I tried for the different combinations. still it is not working. Please help me out of this issue... :( Thanks, Sowmya.R On Mon, Mar 24, 2008 at 12:07 PM, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne Fay, How to checkout the project through tags name. I am giving the folder modules to checkout ,but i want to checkout the particular tag .example I am having tags like branch ,Version .In version I want to checkout the Regular tag. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm Now I am giving like this - urlscm:cvs:pserver:${myname}:[EMAIL PROTECTED] :/istcvs/CVSHOME:EAI/XT/${mybranch}/url But if i give the foldername it is working fine , but if i give the particular tag example : xtlients/xttest/Version/PROD_1.1 It is giving the error cvs checkout: cannot find module Please let me know what will be the solution for this issue. On Wed, Mar 19, 2008 at 8:49 PM, Wayne Fay [EMAIL PROTECTED] wrote: You could use: mvn -Dmyname=abc -Dmypass=xyz And then in the pom: ...:pserver:${myname}:[EMAIL PROTECTED] But really, this is not how most people use Maven. Instead you should look at storing these values in settings.xml. Wayne On 3/19/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi Wayne, I am trying to do for CVS not with the remote repository. I am using scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm To connect to cvs.But i want to pass username and password to connect cvs in command line .Please provide me the information . Thanks, Sowmya.R On 3/19/08, Wayne Fay [EMAIL PROTECTED] wrote: Take a look at the SCM plugin: http://maven.apache.org/scm/plugins/examples/bootstrapping-with-pom.html Wayne On 3/18/08, Sowmya. R [EMAIL PROTECTED] wrote: Hi, I am working on the maven tool for my project ,where I have to checkout from CVS and I want to ask for CVS user id and password from the user while checkingout the project.This process I want to do dynamically to checkout multiple projects. I am new user of maven ,Pleases help me out to resove this issue. -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R - 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] -- Regads, Sowmya.R -- Regads, Sowmya.R
SCM checkout from CVS using tag......
Hi, When I am doing the direct checkout from the cvs it is creating Entries,Root,Repository and Tag documents within CVS folder and that particular tag is downloading. But when i am doing with maven it is only creating the Entries,Root,Repository in CVS folder and by default it is downloading the HEAD tag project.It is not creating that Tag document in CVS Folder. example I am having Branch and in that i want checkout september_release. I gave the as follows: scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection tagseptember_release/tag urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm And I tried for the different combinations. still it is not working. Please help me out of this issue... :( Thanks, Sowmya.R
Re: package does not exit error with 3rd party jar dependency
We need to put an entry in the FAQ: Q: My project compiles in Eclipse and not Maven. Why is Maven broken? A: Eclipse has its own compiler (JDT) that does things differently than Maven (which uses your JDK's javac). Try compiling your project with javac from the JDK and specifying your dependencies with -cp. If this works, then Maven should have no issues compiling it either. This stuff just makes me love/hate Eclipse even more than I already do... Wayne On 3/24/08, Avi Laviad [EMAIL PROTECTED] wrote: hi, i think i found the problem. i tried to compile the .java file with javac and it failed (in eclipse it was successful). when i make some change at the .java file and javac worked well then maven worked well also. thanks for your help. Avi. On Mon, Mar 24, 2008 at 12:33 PM, Tim Kettler [EMAIL PROTECTED] wrote: Hi, As Simon guessed, too, I guess it's just a char-set/file-encoding issue. Can you go to a plain texteditor available on your platform (notepad, gedit, kate, nano ... whatever is available) and create a simple test class in src/main/java: Test.java: import com.gigaspaces.*; public class Test {} and try if this is compiled by maven. If yes, then it's really just an encoding issue. Then just try to delete the import statement from App.java and the readd it. And no, there is no chance that maven tries to compile without your specified jar dependency. You can double check by invoking maven with debug output enabled 'mvn -X ...' Maven then prints the classpath it's using for compilation. -Tim Avi Laviad schrieb: ok, thanks for the mailing tip - didn't thought about it. im using gmail and it made it automatically. i will keep replying at top for now like you for not having more mess. the error is broken bcuz the command line print it like that. nothing to do with the code. the project is compiled fine at Eclipse. i just mvn install:install-file the jar i reference to from Eclipse. so the files im sure the file i need is there. is there a chance that maven try to compile without this jar? On Mon, Mar 24, 2008 at 10:56 AM, simon [EMAIL PROTECTED] wrote: Hi Avi, First, when someone replies by adding their comments at the bottom of the reply email, please do not then add your comments at the top. It's rude and makes the email hard to read. I'm posting at the top here only to avoid making things worse. The error message looks suspicious: package com.gigaspace s does not exist Is the package-name really being broken across two lines like this? If so, maybe your import statement has a non-ascii character embedded into it that is confusing the compiler. I suggest also running jar tf on the file in the repository, ie under ~/.m2/repository/gigaspaces/.. and checking that the files you expect are really in that jar. Regards, Simon On Mon, 2008-03-24 at 10:48 +0200, Avi Laviad wrote: well, unfortunely you guessed wrong... im using dependencies. and the classpath element included my wanted ,jar file. my pom.xml is: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.MyProjectName/groupId artifactIdMyProjectName/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameMyProjectName/name urlhttp://maven.apache.org/url dependencies dependency groupIdgigaspaces/groupId artifactIdJSpaces/artifactId version6.5/version /dependency dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project and the error is: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist [INFO] [DEBUG] Trace org.apache.maven.BuildFailureException: Compilation failure C:\Projects\MyProjectName\src\main\java\com\MyProjectName\App.java:[3,0] package com.gigaspace s does not exist Is these details are any help? Avi. On Sun, Mar 23, 2008 at 9:06 PM, Wendy Smoak [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 11:51 AM, Avi Laviad [EMAIL PROTECTED] wrote: the project is compiled and build successfully when i try it on Eclipse. the error is package com.gigaspaces.* does not exist. I think its compile error because it doesn't find the .jar file it
Findbugs SNAPSHOT problem
Friday morning, 20 Mar, I got the update on the findbugs plugin snapshot. It seems to now require there to be some java in the project so my ear project broke. Anyone else seeing this? I know ... there's no details but I just want to know if its a common problem or something wierd about my build. thanks. -- Lee
Activating a profile
I've searched the archives and have not found an answer to this question. I have a profile whose activation I'd like to trigger based on the non-emptiness of an environment variable. When I run mvn help:active-profiles with that environment variable set, it reports that no profiles are active. My settings.xml file, where the profile is defined, looks like this (in part): ?xml version=1.0 encoding=UTF-8? settings xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd [stuff snipped here] profiles profile idDevelopment Server/id activation property nameenv.GLASSFISH_HOME/name /property /activation properties appserver.autodeploy.dir${env.GLASSFISH_HOME }/domains/domain1/autodeploy/appserver.autodeploy.dir /properties /profile /profiles /settings I followed the example of the maven.apache.org page on build profileshttp://maven.apache.org/guides/introduction/introduction-to-profiles.html, which says, in part: * Note* : Environment variable FOO would be set like env.FOO . ...but this only works if I do: mvn help:active-profiles -Denv.GLASSFISH_HOME=foobar ...i.e. it is treated (by the help:active-profiles plugin, at any rate) as a regular property, not an environment variable. How, if not that way as documented, do I activate a profile based on the presence of a non-empty environment variable value? Thanks, Laird P. S.: The output of mvn --version is below: Maven version: 2.0.8 Java version: 1.6.0_04 OS name: windows xp version: 5.1 arch: x86 Family: windows
Re: package does not exit error with 3rd party jar dependency
On Mon, 2008-03-24 at 09:22 -0500, Wayne Fay wrote: We need to put an entry in the FAQ: Q: My project compiles in Eclipse and not Maven. Why is Maven broken? A: Eclipse has its own compiler (JDT) that does things differently than Maven (which uses your JDK's javac). Try compiling your project with javac from the JDK and specifying your dependencies with -cp. If this works, then Maven should have no issues compiling it either. This stuff just makes me love/hate Eclipse even more than I already do... +1, good idea to add this to the FAQ. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to construct an archetype for multi-module build with renamed modules
Based on the lack of response to my posting, is this question too esoteric for Maven experts to answer? I have spent a fair amount of time learning about how to use archetypes and have successfully developed an archetype that uses parameter substitution with the Velocity templating. What I am seeking help with here is a way to rename the folders in the archetype modules based on artifactId when the new project(s) are generated from the archetype. Can someone point me to documentation on the new archchetype NG that shows how to use mojos in an archetype development? stug23 wrote: I am seeking advice on how to construct an archetype for a multi-module build such that the artifactId of each respective module becomes the name for the module in the generated directory structure. The result I am looking for would resemble the naming conventions of the Proficio multi-module project in Better Builds with Maven: proficio proficio-api proficio-cli proficio-core proficio-model proficio-stores proficio-store-memory proficio-store-xstream The intended usage of this archetype would be to create new Maven multi-module projects in Eclipse such that the project names follow the convention shown in the example above. Without this project naming scheme, it is quite difficult for a user to understand which projects are related to a multi-module build in the Eclipse workspace. I wasn't sure whether the new archetype NG may have some feature that would help to accomplish this, or whether this requires mojos in the archetype, or if M2Eclipse can help out with this requirment. Thanks in advance for tips, pointers or advice on how to accomplish this naming scheme. -- View this message in context: http://www.nabble.com/How-to-construct-an-archetype-for-multi-module-build-with-renamed-modules-tp16224882s177p16254209.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: package does not exit error with 3rd party jar dependency
On 3/24/08, simon [EMAIL PROTECTED] wrote: +1, good idea to add this to the FAQ. Thanks Simon. Posted as MNG-3481. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Activating a profile
Aha; I see that http://jira.codehaus.org/browse/MNG-2848 is the root cause. Sigh. Sorry to have wasted people's time. Best, Laird On Mon, Mar 24, 2008 at 10:45 AM, Laird Nelson [EMAIL PROTECTED] wrote: I've searched the archives and have not found an answer to this question. I have a profile whose activation I'd like to trigger based on the non-emptiness of an environment variable. When I run mvn help:active-profiles with that environment variable set, it reports that no profiles are active. My settings.xml file, where the profile is defined, looks like this (in part): ?xml version=1.0 encoding=UTF-8? settings xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd; [stuff snipped here] profiles profile idDevelopment Server/id activation property nameenv.GLASSFISH_HOME/name /property /activation properties appserver.autodeploy.dir${env.GLASSFISH_HOME }/domains/domain1/autodeploy/appserver.autodeploy.dir /properties /profile /profiles /settings I followed the example of the maven.apache.org page on build profileshttp://maven.apache.org/guides/introduction/introduction-to-profiles.html, which says, in part: * Note* : Environment variable FOO would be set like env.FOO . ...but this only works if I do: mvn help:active-profiles -Denv.GLASSFISH_HOME=foobar ...i.e. it is treated (by the help:active-profiles plugin, at any rate) as a regular property, not an environment variable. How, if not that way as documented, do I activate a profile based on the presence of a non-empty environment variable value? Thanks, Laird P. S.: The output of mvn --version is below: Maven version: 2.0.8 Java version: 1.6.0_04 OS name: windows xp version: 5.1 arch: x86 Family: windows
RE: Findbugs SNAPSHOT problem
There have been several emails recently to this list regarding the plans for Findbugs. Check the archives, but I think at one point it required JDK 1.5, but they were going back on that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Monday, March 24, 2008 10:27 AM To: Maven Users List Subject: Findbugs SNAPSHOT problem Friday morning, 20 Mar, I got the update on the findbugs plugin snapshot. It seems to now require there to be some java in the project so my ear project broke. Anyone else seeing this? I know ... there's no details but I just want to know if its a common problem or something wierd about my build. thanks. -- Lee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
site:deploy URL issue?
All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin
archetype create command does not work
I'm trying to write a plugin for Jira, but am having trouble with a Maven step. When I run the following command: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=com.atlassian.maven.archetypes -DarchetypeArtifactId=jira-plugin-archetype -DarchetypeVersion=10 -DremoteRepositories=https://maven.atlassian.com/repository/public/ -DgroupId=com.gfs.corp.jira -DartifactId=releaseWorkflow I get this error: [INFO] Invalid task 'com.atlassian.maven.archetypes': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal This is exactly the way the Jira page(http://confluence.atlassian.com/display/DEVNET/Atlassian+Plugin+Archetypes) and other examples say to do it, but it isn't working. It has nothing to do with the archetypeGroupId; it simply gives this same error message regarding any -D parameter following the :create. If I run it without any parameters, thus: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create Then I get the following error message: [INFO] Parameter: groupId, Value: null [INFO] Parameter: packageName, Value: null [INFO] Parameter: basedir, Value: D:\Sandbox\trails [INFO] Parameter: package, Value: null [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: null [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Artifact ID must be specified when creating a new project from an archetype. So how can I make the command work? Thanks!
RE: site:deploy URL issue?
Under most versions of SSHD that I have used using scp://bcterwinlinux/~/website/Remora4 would do the trick. The ~ indicates the home directory. Dana H. P'Simer Transaction Platform Development Revenue Guest Technology IHG - InterContinental Hotels Group Dana.P'[EMAIL PROTECTED] -Original Message- From: Marose, Justin (GE EntSol, Security) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:05 PM To: users@maven.apache.org Subject: site:deploy URL issue? All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] -- -- [ERROR] BUILD ERROR [INFO] -- -- [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: site:deploy URL issue?
You need to use the full path on the remote machine. It does not assume home by default. -Original Message- From: Marose, Justin (GE EntSol, Security) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:05 PM To: users@maven.apache.org Subject: site:deploy URL issue? All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: site:deploy URL issue?
Thanks Brian and Dana. Yes, scp://bcterwinlinux/home/website/myFolder worked. Appreciate the quick response. (Should have recognized this ;-) -Original Message- From: Brian E. Fox [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:18 PM To: Maven Users List Subject: RE: site:deploy URL issue? You need to use the full path on the remote machine. It does not assume home by default. -Original Message- From: Marose, Justin (GE EntSol, Security) [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 12:05 PM To: users@maven.apache.org Subject: site:deploy URL issue? All, When doing a site:deploy to a Linux machine, I get the following error message: [INFO] [site:deploy] scp://bcterwinlinux/website/Remora4 - Session: Opened Executing command: mkdir -p /website/myFolder/. scp://bcterwinlinux/website/myFolder - Session: Disconnecting scp://bcterwinlinux/website/myFolder - Session: Disconnected [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error uploading site Embedded error: Error performing commands for file transfer Exit code: 1 - mkdir: cannot create directory `/website': Permission denied It appears that mkdir attempts to create the folder in the root of the file system (/website/myFolder), to which we obviously don't have access. Three questions: 1. Is there a way to get rid of the leading '/' in the directory name?, or 2. Is there an scp version on RH FC3 that does a chroot? 3. Am I missing something obvious? Thanks in advance, Justin - 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] cobertura code coverage for dbunit test classes with testNG and OpenJPA?
So I need to mention again, I am using the openJPA plugin to enhance the byte code in this project. But it seems strange. I uncommented goalcheck/goal then got an error as I am under 25% coverage (as expected), then commented it out again so the site:site would complete. Then BAM! I got my coverage report. Then I ran another clean install, and the report stopped again. So I uncommented goalcheck/goal, ran the build again that failed, commented goalcheck/goal again, and BAM it worked again. I am not fully sure whate the trick is, but it seems I need to not clean the build, and run the plugin with goalcheck/goal in order to make this work. Has anyone run into this as well? On Mon, Mar 24, 2008 at 4:20 AM, Erez Nahir [EMAIL PROTECTED] wrote: Hi Mick, We have surefire 2.4.2 + testng + cobertura 2.2 works. Your cofiguration looks fine to me, but, I'm missing the cobertura definition in the reporting section. The only difference I see from out build (other then the need to add cobertuar to reporting section) is usage of ${basedir} as value. Try to remove it, I know surefire has some issues passing values of ${properties}. Here is what we have: In surefire plugin: property namenet.sourceforge.cobertura.datafile/name valuetarget/cobertura/cobertura.ser/value /property /systemProperties In the reporting section: reporting plugins ... ... plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.2/version /plugin /plugins /reporting HTH, Erez. On Sun, Mar 23, 2008 at 12:48 PM, Mick Knutson [EMAIL PROTECTED] wrote: Anyone have any ideas? I have tried cobertura 2.0 and 2.2 maven plugin and still the same result. On Fri, Mar 21, 2008 at 2:36 PM, Mick Knutson [EMAIL PROTECTED] wrote: I have a Spring, OpenJPA, DBUnit, TestNG, HSQL build with Maven 2.0.8and there are 20 DAO tests that now pass. I am trying to now add cobertura to this. I have used Cobertura extensively in the past, but never with DBUnit. So, I am getting the report to generate, but everything is zero. So it appears that nothing was instrumented. Here is my surefire and cobertura plugins: reporting plugin artifactIdmaven-surefire-report-plugin/artifactId version2.4.2/version configuration includes include implementation=java.lang.String **/*.java/include /includes excludes exclude implementation=java.lang.String **/*Point*.java/exclude /excludes systemProperties property namenet.sourceforge.cobertura.datafile /name value${basedir}/target/cobertura/cobertura.ser/value /property /systemProperties argLine-Xmx256m/argLine testFailureIgnoretrue/testFailureIgnore /configuration /plugin plugins... plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId version1.0-beta-1/version configuration dataTypeFactoryName${dbunit.dataTypeFactoryName }/dataTypeFactoryName driver${jdbc.driverClassName}/driver username${jdbc.username}/username password${jdbc.password}/password url${jdbc.url}/url srcsrc/test/resources/test-data.xml/src type${dbunit.operation.type}/type schema${dbunit.schema}/schema skip${maven.test.skip}/skip /configuration executions execution phasetest-compile/phase goals goaloperation/goal /goals /execution /executions dependencies dependency groupId${jdbc.groupId}/groupId artifactId${jdbc.artifactId}/artifactId version${jdbc.version}/version /dependency /dependencies /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.2/version configuration formats
custom dependency type
Greetings, I am wondering if there is a standard solution to this problem anywhere. I can't seem to find one, but I could have easily have overlooked it... What we need to do is; download a file, put it in the local repo, and also on the classpath. To make this concrete, I'll explain our use-case. I would like to; 1) create a dependency on a RelaxNG schema (a RNC file) in the POM; dependency typernc/type groupIdcom.foo/groupId artifactIdfoobar/artifactId version1.1/version /dependency 2) hook up some plugin in the POM, telling it to recognize RNC types, and to do its work during resource resolution phase 3) the plugin would 3.1) download the RNC to the local repo 3.2) copy it to target/classes, so that we can use it as Classpath resource (to do RelaxNG validation) This seems like it might be something people would commonly want to accomplish. Not just for RNC files, but for any custom type. We've hacked up a custom plugin to do this. But it doesn't seem like we should have too ??? If we do have to create a custom plugin, could someone give a synopsis of the best practice for accomplishing this?? I'd like to verify that we've done it the best way... Thanks, -- Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploy pom with dependencies to internal repository
Hello, We have several projects that share common dependencies. I wanted to create a parent pom that allowed them to inherit these dependencies, but from what I can tell all the projects would need to be sub-projects of the parent to inherit the parent pom (not what we want). Digging around in the archives I found a thread that (loosely) described installing a pom that contains all the common dependencies, and then adding a reference to that artifact in your pom, making sure to reference it as typepom/type. This works when I install it to my local repository. However, when I try to deploy it to our Internal repository, only the project description gets uploaded, without the dependencies. for example, here is a snippet of what gets installed locally: ... project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version scopecompile/scope /dependency ... and here is what gets deployed to the Internal repository: project modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version /project I use the following command to deploy it to the Internal repos: mvn deploy:deploy-file -DgroupId=com.foo -DartifactId=common-dependencies -Dversion=1.0 -Dpackaging=pom -Dfile=c:/poms/common-dependencies.xml -Durl=http://ourinternalrepos:8080/archiva/repository/internal -DrepositoryId=internal -Dgenerate-pom=true How do I get the dependencies included with the pom on the Internal repository? I read the docs and it seems like the deploy:deploy-file target should be used to install to an Internal repos, while install:install-file is for local repos. -- View this message in context: http://www.nabble.com/Deploy-pom-with-dependencies-to-internal-repository-tp16258021s177p16258021.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
On Mon, 2008-03-24 at 11:32 -0700, buzzterrier wrote: Hello, We have several projects that share common dependencies. I wanted to create a parent pom that allowed them to inherit these dependencies, but from what I can tell all the projects would need to be sub-projects of the parent to inherit the parent pom (not what we want). Digging around in the archives I found a thread that (loosely) described installing a pom that contains all the common dependencies, and then adding a reference to that artifact in your pom, making sure to reference it as typepom/type. This works when I install it to my local repository. However, when I try to deploy it to our Internal repository, only the project description gets uploaded, without the dependencies. for example, here is a snippet of what gets installed locally: ... project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version scopecompile/scope /dependency ... and here is what gets deployed to the Internal repository: project modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version /project I use the following command to deploy it to the Internal repos: mvn deploy:deploy-file -DgroupId=com.foo -DartifactId=common-dependencies -Dversion=1.0 -Dpackaging=pom -Dfile=c:/poms/common-dependencies.xml -Durl=http://ourinternalrepos:8080/archiva/repository/internal -DrepositoryId=internal -Dgenerate-pom=true How do I get the dependencies included with the pom on the Internal repository? I read the docs and it seems like the deploy:deploy-file target should be used to install to an Internal repos, while install:install-file is for local repos. There are two completely separate tasks here: (1) Define a custom pom (with your group id) that declares dependencies on a bunch of other libs, and deploy this to your company's repo. After that, any project can declare a *dependency* on this pom, and that will cause it to depend transiently on the libs that pom depends on. Note that this is not necessarily a good idea. I personally think this is bad; it hides the real dependencies which will just cause problems in other ways. For example, if a security bug is discovered in one of those libs and you need to find out which of your products are actually vulnerable, then fine-grained dependencies will tell you this; but if each of your products has a dependency on a whole block of libs even when it doesn't use them all, then this analysis is impossible. However if you are determined to do this, then Maven does support it. (2) Copy a bunch of libs into your company's repo. AFAIK, there is no single command that combines the two. When the libs referenced by the pom are all available via the master repositories, then (2) is usually not needed. You just allow maven to fetch the dependencies from the master repositories (possibly via a caching proxy, to reduce load on the master repository servers, and improve performance for you). Only if your company has strict security policies that ban maven from downloading from the master repositories on demand is (2) needed. Of course, if the libs that your dependencies pom are depending on are not in the master repos (eg if they are developed by your company) then you do need to upload them. There is nothing in Maven itself that helps to automate this process. I *think* that some of the repository manager programs around can help, but haven't used any myself. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom dependency type
On Mon, 2008-03-24 at 12:46 -0500, Chris Berry wrote: Greetings, I am wondering if there is a standard solution to this problem anywhere. I can't seem to find one, but I could have easily have overlooked it... What we need to do is; download a file, put it in the local repo, and also on the classpath. To make this concrete, I'll explain our use-case. I would like to; 1) create a dependency on a RelaxNG schema (a RNC file) in the POM; dependency typernc/type groupIdcom.foo/groupId artifactIdfoobar/artifactId version1.1/version /dependency 2) hook up some plugin in the POM, telling it to recognize RNC types, and to do its work during resource resolution phase 3) the plugin would 3.1) download the RNC to the local repo 3.2) copy it to target/classes, so that we can use it as Classpath resource (to do RelaxNG validation) This seems like it might be something people would commonly want to accomplish. Not just for RNC files, but for any custom type. We've hacked up a custom plugin to do this. But it doesn't seem like we should have too ??? If we do have to create a custom plugin, could someone give a synopsis of the best practice for accomplishing this?? I'd like to verify that we've done it the best way... Unless I've misunderstood you, the standard maven-dependency-plugin does what you want: http://maven.apache.org/plugins/maven-dependency-plugin/ See the dependency-copy goal in particular. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to force archiva download an artifact
Hi, I have successfully setup a ProxyConnector with my own Repository url. One of the artifact has been downloaded into my local repo already. But when I create a new project pom.xml and refer to second artifact from the same proxy, it keeps error out with with missing artifact. From the error I can see the specified remote repositories does indeed contains my archiva url. I also manually checked my archiva instance with path like http://myhost/archiva/repository/internal/org/mygroup2/myartifact2 and it's NOT there. So the questions is how do I force archiva to download it from the repository url(proxied repo) that I have setup? Thanks Zemian Deng
Re: how to force archiva download an artifact
On Mon, Mar 24, 2008 at 12:13 PM, Zemian Deng [EMAIL PROTECTED] wrote: So the questions is how do I force archiva to download it from the repository url(proxied repo) that I have setup? Please come join us on the Archiva mailing lists and re-post your question there. You can find subscription info on this page: http://maven.apache.org/archiva/mail-lists.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: custom dependency type
Comments inline. Thanks for responding. Cheers, -- Chris On Mar 24, 2008, at 2:05 PM, simon wrote: On Mon, 2008-03-24 at 12:46 -0500, Chris Berry wrote: Greetings, I am wondering if there is a standard solution to this problem anywhere. I can't seem to find one, but I could have easily have overlooked it... What we need to do is; download a file, put it in the local repo, and also on the classpath. To make this concrete, I'll explain our use-case. I would like to; 1) create a dependency on a RelaxNG schema (a RNC file) in the POM; dependency typernc/type groupIdcom.foo/groupId artifactIdfoobar/artifactId version1.1/version /dependency 2) hook up some plugin in the POM, telling it to recognize RNC types, and to do its work during resource resolution phase 3) the plugin would 3.1) download the RNC to the local repo 3.2) copy it to target/classes, so that we can use it as Classpath resource (to do RelaxNG validation) This seems like it might be something people would commonly want to accomplish. Not just for RNC files, but for any custom type. We've hacked up a custom plugin to do this. But it doesn't seem like we should have too ??? If we do have to create a custom plugin, could someone give a synopsis of the best practice for accomplishing this?? I'd like to verify that we've done it the best way... Unless I've misunderstood you, the standard maven-dependency-plugin does what you want: http://maven.apache.org/plugins/maven-dependency-plugin/ See the dependency-copy goal in particular. Regards, Simon [cwb] this is not really sufficient. We want 1) to use dependency elements, so that the dependency is clearly expressed in the POM (rather than buried in the plugin config) 2) to have the artifact copied to the local repo (for reuse) AND to target/classes So we just want a simple dependency type (rnc) that does this little bit of lifecycle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
Hi Simon, Thx for the reply. I did define a custom pom, that declared the dependencies, e.g. common_dependencies.xml ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version scopecompile/scope /dependency ... /project but when I deploy this pom to the internal repository the dependencies are stripped out and I am left with: project modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version /project If I install the pom to my local repository all the dependency declarations are still there. I cannot figure out how to install the pom to the internal repository with the dependency declarations. Also, thx for your insight on why this approach may be problematic. Can you suggest a more appropriate approach for sharing common libraries across several projects. For example, all the projects are going to use log4J so it seems like it should be automatically made available to all of them. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Deploy-pom-with-dependencies-to-internal-repository-tp16258021s177p16259983.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
On Mon, Mar 24, 2008 at 1:16 PM, buzzterrier [EMAIL PROTECTED] wrote: Thx for the reply. I did define a custom pom, that declared the dependencies, e.g. ... but when I deploy this pom to the internal repository the dependencies are stripped out and I am left with: What command did you use? My guess is that you left out -DpomFile=... and you're getting the automatically generated pom. http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
It is not possible to include folder: .svn to JAR file (maven 2.0.8)
Dears Could you please help me to include folder .svn with all its content to resulting file like jar? Actually I need this only within resources (folder: src/main/resources), so, if you try to specify include pattern in maven-resources-plugin settings - it does not work. If you create some hidden folder (in terms of Linux) like: .wow it works and will be copied to JAR. So, looks like filter about .svn is hardcoded to some default exclusion list and how to override it is unknown. I can assume this problem is common for many plugins, but what I need is just to know some workaround. PS. Please do not ask me why I need .svn in JAR file ... I really need it. -- Thanks Yuriy Krymlov GTalk: krymlov GMail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
On Mon, 2008-03-24 at 13:16 -0700, buzzterrier wrote: Hi Simon, Thx for the reply. I did define a custom pom, that declared the dependencies, e.g. common_dependencies.xml ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version dependencies dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.12/version /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.3/version scopecompile/scope /dependency ... /project but when I deploy this pom to the internal repository the dependencies are stripped out and I am left with: project modelVersion4.0.0/modelVersion groupIdcom.foo/groupId artifactIdcommon-dependencies/artifactId packagingpom/packaging version1.0/version /project If I install the pom to my local repository all the dependency declarations are still there. I cannot figure out how to install the pom to the internal repository with the dependency declarations. I just tried it, and got the same problem: mvn deploy:deploy-file -DgroupId=foo -DartifactId=foo -Dversion=1 -Dpackaging=pom -Dfile=pom.xml -Durl=file:///home/simon/mockm2 Then I added -DgeneratePom=false on the end, and it worked as expected. The generatePom option is true by default, so I think maven is generating a pom for the pom, and overwriting the one just deployed:-). Looks like a JIRA issue is needed for maven-deploy-plugin to ensure generatePom defaults to false when -Dpackaging=pom is specified! Also, thx for your insight on why this approach may be problematic. Can you suggest a more appropriate approach for sharing common libraries across several projects. For example, all the projects are going to use log4J so it seems like it should be automatically made available to all of them. I would personally just add log4j as an explicit dependency. If a project uses log4j, then why not add a dependency for it? This then means that poms declare their *real* dependencies, and don't pull in stuff that they don't need. Some people then start worrying about keeping the version up to date, but I think that's not an issue at all. If a project functions fine with a specific version, then there is no need to keep updating the version - in fact, it's dangerous. And if something else depends on that lib but itself uses log4j, then it will automatically override the version anyway. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set multi-module workingDirectory?
I set up a parent module Parent and two child modules Child1 and Child2. I want to build Parent module and child modules differently -- for all child modules, I need to run a specific plugin. So I set up a profile for child modules and trigger it by checking file existance: target/checkout. If I build child modules from their own directories, they runs fine. However, If I build child modules from parent, Maven builds parent module fine, but not child modules. My profile is not run because from parent level, Maven doesn't see target/checkout My question is: how can I make Maven build module at its own working directory? Thanks!
Re: Deploy pom with dependencies to internal repository
Hi Wendy, I used deploy:deploy-file: mvn deploy:deploy-file -DgroupId=com.foo -DartifactId=common-dependencies -Dversion=1.0 -Dpackaging=pom -Dfile=c:/poms/common-dependencies.xml -Durl=http://ourinternalrepos:8080/archiva/repository/internal -DrepositoryId=internal -Dgenerate-pom=true The install plugin states that it: Installs a file in local repository. I want to install to an Internal repository which is why the deploy plugin seemed appropriate. Wendy Smoak-3 wrote: On Mon, Mar 24, 2008 at 1:16 PM, buzzterrier [EMAIL PROTECTED] wrote: Thx for the reply. I did define a custom pom, that declared the dependencies, e.g. ... but when I deploy this pom to the internal repository the dependencies are stripped out and I am left with: What command did you use? My guess is that you left out -DpomFile=... and you're getting the automatically generated pom. http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Deploy-pom-with-dependencies-to-internal-repository-tp16258021s177p16260462.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
Hi Wendy, On Mon, 2008-03-24 at 13:19 -0700, Wendy Smoak wrote: On Mon, Mar 24, 2008 at 1:16 PM, buzzterrier [EMAIL PROTECTED] wrote: Thx for the reply. I did define a custom pom, that declared the dependencies, e.g. ... but when I deploy this pom to the internal repository the dependencies are stripped out and I am left with: What command did you use? My guess is that you left out -DpomFile=... and you're getting the automatically generated pom. http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html I've tried it, and that works too. However it seems a very odd UI for the deploy plugin. The file property is mandatory, so when deploying just a POM, doesn't it make sense to set -Dfile to point to the pom.xml, and -Dpackaging=pom? And when doing that, it then seems very odd to have to set the optional -DpomFile parameter. In fact, I would bet that maven then scps the pom file twice; once as the deployed file and once as the deployed pom. Not fatal, but definitely odd. Wouldn't it make more sense to disable generatePom when -Dpackaging=pom is set? Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
On Mon, Mar 24, 2008 at 1:40 PM, buzzterrier [EMAIL PROTECTED] wrote: mvn deploy:deploy-file -DgroupId=com.foo -DartifactId=common-dependencies -Dversion=1.0 -Dpackaging=pom -Dfile=c:/poms/common-dependencies.xml -Durl=http://ourinternalrepos:8080/archiva/repository/internal -DrepositoryId=internal -Dgenerate-pom=true The install plugin states that it: Installs a file in local repository. Yep, I posted the wrong link. Simon got it right, but I think you can shorten it by using -DpomFile=... (and you definitely don't want it to generate a pom.) It's a bit non-intuitive to specify both file and pomFile, but it works. JIRA issues for enhancements (preferably with patches) welcome! :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: It is not possible to include folder: .svn to JAR file (maven 2.0.8)
nearest I can tell the org.apache.maven.archetype.common.util.ListScanner contains the default exclude list public static final String[] DEFAULTEXCLUDES = { // Miscellaneous typical temporary files **/*~, **/#*#, **/.#*, **/%*%, **/._*, // CVS **/CVS, **/CVS/**, **/.cvsignore, // SCCS **/SCCS, **/SCCS/**, // Visual SourceSafe **/vssver.scc, // Subversion **/.svn, **/.svn/** }; The only workaround is to comment out .svn entry recompile org.apache.maven.archetype.common.util.ListScanner Anyone else? Martin - Original Message - From: Yuriy Krymlov [EMAIL PROTECTED] To: users@maven.apache.org Sent: Monday, March 24, 2008 3:13 PM Subject: It is not possible to include folder: .svn to JAR file (maven 2.0.8) Dears Could you please help me to include folder .svn with all its content to resulting file like jar? Actually I need this only within resources (folder: src/main/resources), so, if you try to specify include pattern in maven-resources-plugin settings - it does not work. If you create some hidden folder (in terms of Linux) like: .wow it works and will be copied to JAR. So, looks like filter about .svn is hardcoded to some default exclusion list and how to override it is unknown. I can assume this problem is common for many plugins, but what I need is just to know some workaround. PS. Please do not ask me why I need .svn in JAR file ... I really need it. -- Thanks Yuriy Krymlov GTalk: krymlov GMail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: It is not possible to include folder: .svn to JAR file (maven 2.0.8)
On Mon, Mar 24, 2008 at 1:13 PM, Yuriy Krymlov [EMAIL PROTECTED] wrote: Could you please help me to include folder .svn with all its content to resulting file like jar? Actually I need this only within resources (folder: src/main/resources), so, if you try to specify include pattern in maven-resources-plugin settings - it does not work. The assembly plugin docs talk about including Subversion metadata, so you should be able to construct what you need as an assembly. http://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Odd central maven repo behavior
I am having a problem when building a maven project... more specifically, when I am building a maven project from a machine in India. I can build the same project from a machine in the US fine. So far, I have determined that this only seems to be happening for a couple of specific artifacts: * slide/slide-webdavlib/2.1/slide-webdavlib-2.1.jar (172727) (.pom file downloads fine) * commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2.jar (225375) (.pom file downloads fine) * jdom/jdom/1.0/jdom-1.0.jar (153253) (.pom file downloads fine) Other dependent artifacts download just fine to the machine in India, I also tried using a mirror to download from and got the same result. It almost looks like a file size issue, the other artifacts that download fine are 70k and smaller. I also tried accessing these artifacts via wget and get the 403 Forbidden message. Also for clarity, our network connection from India is using simple ip forwarding to a direct wan connection, so there isn't any kind of proxy getting in the way. Any ideas would be greatly appreciated. -- View this message in context: http://www.nabble.com/Odd-central-maven-repo-behavior-tp16260811s177p16260811.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploy pom with dependencies to internal repository
Sweet, that worked! I would have never thought to add the -DpomFile, since I declared the packaging as pom. Thank you both for your help. Wendy Smoak-3 wrote: On Mon, Mar 24, 2008 at 1:40 PM, buzzterrier [EMAIL PROTECTED] wrote: Yep, I posted the wrong link. Simon got it right, but I think you can shorten it by using -DpomFile=... (and you definitely don't want it to generate a pom.) It's a bit non-intuitive to specify both file and pomFile, but it works. JIRA issues for enhancements (preferably with patches) welcome! :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Deploy-pom-with-dependencies-to-internal-repository-tp16258021s177p16260888.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set multi-module workingDirectory?
Hi Stan I *think* this will be enabled as a new feature in 2.1 called summarize:phase http://docs.codehaus.org/display/MAVEN/Atypical+Plugin+Use+Cases I qualify with *think* because I have'nt seen the 2.1 release date yet Martin - Original Message - From: Stanley Lee [EMAIL PROTECTED] To: users@maven.apache.org Sent: Monday, March 24, 2008 3:18 PM Subject: How to set multi-module workingDirectory? I set up a parent module Parent and two child modules Child1 and Child2. I want to build Parent module and child modules differently -- for all child modules, I need to run a specific plugin. So I set up a profile for child modules and trigger it by checking file existance: target/checkout. If I build child modules from their own directories, they runs fine. However, If I build child modules from parent, Maven builds parent module fine, but not child modules. My profile is not run because from parent level, Maven doesn't see target/checkout My question is: how can I make Maven build module at its own working directory? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archetype create command does not work
can you set the environment variable MAVEN_BATCH_ECHO=ON (check in the mvn.bat file that that is correct) and see what command gets run? It seems like something is being split incorrectly. If you are using Maven 2.0.7, it might be worth trying a different version of Maven too. - Brett On 25/03/2008, Chad Schultz [EMAIL PROTECTED] wrote: I'm trying to write a plugin for Jira, but am having trouble with a Maven step. When I run the following command: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=com.atlassian.maven.archetypes -DarchetypeArtifactId=jira-plugin-archetype -DarchetypeVersion=10 -DremoteRepositories=https://maven.atlassian.com/repository/public/ -DgroupId=com.gfs.corp.jira -DartifactId=releaseWorkflow I get this error: [INFO] Invalid task 'com.atlassian.maven.archetypes': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal This is exactly the way the Jira page(http://confluence.atlassian.com/display/DEVNET/Atlassian+Plugin+Archetypes) and other examples say to do it, but it isn't working. It has nothing to do with the archetypeGroupId; it simply gives this same error message regarding any -D parameter following the :create. If I run it without any parameters, thus: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create Then I get the following error message: [INFO] Parameter: groupId, Value: null [INFO] Parameter: packageName, Value: null [INFO] Parameter: basedir, Value: D:\Sandbox\trails [INFO] Parameter: package, Value: null [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: null [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Artifact ID must be specified when creating a new project from an archetype. So how can I make the command work? Thanks! -- Brett Porter Blog: http://blogs.exist.com/bporter/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to construct an archetype for multi-module build with renamed modules
Hi Pat, I created http://jira.codehaus.org/browse/ARCHETYPE-153 Please comment if this issue does not correspond to your issue. Regards, Raphaël 2008/3/24, stug23 [EMAIL PROTECTED]: Based on the lack of response to my posting, is this question too esoteric for Maven experts to answer? I have spent a fair amount of time learning about how to use archetypes and have successfully developed an archetype that uses parameter substitution with the Velocity templating. What I am seeking help with here is a way to rename the folders in the archetype modules based on artifactId when the new project(s) are generated from the archetype. Can someone point me to documentation on the new archchetype NG that shows how to use mojos in an archetype development? stug23 wrote: I am seeking advice on how to construct an archetype for a multi-module build such that the artifactId of each respective module becomes the name for the module in the generated directory structure. The result I am looking for would resemble the naming conventions of the Proficio multi-module project in Better Builds with Maven: proficio proficio-api proficio-cli proficio-core proficio-model proficio-stores proficio-store-memory proficio-store-xstream The intended usage of this archetype would be to create new Maven multi-module projects in Eclipse such that the project names follow the convention shown in the example above. Without this project naming scheme, it is quite difficult for a user to understand which projects are related to a multi-module build in the Eclipse workspace. I wasn't sure whether the new archetype NG may have some feature that would help to accomplish this, or whether this requires mojos in the archetype, or if M2Eclipse can help out with this requirment. Thanks in advance for tips, pointers or advice on how to accomplish this naming scheme. -- View this message in context: http://www.nabble.com/How-to-construct-an-archetype-for-multi-module-build-with-renamed-modules-tp16224882s177p16254209.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
run selenium on a headless system
Hi, I am trying to run my selenium tests on a headless system. I keep getting this message: [INFO] Internal error in the plugin manager executing goal 'org.codehaus.mojo:selenium-maven-plugin:1.0-beta-2:xvfb': Unable to find the mojo 'org.codehaus.mojo:selenium-maven-plugin:1.0-beta-2:xvfb' in the plugin 'org.codehaus.mojo:selenium-maven-plugin' org/codehaus/mojo/groovy/GroovyMojoSupport Firefox and xvfb are already installed in the box. Any thoughts? -- View this message in context: http://www.nabble.com/run-selenium-on-a-headless-system-tp16262680s177p16262680.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Odd central maven repo behavior
Try something other than wget (like a browser) and see if you can get the whole file. -Original Message- From: brucepainter [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 4:56 PM To: users@maven.apache.org Subject: Odd central maven repo behavior I am having a problem when building a maven project... more specifically, when I am building a maven project from a machine in India. I can build the same project from a machine in the US fine. So far, I have determined that this only seems to be happening for a couple of specific artifacts: * slide/slide-webdavlib/2.1/slide-webdavlib-2.1.jar (172727) (.pom file downloads fine) * commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2.jar (225375) (.pom file downloads fine) * jdom/jdom/1.0/jdom-1.0.jar (153253) (.pom file downloads fine) Other dependent artifacts download just fine to the machine in India, I also tried using a mirror to download from and got the same result. It almost looks like a file size issue, the other artifacts that download fine are 70k and smaller. I also tried accessing these artifacts via wget and get the 403 Forbidden message. Also for clarity, our network connection from India is using simple ip forwarding to a direct wan connection, so there isn't any kind of proxy getting in the way. Any ideas would be greatly appreciated. -- View this message in context: http://www.nabble.com/Odd-central-maven-repo-behavior-tp16260811s177p162 60811.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: custom dependency type
Unless I've misunderstood you, the standard maven-dependency-plugin does what you want: http://maven.apache.org/plugins/maven-dependency-plugin/ See the dependency-copy goal in particular. [cwb] this is not really sufficient. We want 1) to use dependency elements, so that the dependency is clearly expressed in the POM (rather than buried in the plugin config) 2) to have the artifact copied to the local repo (for reuse) AND to target/classes Use dependency:copy-dependencies instead. This will copy all dependencies of the current project, but you can filter it down to a specific artifact that you want. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Odd central maven repo behavior
Brian E Fox wrote: Try something other than wget (like a browser) and see if you can get the whole file. sorry, that was one part I neglected to state originally, I can get the file via browser -Original Message- From: brucepainter [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 4:56 PM To: users@maven.apache.org Subject: Odd central maven repo behavior I am having a problem when building a maven project... more specifically, when I am building a maven project from a machine in India. I can build the same project from a machine in the US fine. So far, I have determined that this only seems to be happening for a couple of specific artifacts: * slide/slide-webdavlib/2.1/slide-webdavlib-2.1.jar (172727) (.pom file downloads fine) * commons-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2.jar (225375) (.pom file downloads fine) * jdom/jdom/1.0/jdom-1.0.jar (153253) (.pom file downloads fine) Other dependent artifacts download just fine to the machine in India, I also tried using a mirror to download from and got the same result. It almost looks like a file size issue, the other artifacts that download fine are 70k and smaller. I also tried accessing these artifacts via wget and get the 403 Forbidden message. Also for clarity, our network connection from India is using simple ip forwarding to a direct wan connection, so there isn't any kind of proxy getting in the way. Any ideas would be greatly appreciated. -- View this message in context: http://www.nabble.com/Odd-central-maven-repo-behavior-tp16260811s177p162 60811.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Odd-central-maven-repo-behavior-tp16260811s177p16263801.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archetype create command does not work
On 25/03/2008, Chad Schultz [EMAIL PROTECTED] wrote: I'm trying to write a plugin for Jira, but am having trouble with a Maven step. When I run the following command: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create-DarchetypeGroupId= com.atlassian.maven.archetypes -DarchetypeArtifactId=jira-plugin-archetype -DarchetypeVersion=10 -DremoteRepositories= https://maven.atlassian.com/repository/public/ -DgroupId=com.gfs.corp.jira-DartifactId=releaseWorkflow if you're running this from the Windows cmd shell then you need to quote any arguments containing =, for example: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ -DarchetypeGroupId=com.atlassian.maven.archetypes \ -DarchetypeArtifactId=jira-plugin-archetype \ -DarchetypeVersion=10 \ -DremoteRepositories=https://maven.atlassian.com/repository/public/; \ -DgroupId=com.gfs.corp.jira \ -DartifactId=releaseWorkflow this is because of a bug/feature in the cmd shell that splits arguments containg = before the batch file sees them and unfortunately there's no way that the batch file can tell where the ='s used to be so no way to reconstruct it :( I get this error: [INFO] Invalid task 'com.atlassian.maven.archetypes': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal This is exactly the way the Jira page( http://confluence.atlassian.com/display/DEVNET/Atlassian+Plugin+Archetypes) and other examples say to do it, but it isn't working. It has nothing to do with the archetypeGroupId; it simply gives this same error message regarding any -D parameter following the :create. If I run it without any parameters, thus: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create Then I get the following error message: [INFO] Parameter: groupId, Value: null [INFO] Parameter: packageName, Value: null [INFO] Parameter: basedir, Value: D:\Sandbox\trails [INFO] Parameter: package, Value: null [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: artifactId, Value: null [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Artifact ID must be specified when creating a new project from an archetype. So how can I make the command work? Thanks! -- Cheers, Stuart
RE: Is there really a problem with the plugin repository???
I had messages of missing plugin for any operation I tried. Now that I renamed my repository dir in .m2 it just works. So that probably means at least the pluginpart of the repository got corrupted. Is there anyway to recover it? Or shall I just forget about it and wipe it out? thanks for your help Brian. Brian E Fox wrote: We need more info to help. What plugin artifact is missing? Paste the relevant part of your log output. -Original Message- From: nodje [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:47 AM To: users@maven.apache.org Subject: Is there really a problem with the plugin repository??? I've tried in every possible way, I can't get maven to work anymore. I always get a '~does not exist or no valid version could be found', whichever goal I try to execute. I've tried on different project on my Mac, even on the 'mvn install' goal on the Maven source tree itself, I've tried on a fresh Windows installation. Fresh installation downloaded many artifacts, but ended up with the same error. I'm lost here. Is there anything else I can try. Something obvious I haven't check? Or is there really a problem with the main repo? --nodje -- View this message in context: http://www.nabble.com/Is-there-really-a-problem-with-the-plugin-reposito rytp16246236s177p16246236.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Missing-plugin-in-the-repositorytp16246236s177p16267646.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Project Errors with M2Eclipse
Felipe Kamakura wrote: Well, I'm pretty sure the plugin installed ok. Does the plugin use something special in the .project and .settings? Because my projects here have the structure we prepared to use with M2Eclipse 0.0.10 There had been some changes in the project and container configuration since 0.0.10. So, I would strongly recommend to use Import / Maven Projects option to bring local projects to the Eclipse workspace. If you still have the same issue with 0.9 build, then please try to recreate it on a smal test project and then submit it to jira issue. Thanks Eugene -- View this message in context: http://www.nabble.com/Project-Errors-with-M2Eclipse-tp16164648s177p16267817.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AspectJ and M2Eclipse
Felipe Kamakura wrote: I have a problem concerning AJDT and the M2Eclipse plugin I hope someone can help me with that. I have to include a .JAR in my AspectJ Build Path, but M2Eclipse won't let me. Everytime I include a library in the AspectJ Build Path it is automatically excluded. I think that's because M2Eclipse groups all libraries in a Container: classpathentry kind=con path= org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/ I've tried changing manually the .classpath file, including the dependency like this: classpathentry kind=var path=M2_REPO/br/com/touchtec/version/version/1.0/version-1.0.jar attributes attribute name=org.eclipse.ajdt.aspectpath value=true/ /attributes /classpathenty But Eclipse will give me an error for duplicated build path entry, because the version-1.0.jar already exists in the M2Eclipse Container. Is there a way to suppress this error? Or better, is there a way to include a Maven dependency in the AspectJ Build Path?? Felipe, can you please create jira on m2eclipse and attach some test project that we could use to reproduce issue and keep track of it for AJDT support. Thanks Eugene -- View this message in context: http://www.nabble.com/AspectJ-and-M2Eclipse-tp16095385s177p16267850.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to checkout the particular tag from CVS using scm tags in maven 2.0.7
Hi, When I am doing the direct checkout from the cvs it is creating Entries,Root,Repository and Tag documents within CVS folder and that particular tag is downloading. But when i am doing with maven it is only creating the Entries,Root,Repository in CVS folder and by default it is downloading the HEAD tag project.It is not creating that Tag document in CVS Folder. example I am having Branch and in that i want checkout september_release. I gave the as follows: scm connectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/connection developerConnectionscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/developerConnection tagseptember_release/tag urlscm:cvs:pserver:xxx:[EMAIL PROTECTED] :/istcvs/CVSHOME:xtclients/xtTest/url /scm And I tried for the different combinations. still it is not working. Please help me out of this issue... -- Regads, Sowmya.R
[m2] issues getting Jetty and Selenium running from examples.
So I have been trying to follow: http://wiki.foochal.org/index.php/Maven_Selenium Now I have a core:jar and a web:war in a multi-module project. The 1st issue I have from the example is the *maven-surefire-plugin* as I get this error: *Reason: Parse error reading POM. Reason: Unrecognised tag: 'executions' (position: START_TAG seen .../configuration\r\n\r\nexe* *cutions... @291:29) for project unknown:webapp at C:\opt\temp\appfuse\myproject\pom.xml* and I can not get the selenium server to startup and jetty to start up automatically. Then the SeleniumHelloWorldExample.java test is failing because the Jetty and Selenium as I get this error: *![CDATA[Could not contact Selenium Server; have you started it?* *Catch body broken: IOException from cmd=getNewBrowserSession1=*firefox2=http%3A%2F%2Flocalhost%3A8080%2F - java.net.ConnectException: Connection refused: connect]]* So I also tried this setting, but my selenium tests are still run: *plugin* *artifactIdmaven-surefire-report-plugin/artifactId* *version2.4.2/version* *configuration* *skiptrue/skip* *includes* *include**/*.java/include* */includes* *excludes* *exclude**/selenium/*.java/exclude* *exclude**/*$*/exclude* */excludes* *systemProperties* *property* *namenet.sourceforge.cobertura.datafile/name * *valuetarget/cobertura/cobertura.ser/value* */property* */systemProperties* *argLine-Xmx256m/argLine* *testFailureIgnoretrue/testFailureIgnore* */configuration* */plugin* -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.linkedin.com/in/mickknutson http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com ---