Re: tests layout
Hello Harry, For another example, you can check the integration/web ui tests of archiva located at: http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-web/archiva-webapp-test/pom.xml Cheers! Nap On 5/27/07, Arnaud Bailly [EMAIL PROTECTED] wrote: Harry Larsen [EMAIL PROTECTED] writes: Hello, Thanks for this info. I now understand better, what should I need. I configured my pom.xml accordingly. BUT maven still doesn't see the directory systest. I made this structure: src/main/java src/test/java src/systest/java Hello, Surefire can handle only one source directory. You can set this to be different from src/test/java using the testSourceDirectory configuration. In the example provided in my previous post, the systest directory is *within* src/test/java, not outside it. If you want different root sourcse, you could try something like: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase goals goaltest/goal /goals configuration testSourceDirectorysrc/systest/java/testSourceDirectory /configuration /execution /executions /plugin /plugins /build HTH -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying with Maven (Engineering a design)
Hello Vince, Nice way of doing it! Though I think it would be better to do an installer-creator-mojo instead of a script for the next step. Cheers! Nap On 5/26/07, vcordaro [EMAIL PROTECTED] wrote: Hi, I have picked up an interesting project at work. My end goal is to deploy our latest code in SVN to our servers nightly. Now we have a custom installer built in izpack. So ideally I would like to build the pieces that the installer needs, then build the installer, then deploy the installer. Anyone ever done this? So as I see it the first step is to get the nightly builds in a consistent and usable location. We are using Continuum for our nightly builds, but it's output is to some randomly number directory in the working-directory. So my idea was to just use maven tags to scp the packaged to a http web server located on teh same machine. So I started by using the distributionManagement tag and this worked, however I need the output in a consistent format, including filename, so the installer can reference it. The output from the distributionManagement was from snapshots and the final file had the date and time appended onto it. So I abandonded this method and moved to using the assembly tag. This seems to be packaging and scp'ing to a location, along with consistently naming the output. I took this assembly tag, wrapped it in a profile, and moved it into a parent pom and the children, or pieces for the installer, reference it. So now continuum calls clean package deploy -P nightly. Is this a good way of doing this? Is there a better way? Anyone have any ideas? My next step will be a maven script that builds the installer referencing the assembled pieces from the http server. Then once I have the installer built, i will most likely use ruby on rails and capistrano to deploy the installer to a remote server through ssh. Any advice would be greatly appreciated... Thanks in advance, Vince - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Basic Questions
Comments inline. On 5/23/07, Ashwin E [EMAIL PROTECTED] wrote: So you're saying that my maven project should be in the source repository?A source repository here is CVS or SubVersion? Yes, Continuum will do the job of checking out all of the sources when you add the Maven project, provided that the Maven project has the scm section in it. The scm section defines the location on where to checkout the project. For example, the pom.xml snippet shows that the Maven project will be checked out by Continuum using svn from the url http://svn.apache.org/repos/asf/maven/continuum/trunk; project ... scm connectionscm:svn: http://svn.apache.org/repos/asf/maven/continuum/trunk/connection /scm ... /project And to the 3rd question what i mean is.In the application there are constant requests for changes and enhancements.so dev team submits changes in CVS with the required tags.which're then checked out with the tags and then deployed into the application.how do i do this sort of process using maven/continuum? If I understand correctly, your team is developing branches of the same project. If merging the code into a single location (trunk) isn't at all possible, I recommend you to treat the branches as separate projects--with separate Maven project descriptors (pom.xml) having different scm definitions. -- View this message in context: http://www.nabble.com/Basic-Questions-tf3803512s177.html#a10762844 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Massive delay at end of large maven build
It's probably java freeing up all the memory maven used in the heap. :) On 5/15/07, J. Matthew Pryor [EMAIL PROTECTED] wrote: At the very end of my build (maven 2.0.5 on Mac OSX) I get a several minute delay after the final banner but before the mvn command returns to the prompt. This delay is associated with an huge amount of disk activity, but I have no idea what is going on. [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 7 minutes 2 seconds [INFO] Finished at: Tue May 15 10:48:12 EST 2007 [INFO] Final Memory: 45M/63M [INFO] WAIT HERE FOR SEVERAL MINUTES WITH LOTS OF DISK ACTIVITY fatboy:~/proj/observant/modules jmp$ Does anyone have any clue at to why this is happening? Thanks, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 2 plugin calling executable
The executable is bundled within the plugin, that's why it cannot be accessed simply as any file in the file system. You'll have to extract it to a temporary location first, then execute it. On 5/11/07, maarten roosendaal [EMAIL PROTECTED] wrote: Hi, I've create a plugin which calls an executable and is packaged within the plugin. However the code does not seem to be able to find the .exe even when it is in the same package (error=2). When i place the exe in c: it does seem to be able to find it using cmd c/ start c:/test.exe but i want to be able to call an exe contained in the plugin so Maven can use the ouput. Any suggestions or examples? Thanks, Maarten - Original Message From: Mac Systems [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Friday, May 11, 2007 2:10:33 PM Subject: Re: Confusion: maven[2]-xdoclet[2]-plugin Hello, i have some similar problem. Actually XDoclet2 cannot be found: I always get the Error: Unable to download the artifact from any repository xdoclet:maven2-xdoclet2-plugin:pom20.0.5-SNAPSHOT Anyone can tell me what i am doing wrong ? Regards, Jens Graham Leggett wrote on Thursday, May 10, 2007 12:48 PM: Hi all, Up until now I have been using the xdoclet-maven-plugin from org.codehaus.mojo, and having upgraded to v2.0.6 of maven, this plugin no longer works. It works, you just have to add the dep to ant at the plugin's declaration: dependencies dependency groupIdant/groupId artifactIdant/artifactId version1.6.5/version /dependency /dependencies /dependencies Research shows that this particular plugin seems to have been abandoned. Further research finds a confusing array of plugins, named maven-xdoclet2-plugin, and maven2-xdoclet2-plugin. Which is the canonical plugin that should be used moving forward? - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet with maven 2
I don't see any reason why you wouldn't want the applet installed in the local repository. Anyway, I think you could still do `mvn package` on archiva parent directory as long as the archiva-applet is found on any other remote repository. On 5/10/07, Stephen More [EMAIL PROTECTED] wrote: I have tried this and see 1 downside, artifactId archiva-applet needs to live in the loacl repository. ( with mvn install ). If not it complains about a missing artifact. If archiva-applet was not installed in the local repository, is there anyway to do mvn package on archiva-parent ? -Thanks Steve More On 4/17/07, franz see [EMAIL PROTECTED] wrote: What archiva does with its applet is that in archiva-webapp, it declares archiva-applet as a dependency ( with scope set to provided ). Then it uses dependency-maven-plugin ( though you can now use maven-dependency-plugin since i think it's much more updated now ) to copy the applet to wherever it wants it to be ( see [1] ). Cheers, Franz [1] http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-webapp/pom.xml dennisl-2 wrote: That's how I would do it, but I'd make the applet jar a dependency in the war project, because it is a dependency. But you don't want the applet jar in the WEB-INF/lib directory of your webapp, because then it can't be reached directly by the user's browser. Instead you want it to be copied to the directory above WEB-INF. You could probably use the antrun-plugin to copy the applet jar from WEB-INF/lib to it's correct place. Henri Tremblay wrote: Hello everyone, I'm trying to do something that I think is quite common but can't find an easy way to do it. Here's how it goes: I have a war that basically contains nothing except a jar which contains an applet. The applet jar is for performance reason an ueber jar. How would you do something like this? My current solution is to have a jar project that creates and ueber jar and then a war project that includes the ueber jar by referencing it directly as a ressource (since I don't think it can be a dependency). Thanks a lot, Henri -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Applet-with-maven-2-tf3586961s177.html#a10032928 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Creating a target/lib with all project dependencies
Hello Craig, You can use the maven-dependency-plugin's copy/copy-dependencies goals for that. But if you just need the classpath, try `mvn dependency:build-classpath'. Please read here http://maven.apache.org/plugins/maven-dependency-plugin Cheers! Nap On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote: I'm trying to have maven build a target/lib that contains all of the runtime dependencies of the project so I can use lib/*.jar as an ant classpath. Is there a plugin that I can use that packages the dependencies into target/lib? I know that some plugins package this as part of their execution model but can't exactly figure out what I need to do to make this happen outside the plugin. Thanks, Craig Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
Re: maven-antrun-plugin: Need phase indenedence and/or conditional processing
Hello, As far as NOT binding a goal to a phase is concerned, all you have to do is configure the plugin and don't declare any execution. In your case, instead of placing configuration inside execution, place it directly under plugin, and remove executions then you can explicitly invoke it using `mvn antrun:run'. You can verify the plugin configuration syntax at the pom technical reference at http://maven.apache.org/ref/current/maven-model/maven.html#class_plugin . As for the conditional execution, you may have been referring to profiles. Specific parameters/properties passed through the command line may activate a profile. More details at http://maven.apache.org/guides/introduction/introduction-to-profiles.html . Cheers! Nap On 3/30/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote: I am using maven-antrun-plugin in my pom to run a java program. I do not need it to be tied to any phase. All I need is to be able to run it on demand by specifying an appropriate goal and some command line options using -D. So far I am able make it work but only if it is tied to a phase. See my pom at: http://ebxmlrr.sourceforge.net/private/pom.xml Ideally I wish it not be tied to a phase and instead tied to a task name that I can invoke from the command line. If it must be tied to a phase then I would like to have conditional processing in the ant task so that if certain required properties are not set in command line I can simply skip the execution of the core steps in the ant task silently. I feel I am close. Any idea how to get the phase independent execution and/or conditional execution? Thanks in advance. -- Regards, Farrukh Web: http://www.wellfleetsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Unzip dependencies
Hello Christian, if you want to specify which dependency you're going to extract, you may want to use the dependency:unpack mojo instead of dependency:unpack-dependencies. You don't want all of your dependencies extracted in your outputDirectory, would you? ;) If so, you should configure the maven-dependency-plugin like so: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idunpack/id phaseprocess-sources/phase goals goalunpack/goal /goals configuration artifactItems artifactItem groupIdtestlib/groupId artifactIdtestlib/artifactId version1.0/version typezip/type /artifactItem /artifactItems outputDirectory${project.build.directory }/alternateLocation/outputDirectory overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots /configuration /execution /executions /plugin I hope this helps somehow. :) Cheers! Nap On 3/29/07, Christian Clauss [EMAIL PROTECTED] wrote: Hi everybody, I have a project dependency (a zipped library-file) in my local repository. I want to unzip this file before starting compiling. I tried it with the maven-dependency-plugin but it didn't work. Any ideas why? Or what I could do? No error message, it says expanding file into dir but there is nothing. Thanks for your help. Christian plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idunpack-dependencies/id phaseprocess-sources/phase goals goalunpack-dependencies/goal /goals configuration outputDirectory${project.build.directory }/alternateLocation/outputDirecto ry overWriteReleasesfalse/overWriteReleases overWriteSnapshotstrue/overWriteSnapshots typezip/type /configuration /execution /executions /plugin dependencies dependency groupIdtestlib/groupId artifactIdtestlib/artifactId version1.0/version typezip/type scopecompile/scope /dependency /dependencies
Re: Maven Cargo to build and deploy Junit Integration Tests
Hello Raju, The cargo-maven2-plugin has the ability to start and stop the container, and it can also deploy the war to the container. This enables you to achieve in-container testing using junit. The sample pom.xml Kalle provided us shows that the cargo plugin starts the container at the pre-integration-test phase and stops the container at the post-integration-test phase. The junit test cases are executed in the integration-test phase (between the start/stop of the container), giving you the container environment you need for the junit tests during their execution. An important thing to consider is that the junit test cases must be placed in a directory other than the src/main/test in order to prevent maven2 executing them in the test phase (when the container isn't started yet). Other examples include the web ui tests for archiva and continuum, http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-webapp-test/pom.xmland http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/pom.xmlrespectively. You can also read on the cargo-maven2-plugin at http://cargo.codehaus.org/Maven2+plugin for more details. Cheers! Nap On 3/28/07, raju [EMAIL PROTECTED] wrote: Hi Kalle, Thanks for the link.I have some doubts: Does cargo plug-ins actually run or has ability to run the integration tests or it just starts the servers,deploys the war containing the tests? Sorry if the question sounded out of context. I am asking the above question because i was trying to achieve in-container testing for junit tests.Thought of cactus initially but JunitEE seems to be better but that doesnt have a Maven plugin.Maybe need do an ant call from within Maven? Regards Raju Kalle Korhonen-2 wrote: http://svn.codehaus.org/trails/trunk/trails/examples/simple/pom.xml Kalle On 3/27/07, raju [EMAIL PROTECTED] wrote: Hi, I need to build and deploy Junit Integration tests to weblogic and run the integration tests.I think cargo plug-in helps one achieve that. A sample pom file to achieve this would be of great help.Server could be anything. Once deployed as a war i need to invoke the tests using the webapp .Any suggestion on this. Has anyone tried out something on similar lines. Thanks in advance. Regards Raju -- View this message in context: http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9707277 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-Cargo-to-build-and-deploy-Junit-Integration-Tests-tf3477919s177.html#a9713129 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: usage of maven-dependency-plugin
Hello Eric, I can't replicate your issue, maybe you can provide us with more information by telling us what version of maven you are using, and probably your pom.xmland some console output. :) According to http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html, the analyze mojo does not require anything. Cheers! Nap On 3/28/07, Lewandowski, Eric [EMAIL PROTECTED] wrote: Hi, I want to analyze my project dependencies with maven-dependency-plugin. In my pom.xml, i put this entry to the project/build/plugins entry : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0-alpha-4/version /plugin The resolution failed with this traces : mvn dependency:analyze [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'dependency'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Required goal not found: dependency:analyze [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Mar 28 05:34:56 EDT 2007 [INFO] Final Memory: 1M/3M [INFO] Does anabody know what's wrong ? Do I need more configuration informations ? Regards, Eric Lewandowski
Re: Dbunit in maven gives compile error during test????
Hello Rolf, i think it's still a classpath problem. Have you put the necessary dependencies in your pom? AFAIK, eclipse does things separately that's why you have the classes compiled already in your workspace. Try cleaning your workspace, then do a `mvn clean test' in the command line to see if it still gives the same error. Provide us with your pom.xml too, it would be very helpful. :) Cheers! Nap On 3/28/07, Rolf Strijdhorst [EMAIL PROTECTED] wrote: Hi during the test phase of my project I get this error in maven2 using testng java.lang.Error: Unresolved compilation problems: The import org.dbunit cannot be resolved DefaultDataTypeFactory cannot be resolved to a type DataType cannot be resolved to a type DataTypeException cannot be resolved to a type DataType cannot be resolved at auction.test.FixDBUnit.init(FixDBUnit.java:3) But the classes already have been compiled. And in my eclipse workspace if I run the test with my test tool everything is just OK Does some have a clue? in what direction to search here? thanx Rolf
Re: If it's possible to define a goal to choose the step to run
A solution for (1) could be doing an `mvn package -Dmaven.test.skip=true`. The '-Dmaven.test.skip=true' skips the test phase. For (2), invoking `mvn test` will run the tests, after compiling the classes of course. I'm not sure about (3), but try invoking `mvn antrun:run`. On 3/23/07, mavenstart [EMAIL PROTECTED] wrote: Thanks Wendy, For example, sometimes I want to do one of the following tasks only (1) build the war file only without doing the JUNIT test (2) just run the JUNIT only to verify the result (I know I can do this in via Eclipse directly) (3) I want to run JMeter test only without going through all the steps compile-test-package-install, my JMeter will be run through antrun plugin during the integration-test phase I also have another question about the profile, I found that the dependency setup inside the profile will be ignored. For example, I set up a profile for running JMeter test, I really need to specify the dependency of ant-jmeter.1.0.jar plugin globally, if I put it inside the profile, the maven build won't even look for the plugin, then it complains about missing java class. Thanks much for your time, Wendy -- View this message in context: http://www.nabble.com/If-it%27s-possible-to-define-a-goal-to-choose-the-step-to-run-tf3444204s177.html#a9626742 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in mvn install:install......
Hello, Your -Dfile argument contains spaces. Try using quotes around the value. If it still fails, go to that directory and execute the command right there. Cheers! Nap On 7/27/06, Randy Francisco [EMAIL PROTECTED] wrote: Hi!!! Kinda stuck in this problem I badly need help can anyone helpme? I'm trying to execute this command *mvn install:install-file -DgroupId=uk.ltd.getahead-DartifactId=dwr\- * *Dversion=2.0 -Dpackaging=jar -Dfile=C:\Documents and Settings\AdminUser\Desktop\july26\itd\website\dwr.jar* And all I got is this… *[INFO] Scanning for projects...* *[INFO] Searching repository for plugin with prefix: 'install'.* *[INFO] * *[ERROR] BUILD FAILURE* *[INFO] * *[INFO] Invalid task 'and': you must specify a valid lifecycle phase, or a goal i* *n the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal* *[INFO] * *[INFO] For more information, run Maven with the -e switch* *[INFO] * *[INFO] Total time: 1 second* *[INFO] Finished at: Thu Jul 27 10:35:09 PDT 2006* *[INFO] Final Memory: 1M/4M* *[INFO] * * * * * * * Did I missed something? Help me please tnx in advance
Re: FTP via Maven?
Hello, You could manually fetch those jars from ftp and install it in your local repo (http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html) or deploy it in an internal repo ( http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html), so you could normally declare those artifacts in your pom.xml. Or maybe this could be useful too: http://maven.apache.org/guides/mini/guide-deploy-ftp.html Cheers! Nap On 7/7/06, Chris Wall [EMAIL PROTECTED] wrote: Hey there. We're dependent on jars from a non-Maven project. The jars are available via FTP. Has anyone come up w/ an eloquent way of integrating FTP within Maven? I'd like to manage the dependencies and configure FTP settings within pom.xml. -Chris ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.
Re: Questions about including C/C++ files in a web war file
Hello, Your web application sure is an unusual one. I'm just wondering how you manage to execute the C/C++ executables in your war file. I think setting the -x bit would make use of the same mechanism. Regarding the shared library files that need to be copied into the WEB-INF/lib directory, i suggest that you install those into your internal or local repo and declare those as dependencies of your war project. Cheers! Nap On 6/22/06, Lucie Chan [EMAIL PROTECTED] wrote: Hope this is the right forum to post these questions (the following are running on a Unix platform): I'm using maven to build a web application (i.e. to generate a war file). I have some c/c++ excutables in a directory which need to be packaged in the WAR file. I've noticed that all the executables have the excution bit (x) removed and they become read-only files after the build. Is there a way to preserve the x bit? For now, I manually run a chmod u+x on these files, but I'm hoping for a better solution. Also, I have some c/c++ shared library files that need to be copied into WEB-INF/lib directory after the build. Since maven generates the WEB-INF/lib directory for me, how can I copy other third party libraries into WEB-INF/lib without doing it manually after the build? Thanks. Lucie
Re: Plugin Question (plugin executing multiple times when it shouldn't)
Hello, You don't have to bind it to a phase when you call it in the commandline. The pom fragment doesn't look wrong at all. There must be something wrong in the code itself. Cheers, Nap On 6/28/06, Russell, Mark [EMAIL PROTECTED] wrote: I have a plugin that I will generally call directly from the commandline (though I don't want to preclude putting it in the lifecycle). Currently this plugin is configured inside a pom project (ie the project itself uses pom for the packaging) When I invoke the plugin from the commandline it seems to be executing 3 times. The configuration from the pom.xml: build plugins plugin groupIdcom.comverse.mvn.plugins/groupId artifactIdmy-maven-plugin/artifactId configuration hostNamesome.host.com/hostName userId${userId}/userId password${password}/password /configuration /plugin /plugins /build Any idea on why this executes three times? Do I have to bind it to a specific phase even though I'm only calling it on the commandline? Mark Russell
Re: Installation and deployment
Hello, I believe it won't be possible to strip off the group id and version of artifacts that are installed or deployed. This is to enforce a consistent repository structure and this provides a way to locate the artifacts in the repository. Cheers! Nap On 4/14/06, Vijay Shanker [EMAIL PROTECTED] wrote: Dear Maven users, I am using finalName tag to create ear with finalName mentioned name. But installation and deployment names still have version number in there name. 1) Could I know the way so that installation and deployment should happen with built ear name (without version number)? 2) Deployment is still happening under groupId/artifectId so could we avoid this directory structure? Thanking you. Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archetypes
Hello, The archetype plugin gives you a kick to start on projects immediately. It creates the template of your project as far as sources and resources are concerned. The target is defined in the project's pom.xml and it doesn't need to be in the archetype as it frequently gets cleaned in the file system. :) Cheers! Nap On 4/5/06, Christopher Cudennec [EMAIL PROTECTED] wrote: Hello everyone, I try to get to know what I can do by the archetype plugin. The guide to creating archetypes is alright for the basics but I would like to know how to set more variables by the archetype.xml. The documentation talks about setting the source and test-source-directory. But what about the target directory? In order to be able to adjust my own archetype to my existing project structure I would like to be able to set this one as well. I would appreciate any comments or a DTD ;). Thanks, Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi modules/different pom/more than one source dir
Hello, Well, you are right that the module / requires a directory and that the multi-module build assumes a pom.xml in every module--but it isn't what the xsd states (it only describes the elements, types and cardinality). Anyway, I would recommend that you follow the convention. It would really be easier that way since you wouldn't have to configure much. :) Cheers! Nap On 4/6/06, Christopher Cudennec [EMAIL PROTECTED] wrote: Hey everyone, as far as I know it is not possible to set the name of the pom-file when using a multi module project. The xml schema states this: xs:element name=modules minOccurs=0 xs:annotation xs:documentation source=version4.0.0/xs:documentation xs:documentation source=descriptionThe modules to build in addition to the current project/xs:documentation /xs:annotation xs:complexType xs:sequence xs:element name=module minOccurs=0 maxOccurs=unbounded type=xs:string/ /xs:sequence /xs:complexType /xs:element So my pom.xml for the project looks something like project ... modules moduleone/module moduletwo/module /modules /project I guess the default file name (i.e. pom.xml) is assumed. I can build my projects by commandline using something like mvn -f myproject.xml so why not adding an attribute to set the name of the pom file? The reason why I need this is that I have to cope with a multi source folder problem. I already know that this is regarded as being evil but I would like to introduce maven to an existing project without (much) changing the directory structure... I can solve my problem in each subproject by creating a new pom.xml and packaging this project before my real project. Any comments or suggestions? Thanks, Christopher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] library project
Hello, Or you could also create a project of just dependencies and use the dependency-maven-plugin, so you wouldn't have to write an assembly descriptor or type so much in the command line. :) Cheers! Nap On 3/15/06, Mario Ivankovits [EMAIL PROTECTED] wrote: Milos Kleint schrieb: check out the maven-assebly-plugin. it does exactly what you want I think.. Thanks, will have a look at it! Ciao, Mario - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] preventing repo download attempts for specific groupIds?
Hello, So far, all I can think of is to just exclude those dependencies--you'll have to bear with group id's coupled with artifact id's for now. :) Cheers! Nap On 3/7/06, Sachin Patel [EMAIL PROTECTED] wrote: Is there way to prevent maven from attempting to download snapshots for dependencies that fall under a certain groupId? For example eclipse plugin dependencies are not available in remote repo and therefore I'd like to prevent it from going out to fetch it. - sachin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Failure to recognise a jar
Hello, If you would like to include your project's dependecies in your package, you could use the dependency plugin available at codehaus ( http://mojo.codehaus.org/dependency-maven-plugin/introduction.html). Cheers! Nap On 2/28/06, Gerard Garrigan [EMAIL PROTECTED] wrote: Thanks very much for all the help on the issue. It's working now with the classpath - batch file approach. Thanks again, Ger -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: 24 February 2006 21:53 To: Maven Users List Subject: Re: [m2] Failure to recognise a jar You can either put the needed jars in the classpath environment variable or you can build it into a command line that you package into a batch file or script that you run to run the application. Or, if you know where the other jars are going to be, relative to your jar, you can add entries to the manifest file that is inside your jar. Someone else will have to tell you how to do that in Maven for a standalone jar. You might google the class-path entry in the manifest file and learn a bit about the way that works. Make sure you read about standalone jars instead of j2ee jars because the rules are a little different. -- Lee On 2/24/06, Wayne Fay [EMAIL PROTECTED] wrote: IIRC this was called Uberjar back in m1. To be honest, not sure of the M2 response to that, as I'm only doing WARs and EARs and they are all bundled properly in those package types. http://classworlds.codehaus.org/uberjar.html Wayne On 2/24/06, Gerard Garrigan [EMAIL PROTECTED] wrote: I have the app running now in Eclipse alright. There may have been a problem with the mvn eclipse:eclipse command. The requirement is to have my application in a jar file and you can run it from the command prompt. I notice when you package up the app the resulting jar contains no dependencies (ie the dependencies jars). What is needed to get the jar running from the command prompt? -Original Message- From: Thorsten Heit [mailto:[EMAIL PROTECTED] Sent: 24 February 2006 17:44 To: Maven Users List Subject: Re: [m2] Failure to recognise a jar -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have the variables included in eclipse and the dependencies in the pom. However I'm still having the same trouble. Have you checked that Eclipse really uses the correct jars in the project settings under Java Build Path-Libraries? On my machine (Eclipse 3.2M5) I see a blue ball besides every jar that is listed there, and every entry begins with M2_REPO. And can you check that M2_REPO is defined correctly in the global classpath settings (Window-Preferences-Java-Build Path-Classpath Variables)? By setting the classpath variable in the command prompt do mean adding the required jars to the CLASSPATH environment variable? Yes. If so is there any way that maven can include the required jars in a lib folder when it packages the project as a jar? Or even just the specific classes it needs from the jars? Sorry, don't know. Perhaps Maven generates an entry in the created jar's manifest...? Regards Thorsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) iD8DBQFD/0X4QvObkgCcDe0RAtJIAKCqnrB6Q7ZJEIRR70V6lkVIbBnq7wCeO2P6 aU9YK3dH+rw45aL/hzrYw/w= =fiHq -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]Does bestpractices.html apply to maven 2?
Hello, Yes, it is indeed written for Maven 1 but most concepts apply too in Maven 2. I think the ideas that are common to Maven 1 2 include: using conventions (which I think is one of the points of using best practices), following the project development cycle and the use of plugins for extensibility. For all other stuff I missed, just consult 'em here in the mailing list. :) Cheers! Nap On 3/1/06, Ken Tanaka [EMAIL PROTECTED] wrote: I have a documentation question: At the bottom of the page http://maven.apache.org/using/bestpractices.html is a section called Getting ready for Maven 2. I take this to mean that the page above is for Maven 1. Does any of it apply to Maven 2? Thanks, Ken -- = Enterprise Data Services Division === | CIRES, National Geophysical Data Center / NOAA | = Ken.Tanaka%noaa.gov = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to use external jar's while compiling
Hello, The installation of the jar file ncso.jar as the artifact com.ncso:ncso:1.0looks fine. However, what I noticed is that Maven2 tries to look for the version 8.1. Could you have made a typo in your pom.xml? Kindly show us your pom.xml, it would really help resolve your problem. :) Cheers! Nap On 2/27/06, tanya Rust [EMAIL PROTECTED] wrote: C:\sample-mvn\subset sub-home=D: C:\sample-mvn\subset group-id=com.ncso C:\sample-mvn\subset version=1.0 C:\sample-mvn\subset packaging=jar C:\sample-mvn\subset path-to-file=%sub-home%/ncso/ncso.jar C:\sample-mvn\subset artifact-id=ncso C:\sample-mvn\submvn install:install-file -Dfile=%path-to-file% -DgroupId=%group -id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% till this step it is ok when i compile using mvn compile C:\sample-mvn\submvn compile [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [compile] [INFO] - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) Downloading: http://repo1.maven.org/maven2/com/ncso/ncso/8.1/ncso-8.1.jar [WARNING] Unable to get resource from repository central ( http://repo1.maven.org /maven2) [INFO] - --- [ERROR] BUILD ERROR [INFO] - --- [INFO] Failed to resolve artifact. Kevin Wang [EMAIL PROTECTED] wrote: In Maven2, if plugin or dependency can not be found in ibiblio, for example, weblogic.jar, you can use below lines to install the jar into local repository: set wl-home=D:/bea91/weblogic91 set group-id=com.bea.mytest set version=9.1 set packaging=jar @rem #weblogic set path-to-file=%wl-home%/server/lib/weblogic.jar set artifact-id=weblogic mvn install:install-file -Dfile=%path-to-file% -DgroupId=%group-id% -DartifactId=%artifact-id% -Dversion=%version% -Dpackaging=%packaging% then you can use the jar as a dependency, as: com.bea.mytest weblogic 9.1 Thanks, -- Qiang Wang [Kevin] -Original Message- From: tanya Rust [mailto:[EMAIL PROTECTED] Sent: 2006年2月27日 14:43 To: users@maven.apache.org Subject: How to use external jar's while compiling Hi all, I am new to maven environment Can any one help me finding out solution for compiling my project as it requires an external jar for compilation .. Tanya - Yahoo! Mail Use Photomail to share photos without annoying attachments. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail.
Re: [m2] problems with transient dependencies
Hello, Aside from requesting artifact uploads to ibiblio, you can install the missing artifacts (along with default poms or your customized poms) to your local repository yourself. This would satisfy your project dependencies; it is also a solution to third party jars that are not allowed to be distributed freely in ibiblio. Moreover, if you are sure that your project is not dependent on the artifacts you mentioned, you can exclude those artifacts in your project's pom. This would get your project to compile successfully again, but you can't be sure if it would run well since the excluded artifacts are transitive dependencies after all. More related reading material: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html http://maven.apache.org/guides/mini/guide-ibiblio-upload.html http://docs.codehaus.org/display/MAVENUSER/FAQs-1#FAQs-1-HowdoIdeterminemyproject%27stransitivedependencies%2Candifneeded%2Cexcludeaparticulartransitivedependency%3F Cheers! Nap On 2/27/06, Ralf Kintrup [EMAIL PROTECTED] wrote: Hi, I am trying to package an M2 project and getting the following statement due to unsatisfied transient dependencies: required artifacts missing: javax.transaction:jta:jar:1.0.1B jsch:jsch:jar:0.1.24 jmock:jmock-cglib:jar:${jmock_cglib_version} howl:howl-logger:jar:${howl_logger_version} incubator-derby:derby:jar:${derby_version} jmock:jmock:jar:${jmock_version} ... Due to the transient nature of the dependencies in M2, these resources are needed even though my project does not directly depend on them. There are two problems here: 1. There are required artifacts like jsch-0.1.24 that is not available in any of the M2 repositories I know. 2. Some projects seem to rely on externally configured literal values which results in non-interpolated literal value in their POM. The POMs with these unknown dependencies and literal values have not yet been downloaded to my local M2 repository. So I have no way to handle this by changing dependency scopes or by replacing literal values in the POM. Due to the nature of transient dependencies I believe that this is a common problem of Maven 2.x. What possiblities do I have to solve them and get my project to compile again? Cheers, Ralf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2]javax.comm - missing in iBiblio
Hello, javax.comm is a third party jar. However, you can file a JIRA issue at http://jira.codehaus.org/browse/MEV, and request for the installation of the pom. Cheers! Nap On 2/27/06, Subhash Chandran [EMAIL PROTECTED] wrote: I find the javax.comm API missing in the iBiblio repository. The page of the API: http://java.sun.com/products/javacomm/ Can someone place a request for adding this to the repository? -- Regards, Subhash Chandran S Cross platform OpenSource Java based file encryption software: http://www.WizTools.org/project/WizCrypt/
Re: Get system/environment variable into MOJO help
Hello, AFAIK, system properties doesn't have expressions like project properties do. Using System.getProperty() will work, but you'd be better off passing parameters (just like how you mentioned) as the advantages are: you could inject the values thru the command line and you could specify the parameters in pom.xml. Did I get you right? Kindly correct me if I'm wrong. :) Cheers! Nap On 2/23/06, Thanh T. [EMAIL PROTECTED] wrote: Hi all, I was able to get the POM properties and project into mojo thanks to Dan Tran and Alexandre Poitras for the help. Now I couldn't get the environment variables into mojo. Here's my question where can I get a list parameter expression. For example if I want to pass in the project build folder i would do. /** * @parameter expression=${project.build.directory} * ... */ private File buildDirectory; how can I pass the system properties into mojo? i don't know the expression for system properties. Can anyone point me to a place where they have a list of expression? I tried to find the default maven 2 properties but couldn't from their site either. thanks -- Thanh T.ICQ #: 10381946 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I invoke (execute) a parent pom within a child pom
Hello, I have a hunch that you need the functionality that ${ project.parent.relativePath} provides. This element works when the parent described by ${project.parent.groupId}, ${project.parent.artifactId} and ${ project.parent.version} is not in the local repo. In your child pom, you'll have to specify something like: project ... parent groupIdorg.foo/groupId artifactIdbar/artifactId version1.0/version relativePath../pom.xml/relativePath /parent ... /project So if the parent artifact still isn't in the local repo, Maven will install it as it is described in the relative path. I hope this helps. Kindly correct me if I didn't get what you mean. :) Cheers! Nap On 2/23/06, Leasck, Andrew G. (STL) [EMAIL PROTECTED] wrote: I have a parent-pom.xml that defines multiple modules and common dependencies working as expected, such that when I invoke the install goal I get my versioned module jars published to my local repository. I have a child pom (pom.xml) that is used to create my war, the parent is defined and it has dependencies on the modules defined in the parent pom above. If the dependencies do not exist (I removed them from my local repository) the maven fails since the dependent jars are nowhere to be found. I would like the child pom to first invoke the parent to install. Thus ensuring that the latest module source is jar'd and placed into the lib directory. I hope I articulated the problem clearly Any ideas or help would be greatly appreciated. Thank you in advance. Leasck *** Confidentiality Notice *** This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments.
Re: Calling mvn from ant does not propagate errors
Hello, Good to hear that you've made it work. But then, I'm just curious as to why you have to invoke Maven using Ant in the first place. :) Cheers! Nap On 2/10/06, Xavier Galleri [EMAIL PROTECTED] wrote: Hi, I need to call mvn from ant and I tried to do that as follows: exec executable=mvn.bat failonerror=true arg line=install/ /exec The problem is that the failonerror is not working when mvn fails. I'm working under Windows XP. After some investigations, I came to the conclusion that the errorlevel is not correctly propagated back to ant when it execs the mvn.bat script. To cope with that issue, I currently use a workaround, but it implies to modify the mvn.bat script in order to: - trap errors slightly differently, - remove the /B from the final exit command. Then, I renamed the modified mvn.bat file to mvn-batch.bat and create a new mvn.bat file to do the following: @echo off cmd /c mvn-batch.bat %* Eventually, I use the mvn-batch.bat file in my exec task: exec executable=mvn-batch.bat failonerror=true/ This way, the failonerror is working ok and ant failed as expected when mvn fails! To say the less, I'm a bit disappointed by the complexity of this solution! Thus I would be pleased to get any feedback on this, especially if someone could provide a better solution. Any comments are welcome... Rgds, -Xavier Ce message et ses pièces jointes (le message) est destiné à l'usage exclusif de son destinataire. Si vous recevez ce message par erreur, merci d'en aviser immédiatement l'expéditeur et de le détruire ensuite. Le présent message pouvant être altéré à notre insu, CALYON Corporate and Investment Bank ne peut pas être engagé par son contenu. Tous droits réservés. This message and/or any attachments (the message) is intended for the sole use of its addressee. If you are not the addressee, please immediately notify the sender and then destroy the message. As this message and/or any attachments may have been altered without our knowledge, its content is not legally binding on CALYON Corporate and Investment Bank. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate with Maven
Hello, AFAIK, javax.transaction:jta:1.0.1B is a Sun jar that can't be redistributed in ibiblio. You'll have to manually install that in your local repository ( http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html). You can download it here: http://java.sun.com/products/jta/ Cheers! Nap On 2/1/06, Maciej Mastalarczuk [EMAIL PROTECTED] wrote: Hi Everyone, I am trying to compile a project that uses Hibernate (3.1.1) with Maven 2. It seems like there is a dependency missing at ibiblio (http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/). Is it a known issue or I'm doing something wrong? Regards, Maciej Mastalarczuk
Re: [m2] not 4.0.0 pom error
Hello, It seems that the pom isn't updated yet. An artifact in a Maven2 repsitory should have an Version 4.0.0 pom. You should file a JIRA issue at Maven Evangelism (MEV) for that. :) Cheers! Nap On 1/24/06, Konstantin Polyzois [EMAIL PROTECTED] wrote: build it from svn. There was some bug up until 30 minutes ago 2006/1/23, Mick Knutson [EMAIL PROTECTED]: How can I get covertures to work: [INFO] Downloading: http://repo1.maven.org/maven2/maven-plugins/maven-cobertura-plugin/1.1.1/maven-cobertura-plugin-1.1.1.pom 6K downloaded [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: maven-plugins:maven-cobertura-plugin POM Location: C:\Documents and Settings\Owner\.m2\repository\maven-plugins\maven-cobertura-plugin\1.1.1\maven- cobertura-plugin-1.1.1.pom Reason: Not a v4.0.0 POM. plugin groupIdmaven-plugins/groupId artifactIdmaven-cobertura-plugin/artifactId version1.1.1/version /plugin Thanks Mick Knutson http://www.BASELogic.com http://www.MickKnutson.com MSN Messenger: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Dependencies declaration: .dll / .so files howto?
Hello Valerio, If I'm not mistaken regarding the second case, you were referring to the directory to where runtime libraries are expected to be, right? If that's so, I think you can use the dependency plugin ( http://mojo.codehaus.org/dependency-maven-plugin/introduction.html) to copy the dependency from the local repository to a directory relative to the packaging of your project (e.g. myProject/lib/, where the native library can be accessed by your application). Cheers! Nap On 1/18/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: hello Napoleon, i don't understand if using the dll/so packaging i'm declaring a project that builds native libraries, or that it depends on them (for example, at runtime, as in the case of swt libraries). If the second case, where the .so files should be placed ? in which subdirectory? thanks, valerio 2006/1/18, Napoleon Esmundo Ramirez [EMAIL PROTECTED]: Hello, Native libraries are treated just like any other dependency in the repository. What's important is, it has to have a properly defined pom in the repository containing something like: project modelVersion4.0.0/modelVersion groupIdswt/groupId artifactIdswt/artifactId version1.0/version packagingdll/packaging /project and declared in the project as a dependency like: project ... dependecies dependency groupIdswt/groupId artifactIdswt/artifactId version1.0/version typedll/type !-- this is important because maven assumes a jar file by default -- /dependency /dependecies ... /project I hope this helps. Cheers! Nap On 1/18/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: this is interesting also to me, have to solve the same problem for a project using swt graphical libraries, and need some platform-dependant .so libraries to be accessible. this is easy within eclipse, but don't know how to configure it via maven. 2006/1/17, Loïc Lefèvre [EMAIL PROTECTED]: Hi, It's me again, I'm currently trying to add LWJGL as a dependency to my project. However, I wonder how one can add the required native librairies (.dll, .so...) to the dependencies for example for test purposes. Do someone know? Thanks in advance! Loic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
Re: [m2] Dependencies declaration: .dll / .so files howto?
Hello Loic, Too bad, it won't link. DLL's are hardcoded in the application that uses it, right? If that's the case, is recompiling an option for that? I don't think SO's (shared objects) would encounter the same dilemma though. Cheers! Nap On 1/19/06, Loïc Lefèvre [EMAIL PROTECTED] wrote: However, what can I do if I *can't* rename the .dll / .so files: for example: DevIL.dll - DevIL-0.99.dll will be perfect for the maven 2 repository however the dll isn't linked anymore! And if I set the version tag to empty (version/version) then the POM becomes invalid! What can I do? Loic On 1/18/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Native libraries are treated just like any other dependency in the repository. What's important is, it has to have a properly defined pom in the repository containing something like: project modelVersion4.0.0/modelVersion groupIdswt/groupId artifactIdswt/artifactId version1.0/version packagingdll/packaging /project and declared in the project as a dependency like: project ... dependecies dependency groupIdswt/groupId artifactIdswt/artifactId version1.0/version typedll/type !-- this is important because maven assumes a jar file by default -- /dependency /dependecies ... /project I hope this helps. Cheers! Nap On 1/18/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: this is interesting also to me, have to solve the same problem for a project using swt graphical libraries, and need some platform-dependant .so libraries to be accessible. this is easy within eclipse, but don't know how to configure it via maven. 2006/1/17, Loïc Lefèvre [EMAIL PROTECTED]: Hi, It's me again, I'm currently trying to add LWJGL as a dependency to my project. However, I wonder how one can add the required native librairies (.dll, .so...) to the dependencies for example for test purposes. Do someone know? Thanks in advance! Loic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Dependencies declaration: .dll / .so files howto?
Hello, Native libraries are treated just like any other dependency in the repository. What's important is, it has to have a properly defined pom in the repository containing something like: project modelVersion4.0.0/modelVersion groupIdswt/groupId artifactIdswt/artifactId version1.0/version packagingdll/packaging /project and declared in the project as a dependency like: project ... dependecies dependency groupIdswt/groupId artifactIdswt/artifactId version1.0/version typedll/type !-- this is important because maven assumes a jar file by default -- /dependency /dependecies ... /project I hope this helps. Cheers! Nap On 1/18/06, Valerio Schiavoni [EMAIL PROTECTED] wrote: this is interesting also to me, have to solve the same problem for a project using swt graphical libraries, and need some platform-dependant .so libraries to be accessible. this is easy within eclipse, but don't know how to configure it via maven. 2006/1/17, Loïc Lefèvre [EMAIL PROTECTED]: Hi, It's me again, I'm currently trying to add LWJGL as a dependency to my project. However, I wonder how one can add the required native librairies (.dll, .so...) to the dependencies for example for test purposes. Do someone know? Thanks in advance! Loic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To Iterate is Human, to Recurse, Divine James O. Coplien, Bell Labs
Re: [m2] required artifacts missing
Hello, I tried your pom.xml and it worked fine with me. Please confirm if the required artifacts were installed properly. Cheers! Nap On 1/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It's like that, i've removed smc, developers... and renamed any tags Fredy project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdxxx/groupId artifactIdyyy_common/artifactId packagingjar/packaging version1.0-SNAPSHOT/version namexxx/name urlxxx/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version scopecompile/scope /dependency dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration/artifactId version1.1/version scopecompile/scope /dependency dependency groupIdjavax.xml/groupId artifactIdjaxrpc-api/artifactId version1.1/version scopecompile/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopecompile/scope /dependency dependency groupIdcommons-lang/groupId artifactIdcommons-lang/artifactId version2.0/version scopecompile/scope /dependency dependency groupIdaxis/groupId artifactIdaxis/artifactId version1.1/version scopecompile/scope /dependencydependency groupIdxalan/groupId artifactIdxalan/artifactId version2.7.0/version scopecompile/scope /dependency dependency groupIdxerces/groupId artifactIdxerces/artifactId version2.4.0/version scopecompile/scope /dependency dependency groupIdxml-apis/groupId artifactIdxml-apis/artifactId version1.0.b2/version scopecompile/scope /dependency dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.3.3/version scopecompile/scope /dependency dependency groupIdjavax.activation/groupId artifactIdactivation/artifactId version1.0.2/version scopecompile/scope /dependency /dependencies build sourceDirectorysrc/main/sourceDirectory testSourceDirectorysrc/test/testSourceDirectory /build /project Maven Users List users@maven.apache.org schrieb am 17.01.06 03:22:14: Hi there, Could you paste your pom? Thanks, -allan [EMAIL PROTECTED] wrote: Hey, I've allready read that, and install the files! There are in my local repository: mavenRepository |- javax |- activation |- activation |- 1.0.2 |- activation-1.0.2.jar |- activation-1.0.2.pom |- activation-1.0.2.pom.sha1 Fredy Maven Users List users@maven.apache.org schrieb am 16.01.06 22:49:34: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html -Stephen On 1/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've already installed these files in my localRepository, but theres is alwas the same error: required artifacts missing: javax.mail:mail:jar:1.3.3 javax.activation:activation:jar:1.0.2 javax.xml:jaxrpc-api:jar:1.1 for the artifact: yyy:xxx:jar:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) I use the following args for my rep.: mvn - Dorg.apache.maven.global-settings=K:\_meineDateien\developmentNeu\mavenRepositorycompile any idea?? Thanks Fredy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] hr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mit freundlichen Grüßen Fred Robert Hauschel http://www.Hauschel.de Mobil:0179 - 6917092 Telefon: 07427 - 91179 Fax: 07427 - 91178 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need help migrating *.properties from Maven1.x to Maven2
Hello, If you're concerned on the versioning the project.properties provides, I recommend on using the dependencyManagement/ section in POMv4. You can fill it up in a common pom, wherein other pom's can treat it as a parent in order to inherit the declared versions. If you're interested in some other feature, please let us know. Posting your project.xml, project.properties, maven.xml will greatly help. Cheers! Nap On 1/13/06, Martin Frixe [EMAIL PROTECTED] wrote: Hi, in my .properties files of my working maven v1 installation are many variables defined where the project.xml can find them during build process, *.properties are included in project.xml Problem is m2 ignores these files, because of replacement of these *.properties with settings.xml -in a valid xml file I can't define variables. The pom.xml (POM Version 4), does not have a include tag for resource files, so I have a real big problem. I don't want to hardcode all these values into my big multi-project. Where can I include variable definitions e.g. someLibrary.CURRENTVERSION}=1.07 without a *.properties file ??
Re: war project resources copied to web-inf/classes
Hello, Referring to the Project Descriptor ( http://maven.apache.org/maven-model/maven.html#class_resource), targetPath/ is relative to the outputDirectory/ of the project that's why it created another target/ inside ${basedir}/target/web-inf/classes/. Btw, have you tried the webapp archetype? I think it would make things easier for you if you follow that. Please post your pom.xml so we could clarify that. Cheers! Nap On 1/13/06, Karthik V [EMAIL PROTECTED] wrote: I have a war project in m2 and want to copy some resource files to target. In my src/main/resources folder, I have some files, along with a web-inf folder containing some more files. But maven always seems to copy it to target/web-inf/classes and not target. How do I change this behavior? I tried adding something like resources directory${basedir}/src/main/resources/directory targetPathtarget/targetPath /resource /resources but it didnt help... the above copied the files to target/web-inf/classes/target.
Re: [M2] eclipse project dependecy - how to define?
Hello, In Maven 2, it is not possible to define properties for a given dependency--according to the project descriptor ( http://maven.apache.org/maven-model/maven.html#class_dependency). I think you need a plugin that can be configured to handle such dependencies. Cheers! Nap On 1/13/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: posting again!! Eclipse plugin team, please advice. -- Forwarded message -- From: Sanjay Choudhary [EMAIL PROTECTED] Date: Jan 12, 2006 8:30 AM Subject: [M2] eclipse project dependecy - how to define? To: Maven Users List users@maven.apache.org In maven 1.0.2 we were able to define eclipse project dependency. For example dependency groupId artifactId version properties eclipse.dependencytrue/eclipse.dependency /properties /dependency How can I define project depency for Eclipse in M2? Pls. advice. Thanks -Sanjay
Re: [m2] war project and dll dependency
Hello, You got it right, your solution looks fine. Just check for typos, just like how you declared the native library as a dependency of your jar artifact. project modelVersion4.0.0/modelVersion groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId packagingjar/packaging namelibraryx/name version1.0/version descriptionlibraryx/description dependencies dependency groupIdcom.domain/groupId !-- should be com.hugin -- artifactIdlibraryx-native/artifactId !-- should be hugin-native -- version1.0/version !-- should be 6.3 -- typedll/type /dependency /dependencies /project Cheers! Nap On 1/12/06, Piotr Bzdyl [EMAIL PROTECTED] wrote: Hello, In my war project I use java library which requires native dll library. I created following: project modelVersion4.0.0/modelVersion groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId packagingjar/packaging namelibraryx/name version1.0/version descriptionlibraryx/description dependencies dependency groupIdcom.domain/groupId artifactIdlibraryx-native/artifactId version1.0/version typedll/type /dependency /dependencies /project project modelVersion4.0.0/modelVersion groupIdcom.hugin/groupId artifactIdhugin-native/artifactId packagingdll/packaging nameHugin native library/name version6.3/version descriptionHugin native library/description /project I reference this library in my war project as: dependency groupIdcom.domain/groupId artifactIdlibraryx-api/artifactId version1.0/version /dependency Is this solution correct? What is the correct way to handle native libraries dependencies? Best regards, Piotrek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using variables from parent pom.xml - like version etc.
Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging version1.0-8/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies /dependencies /project Then I have pom.xml for each module project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent groupIdorg.kp.emember/groupId artifactIdkporgcommon/artifactId packagingjar/packaging versionCAN I USE VERSION VARIABLE FROM POM? /version in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven 2.0. ${pom.version} doesn't work. In my build I don't want to update 35 pom.xmls. With maven 1.0.2, our scripts update parent pom and that was available in all the child projects. Please advice how we can use the variable from parent POM in M2 or if there is a alternate solution. -Sanjay
Re: Passing dependencies to Maven 2.0 plugin
Hello, The dependencies of a project may be passed to a plugin by declaring it as an annotation. For example, in your case, you could do: /** * The project dependencies. * @parameter expression=${project.dependencies} */ private List dependencies; The List will hold the project's dependencies (class Dependency) from which you can access the scope using Dependency.getScope(). I hope it helps. Cheers! Nap On 1/11/06, Steve Kuo [EMAIL PROTECTED] wrote: I have a need to iterate through the dependencies in pom.xml. I created a plugin and tried to passed ${dependencies} in pom.xml as a parameter to the plugin. Unfortunately, ${dependencies} is passed in as a String instead of a List of objects. How does one do that? Also, is there a way to print out the scope for each dependency? I like to use it to remove jars used only in testing. Below is a portion of pom.xml and the mvn package run. {pom.xml} plugin groupIdehcomponents/groupId artifactIdmaven-classpath-plugin/artifactId configuration dependencies${dependencies}/dependencies /configuration executions execution phasepackage/phase goals goalclasspath/goal /goals /execution /executions /plugin {output of mvn package} [INFO] [jar:jar] [INFO] Building jar: /home/skuo/sandbox/mvnApp/mvnJar/target/mvnJar-1.0- SNAPSHOT.jar [INFO] [classpath:classpath {execution: default}] [INFO] Generating classpath.sh [INFO] dependencies: [Dependency {groupId=junit, artifactId=junit, version=3.8.1, type=jar}, Dependency {groupId=mx4j, artifactId=mx4j, version=3.0.1, type=jar}] -- Steve Kuo eHarmony 300 N. Lake Ave., Suite Pasadena, CA 91101 [EMAIL PROTECTED] 626.795.4814, x-1021 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Using variables from parent pom.xml - like version etc.
Hello, I just checked your pom's. Your parent pom seems to be okay. But I think your second pom isn't. When declaring parent projects in child projects (modules) you should explicitly define the version. Try setting it with 1.0-8, and let's see what happens. I hope it works this time. :) Cheers! Nap On 1/11/06, Allan Ramirez [EMAIL PROTECTED] wrote: Hi there, Try to use the dependencyManangement element. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Regards, -allan Sanjay Choudhary wrote: I tried using ${project.version} but got the following error [INFO] Trace org.apache.maven.reactor.MavenExecutionException: POM ' org.emember:org_kp_eme mber' not found in repository: org.kp.emember:org_kp_emember:pom:${project.version} project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent On 1/10/06, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote: Hello, Please try ${project.version}. Cheers! Nap On 1/11/06, Sanjay Choudhary [EMAIL PROTECTED] wrote: I have parent pom.xml as below project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdorg.emember/groupId artifactIdorg_emember/artifactId packagingpom/packaging version1.0-8/version nameMaven Quick Start Archetype/name urlhttp://maven.apache.org/url dependencies /dependencies /project Then I have pom.xml for each module project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent groupIdorg.emember/groupId artifactIdorg_emember/artifactId versionCAN I USE VERSION VARIABLE FROM POM? /version /parent groupIdorg.kp.emember/groupId artifactIdkporgcommon/artifactId packagingjar/packaging versionCAN I USE VERSION VARIABLE FROM POM? /version in maven 1.0.2 we were able to use ${pom.currentVersion} but in maven 2.0. ${pom.version} doesn't work. In my build I don't want to update 35 pom.xmls. With maven 1.0.2, our scripts update parent pom and that was available in all the child projects. Please advice how we can use the variable from parent POM in M2 or if there is a alternate solution. -Sanjay No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 1/10/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] outputDirectory
Hello, According to the schema (http://maven.apache.org/maven-v4_0_0.xsd), outputDirectory is indeed not defined in the profile section. But I think, by configuring the compiler plugin, you can set the path in plugin under the plugins section of profile. Cheers! Nap On 1/11/06, Rinku [EMAIL PROTECTED] wrote: I don't see an outputDirectory/ specified under build/ element for profile/ in the pom descriptor. http://maven.apache.org/maven-model/maven.html Not sure if its an 'error of omission' in online docs or if a profile does (or does not) supports overriding the build outputDirectory? You might want to give it a shot though - I'd be interested to know the result as well :-) TIA, Rahul Henry Isidro wrote: Dmitry Beransky wrote: Hi, I'm trying to migrate for the first time one of my projects to Maven2. In Maven 1, I used to have the following line in the user level configuration file: maven.build.dir=c:/temp/maven/${pom.artifactId} this was for Windows-based workstations; on a server, the build directory would be set to a different pattern. How do I achieve a similar effect with Maven 2? Please note that I don't want to specify the output directory inside a pom file, as this directory may changed with the system on which the project is compiled. Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Have you tried using profiles? http://maven.apache.org/guides/introduction/introduction-to-profiles.html Regards, Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2: local repo is not working?
Hello! The way you installed the artifact in your local repository is correct. However, you declared your local repository as a legacy repository which tells maven to find for the artifact in a maven1 fashion. That's why maven can't find the artifact. Try removing layoutlegacy/layout. :) The reason your maven can't download the jdom artifact from the central repo (http://repo1.ibiblio.org/maven2) is because jdom is installed as jdom:jdom: 1.0, not org:jdom:1.0. Hope it helps. Nap On 1/6/06, Tim Davies [EMAIL PROTECTED] wrote: Oops sorry, just noticed that matches your groupid in your install command. Not sure in that case. Tim Davies wrote: Your groupid in your dependencies tag should be org.jdom. For info when you install an artifact it is installed to your local repository, which is \.m2\repository. When you use the repository tag then you are telling the pom to look for the artifact in your remote repository. Wasnt sure if that was understood from what you wrote. Hope this helps. :-) [EMAIL PROTECTED] wrote: Hi, I have a following problem: I installed a few artefacts with a command (for example): mvn install:install-file -Dfile=./jdom-1.0.zip -DgroupId=org -DartifactId=jdom -Dversion=1.0 -Dpackaging=jar Now I have a structure: \.m2\repository\org\jdom\1.0\jdom- 1.0.jar In my POM.xml there is: ... repositories repository snapshots enabledtrue/enabled /snapshots idmy-m1-repository/id nameMaven 1.x Repository/name url http://192.168.1.60:8080/maven/url layoutlegacy/layout /repository /repositories ... and ... dependencies ... dependency groupIdorg/groupId artifactIdjdom/artifactId version 1.0/version scopecompile/scope /dependency ... /dependencies ... When I try: mvn compile, it says: Downloading: http://192.168.1.60:8080/maven/org/poms/jdom-1.0.pom [WARNING] Unable to get resource from repository my-m1-repository (http://192.168.1.60:8080/maven) Downloading: http://repo1.maven.org/maven2/org/jdom/1.0/jdom-1.0.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) and the operation takes much time (a couple of minutes). I didn't changed anything in my settings.xml or other files. Is it possible that my local repository isn't working? Thanks for any suggestions, Pawel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Davies Analyst Developer KTS PLC: Service you can bank on 8th Floor, Finsbury Tower, 103-105 Bunhill Row, London EC1Y 8LZ tel: +44 (0)20 7256 2300 fax: +44 (0)20 7256 2301 email: [EMAIL PROTECTED] web: http://www.ktsplc.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help! Maven 2 getting started issues
Hello! Maven should always be run where the pom.xml resides. When you did a mvn archetype:create ..., maven created the directory of your project that contains the skeleton and the default pom.xml, so you'd really have to cd there. Doing mvn archetype:create creates an individual project. If the project exists, maven reports a BUILD ERROR to avoid ruining whatever's in the existing project. I think it's safer that way. In your case, having the app and the site residing in a single project, I think you could just create the app, then manually do site in it. Or you could treat the app and site as separate projects that you could merge later on (manually or as a multi-project). Hope it helps. Nap On 1/6/06, Rick Mann [EMAIL PROTECTED] wrote: Hi folks. I've been using the Maven Ant plugin a bit, and decided to start a new project from the ground-up using Maven. I also figured I should run through the (fairly excellent) Getting Started guide: http://maven.apache.org/guides/getting-started/index.html It mostly works great. But I ran into a small issue and a large one. The small one was that the first time they introduce mvn compile, it doesn't work unless you cd to your artifactId directory (my-app in the example). If you do it from the directory above, where you were when you ran mvn archetype:create, it doesn't work. Then, later, they show a couple more archetype:create examples, one to create a bunch of source for the site, and one to create a webapp (which is what I want to do). These don't work from within my-app; they create a second my-app inside it. You have to CD up one level to get them to work. But, worse than that, they don't work because my-app already exists! I would like to do both the webapp and site archetypes, but I don't know how to do that. The documentation for the plugin is almost nonexistent. So, anyone got any ideas? Many thanks in advance... -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmlbeans plugin
Hello! Looks like it's not in the central repo. You could file a JIRA issue on that in the MAVENUPLOAD space. :) Nap On 1/6/06, John Wells [EMAIL PROTECTED] wrote: John Wells (Aziz) [EMAIL PROTECTED] I am trying to use the XML beans plugin from http://mojo.codehaus.org/xmlbeans-maven-plugin/ However, I get the following: [ERROR] BUILD ERROR [INFO] -- --- [INFO] Failed to resolve artifact. GroupId: xmlbeans ArtifactId: xmlbeans-jsr173-api Version: 2.0-dev Reason: Unable to download the artifact from any repository xmlbeans:xmlbeans-jsr173-api:2.0-dev:jar from the specified remote repositories: central (http://repo1.maven.org/maven2), CoreRepo (http://www-tux/wls/maven2/repository) Looks like there is a missing file in the repository. Where is this file supposed to live? John Wells (Aziz) [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] How to add additional path for surefire test sources?
Hello! I think the feature you're referring to is the exclusion in the test suite of the base test classes found in the src/test/java directory. Using the Maven 2 surefire plugin, you can do this by declaring the following in the configuration: ... excludes exclude**/Abstract*Test.java/exclude /excludes ... Hope this helps. Nap On 1/6/06, Jason Dillon [EMAIL PROTECTED] wrote: Hi, I'm trying to figure out how to add an additional directory of sources for inclusion when running surefire tests. Basically I have generated some base tests classes, which need to be accessible from classes under src/test/java (an should not be accessible from src/ main/java). This was easy enough to do in Maven1, by appending to maven.test.compile.src.set, but I can't find anything similar w/Maven2. Note, those classes, just need to get picked up and compiled, they don't need to be scanned for inclusion in the testsuite (though that would be nice too), but this was not possible with Maven1's test plugin, so I generated all abstract helper classes, which concrete classes extend to enable them in the suite. Any idea on how to make this work? Thanks, --jason This email and any attachment(s) thereto, are intended for the use of the addressee(s) named herein and may contain legally privileged and or confidential information under applicable law. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email, and any attachment(s) thereto, is strictly prohibited. If you have received this communication in error, please notify the sender at 415-281-2200 or via return e-mail at [EMAIL PROTECTED] and permanently delete the original copy and any copy of any e-mail, and any printout thereof. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]