Re: Customizing which modules should be processed using goals
Alternatively, the user can just navigate to the desired module's directory and do a 'mvn clean install' from there. Then you have the option of building everything at once, or building one at a time. Patrick On Jan 18, 2008 3:53 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > You don't do this with goals. Use for this purpose. You > will need to remove all the from your pom and then redeclare > them in the various . > > Wayne > > On 1/18/08, Neeraj Joshi <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am a maven newbie so forgive my ignorance. > > I am migrating my ANT build to a maven one. > > In my ANT build I have several high-level targets like build_all, > > build_runtime, build_editor etc which built a subset of the projects > > > > Now in maven I have converted the projects to modules and I want the > user > > to specify which modules should be processed > > > > I was trying to figure out how to do that using maven goals? > > Any tips/ references? > > > > Thanks in advance! > > Neeraj > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [m2] issue activating profiles.
I haven't seen those warnings before... Have you tried using help:active-profiles? Try: $ mvn -P dev- help:active-profiles This will list (surprise!) the currently active profiles with which Maven is executing. Patrick On Dec 11, 2007 12:43 PM, Mick Knutson <[EMAIL PROTECTED]> wrote: > I am trying to switch profiles for each environment. > I have dev-, and dev-7778 > > Then in my profiles.xml I have: > > * >dev- > >dev- >no-documentation > > > > >dev-7778 > >dev-7778 >no-documentation > >* > > > *When I run:* > *mvn -P dev- assembly:assembly -e -X > .out.txt* > * > I keep getting this:* > > *[WARNING] Overriding profile: 'dev-' (source: pom) with new instance > from source: profiles.xml > [WARNING] Overriding profile: 'dev-7778' (source: pom) with new instance > from source: profiles.xml* > > > so it looks like I get both, but 7778 seems to always override . I > only > want one of these profiles active at the same time. Can someone please > help > me out? > > > -- > Thanks, > Mick Knutson > > http://www.baselogic.com > http://www.blincmagazine.com > http://www.djmick.com > http://www.myspace.com/mickknutson > http://www.myspace.com/BLiNCMagazine > http://tahoe.baselogic.com > --- >
Re: Resource relative paths in test cases...
- Absolute pathnames, beginning with "/" are fully qualified file names within the jar file. - Relative pathnames, not beginning with "/" are relative to the class upon which getResourceAsStream is called" Maybe try the getClass().getClassLoader().getResourceAsStream() method with a relative path? Patrick On 9/26/07, James Depaul <[EMAIL PROTECTED]> wrote: > > Sorry, I must be dense, but I do not understand how that thread helps > me... I've tried this code: > > InputStream xml = getClass().getClassLoader().getResourceAsStream("/data/" > + fileName); > return new FlatXmlDataSet(xml); > > But now Eclipse cannot find the files... and neither can Maven. > > My original data xml files are under CodsWebTesting/test/data directory. I > use maven to copy them into 'target\test-classes\data' directory - but maven > is not finding it there when I run mvn test... There's not much I can do > abut the structure of the CodsWebTesting project at this point... > > How could I convince maven to look for these XML files in > /target/test-classes/data dir or some other dir under /target ? > > Thanks, > James > > > > > [image: Inactive hide details for "Wayne Fay" <[EMAIL PROTECTED]>]"Wayne > Fay" <[EMAIL PROTECTED]> > > > > *"Wayne Fay" <[EMAIL PROTECTED]>* > > 09/26/2007 02:47 PM Please respond to > "Maven Users List" > > > To > > "Maven Users List" > cc > > > Subject > > Re: Resource relative paths in test cases... > > This comes up pretty frequently. In the future, try searching the > archives first... > > Here's a search query with a few hits from the last 3 mos: > > http://www.nabble.com/forum/Search.jtp?query=classloader+getclass&local=y&forum=178&daterange=4&startdate=&enddate= > > Wayne > > On 9/26/07, Insitu <[EMAIL PROTECTED]> wrote: > > James Depaul <[EMAIL PROTECTED]> writes: > > > > > Hello - > > > > > > I'm working on maven-izing a project that's composed of three modules. > I > > > have the POMs configured with proper dependencies. Compile all works > now > > > and now I'm tying to execute the Test Cases and have some problems - > it has > > > to do with how Maven resolves the resource locations... > > > > > > The test cases are using DBUNIT framework to insert data into the db > before > > > running. Inside the getDataSet() method in test case I need to create > an > > > InputStream to the XML file that contains the test data for the run. > The > > > code implementation that I have that works perfectly in Eclipse is > this: > > > > > > protected IDataSet getDataSet() throws Exception { > > > String fileName = "cods_user_auth-seed.xml"; // data file > > > URL rootPath = UserAdminUserTest.class.getResource("/data/" + > > > fileName); // root path location + specific location of the file > > > System.out.println("rootPath=" + rootPath); > > > return new FlatXmlDataSet( > > > new FileInputStream(rootPath.getFile())); // get the > file > > > as InputStream > > > } > > > > > > > This assumes "cods_user_auth-seed.xml" is located at > > "src/test/resources": > > > > InputStream xml = > > getClass().getClassLoader().getResourceAsStream("/data/" + > > fileName); > > return new FlatXmlDataSet(xml); > > > > 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] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > >
Re: error: IO exception sun.io.MalformedInputException
Enrique, Are you using the IBM JDK? If so, do you know if your files are explicitly encoded in UTF-8? I've experienced the same problem with the IBM JDK -- the filtering in Maven was munging the bits, causing failures. You might experiment with altering the default filtering, by stating explicitly what your files are encoded in, or turning it off entirely... http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files ? Patrick On 8/13/07, Enrique Gaona <[EMAIL PROTECTED]> wrote: > > > > Hi, > I was wondering if anyone has encountered the "error: IO exception > sun.io.MalformedInputException" in continuum. This error shows up when > the build is executed within continuum, but not from the command > line. Any > ideas? Thanks. > > Compiling 20 source files to > > /opt/continuum/app1/working-directory/3/com.ibm.csdp.cs.dds/CSDPContentGenClient/target/classes > > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] Compilation failure > > error: IO exception sun.io.MalformedInputException > > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 3 minutes 42 seconds > [INFO] Finished at: Mon Aug 13 16:44:33 CDT 2007 > [INFO] Final Memory: 38M/116M > [INFO] > > > Enrique >
Re: skip modules question
mvn -N clean:install On 7/27/07, Timothy Reilly <[EMAIL PROTECTED]> wrote: > > I was wondering .. is there a way to skip building the sub-modules in a > project which is a parent pom and also an aggregator? > > I don't really want to split the pom into parent and aggregator, but I can > if that's the only way. We don't want to skip modules very often. > > > >
Re: Maven: Unable to create a WAR package due to web.xml
See the default for the warSourceDirectory option in maven-war-plugin: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webappDirectory 'webapp' is the default. Patrick On 7/23/07, Vaidya, Supriya A (US - Chicago) <[EMAIL PROTECTED]> wrote: I fixed this by changing my 'web' directory to 'webapp' - just the name. Why is this necessary though? Or did I miss something?!?! From: Vaidya, Supriya A (US - Chicago) Sent: Monday, July 23, 2007 3:16 PM To: users@maven.apache.org Subject: Maven: Unable to create a WAR package due to web.xml Hi: This is very strange... I have the following (legacy!) project structure: src | | main | | config spring java com my package web | | WEB-INF web.xml When packaging this structure to a WAR, the mvn package commands creates the following: target | | classes com my package myjarfile-1.0 META-INF WEB-INF classes com my package lib The problem is, that the web.xml is not being copied over to myjarfile-1.0/WEB-INF. WHich means that the mvn package command fails. What am I doing wrong? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Re: Maven with Perforce
I don't believe right now you can grab the name of the changelist through Maven. It sounds like you are wanting to build the project, and commit the result of that build to your source repository using the name of the changelist as the depot location. If this is the case, I have to ask -- why? You can sync to a Perforce changelist and re-build from that point at any time you want... why commit the output of the build to your depot? On 6/26/07, srinivas ramgopal <[EMAIL PROTECTED]> wrote: Hi Thanks for the prompt reply. A correction to Ib of my original post: I want to do a compile of all the files but I also want to grab the latest changelist name using maven. Is it possible. Also is 1c (from my original post) possible to do thru maven? By the way, I have continum as the builder but need the maven/ant script with above mentioned features for a different purpose. Thanks a lot for your valuable time and input. Patrick Schneider-4 wrote: > > I'm a bit unclear what you mean by "compile the codebase files of the > above > changelist". Do you only want to compile the files affected by the > changelist? If so, that doesn't seem doable. > > You might have a look at the Maven SCM plugin for a description of what it > can do for you: > > http://maven.apache.org/scm/plugins/ > > > Patrick > > On 6/26/07, srinivas ramgopal <[EMAIL PROTECTED]> wrote: >> >> >> Hi all, >> >> I recently started using Maven but still a novice. >> >> Is there a way to make Maven do the following tasks: >> >> 1a) recognize a developer's checkin in Perforce and get the name of the >> related changelist. >> 1b) compile the codebase files of the above changelist. >> 1c) create a new folder in the file system; copy certain files from the >> file >> system into that folder; checkin that folder in a specific location in >> Perforce. >> >> Also is it easy to the above tasks with Ant or Maven. >> >> Thanks in advance for all your valuable input. >> >> -- >> View this message in context: >> http://www.nabble.com/Maven-with-Perforce-tf3985281s177.html#a11315300 >> 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-with-Perforce-tf3985281s177.html#a11316146 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: Maven with Perforce
I'm a bit unclear what you mean by "compile the codebase files of the above changelist". Do you only want to compile the files affected by the changelist? If so, that doesn't seem doable. You might have a look at the Maven SCM plugin for a description of what it can do for you: http://maven.apache.org/scm/plugins/ Patrick On 6/26/07, srinivas ramgopal <[EMAIL PROTECTED]> wrote: Hi all, I recently started using Maven but still a novice. Is there a way to make Maven do the following tasks: 1a) recognize a developer's checkin in Perforce and get the name of the related changelist. 1b) compile the codebase files of the above changelist. 1c) create a new folder in the file system; copy certain files from the file system into that folder; checkin that folder in a specific location in Perforce. Also is it easy to the above tasks with Ant or Maven. Thanks in advance for all your valuable input. -- View this message in context: http://www.nabble.com/Maven-with-Perforce-tf3985281s177.html#a11315300 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: Plug-in snapshots and releases
You cannot (should not) release with SNAPSHOT dependencies. Version 2.0-beta-6 of the maven-release-plugin, however, will allow you release with SNAPSHOT dependencies, so you could try upgrading to that. On 6/18/07, Jon Strayer <[EMAIL PROTECTED]> wrote: I have a project that uses dashboard-maven-plugin which is currently released as a SNAPSHOT only. When I try to start the release process with mvn release:prepare it fails because a plug-in used in a report is a SNAPSHOT. Why? How do I work around this? -- Esse Quam Videre To Be, rather than to Seem
Re: Build number and current date
You might look into the buildnumber plugin: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html Patrick On 4/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: hello, how can I get the current date (formatted in english) and/or build number ?? i.e : something like a property or a filter or a $mvn.something Thanks Nawfel ___ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
Re: Assembly deployment
IMO, what you are doing sounds reasonable. Could you use Ant instead of Perl to deploy on the target machine? If so, you could wrap your Ant script up with the maven-antrun-plugin. You also might look at the Cargo plugin (http://cargo.codehaus.org) if your project is deployed to a container. Patrick On 4/11/07, leonid_ilyevsky <[EMAIL PROTECTED]> wrote: I am using "mvn assembly:assembly deploy" command to upload my distribution to the repository. After that, to deploy it on the target machine, I use a simple Perl script that downloads the assembly using http and then unpacks it. Seems that this is pretty convenient thing, and my distributions are under maven control, with names, versions, etc. I had a discussion with my colleague, and he says that this usage of Maven may be not appropriate, that Maven should be used for libraries and not for executable packages. I would like to hear what maven community thinks about this. Another question: is there a way to download and unpack the assembly using Maven? This would be more organized way for deployment. -- View this message in context: http://www.nabble.com/Assembly-deployment-tf3559994s177.html#a9941672 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: Maven users in the industry
You can also look on the Team List page ( http://maven.apache.org/team-list.html) -- it lists the Organization that each of the contributors work for. Patrick On 4/11/07, Stephane Nicoll <[EMAIL PROTECTED]> wrote: I know numerous software companies in Belgium using Maven in fields such as logistics, banking and geospatial). Cheers, Stéphane On 4/11/07, Gilles Scokart <[EMAIL PROTECTED]> wrote: > > Hi, > > Next week I have to make a presentation to my collegues. I will try to > 'sell' maven, and I would like to say something like "Look, Maven is now > very used in the industry, It's for instance used by ...". > > Did you know any companies using Maven, more particularily in Belgium and > Europe, but worlwide would be ok also? > > > Thanks for your help. > > Gilles > -- > View this message in context: http://www.nabble.com/Maven-users-in-the-industry-tf3557876s177.html#a9934912 > 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: Problem with Tools.jar when building a project with SUN JDK 1.5
Double-check that you've installed the JDK, not the JRE. The JRE does not ship tools.jar. Also, if you've installed *both*, you may want to check that you've installed them to different locations. A conversation about this is here: http://forum.java.sun.com/thread.jspa?threadID=685178&tstart=180 Patrick On 3/31/07, Victor Katte <[EMAIL PROTECTED]> wrote: Hello I am having trouble building with Maven 2 using Sun JDK 1.5. The build is looking for the Sun jar Tools.jar, but I have not got this in the JDK distribution I installed on my system. The JAVA_HOME environment variable is set to point to the location of my JDK( ie JAVA_HOME=c:\SDKs\jdk1.5.0.11) and my platform is Windows XP. The output of the build is given below. Has anyone encountered this problem before? Thankx Vic [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from appfuse [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 1 source file to C:\Source\venus\core\target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure Unable to locate the Javac Compiler in: C:\SDKs\jdk1.5.0.11\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. Unable to locate the Javac Compiler in: C:\SDKs\jdk1.5.0.11\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 19 seconds [INFO] Finished at: Sat Mar 31 15:54:11 BST 2007 [INFO] Final Memory: 9M/17M [INFO] C:\Source\venus>
Re: Maven and Perforce
At what point in the build are you trying to create the label? During a release? On every build? I assume you are trying to use maven-scm-provider-perforce ? On 3/22/07, Aidan O'Donnell <[EMAIL PROTECTED]> wrote: Hi, I am trying to create a label in perforce as part of my build process. I have come across a maven plugin which should help with this but I have not had much success. Has anyone used this successfully before and if so do you have an example from the POM Kind regards, Aidan _ MSN Hotmail is evolving - check out the new Windows Live Mail. http://ideas.live.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple Dependencies List
Hi Ian, Not that I know of -- I believe when you turn the -X output on, you get it all. Patrick On 3/15/07, Dees, Ian (GE Healthcare) <[EMAIL PROTECTED]> wrote: That's getting close... is there a way to disable all of the debug statements that have to do with fetching POMs and JARs from remote repositories that are sprinkled in between the indented text? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 11:16 AM To: Maven Users List Subject: Re: Simple Dependencies List The maven-dependency-plugin [1] might have some functionality available that you would find helpful. Otherwise the output of "mvn -X package" provides some ugly text in an indented fashion, similar to how you've typed it. [1] http://maven.apache.org/plugins/maven-dependency-plugin/usage.html Wayne On 3/15/07, Dees, Ian (GE Healthcare) <[EMAIL PROTECTED]> wrote: > Hi List, > > Is there a maven command/plugin/etc. that I could use to generate a > simple text file that lists all of the dependencies for a certain > project? > > For example, I'd like to see this if I'm in "projectA"'s directory: > > projectA > jarA > jarA-A > jarA-v > jarB > jarS-2 > jarZXY > jarC > jarS-2 > jarZXY > jarS-4 > ... > > Thanks, > Ian > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem /w RelativePath and Multiple level Inheritance
Hi Miguel, You should change the section in your main pom to this: parent son In other words, before son or grandson can be built, you need to build the parent. Cheers, Patrick On 3/14/07, Miguel Angel Hernández <[EMAIL PROTECTED]> wrote: Hi all, My first message was rejected as s p a m sob sob. I have a problem regarding relativePaths, inheritance and aggregation, and need some help please. I tested this in maven 2.0.5 I have the following directory structure main: - pom.xml parent: - pom.xml son: - pom.xml - grandson: - pom.xml Inheritance goes like this: parent > son > grandson; and aggregation goes like: main < son and son < grandson. Whenever I make a fresh mvn install (fresh meaning my local repository is clean w/o anyone of my artifacts) from the main I get and error because son artifact cant find the parent POM. I'm using relativePath to indicate where the son should search for his parent. Here is the code: Main pom: 4.0.0 org.migs.ejemplos maven-test 0.0.1 pom son Parent pom: 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";> 4.0.0 org.migs.ejemplos parent pom 0.0.1 Son pom: 4.0.0 org.migs.ejemplos parent 0.0.1 ../parent/pom.xml org.migs.ejemplos son 0.0.1 pom grandson Grandson POM: 4.0.0 org.migs.ejemplos son 0.0.1 ../pom.xml org.migs.ejemplos grandson 0.0.1 pom And here is a part of the ST: [EMAIL PROTECTED]:~/trabajo/migs.org/ejemplos/maven-test> mvn install -e + Error stacktraces are turned on. [INFO] Scanning for projects... Downloading: http://repo1.maven.org/maven2/org/migs/ejemplos/parent/0.0.1/parent-0.0.1.pom [WARNING] Unable to get resource from repository central ( http://repo1.maven.org/maven2) [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.migs.ejemplos:son:pom:0.0.1 Reason: Cannot find parent: org.migs.ejemplos:parent for project: org.migs.ejemplos:son:pom:0.0.1 [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.migs.ejemplos:parent for project: org.migs.ejemplos:son:pom:0.0.1 at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java :365) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java :115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced (Launcher.java :315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode( Launcher.java :430) at org.codehaus.classworlds.Launcher.main (Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent: org.migs.ejemplos:parent for project: org.migs.ejemplos:son:pom:0.0.1 at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage ( DefaultMavenProjectBuilder.java:1161) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage( DefaultMavenProjectBuilder.java:1176) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal( DefaultMavenProjectBuilder.java:674) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal (DefaultMavenProjectBuilder.java:416) at org.apache.maven.project.DefaultMavenProjectBuilder.build ( DefaultMavenProjectBuilder.java:192) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java :447) at org.apache.maven.DefaultMaven.collectProjects ( DefaultMaven.java :491) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java :491) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java :351) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM ' org.migs.ejemplos:parent' not found in repository: Unable to download the artifact from any repository The thing is when I comment the aggregation part on the son pom (comment the modules section) the main installs correctly, or obviously if I install the parent first. But I t
Re: dependencyManagement does not work with war file
Can you send your parent pom and the ear pom? On 1/29/07, Andi Anderson <[EMAIL PROTECTED]> wrote: did you try putting [1.0,) in the dependancy section of the ear pom for the war? --- Thierry Lach <[EMAIL PROTECTED]> wrote: > I'm working on a small "example" project and am > trying to incorporate a lot > of maven features into it. It's got a main pom and > modules for multiple > jars, a war, and an ear. I've just added > dependencyManagement, but the ear > pom does not seem to pick up the version from the > dependencyManagement and > still requires me to put in the version for the war > dependency. Is this by > intent or is it a bug? > I ka 'olelo ke ola, i ka 'olelo ka make - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Process Question
Interestingly, my organization is trying to figure out the same issue at the moment. The big problem that I see with the 'mvn clean deploy' is that, while the build is numbered, you don't really have any way of reproducing that specific build. That is, the deploy plugin doesn't tag anything in your SCM system. So, even though your SNAPSHOT is unique by virtue of the fact you have a timestamped/numbered artifact, you really don't have a good way to "see" the differences between two uniquely numbered SNAPSHOT builds... maybe this isn't really important, I'm not sure. The nicest thing about a 'clean deploy' is what you brought up -- you can have SNAPSHOT dependencies, whereas in order to do a release, you must remove any such dependencies. This can be a huge undertaking if your project is sufficiently large. I think you are on the right track re: your assessment of the "right" way to use these two plugins. The release plugin is a weightier process -- doing it nightly seems overkill, IMO. Out of curiosity, are they doing the release manually? As far as I know, releasing is generally a somewhat manual process. There is interaction that has to occur with the user, such as determining the next version number, whereas a 'clean deploy' could be automated... Patrick On 1/24/07, Kevan Dunsmore < [EMAIL PROTECTED]> wrote: I'm trying to determine the "right" way to use Maven in our continuous integration environment. Here's our basic process: 1. Code changes are made and checked in to SVN. 2. Cruise Control detects the change and kicks off a build, executing all the tests. This is a local build (maven clean install). 3. Once a day, or on demand, CC kicks off a numbered build (maven clean deploy). This numbered build is tested by QA. So much for the good; now for the bad: We have opposing camps. One camp uses the deploy plugin as illustrated above. The other camp, on a separate project, is executing the above process except that instead of using the deploy plugin, they are using the release plugin. As far as I can see, the use of the release plugin in step 3 goes against its intent. The release plugin is meant for a release to a customer, not for something that happens frequently like a nightly build. Further, the use of the release plugin in this manner restricts the use of cross-project libraries to released versions, since the release plugin enforces that the pom does not depend on any snapshots. I'd like to get the thoughts of the group on this. I may be missing something but I'd far rather use the deploy plugin for nightly builds and the release plugin for packaging the application for release to our customers. Am I wrong? Thanks, Kevan. Kevan Dunsmore Senior Software Engineer SABRIX Inc t: 503.924.4908 f: 503.620.5756 This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information that is protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message and any attachments.
Re: Turning off transitive dependencies in Maven2
I believe creating an exclusion list is your only option. Transitive dependency resolution is not switchable, as far as I know. Patrick On 1/18/07, Munoz, Pablo <[EMAIL PROTECTED]> wrote: Help, I need to figure out how to turn off transitive dependencies in Maven 2. I know which libs I need and don't need any transitive dependencies. Its causing a lot of problem and rather than trying to figure out what should be excluded from about 70 dependencies I'd like to just turn off this feature. Please help! Thanks, Pablo Muñoz | Rodale, Inc. | 733 3rd Ave, New York, NY | 212.573.0349 | aimpmunoz
Re: Error creating multi-module assembly
I think the problem might be in your pom.xml... have you tried the standard stuff? [...] [...] [...] maven-assembly-plugin assembly.xml [...] On 1/14/07, Evan Toliopoulos <[EMAIL PROTECTED]> wrote: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] admin-core [INFO] admin-model [INFO] admin-dao-jdbc [INFO] admin-services [INFO] admin-gui [INFO] admin-application [INFO] Searching repository for plugin with prefix: 'assembly'. [INFO] [INFO] Building admin-core [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: c:\aaa\subversion\trunk\admin-application\..\admin-core\target\admin- core-1.0-SNAPSHOT.jar [INFO] [INFO] Building admin-model [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: c:\aaa\subversion\trunk\admin-application\..\admin-model\target\surefire-reports --- T E S T S --- Running com.emagineinternational.admin.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: c:\aaa\subversion\trunk\admin-application\..\admin-model\target\admin- model-1.0-SNAPSHOT.jar [INFO] [INFO] Building admin-dao-jdbc [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: c:\aaa\subversion\trunk\admin-application\..\admin-dao-jdbc\target\surefire-reports --- T E S T S --- Running com.emagineinternational.admin.AppTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar] [INFO] Building jar: c:\aaa\subversion\trunk\admin-application\..\admin-dao-jdbc\target\admin- dao-jdbc-1.0-SNAPSHOT.jar [INFO] [INFO] Building admin-services [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: c:\aaa\subversion\trunk\admin-application\..\admin-services\target\admin- services-1.0-SNAPSHOT.jar [INFO] [INFO] Building admin-gui [INFO]task-segment: [package] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:tes
Re: Not a circular dependency...
Maybe you could try using the assembly plugin to assemble your final package... and use the assembly descriptor to specify which items should be included in it? This should allow you to remove the pluginArtifact dependency in your applicationArtifact pom. Just a thought... Patrick On 1/11/07, Andrew Franklin <[EMAIL PROTECTED]> wrote: I've got a situation where Maven is telling me I have a circular dependency that should be resolved. Let's say I've got applicationArtifact which provides an interface which I want to consume at compile time in an artifact called pluginArtifact. When applicationArtifact is ready to be packaged, I want to include pluginArtifact in the libs as a runtime dependency. ie. applicationArtifact pluginArtifact runtime pluginArtifact applicationArtifact compile Maven won't compile the above as it cites a circular dependency. This should work because of the following valid order: 1) compile applicationArtifact (ignore pluginArtifact because it's scoped at Runtime) 2) compile pluginArtifact (include a compile time reference to applicationArtifact) 3) package applicationArtifact (which drags in pluginArtifact) How should I solve this issue? Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Just checking my understanding of SNAPSHOT vs real versions
Snapshots are checked once a day by default. You can override this by passing the -U flag, forcing maven to update its snapshots. Here's a good review of snaps, by Brett: http://blogs.maven.org/brett/2005/04/15/1113510156000.html On 1/11/07, Christian Goetze <[EMAIL PROTECTED]> wrote: A "real" version is only downloaded into your local repo if it isn't already there. A SNAPSHOT version is always checked against central (or other outside repos) to see if there is a newer version available. Is that correct? -- cg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding dependant jar to assembly?
Is your project a standalone one or multi-module? Are you using version 2.2of the plugin? It should ship with a predefined descriptor for (what sounds like) your situation -- the jar-with-dependencies descriptor... "can be used for general assembly of a binary package with all the dependency libraries included unpacked inside the archive". http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies Patrick On 1/6/07, Mick Knutson <[EMAIL PROTECTED]> wrote: That did not seem to work. I get all the conf files, but not the DEP. here is my assembly descriptor: tar project-ear/target *.ear xdocs/** ${basedir}/src/main/resources/configs **/*.* assembly-descriptor.xml ${basedir}/src/main/resources/opencms /tomcat/webapps **/*.* org.acegisecurity:acegi-security aopalliance:aopalliance aspectj:aspectj org.springframework:spring assembly-descriptor.xml On 1/6/07, Patrick Schneider <[EMAIL PROTECTED]> wrote: > > Are you using an assembly descriptor? You should be able to specify > things > like which dependencies to include from there. > > Have a look here: > > > http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html > > > Patrick > > On 1/6/07, Mick Knutson <[EMAIL PROTECTED]> wrote: > > > > I have an assembly I am creating, and I need to add some jar > dependencies > > from my local repository into the assembly like acegi-1.0.2.jar etc... > > > > How can I do this? > > > > -- > > Thanks > > > > DJ MICK > > > > (Mick Knutson) > > http://www.djmick.com > > http://www.myspace.com/djmick_dot_com > > http://www.thumpradio.com > > > > > > -- Thanks DJ MICK (Mick Knutson) http://www.djmick.com http://www.myspace.com/djmick_dot_com http://www.thumpradio.com
Re: adding dependant jar to assembly?
Are you using an assembly descriptor? You should be able to specify things like which dependencies to include from there. Have a look here: http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html Patrick On 1/6/07, Mick Knutson <[EMAIL PROTECTED]> wrote: I have an assembly I am creating, and I need to add some jar dependencies from my local repository into the assembly like acegi-1.0.2.jar etc... How can I do this? -- Thanks DJ MICK (Mick Knutson) http://www.djmick.com http://www.myspace.com/djmick_dot_com http://www.thumpradio.com
Re: unable to build
Murugan, Are there any special settings in your settings.xml file? (~/.m2/settings.xml) A 403 response for that artifact is odd -- click on the link; it should work. (Works for me at least.) I assume your internet connection is working on the machine from which you are trying to build? Patrick On 1/5/07, Murugan <[EMAIL PROTECTED]> wrote: Hi kovalen, Thx for yr reply.Stil i get same error. I am new to Maven. can u explain how to build a maven project. kovalen pechaycaren wrote: > > Try version *1.5* for plexus-compiler-manager. > > see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/ > > Kovalen > > -- View this message in context: http://www.nabble.com/unable-to-build-tf2925011s177.html#a8178550 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]