Problem downloading sources - The following files where skipped
Hello, I have installed a snapshot of JSF JARS in my own repository including the sources. I don't manage to let Maven download the sources for those JARS while other JARS, which are only proxied work. I tried to compare the poms in the remote repository, but didn't find out what is wrong. May be you have an idea. The following command doesn't download the sources and print only mvn dependency:resolve -DdownloadSources=true [INFO] The following files have been resolved: [INFO]javax.faces:jsf-api:jar:2.0-SNAPSHOT:compile [INFO]javax.faces:jsf-impl:jar:2.0-SNAPSHOT:compile [INFO]junit:junit:jar:4.3:test mvn dependency:sources [INFO] The following files have been resolved: [INFO]none [INFO] [INFO] The following files where skipped: [INFO]javax.faces:jsf-api:java-source:sources:2.0-SNAPSHOT [INFO]javax.faces:jsf-impl:java-source:sources:2.0-SNAPSHOT [INFO]junit:junit:java-source:sources:4.3 Further information mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_15 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: de_DE, platform encoding: MacRoman OS name: mac os x version: 10.6.1 arch: x86_64 Family: mac The remote repository has the following files: javax/faces/jsf-api/2.0-SNAPSHOT/jsf-api-2.0-SNAPSHOT.jar javax/faces/jsf-api/2.0-SNAPSHOT/jsf-api-2.0-SNAPSHOT-sources.jar javax/faces/jsf-api/2.0-SNAPSHOT/jsf-api-2.0-SNAPSHOT.pom ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion groupIdjavax.faces/groupId artifactIdjsf-api/artifactId version2.0-SNAPSHOT/version descriptionArtifactory auto generated POM/description /project -- Best Regards / Viele Grüße Sebastian Hennebrueder - Software Developer and Trainer for Hibernate / Java Persistence http://www.laliluna.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Adding jars in ear to the war manifest file
This is the skinny war problem. See: - http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html - http://docs.codehaus.org/display/MAVENUSER/Solving+the+Skinny+Wars+problem Yes, these are ugly solutions. No, nobody has got a better solution yet Oh, if you do find a better solution, please add it to the wiki -Stephen 2009/10/28 neptune_pl...@indiatimes.com Hi All, MainFolder |-pom.xml (All dependecies are scope-provided) Earfolder |--pom.xml (Scope is not provided and so gets added in the ear folder) War1 |-pom.xml ( manifest - addClasspath is true) War2 |-pom.xml ( manifest - addClasspath is true) War3 |-pom.xml ( manifest - addClasspath is true) My requirement is that the jars present in the ear folder should be available in the classpath and so the entries have to be in all the wars manifest file. I dont want to have jars duplicated in all the wars-WEB/lib. Currently its not making any entries in the mainfest file - its empty Regards -- Click for exclusive coverage on the New Bajaj Pulsar 220 the fastest Indian bike http://www.zigwheels.com/Features/Bajaj-Pulsar-220-DTSi-Special-Coverage/Pulsar_20090623-1-1 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven deploy ignores settings.xml
Hi, I am trying to deploy an artifact on a remote repository using mvn deploy:deploy-file. The command I am trying to execute is mvn deploy:deploy-file -Dfile=target/abc-1.2.0.jar -Durl=scp://remoteMachine/srv/www/htdocs/maven -DgroupId=com.example -DartifactId=abc -Dversion=1.2.0 -Dpackaging=jar -DpomFile=pom.xml -gs /home/localUser/apache-maven.-2.2.1/conf/settings.xml While in settings.xml I have server idrepo-id/id usernameremoteUser/username passwordmyPwd/password /server But whenever I execute it, it always prompts for the password with the local username instead of the username defined in the settings.xml file. such as, localu...@remotemachine.de but I was expecting remoteu...@remotemachine.de Thanks for any help in advance. Shiraz -- View this message in context: http://www.nabble.com/Maven-deploy-ignores-settings.xml-tp26091684p26091684.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven deploy ignores settings.xml
You need to set the repositoryId to repo-id on command line as well: http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html#repositoryId If not, Maven has no way of knowing how to map the defined repo url to the credentials in settings.xml. /Anders On Wed, Oct 28, 2009 at 10:30, shiraz memon shiraz.me...@yahoo.com wrote: Hi, I am trying to deploy an artifact on a remote repository using mvn deploy:deploy-file. The command I am trying to execute is mvn deploy:deploy-file -Dfile=target/abc-1.2.0.jar -Durl=scp://remoteMachine/srv/www/htdocs/maven -DgroupId=com.example -DartifactId=abc -Dversion=1.2.0 -Dpackaging=jar -DpomFile=pom.xml -gs /home/localUser/apache-maven.-2.2.1/conf/settings.xml While in settings.xml I have server idrepo-id/id usernameremoteUser/username passwordmyPwd/password /server But whenever I execute it, it always prompts for the password with the local username instead of the username defined in the settings.xml file. such as, localu...@remotemachine.de but I was expecting remoteu...@remotemachine.de Thanks for any help in advance. Shiraz -- View this message in context: http://www.nabble.com/Maven-deploy-ignores-settings.xml-tp26091684p26091684.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Re: Use a mojo within a mojo
Hi Wayne Thanks for the answer, obviously my question wasn't clear enough: I read that mojos are components, how do I get such a component injected within another mojo? A Mojo is much more than just a goal in Maven, it is a component managed by Plexus that can include references to other Plexus components. From maven definitive guide, chapter 17.2.4. What is a Plugin? Extract the method to a utility class/jar/artifact which you can depend on independently of your mojos, and then call it from each mojo. And then, yes, you'll need to declare each plugin in your pom. Tsuy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Activating a profile based on the deactivation of other profiles
Hi, Before my involvement in this project, we would make a branded version of our software by going into the pom and changing artifactIddevelopment-brand/artifactId to artifactIdad-brand/artifactId in a dependency declaration, for a number of brands, then running mvn assembly:assembly again. This worked, but was so awkward that branded versions just didn't get built until somebody basically begged for them. I've moved the dependency stating development-brand to a profile named development-brand, and created a number of other profiles for each brand. If I use mvn assembly:assembly -Pad-brand,-development-brand I get an AD-branded version, which is nice, but now just mvn assembly:assembly does not work at all; the build completes but the application won't start because of a missing dependency. mvn help:active-profiles confirms that development-brand is not included by default. An activation of activeByDefaulttrue/activeByDefault for development-brand won't help, as we always have another, pre-existing profile, activated, windows, linux or osx. Naming the profile 'default' won't help either for the same reason. I tried, in the ad-brand profile, setting propertiesbrandad-brand/brand/properties and having development-brand activationproperty!brand/property/activation, but then found that development-brand was activated all the time, unless explicitly deactivated on the command-line, which at least makes the default case of no -P parameter work. It seems like the activations are all decided before the first activated profile's elements are used. So my question is; how can I make it so that development-brand is activated only if none of the other brands are? -- Ricky Clarkson Java and Scala Programmer, AD Holdings +44 1565 770804 Skype: ricky_clarkson Google Talk: ricky.clark...@gmail.com Google Wave: ricky.clark...@googlewave.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Re: Use a mojo within a mojo
Tsuyoshi Ito wrote: Hi Wayne Thanks for the answer, obviously my question wasn't clear enough: I read that mojos are components, how do I get such a component injected within another mojo? You do not. As Wayne pointed out, you can reuse code that is shared in a common library, but not the Mojo itself. While it is *technically* possible, you will screw up the Maven build in a very subtile way: Every plugin is loaded once and only once (even in a multi-project build) - may it be declared by the user (with a special version) or by your plugin as dependency (with probably a different version). Depending on the build order (especially in a multi-project) the plugin is loaded in one of the versions above - however, you can never guarantee that those two plugin versions are compatible (especially regarding the plugin configuration). A Mojo is much more than just a goal in Maven, it is a component managed by Plexus that can include references to other Plexus components. From maven definitive guide, chapter 17.2.4. What is a Plugin? Extract the method to a utility class/jar/artifact which you can depend on independently of your mojos, and then call it from each mojo. And then, yes, you'll need to declare each plugin in your pom. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Use a mojo within a mojo
from my experience plugin is an independent unit of execution meant to perform a discrete unit of work as such each maven-plugin execution lifecycle is independent of any other plugin the container (in this case Plexus) has knowledge of all configured plugins by their definition within pom.xml each plugin can inject known features which would include features such as logging or security because a plugins execution is a independent unit of work the plugin executes independently of other plugins a maven plugin can have dependencies allowing it to 'inject' the requested features of the dependent entity this is called Injection of Control and is discussed in great detail at http://www.ibm.com/developerworks/web/library/wa-spring1/ i hope this has answered your question Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: Re: Re: Use a mojo within a mojo From: tsuy@trialox.org Date: Wed, 28 Oct 2009 12:14:23 +0100 To: users@maven.apache.org Hi Wayne Thanks for the answer, obviously my question wasn't clear enough: I read that mojos are components, how do I get such a component injected within another mojo? A Mojo is much more than just a goal in Maven, it is a component managed by Plexus that can include references to other Plexus components. From maven definitive guide, chapter 17.2.4. What is a Plugin? Extract the method to a utility class/jar/artifact which you can depend on independently of your mojos, and then call it from each mojo. And then, yes, you'll need to declare each plugin in your pom. Tsuy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org _ Windows 7: It helps you do more. Explore Windows 7. http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen3:102009
[Fwd: Threads in a plug-in]
Hello all, Could someone please answer my question? I don't believe it's that complicated... Thanks, Csaba ---BeginMessage--- Hello, I've developed a plug-in which executes some shell commands. I would like to run these commands in parallel with the rest of the build process, because they don't affect the other files. So I was thinking of creating a thread in the execute() method, starting it, and let it do its job. The problem is this works for some time, and Maven keeps on doing its job, but if Maven's lifecycle ends before the thread has finished its job, then the thread will be terminated as well. Is there a way to instruct Maven to not terminate until the thread has finished, or at least to not terminate the thread itself? Thanks, Csaba - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org ---End Message--- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [Fwd: Threads in a plug-in]
add a second goal the first goal will store some thread completion object in MavenSession or in a Class level static field When all threads are finished the completion object will be updated by the last thread The second goal blocks until the completion object is completed. Then add the second goal execution to your project at the appropriate phase where you need the execution to have completed... for example if you start the threads in the process-sources phase, you might be happy to let them run in the background until the test phase has completed, but they must be finished by the time the package phase runs, so I would bind your execution of the second goal to the test phase -Stephen 2009/10/28 Gajo Csaba csaba.g...@cosylab.com Hello all, Could someone please answer my question? I don't believe it's that complicated... Thanks, Csaba Hello, I've developed a plug-in which executes some shell commands. I would like to run these commands in parallel with the rest of the build process, because they don't affect the other files. So I was thinking of creating a thread in the execute() method, starting it, and let it do its job. The problem is this works for some time, and Maven keeps on doing its job, but if Maven's lifecycle ends before the thread has finished its job, then the thread will be terminated as well. Is there a way to instruct Maven to not terminate until the thread has finished, or at least to not terminate the thread itself? Thanks, Csaba - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [Fwd: Threads in a plug-in]
Good idea! I was actually hoping there was some switch I can set in Maven to tell it not to terminate my thread, but I guess your idea would work fine as well. Thanks! Csaba Stephen Connolly wrote: add a second goal the first goal will store some thread completion object in MavenSession or in a Class level static field When all threads are finished the completion object will be updated by the last thread The second goal blocks until the completion object is completed. Then add the second goal execution to your project at the appropriate phase where you need the execution to have completed... for example if you start the threads in the process-sources phase, you might be happy to let them run in the background until the test phase has completed, but they must be finished by the time the package phase runs, so I would bind your execution of the second goal to the test phase -Stephen 2009/10/28 Gajo Csaba csaba.g...@cosylab.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Activating a profile based on the deactivation of other profiles
On Wed, Oct 28, 2009 at 5:11 AM, Ricky Clarkson ricky.clark...@gmail.com wrote: So my question is; how can I make it so that development-brand is activated only if none of the other brands are? You're on the right track by activating the default profile on the *absence* of a property with the !. Now, stop using -P to activate the other profiles, and switch to using -D=[value]. You'll need to add similar activation sections to the other branded ones. Then you can activate exactly one profile with -Dbrand=... (or nothing, for the default). -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
resouce files not in the built jar
Hi all, I use maven 2.0.9 and Eclipse to build my program. But I met a strange thing: I put some resource files such as context.xml in the same package as my java files. But after I built the project/program with mvn clean package, I can't find the context.xml inside the jar. That's the reason why I got FileNotFoundException as I run the program. Someone knows why? -- View this message in context: http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: resouce files not in the built jar
Hi , Put this on your Pom : build ... resources resource directorysrc/main/java/directory excludes exclude**/*.java/exclude /excludes /resource /resources /build On 10/28/09, thomas2004 thomas200...@yahoo.de wrote: Hi all, I use maven 2.0.9 and Eclipse to build my program. But I met a strange thing: I put some resource files such as context.xml in the same package as my java files. But after I built the project/program with mvn clean package, I can't find the context.xml inside the jar. That's the reason why I got FileNotFoundException as I run the program. Someone knows why? -- View this message in context: http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: resouce files not in the built jar
because resources should be in src/main/resources/___ and not src/main/java/___ eclipse is a fool... maven is a know-all -Stephen 2009/10/28 thomas2004 thomas200...@yahoo.de Hi all, I use maven 2.0.9 and Eclipse to build my program. But I met a strange thing: I put some resource files such as context.xml in the same package as my java files. But after I built the project/program with mvn clean package, I can't find the context.xml inside the jar. That's the reason why I got FileNotFoundException as I run the program. Someone knows why? -- View this message in context: http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: NAR plugin
Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: NAR plugin Date: Tue, 27 Oct 2009 19:31:16 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org I am building the newly absorbed NAR project from source and using it. I cannot seem to get it to use the borland compiler correctly. The cpptasks project seems to have support for bcc. I have even updated the aol.properties file to reflect the necessary setting to no avail. Has anyone attempting getting the borland c compiler to run correctly? I have gotten to where the compiler runs, but it returns messages about declaration syntax errors. I do not get these errors with a standard compile however. Damon Jacobsen __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _ _ Windows 7: I wanted more reliable, now it's more reliable. Wow! http://microsoft.com/windows/windows-7/default-ga.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: NAR plugin
Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: NAR plugin Date: Tue, 27 Oct 2009 19:31:16 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org I am building the newly absorbed NAR project from source and using it. I cannot seem to get it to use the borland compiler correctly. The cpptasks project seems to have support for bcc. I have even updated the aol.properties file to reflect the necessary setting to no avail. Has anyone attempting getting the borland c compiler to run correctly? I have gotten to where the compiler runs, but it returns messages about declaration syntax errors. I do not get these errors with a standard compile however. Damon Jacobsen __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _ _ Windows 7: I wanted more reliable, now it's more reliable. Wow! http://microsoft.com/windows/windows-7/default-ga.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009 __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: resouce files not in the built jar
Also, if you're not yet using it, get m2eclipse and import your Maven project. src/main/resources will be treated as source folder automatically. Best regards, Eric -Ursprüngliche Nachricht- Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Gesendet: Mittwoch, 28. Oktober 2009 15:27 An: Maven Users List Betreff: Re: resouce files not in the built jar because resources should be in src/main/resources/___ and not src/main/java/___ eclipse is a fool... maven is a know-all -Stephen 2009/10/28 thomas2004 thomas200...@yahoo.de Hi all, I use maven 2.0.9 and Eclipse to build my program. But I met a strange thing: I put some resource files such as context.xml in the same package as my java files. But after I built the project/program with mvn clean package, I can't find the context.xml inside the jar. That's the reason why I got FileNotFoundException as I run the program. Someone knows why? -- View this message in context: http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: NAR plugin
Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' -IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++\com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++\com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java\jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java\jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: NAR plugin Date: Tue, 27 Oct 2009 19:31:16 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org I am building the newly absorbed NAR project from source and using it. I cannot seem to get it to use the borland compiler correctly. The cpptasks project seems to have support for bcc. I have even updated the aol.properties file to reflect the necessary setting to no avail. Has anyone attempting getting the borland c compiler to run correctly? I have gotten to where the compiler runs, but it returns messages about declaration syntax errors. I do not get these errors with a standard compile however. Damon Jacobsen __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email
Re: NAR plugin
Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: NAR plugin Date: Tue, 27 Oct 2009 19:31:16 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org I am building the newly absorbed NAR project from source and using it. I cannot seem to get it to use the borland compiler correctly. The cpptasks project seems to have support for bcc. I have even updated the aol.properties file to reflect the necessary setting to no avail. Has anyone attempting getting the borland c compiler to run correctly? I have gotten to where the compiler runs, but it returns messages about declaration syntax errors. I do not get these errors with a standard compile however. Damon Jacobsen __ This email has been scanned by the MessageLabs Email Security System. For more
Auto Generate Text File at Build Time
How do I go about auto generating a text file during my build? (ignored by CVS) Is there a plugin for this? Thanks, DP -- View this message in context: http://www.nabble.com/Auto-Generate-Text-File-at-Build-Time-tp26097319p26097319.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: NAR plugin
Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar-plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: NAR plugin Date: Tue, 27 Oct 2009 19:31:16 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org I am building the newly absorbed NAR project from source and
RE: Auto Generate Text File at Build Time
Generated files should go in a subdirectory of the target directory, which should be in .cvsignore (and is automatically ignored goals which use Maven SCM, IIRC). There are a variety of code generation plugins around. Most of these are built around specific types of generation (e.g. javacc, hibernate), but there are generic ones like the xslt plugin at mojo.codehaus.org. You can also use the Groovy or JRuby plugins to accomplish this. Justin -Original Message- From: dpark [mailto:dp...@exchangesolutions.com] Sent: Wednesday, October 28, 2009 12:02 PM To: users@maven.apache.org Subject: Auto Generate Text File at Build Time How do I go about auto generating a text file during my build? (ignored by CVS) Is there a plugin for this? Thanks, DP -- View this message in context: http://www.nabble.com/Auto-Generate-Text-File-at-Build-Time-tp26097319p2 6097319.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: NAR plugin
the main aspect is to make sure you can build for all your environments my personal pref of cygwin in that whatever i do in doze works in standard Unix and vice-versa otherwise you're re-configuring the build for every platform/OS combo i am interested to know how that works for you Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Subject: RE: NAR plugin Date: Wed, 28 Oct 2009 11:16:31 -0500 From: dajacob...@lifetouch.com To: users@maven.apache.org Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar-plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To:
AW: NAR plugin
fetching alone is not enough. You have to do a git pull instead. This is a combined git fetch + git merge. LieGrue, strub - Ursprüngliche Mail Von: Damon Jacobsen dajacob...@lifetouch.com An: Maven Users List users@maven.apache.org Gesendet: Mittwoch, den 28. Oktober 2009, 17:16:31 Uhr Betreff: RE: NAR plugin Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar-plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
RE: NAR plugin
Mark, I finished doing a merge and somehow got a merge conflict in the pom.xml. I failed miserable to merge it and could not figure out how to do a replace from head. I fixed it by deleting my local repository, recloning, and remodifying my aol.properties file. I then reinstalled the plugin. I am getting the same results. Damon -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Wednesday, October 28, 2009 10:07 AM To: Maven Users List Subject: AW: NAR plugin fetching alone is not enough. You have to do a git pull instead. This is a combined git fetch + git merge. LieGrue, strub - Ursprüngliche Mail Von: Damon Jacobsen dajacob...@lifetouch.com An: Maven Users List users@maven.apache.org Gesendet: Mittwoch, den 28. Oktober 2009, 17:16:31 Uhr Betreff: RE: NAR plugin Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar-plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what happened afterwards i had the same problem with Borland Compiler and punted to cygwin...download the full devel package.. gcc is the compiler..ld is the linker..ar is the library manager http://www.cygwin.com Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Re: Auto Generate Text File at Build Time
I think one thing you'll need to do is add a .cvsignore file in the directory which the file gets generated and add the name of the file to .cvsignore. That way synchronizing with CVS won't bother with the file. From: dpark dp...@exchangesolutions.com To: users@maven.apache.org Sent: Wed, October 28, 2009 11:01:44 AM Subject: Auto Generate Text File at Build Time How do I go about auto generating a text file during my build? (ignored by CVS) Is there a plugin for this? Thanks, DP -- View this message in context: http://www.nabble.com/Auto-Generate-Text-File-at-Build-Time-tp26097319p26097319.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: NAR plugin
Hi Damon, I am not an expert (yet) on git either. Merging can be strange sometimes. If you just want the latest of one file, you can just delete it and pull again. It will replace that one. I am still wondering why you use such an old compiler, but I guess ou may have some code that only compiles with that one... I am sure the quote problem was fixed for running javah but I am almost sure it was not fixed for running cl or bcc32. I am not sure I have that compiler. If you have it for me to try it out that would be useful. I have put it on my list to look at. https://issues.sonatype.org/browse/NAR-94 hope to look at it soon. Regards Mark On Oct 28, 2009, at 6:45 PM, Damon Jacobsen wrote: Mark, I finished doing a merge and somehow got a merge conflict in the pom.xml. I failed miserable to merge it and could not figure out how to do a replace from head. I fixed it by deleting my local repository, recloning, and remodifying my aol.properties file. I then reinstalled the plugin. I am getting the same results. Damon -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Wednesday, October 28, 2009 10:07 AM To: Maven Users List Subject: AW: NAR plugin fetching alone is not enough. You have to do a git pull instead. This is a combined git fetch + git merge. LieGrue, strub - Ursprüngliche Mail Von: Damon Jacobsen dajacob...@lifetouch.com An: Maven Users List users@maven.apache.org Gesendet: Mittwoch, den 28. Oktober 2009, 17:16:31 Uhr Betreff: RE: NAR plugin Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar- plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may just want to use the free Visual Studio Express (version 2008) to compile and link with. Regards Mark Donszelmann On Oct 28, 2009, at 3:59 PM, Damon Jacobsen wrote: Martin, I considered using cygwin, but I read that code compiled with it needs cygwin installed on the target machine to run. I was hoping just to just use the free borland compiler for a quick solution. I am thinking if there was a way to see the command given to compile, I could fix it. Is there any way to have that information logged or pumped to stdout? Damon -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, October 27, 2009 5:48 PM To: users@maven.apache.org Subject: RE: NAR plugin Damon- some company in texas purchased the borland compiler and i dont know what
dependencies ant task using localRepository type with refid causes ClassCastException
Hi, Doing the following in an ant project causes a java.lang.ClassCastException: org.apache.maven.artifact.ant.LocalRepository-- taskdef classpathref=ant.classpath classname=org.apache.maven.artifact.ant.DependenciesTask name=dependencies / typedef classpathref=ant.classpath classname=org.apache.maven.artifact.ant.LocalRepository name=localRepository / localRepository id=local.lib.repository layout=default path=${local-repository.path} / dependencies pathId=compile.classpath verbose=true !-- dependencies listed here -- localRepository refid=local.lib.repository / /dependencies However, the following works fine-- taskdef classpathref=ant.classpath classname=org.apache.maven.artifact.ant.DependenciesTask name=dependencies / typedef classpathref=ant.classpath classname=org.apache.maven.artifact.ant.LocalRepository name=localRepository / dependencies pathId=compile.classpath verbose=true !-- dependencies listed here -- localRepository layout=default path=${local-repository.path} / /dependencies Same thing happens for the RemoteRepository type. Any ideas why this might be happening? Thanks, David
generating javadoc:jar fails
I have problems with following pom (see end of message), attach-javadocs execution: [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:jar' -- [DEBUG] (f) aggregate = false [DEBUG] (f) attach = true [DEBUG] (f) author = true [DEBUG] (f) bootclasspathArtifacts = [] [DEBUG] (f) bottom = Copyright #169; {inceptionYear}-{currentYear} {organizationName}. All Rights Reserved. [DEBUG] (f) breakiterator = false [DEBUG] (f) debug = false [DEBUG] (f) defaultManifestFile = /home/hsn/sf/javalib/bin/META-INF/MANIFEST.MF [DEBUG] (f) destDir = / [DEBUG] (f) detectJavaApiLink = true [DEBUG] (f) detectLinks = false [DEBUG] (f) detectOfflineLinks = true [DEBUG] (f) docfilessubdirs = false [DEBUG] (f) docletArtifact = groupId = 'null' artifactId = 'null' version = 'null' [DEBUG] (f) docletArtifacts = [] [DEBUG] (f) doctitle = FSP Java Library 1.0rc8 API [DEBUG] (f) failOnError = true [DEBUG] (f) finalName = jfsplib-1.0rc8 [DEBUG] (f) groups = [] [DEBUG] (f) isOffline = false [DEBUG] (f) jarOutputDirectory = /home/hsn/sf/javalib/target [DEBUG] (f) javaApiLinks = {} [DEBUG] (f) javadocDirectory = /home/hsn/sf/javalib/src/main/javadoc [DEBUG] (f) keywords = false [DEBUG] (f) links = [] [DEBUG] (f) linksource = false [DEBUG] (f) localRepository = Repository[local|file:///home/hsn/.m2/repository] [DEBUG] (f) nocomment = false [DEBUG] (f) nodeprecated = false [DEBUG] (f) nodeprecatedlist = false [DEBUG] (f) nohelp = false [DEBUG] (f) noindex = false [DEBUG] (f) nonavbar = false [DEBUG] (f) nooverview = false [DEBUG] (f) nosince = false [DEBUG] (f) notimestamp = false [DEBUG] (f) notree = false [DEBUG] (f) offlineLinks = [] [DEBUG] (f) old = false [DEBUG] (f) outputDirectory = /home/hsn/sf/javalib/target/apidocs [DEBUG] (f) overview = /home/hsn/sf/javalib/src/main/javadoc/overview.html [DEBUG] (f) project = MavenProject: net.fsp:jfsplib:1.0rc8 @ /home/hsn/sf/javalib/pom.xml [DEBUG] (f) quiet = false [DEBUG] (f) reactorProjects = [MavenProject: net.fsp:jfsplib:1.0rc8 @ /home/hsn/sf/javalib/pom.xml] [DEBUG] (f) remoteRepositories = [Repository[central|http://repo1.maven.org/maven2]] [DEBUG] (f) resourcesArtifacts = [] [DEBUG] (f) serialwarn = false [DEBUG] (f) session = org.apache.maven.execution.mavensess...@1732ed2 [DEBUG] (f) settings = org.apache.maven.settings.setti...@c87621 [DEBUG] (f) show = protected [DEBUG] (f) skip = false [DEBUG] (f) splitindex = false [DEBUG] (f) stylesheet = java [DEBUG] (f) tagletArtifact = groupId = 'null' artifactId = 'null' version = 'null' [DEBUG] (f) tagletArtifacts = [] [DEBUG] (f) taglets = [] [DEBUG] (f) tags = [] [DEBUG] (f) use = true [DEBUG] (f) useDefaultManifestFile = false [DEBUG] (f) useStandardDocletOptions = true [DEBUG] (f) verbose = false [DEBUG] (f) version = true [DEBUG] (f) windowtitle = FSP Java Library 1.0rc8 API [DEBUG] -- end configuration -- [INFO] [javadoc:jar {execution: attach-javadocs}] [WARNING] Source files encoding has not been set, using platform encoding ISO8859-1, i.e. build is platform dependent! [DEBUG] No Java API link found. [DEBUG] Try to add links for modules... [DEBUG] /usr/local/diablo-jdk1.5.0/jre/../bin/javadoc @options @packages [INFO] Loading source files for package net.fsp... Constructing Javadoc information... Standard Doclet version 1.5.0 Building tree for all the packages and classes... Generating /home/hsn/sf/javalib/target/apidocs/net/fsp//FSPInputStream.html... Generating /home/hsn/sf/javalib/target/apidocs/net/fsp//FSPOutputStream.html... Generating /home/hsn/sf/javalib/target/apidocs/net/fsp//FSPpacket.html... [] Generating /home/hsn/sf/javalib/target/apidocs/stylesheet.css... Javadoc seems to be generated fine. at this time maven2 starts calling STAT on every file in filesystem (as shown by ktrace) 24847 java CALL stat(0x8298a00,0xbfbfcaf8) 24847 java NAMI /usr/src/crypto/openssl/crypto/engine/hw_sureware_err.h 24847 java RET stat 0 24847 java CALL stat(0x8298a00,0xbfbfcaf8) 24847 java NAMI /usr/src/crypto/openssl/crypto/engine/hw_sureware_err.h 24847 java RET stat 0 24847 java CALL stat(0x8298a00,0xbfbfcaf8) 24847 java NAMI /usr/src/crypto/openssl/crypto/engine/hw_ubsec.c 24847 java RET stat 0 24847 java CALL stat(0x8298a00,0xbfbfcaf8) 24847 java NAMI /usr/src/crypto/openssl/crypto/engine/hw_ubsec.c 24847 java RET stat 0 which takes quite a lot time and finally fails with: [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Java heap space [INFO] [INFO] Trace java.lang.OutOfMemoryError: Java heap space [INFO] [INFO] Total time: 25
Compile Error
Attempting to compile on a new FreeBSD installation and running into the following problem: src gmake Making all in test_tools gmake[1]: Entering directory `/usr/home/stsmitz/projects/my_trunk/src/test_tools' maven: Building java sources MAKE=gmake JAVA_HOME=/usr/local/jdk1.6.0 /usr/local/share/java/maven2/bin/mvn -X -Dmaven.repo.local=file://`pwd`/../../maven_repo -e -Dmaven.test.skip=true package + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_03-p4 Java home: /usr/local/jdk1.6.0/jre Default locale: en, platform encoding: ISO8859-1 OS name: freebsd version: 8.0-rc1-p1 arch: amd64 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/home/stsmitz/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/share/java/maven2/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] dvsl executor [INFO] proc_xml_report [INFO] test_tools [DEBUG] Wagons could not be registered as the extension container was never created [INFO] [INFO] Building dvsl executor [INFO]task-segment: [package] [INFO] [DEBUG] Trying repository central [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: ' http://repo1.maven.org/maven2'. Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [DEBUG] Error transferring file: Invalid argument org.apache.maven.wagon.TransferFailedException: Error transferring file: Invalid argument at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251) at org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:277) at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:205) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184) at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
RE: Compile Error
apparently the requested plugin maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom is not available from any of the online repositories can you install maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom to your localRepository !-- settings.xml -- !-- localRepository | The path to the local repository maven will use to store artifacts. | Default: ~/.m2/repository-- localRepository/fubar/.m2/repository/localRepository repositories repository idlocalRepository/id namelocalRepository/name releases enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots urlfile://fubar/.m2/repository/url layoutdefault/layout /repository and call it from there? BTW what does gmake do? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 28 Oct 2009 15:56:37 -0400 Subject: Compile Error From: sean.sm...@gmail.com To: users@maven.apache.org Attempting to compile on a new FreeBSD installation and running into the following problem: src gmake Making all in test_tools gmake[1]: Entering directory `/usr/home/stsmitz/projects/my_trunk/src/test_tools' maven: Building java sources MAKE=gmake JAVA_HOME=/usr/local/jdk1.6.0 /usr/local/share/java/maven2/bin/mvn -X -Dmaven.repo.local=file://`pwd`/../../maven_repo -e -Dmaven.test.skip=true package + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_03-p4 Java home: /usr/local/jdk1.6.0/jre Default locale: en, platform encoding: ISO8859-1 OS name: freebsd version: 8.0-rc1-p1 arch: amd64 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/home/stsmitz/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/share/java/maven2/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] dvsl executor [INFO] proc_xml_report [INFO] test_tools [DEBUG] Wagons could not be registered as the extension container was never created [INFO] [INFO] Building dvsl executor [INFO]task-segment: [package] [INFO] [DEBUG] Trying repository central [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: ' http://repo1.maven.org/maven2'. Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [DEBUG] Error transferring file: Invalid argument org.apache.maven.wagon.TransferFailedException: Error transferring file: Invalid argument at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427) at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382) at
RE: NAR plugin
Mark, The Borland compiler can be downloaded @ http://www.codegear.com/downloads/free/cppbuilder. I use the borland compiler because I have used it for years and know it well. I am also attaching my aol.properties file that accomodates the Borland compiler. I am sure there is some sort of patch functionality in git, but this is easier for me for now. I had to add Fortran instructions to the file along with the c an cpp instructions. I don't see any way to say that bcc can't compile fortran in the file. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 11:20 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, I am not an expert (yet) on git either. Merging can be strange sometimes. If you just want the latest of one file, you can just delete it and pull again. It will replace that one. I am still wondering why you use such an old compiler, but I guess ou may have some code that only compiles with that one... I am sure the quote problem was fixed for running javah but I am almost sure it was not fixed for running cl or bcc32. I am not sure I have that compiler. If you have it for me to try it out that would be useful. I have put it on my list to look at. https://issues.sonatype.org/browse/NAR-94 hope to look at it soon. Regards Mark On Oct 28, 2009, at 6:45 PM, Damon Jacobsen wrote: Mark, I finished doing a merge and somehow got a merge conflict in the pom.xml. I failed miserable to merge it and could not figure out how to do a replace from head. I fixed it by deleting my local repository, recloning, and remodifying my aol.properties file. I then reinstalled the plugin. I am getting the same results. Damon -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Wednesday, October 28, 2009 10:07 AM To: Maven Users List Subject: AW: NAR plugin fetching alone is not enough. You have to do a git pull instead. This is a combined git fetch + git merge. LieGrue, strub - Ursprüngliche Mail Von: Damon Jacobsen dajacob...@lifetouch.com An: Maven Users List users@maven.apache.org Gesendet: Mittwoch, den 28. Oktober 2009, 17:16:31 Uhr Betreff: RE: NAR plugin Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar- plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To: Maven Users List Subject: Re: NAR plugin Hi if you run the NAR plugin with -X it will show that, and a lot of other info, so be prepared. You may
Re: Compile Error
Ahhh... You would think that, but I can plug the URL it is using into my browser and it returns a file. gmake is GNU make. On Wed, Oct 28, 2009 at 4:09 PM, Martin Gainty mgai...@hotmail.com wrote: apparently the requested plugin maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom is not available from any of the online repositories can you install maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom to your localRepository !-- settings.xml -- !-- localRepository | The path to the local repository maven will use to store artifacts. | Default: ~/.m2/repository-- localRepository/fubar/.m2/repository/localRepository repositories repository idlocalRepository/id namelocalRepository/name releases enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots urlfile://fubar/.m2/repository/url layoutdefault/layout /repository and call it from there? BTW what does gmake do? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 28 Oct 2009 15:56:37 -0400 Subject: Compile Error From: sean.sm...@gmail.com To: users@maven.apache.org Attempting to compile on a new FreeBSD installation and running into the following problem: src gmake Making all in test_tools gmake[1]: Entering directory `/usr/home/stsmitz/projects/my_trunk/src/test_tools' maven: Building java sources MAKE=gmake JAVA_HOME=/usr/local/jdk1.6.0 /usr/local/share/java/maven2/bin/mvn -X -Dmaven.repo.local=file://`pwd`/../../maven_repo -e -Dmaven.test.skip=true package + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_03-p4 Java home: /usr/local/jdk1.6.0/jre Default locale: en, platform encoding: ISO8859-1 OS name: freebsd version: 8.0-rc1-p1 arch: amd64 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/home/stsmitz/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/share/java/maven2/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] dvsl executor [INFO] proc_xml_report [INFO] test_tools [DEBUG] Wagons could not be registered as the extension container was never created [INFO] [INFO] Building dvsl executor [INFO]task-segment: [package] [INFO] [DEBUG] Trying repository central [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: ' http://repo1.maven.org/maven2'. Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [DEBUG] Error transferring file: Invalid argument org.apache.maven.wagon.TransferFailedException: Error transferring file: Invalid argument at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546) at
Re: NAR plugin
Hi Damon, On Oct 28, 2009, at 9:23 PM, Damon Jacobsen wrote: Mark, The Borland compiler can be downloaded @ http://www.codegear.com/downloads/free/cppbuilder . I use the borland compiler because I have used it for years and know it well. Great, no problem. I am downloading it now. I am also attaching my aol.properties file that accomodates the Borland compiler. I am sure there is some sort of patch functionality in git, but this is easier for me for now. I did not find the attachment. I will update the file if you provide me with the attachment. I had to add Fortran instructions to the file along with the c an cpp instructions. I don't see any way to say that bcc can't compile fortran in the file. yes, this has been filed as a bug. Regards Mark Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 11:20 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, I am not an expert (yet) on git either. Merging can be strange sometimes. If you just want the latest of one file, you can just delete it and pull again. It will replace that one. I am still wondering why you use such an old compiler, but I guess ou may have some code that only compiles with that one... I am sure the quote problem was fixed for running javah but I am almost sure it was not fixed for running cl or bcc32. I am not sure I have that compiler. If you have it for me to try it out that would be useful. I have put it on my list to look at. https://issues.sonatype.org/browse/NAR-94 hope to look at it soon. Regards Mark On Oct 28, 2009, at 6:45 PM, Damon Jacobsen wrote: Mark, I finished doing a merge and somehow got a merge conflict in the pom.xml. I failed miserable to merge it and could not figure out how to do a replace from head. I fixed it by deleting my local repository, recloning, and remodifying my aol.properties file. I then reinstalled the plugin. I am getting the same results. Damon -Original Message- From: Mark Struberg [mailto:strub...@yahoo.de] Sent: Wednesday, October 28, 2009 10:07 AM To: Maven Users List Subject: AW: NAR plugin fetching alone is not enough. You have to do a git pull instead. This is a combined git fetch + git merge. LieGrue, strub - Ursprüngliche Mail Von: Damon Jacobsen dajacob...@lifetouch.com An: Maven Users List users@maven.apache.org Gesendet: Mittwoch, den 28. Oktober 2009, 17:16:31 Uhr Betreff: RE: NAR plugin Mark, I am by no means proficient with git yet, but here is what I did. Yesterday, using msysgit, I 'cloned' http://github.com/duns/maven-nar- plugin.git and http://github.com/duns/cpptasks-parallel.git. Today I 'fetched' from origin. I think this syncs me with any changes made on the head. I have 'mvn install'ed both of them this morning. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:49 AM To: Maven Users List Subject: Re: NAR plugin Hi Damon, are you sure you are running the latest NAR from github ? Regards Mark On Oct 28, 2009, at 4:23 PM, Damon Jacobsen wrote: Mark, Thanks for the info. The results confirm that the include files are not being added. I think it is due to some odd behavior with spaces in files path. Boy I wish windows could get that correct. Here is my output. [DEBUG] bcc32 -c -X -x -tWM -Od -DWindows -DWIN32 '-IH:\workspace \ImagenomicPortraturePluginDLL\target\nar\javah-include' '-IC: \Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java \jdk1.6.0_16\include\win32' -IH:\workspace \ImagenomicPortraturePluginDLL\src\main\include -IH:\workspace \ImagenomicPortraturePluginDLL\target\swig\include -w H:\workspace \ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_ImagenomicPortraitureBufferedImageOp.cpp [DEBUG] Execute:Java13CommandLauncher: Executing 'bcc32' with arguments: '' '-c' '-X' '-x' '-tWM' '-Od' '-DWindows' '-DWIN32' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\nar\javah- include' '-IC:\Program Files\Java\jdk1.6.0_16\include' '-IC:\Program Files\Java\jdk1.6.0_16\include\win32' '-IH:\workspace\ImagenomicPortraturePluginDLL\src\main\include' '-IH:\workspace\ImagenomicPortraturePluginDLL\target\swig\include' '-w' 'H:\workspace\ImagenomicPortraturePluginDLL\src\main\c++ \com_lifetouch_Imagenomi cPortraitureBufferedImageOp.cpp' The ' characters around the executable and arguments are not part of the command. [DEBUG] Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include.cpp' [DEBUG] Error E2194: Could not find file 'Files\Java \jdk1.6.0_16\include\win32.c pp' Cleaning up the command line to remove the ' character and issuing it at the command line does not have this problem. Damon -Original Message- From: Donszelmann Mark [mailto:mark.donszelm...@gmail.com] Sent: Wednesday, October 28, 2009 8:03 AM To:
Re: Compile Error
Ok, so come to find out that this was a FreeBSD IPv6 issue. I needed to disable IPv6 so it would connect. On Wed, Oct 28, 2009 at 4:25 PM, Sean Smitz sean.sm...@gmail.com wrote: Ahhh... You would think that, but I can plug the URL it is using into my browser and it returns a file. gmake is GNU make. On Wed, Oct 28, 2009 at 4:09 PM, Martin Gainty mgai...@hotmail.comwrote: apparently the requested plugin maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom is not available from any of the online repositories can you install maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom to your localRepository !-- settings.xml -- !-- localRepository | The path to the local repository maven will use to store artifacts. | Default: ~/.m2/repository-- localRepository/fubar/.m2/repository/localRepository repositories repository idlocalRepository/id namelocalRepository/name releases enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots urlfile://fubar/.m2/repository/url layoutdefault/layout /repository and call it from there? BTW what does gmake do? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Wed, 28 Oct 2009 15:56:37 -0400 Subject: Compile Error From: sean.sm...@gmail.com To: users@maven.apache.org Attempting to compile on a new FreeBSD installation and running into the following problem: src gmake Making all in test_tools gmake[1]: Entering directory `/usr/home/stsmitz/projects/my_trunk/src/test_tools' maven: Building java sources MAKE=gmake JAVA_HOME=/usr/local/jdk1.6.0 /usr/local/share/java/maven2/bin/mvn -X -Dmaven.repo.local=file://`pwd`/../../maven_repo -e -Dmaven.test.skip=true package + Error stacktraces are turned on. Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.6.0_03-p4 Java home: /usr/local/jdk1.6.0/jre Default locale: en, platform encoding: ISO8859-1 OS name: freebsd version: 8.0-rc1-p1 arch: amd64 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/home/stsmitz/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/share/java/maven2/conf/plugin-registry.xml' [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] dvsl executor [INFO] proc_xml_report [INFO] test_tools [DEBUG] Wagons could not be registered as the extension container was never created [INFO] [INFO] Building dvsl executor [INFO]task-segment: [package] [INFO] [DEBUG] Trying repository central [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http [DEBUG] Checking for pre-existing User-Agent configuration. [DEBUG] Adding User-Agent configuration. [DEBUG] Connecting to repository: 'central' with url: ' http://repo1.maven.org/maven2'. Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom [DEBUG] Error transferring file: Invalid argument org.apache.maven.wagon.TransferFailedException: Error transferring file: Invalid argument at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:143) at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88) at
proper NAR locations
I have switched to trying to use the MinGW compiler instead of Borland. I have it working for the most part now. I am curious on proper locations of files. I am compiling a jni component that links to a third party library for a dll Should the lib and dll be in the jni maven project, or placed in another project? What is the proper directory structure for these artifacts? Will the dll be moved out with the jni dll when loadLibrary is called? Do I need to explicitly add the lib file in the linker configuration of the pom, or will the nar plugin find it once it is in the correct location? Damon Jacobsen __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _
maven doesn't filter dependencies defined in pom
Hello, This is the situation I'm in. I have this structure pom.xml (root) |_ pom.xml (module A) |_ pom.xml (module B) These are (excerpts) of the poms pom.xml (root) groupIdrootGroupId/groupId artifactIdrootArtifactId/artifactId packagingpom/packaging version${rootGroupId}/version modules modulemoduleA/module modulemoduleB/module /modules properties moduleAGroupId1.0-SNAPSHOT/moduleAGroupId moduleBGroupId1.0-SNAPSHOT/moduleBGroupId rootGroupIdrootVersion/rootGroupId /properties pom (module A) parent groupIdrootGroupId/groupId artifactIdrootArtifactId/artifactId version${rootGroupId}/version /parent groupIdmoduleAGroupId/groupId artifactIdmoduleAArtifactId/artifactId packagingpom/packaging version${moduleAGroupId}/version pom (module B) parent groupIdrootGroupId/groupId artifactIdrootArtifactId/artifactId version${rootGroupId}/version /parent groupIdmoduleBGroupId/groupId artifactIdmoduleBArtifactId/artifactId packagingpom/packaging version${moduleBGroupId}/version dependencies dependency groupIdmoduleAGroupId/groupId artifactIdmoduleAArtifactId/artifactId version${moduleAGroupId}/version dependency /dependency cd root mvn install [INFO] BUILD SUCCESSFUL [INFO] cd moduleB mvn install [WARNING] Unable to get resource 'moduleAGroupId:moduleAArtifactId:${moduleAGroupId}' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 500 for URL: http://pom_maven_repo_location [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: moduleB Reason: Cannot find parent: moduleA pom for project: moduleB This is happening because when building moduleA its pom file is installed in the maven repo without filtering, i.e, as it is with ${}. When the pom is retrieved to satisfy moduleB dependency on moduleA it's retrieved as groupIdmoduleAGroupId/groupId artifactIdmoduleAArtifactId/artifactId packagingpom/packaging version${moduleAGroupId}/version where ${moduleAGroupId} is not instanciated, hence the error. My question is: 1. Could I force maven to store the pom files **filtered** or 2. How can maven be forced to instantiate ${moduleAGroupId} upon retrieval from the maven repo so moduleB dependency can be satisfied 3. What other alternative do I have to solve this scenario without giving up using ${} in version - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
UNSUBSCRIBE ME.
On 28/10/09 11:42 PM, Michael Remijan mjremi...@yahoo.com wrote: users-unsubscr...@maven.apache.org DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
Selectively include and exclude class file while building the artifact
Requirement: In initial stage I will compile all the files coming under my project source directory. Finally at the time of making the jar I need to selectively include and exclude certain files. The files which are to be included and excluded comes under my project source directory. My Project source directory : F:/ARL/HIS/src/ I am able to successfully compile all the files coming under my source directory. It is being saved in the location : F:/ARL/HIS/src/classes/ Sample code to include and exclude class files to make the jar file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution phasepackage/phase goals goaljar/goal /goals configuration classifierclient/classifier excludes exclude F:\ARL\HIS\src\classes\*.class/exclude// added for testing purpose to check if exclude tags work or not /excludes /configuration /execution /executions /plugin While executing the goal mvn org.apache.maven.plugins:maven-jar-plugin:jar , for making the jar file it takes all the files coming under classes directory where as i have specifically mentioned it not to be included while making the jar file. Where am I going wrong ? -- View this message in context: http://www.nabble.com/Selectively-include-and-exclude-class-file-while-building-the-artifact-tp26107145p26107145.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: zipping the outputDirectory using Assembly plugin
One of the ideas that I've got is through book Maven definitive guide is to write a plugin ZipMojo for the task. Is there any other option that can be used? singh_rajeev wrote: Hi I've the following lines of code in my assembly.xml moduleSet sources includeModuleDirectoryfalse/includeModuleDirectory fileSet directorysql/directory outputDirectoryconfig/schemas/outputDirectory includes include*.sql/include /includes /fileSet /fileSets /sources /moduleSet This creates a folder schemas in config file when I package it using mvn assembly plugin. Instead of a folder I want to create a zip file containing the same folder structure as specified in outputDirectory. I know how to do it in Ant but don't know how to do it in Maven. Any help will be appriciated. Thanks, Rajeev. -- View this message in context: http://www.nabble.com/zipping-the-outputDirectory-using-Assembly-plugin-tp26057622p26107221.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org