eclipse plugin for maven - first letter missing in .classpath file
Hi all. I've found the following e-mail about Eclipse plugin and I think I have the solution. Eclipse plugin resolves path attribute using canonical file names. In some cases, for example when the localRepository [settings.xml] is setted to a root drive letter in MS-Windows boxes like M:\, the canonical name maintain the backslash. So, the method that calculates the relative path, returns the path without the first letter. There are a workaround to resolve this: Never use a root drive letter (or root / in posix boxes) as localRepository. I suggest to use instead a sub folder. I've posted a patch in Jira to fix that problem, of course, after someone else validate and test that patch. Regards Márcio Guedes http://jira.codehaus.org/browse/MECLIPSE-261 Hello I have a problem with eclipse plugin for maven 2 (i'm using maven 2.0.6). it generates wrong .classpath file - all classpath entries describing external jars have missing first letter (after M2_REPO env variable). let take an example: i found that someone already had this problem with maven, but there was no solution for it. do anybody know how to deal with that ? thanks in advance Kamil Pietak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: isXX vs getXX
I do not know much about the requirements of Oracle SOA compared to JAXB, but could you do the following: public boolean getAttribute() { return isAttribute(); } public boolean isAttribute() { return attribute; } - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Saturday, June 02, 2007 5:23 PM Subject: isXX vs getXX Hello, similar as plug-in from: http://fisheye5.cenqua.com/browse/~raw,r=1.1/jaxb2-commons/www/boolean-getter/index.html does I have the following problem: Oracle SOA-OC4J expects getXX method to perform data binding and JAXB uses isXX. and I use Maven to compile/deploy services Is there similar funcional solution for Maven/Jaxb/OC4J? Thanks Ned - 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: any way to exclude many or all transitive dependencies with ?
It's a feature for Maven 2.1. The single exclude to prune a whole section of the graph. On 1 Jun 07, at 3:10 AM 1 Jun 07, nicolas de loof wrote: Hello, Spring 2.1-m2 changed spring packaging and I had to revisit my POM. I get lot's of dependencies conflicts as many other dependencies introduce old spring modules as transitive dependencies. I'll have to set a huge number of to make it work. Is there any way to use exclude with some patterns, like : org.springframework * ? I've tried to provide only groupId (no artifactId) but this doesn't work as I expected. Nico. Thanks, Jason -- Jason van Zyl Founder and PMC Chair, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: invoke maven from java
I just updated the embedder guide so it's accurate now. Note that the embedder is only for the code in trunk which is slated for 2.1. On 31 May 07, at 9:07 PM 31 May 07, 張旭 wrote: Thanks to Jiaqi Guo. But I also found maybe maven-embedder can give me some help (http://maven.apache.org/guides/mini/guide-embedding-m2.html). On 5/30/07, Jiaqi Guo <[EMAIL PROTECTED]> wrote: Check $M2_HOME/bin/mvn please. .. exec "$JAVACMD" \ $MAVEN_OPTS \ -classpath "${M2_HOME}"/boot/classworlds-*.jar \ "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \ "-Dmaven.home=${M2_HOME}" \ ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS So in a typical case, "mvn compile package" will be java -cp $M2_HOME/boot/classworlds-*.jar -Dclassworlds.conf=$M2_HOME/bin/m2.conf -Dmaven.home=$M2_HOME org.codehaus.classworlds.Launcher "compile package" It's an application loaded by classworlds. By digging into m2.conf, you can find out that the actual main class is org.apache.maven.cli.MavenCli. Regards -Jiaqi 張旭 wrote: > Hi, everyone. Is there a way to invoking maven from java code? Thanks in > advance. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks, Jason -- Jason van Zyl Founder and PMC Chair, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven not respecting order of profiles passed in on the command line
On 6/3/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 6/2/07, EJ Ciramella <[EMAIL PROTECTED]> wrote: > I hate to bump my original email - but can someone from the dev side > please let me know what to expect here? > > We're 100% wedged at this point. The issue you linked to [1] is marked fixed for 2.1-alpha-1, which has not yet been released. The dev list is a better place to ask about whether it will be fixed in 2.0 (I assume not, or else the issue would have been left open,) and about the status of Maven 2.1 development. [1] http://jira.codehaus.org/browse/MNG-2309 Why are you relying on profile order anyway? You should be able to avoid using profiles. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.junit always missing after mvn clean, but available after the first build
We would need to see your POM to see what's going on. On 26 May 07, at 5:42 PM 26 May 07, Joe-D Morrison wrote: I’m running into a strange Maven problem. I’m listing junit as a dependency in the usual way, i.e. junit junit 4.1 test When I build the project cleanly: mvn clean install I get a bunch of error messages related to junit not being found, e.g. [INFO] Compilation failure C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \service\common\aaa\PermissionBundleTest.java:[5,17] package org.junit does not exist C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \service\common\aaa\PermissionBundleTest.java:[6,17] package org.junit does not exist C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \cops\service\principal\SessionEndTest.java:[5,17] package org.junit does not exist C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \cops\service\principal\SessionEndTest.java:[6,17] package org.junit does not exist C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \service\common\aaa\EntityFactoryTest.java:[5,17] package org.junit does not exist C:\perforce\COPS\cops-service\branches\morrjoed\src\test\java\com\db \cops\service\validation\ValidationServiceTest.java:[9,17] package org.junit does not exist … and so on… But when I build the second time: mvn install it works properly. Can anyone suggest an explanation for this? I can always run “mvn install” twice, so this isn’t a critical issue. But I’d really like to understand what’s going on. I’m not changing pom.xml between runs, so there must be some state in the target directory that’s causing it to find org.junit when it couldn’t be found earlier. Thanks for any help, - Joe -- Joe Morrison Deutsche Bank, 60 Wall Street, 8th floor office: +1 (212) 250-8486mobile: +1 (917) 952-2935 --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thanks, Jason -- Jason van Zyl Founder and PMC Chair, Apache Maven jason at sonatype dot com -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overriding Plugin settings in a child POM
Hi All, using: Maven 2.0.4 I defined the checkstyle reporting plugin in my parent pom, and for a specific child project I want to skip the generation of this report. I tried this: parent pom: ... org.apache.maven.plugins maven-checkstyle-plugin ... and in the child pom org.apache.maven.plugins maven-checkstyle-plugin true hoping that this would override the parent settings but it persists to generate the report. Any idea ? regards Jerome T.
isXX vs getXX
Hello, similar as plug-in from: http://fisheye5.cenqua.com/browse/~raw,r=1.1/jaxb2-commons/www/boolean-getter/index.html does I have the following problem: Oracle SOA-OC4J expects getXX method to perform data binding and JAXB uses isXX. and I use Maven to compile/deploy services Is there similar funcional solution for Maven/Jaxb/OC4J? Thanks Ned - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can a POM import a profile from anothe POM?
I agree! This I said: "if they truly all have the same profiles and profile deps", which in your case fails - they share some, but not all share the same ones. In the spirit of idea exchange...if you really don't want poms having duplicate deps, profiles, etc., I would consider using multiple parent poms. One of the things I've done for my current customer is multiple "base poms". There is the master base pom that they all use eventually extend from, and every component uses every dependency in that top base pom. I'm sure you can imagine the next tier or two having one or a few poms. Each component's pom extends from the correct parent pom so it has only the deps necessary from the lineage. Component specific info is in its own pom. There are only a handful of parent poms, so it is not unwieldy. The thing I like is the "change it in one place". It's just like a class hierarchy in the end, but pom info instead :-). It is a very large system (approaching 12,000 classes) and many components (jars, wars, ear - web apps and batches), and this structure helps us ensure all components have the same dep versions per release as we need. This still has the inconvenience of new versions for _all_ poms when the top-level master changes, but it is fine for me (and a smaller impact when a different parent pom changes). Things usually change when many components are in development mode; hence they are all in SNAPSHOT versions anyway. I would appreciate a "better way" suggestion or two if someone has any ideas. This is what works well for us. -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 2:15 PM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Jeff, My projects fit into the following groups: o jars containing business logic o jars containing common utilities o wars for specific application servers All of the above may share a parent POM, but why should a project that produces a "jars containing business logic" be affected when a profile that it does not use, like "cargo_tomcat_test", is updated? Like you, I am just sharing my thoughts. The more we understand how something is used, the better decision we can make. Worse yet, we may learn something new in the process :) Paul Spencer Jeff Jensen wrote: > Hi Paul, > > Indeed, yes. My comment on lack of build reproducibility was addressing the > "shared resource" approach (and you did not suggest), which is usually not > reproducible unless steps are deliberately made to source control the shared > resource in a correct manner (in the codelines of all its dependents); > apologies for not making that clear! :-) > > By the fact that your deps & profiles are in the pom, which is versioned of > its own series, the profiles have the build reproducibility. > > I also was commenting on the "weigh the effort for the benefit" of holding > profiles in a parent pom, which you commented was impractical, but the > benefit of reuse may outweigh the inconvenience, if they truly all have the > same profiles and profile deps. That is kind of stating the obvious, but > wanted to share the thought that it does have value even though I agree it > can be inconvenient... :-) > > > -Original Message- > From: Paul Spencer [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 02, 2007 12:59 PM > To: Maven Users List > Subject: Re: Can a POM import a profile from anothe POM? > > Jeff, > I believe I address your concern, which I share, of build > reproducibility by including a version number on the imported profile's > artifact, essentially making it behave like a dependency. > > Below is the example, which was in my original post. > *** > * POM of project which imports the profiles cargo_tomcat_remote and > * cargo_jetty_remote and selenium-integration-test. > *** > >... >com.foo.applications >webapp_1 >... > > >cargo_tomcat_remote >com.foo.profiles >cargo >1.0 > > ... > > > >cargo_jetty_remote >com.foo.profiles >cargo >1.0 > >... > > >selenium-integration-test >com.foo.profiles >selenium >1.0 > >... > > > > Paul Spencer > > Jeff Jensen wrote: >> One consideration of this though is build reproducibility. While it is >> inconvenient to update all projects depending on the parent POM, it >> facilitates build reproducibility, as the profiles are then correctly >> versioned. A "shared resource" is not usually setup to facility a >> reproducible build. What that means is consider the importance of >> reproducible builds vs the effort to manage parent pom releases vs keeping >> them separate in their own respective poms. >> >> >> -Original Message- >> From: Armin Ehrenfels [mailto:[EMAIL PROTECTED] >> Sent: Saturday, June 02, 2007 11:02 AM >> To: Maven Use
Re: Can a POM import a profile from anothe POM?
Jeff, My projects fit into the following groups: o jars containing business logic o jars containing common utilities o wars for specific application servers All of the above may share a parent POM, but why should a project that produces a "jars containing business logic" be affected when a profile that it does not use, like "cargo_tomcat_test", is updated? Like you, I am just sharing my thoughts. The more we understand how something is used, the better decision we can make. Worse yet, we may learn something new in the process :) Paul Spencer Jeff Jensen wrote: Hi Paul, Indeed, yes. My comment on lack of build reproducibility was addressing the "shared resource" approach (and you did not suggest), which is usually not reproducible unless steps are deliberately made to source control the shared resource in a correct manner (in the codelines of all its dependents); apologies for not making that clear! :-) By the fact that your deps & profiles are in the pom, which is versioned of its own series, the profiles have the build reproducibility. I also was commenting on the "weigh the effort for the benefit" of holding profiles in a parent pom, which you commented was impractical, but the benefit of reuse may outweigh the inconvenience, if they truly all have the same profiles and profile deps. That is kind of stating the obvious, but wanted to share the thought that it does have value even though I agree it can be inconvenient... :-) -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 12:59 PM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Jeff, I believe I address your concern, which I share, of build reproducibility by including a version number on the imported profile's artifact, essentially making it behave like a dependency. Below is the example, which was in my original post. *** * POM of project which imports the profiles cargo_tomcat_remote and * cargo_jetty_remote and selenium-integration-test. *** ... com.foo.applications webapp_1 ... cargo_tomcat_remote com.foo.profiles cargo 1.0 ... cargo_jetty_remote com.foo.profiles cargo 1.0 ... selenium-integration-test com.foo.profiles selenium 1.0 ... Paul Spencer Jeff Jensen wrote: One consideration of this though is build reproducibility. While it is inconvenient to update all projects depending on the parent POM, it facilitates build reproducibility, as the profiles are then correctly versioned. A "shared resource" is not usually setup to facility a reproducible build. What that means is consider the importance of reproducible builds vs the effort to manage parent pom releases vs keeping them separate in their own respective poms. -Original Message- From: Armin Ehrenfels [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 11:02 AM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Paul Spencer wrote: Armin, I did not know about profiles.xml, but this does not meet my requirements. Since I used Continuum on a different server in addition to developers on Windows and Unix machine, the use of symbolic links will not work. Indeed, my suggestion is not helpful in your particular case. The idea of having a "central" profile resource available in a development community sounds interesting to me. Maybe, you should formulate an improvement to maven such as being able to access a network wide profile resource via URL. Good luck. Armin Paul Spencer Armin Ehrenfels wrote: Paul Spencer wrote: I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Hi Paul, you don't need to import a profile. You can store it in a separate file called profiles.xml, located in the same directory as your pom.xml. Maven automatically looks for this file. If you work with an UNIX OS, you probably know symbolic links, so locating a single profiles.xml at a particular place and pointing to it from every module directory is very easy. HTH Armin - 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
RE: Can a POM import a profile from anothe POM?
Hi Paul, Indeed, yes. My comment on lack of build reproducibility was addressing the "shared resource" approach (and you did not suggest), which is usually not reproducible unless steps are deliberately made to source control the shared resource in a correct manner (in the codelines of all its dependents); apologies for not making that clear! :-) By the fact that your deps & profiles are in the pom, which is versioned of its own series, the profiles have the build reproducibility. I also was commenting on the "weigh the effort for the benefit" of holding profiles in a parent pom, which you commented was impractical, but the benefit of reuse may outweigh the inconvenience, if they truly all have the same profiles and profile deps. That is kind of stating the obvious, but wanted to share the thought that it does have value even though I agree it can be inconvenient... :-) -Original Message- From: Paul Spencer [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 12:59 PM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Jeff, I believe I address your concern, which I share, of build reproducibility by including a version number on the imported profile's artifact, essentially making it behave like a dependency. Below is the example, which was in my original post. *** * POM of project which imports the profiles cargo_tomcat_remote and * cargo_jetty_remote and selenium-integration-test. *** ... com.foo.applications webapp_1 ... cargo_tomcat_remote com.foo.profiles cargo 1.0 ... cargo_jetty_remote com.foo.profiles cargo 1.0 ... selenium-integration-test com.foo.profiles selenium 1.0 ... Paul Spencer Jeff Jensen wrote: > One consideration of this though is build reproducibility. While it is > inconvenient to update all projects depending on the parent POM, it > facilitates build reproducibility, as the profiles are then correctly > versioned. A "shared resource" is not usually setup to facility a > reproducible build. What that means is consider the importance of > reproducible builds vs the effort to manage parent pom releases vs keeping > them separate in their own respective poms. > > > -Original Message- > From: Armin Ehrenfels [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 02, 2007 11:02 AM > To: Maven Users List > Subject: Re: Can a POM import a profile from anothe POM? > > Paul Spencer wrote: > >> Armin, >> I did not know about profiles.xml, but this does not meet my >> requirements. Since I used Continuum on a different server in >> addition to developers on Windows and Unix machine, the use of >> symbolic links will not work. > > Indeed, my suggestion is not helpful in your particular case. The idea > of having a "central" profile resource available in a development > community sounds interesting to me. Maybe, you should formulate an > improvement to maven such as being able to access a network wide profile > resource via URL. > > Good luck. > > Armin > >> Paul Spencer >> >> >> Armin Ehrenfels wrote: >> >>> Paul Spencer wrote: >>> I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? >>> >>> Hi Paul, >>> you don't need to import a profile. You can store it in a separate >>> file called profiles.xml, located in the same directory as your >>> pom.xml. Maven automatically looks for this file. If you work with an >>> UNIX OS, you probably know symbolic links, so locating a single >>> profiles.xml at a particular place and pointing to it from every >>> module directory is very easy. >>> >>> HTH >>> >>> Armin >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe,
Re: Can a POM import a profile from anothe POM?
Jeff, I believe I address your concern, which I share, of build reproducibility by including a version number on the imported profile's artifact, essentially making it behave like a dependency. Below is the example, which was in my original post. *** * POM of project which imports the profiles cargo_tomcat_remote and * cargo_jetty_remote and selenium-integration-test. *** ... com.foo.applications webapp_1 ... cargo_tomcat_remote com.foo.profiles cargo 1.0 ... cargo_jetty_remote com.foo.profiles cargo 1.0 ... selenium-integration-test com.foo.profiles selenium 1.0 ... Paul Spencer Jeff Jensen wrote: One consideration of this though is build reproducibility. While it is inconvenient to update all projects depending on the parent POM, it facilitates build reproducibility, as the profiles are then correctly versioned. A "shared resource" is not usually setup to facility a reproducible build. What that means is consider the importance of reproducible builds vs the effort to manage parent pom releases vs keeping them separate in their own respective poms. -Original Message- From: Armin Ehrenfels [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 11:02 AM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Paul Spencer wrote: Armin, I did not know about profiles.xml, but this does not meet my requirements. Since I used Continuum on a different server in addition to developers on Windows and Unix machine, the use of symbolic links will not work. Indeed, my suggestion is not helpful in your particular case. The idea of having a "central" profile resource available in a development community sounds interesting to me. Maybe, you should formulate an improvement to maven such as being able to access a network wide profile resource via URL. Good luck. Armin Paul Spencer Armin Ehrenfels wrote: Paul Spencer wrote: I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Hi Paul, you don't need to import a profile. You can store it in a separate file called profiles.xml, located in the same directory as your pom.xml. Maven automatically looks for this file. If you work with an UNIX OS, you probably know symbolic links, so locating a single profiles.xml at a particular place and pointing to it from every module directory is very easy. HTH Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can a POM import a profile from anothe POM?
One consideration of this though is build reproducibility. While it is inconvenient to update all projects depending on the parent POM, it facilitates build reproducibility, as the profiles are then correctly versioned. A "shared resource" is not usually setup to facility a reproducible build. What that means is consider the importance of reproducible builds vs the effort to manage parent pom releases vs keeping them separate in their own respective poms. -Original Message- From: Armin Ehrenfels [mailto:[EMAIL PROTECTED] Sent: Saturday, June 02, 2007 11:02 AM To: Maven Users List Subject: Re: Can a POM import a profile from anothe POM? Paul Spencer wrote: > Armin, > I did not know about profiles.xml, but this does not meet my > requirements. Since I used Continuum on a different server in > addition to developers on Windows and Unix machine, the use of > symbolic links will not work. Indeed, my suggestion is not helpful in your particular case. The idea of having a "central" profile resource available in a development community sounds interesting to me. Maybe, you should formulate an improvement to maven such as being able to access a network wide profile resource via URL. Good luck. Armin > > Paul Spencer > > > Armin Ehrenfels wrote: > >> Paul Spencer wrote: >> >>> I am finding that profiles are very powerful. As I make more use of >>> them across projects, many of which are unrelated, I find myself >>> copying a profile from one POM to another. Placing profiles in a >>> POM the is extended is impractical because each change to a profile >>> in the POM will prompt a release cycle of the POM and every project >>> that extends the POM. >>> >>> Thus my question, is their a way of importing a profile from another >>> POM? >> >> >> Hi Paul, >> you don't need to import a profile. You can store it in a separate >> file called profiles.xml, located in the same directory as your >> pom.xml. Maven automatically looks for this file. If you work with an >> UNIX OS, you probably know symbolic links, so locating a single >> profiles.xml at a particular place and pointing to it from every >> module directory is very easy. >> >> HTH >> >> Armin >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven not respecting order of profiles passed in on the command line
On 6/2/07, EJ Ciramella <[EMAIL PROTECTED]> wrote: I hate to bump my original email - but can someone from the dev side please let me know what to expect here? We're 100% wedged at this point. The issue you linked to [1] is marked fixed for 2.1-alpha-1, which has not yet been released. The dev list is a better place to ask about whether it will be fixed in 2.0 (I assume not, or else the issue would have been left open,) and about the status of Maven 2.1 development. [1] http://jira.codehaus.org/browse/MNG-2309 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: An undeploy plugin?
On 6/2/07, Kathryn Huxtable <[EMAIL PROTECTED]> wrote: Do you mean "uninstall", as from your local repository, or "undeploy", as in a remote repository? I don't have an answer to your question, since I use Artifactory for my remote proxy and it has tools to undeploy, but I thought clarification was in order. I need to undeploy from a remote repository with webdav or ssh access. It's definitely something Archiva should do, but it's not in there yet. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to tell Maven where to find jar (specify classpath)
You can also point to an existing location in maven public repo ( http://repo1.maven.org/maven2/com/oracle/) When trying to compile, maven will complain not finding the dependecy and output the command required to install the file in the local repository. The POM gives the URL to download the jar You may also deploy it in a corporate/private repository, used as a proxy to maven repo, so that developpers don't have to wory about where it comes from. Nico. 2007/6/2, Michael Meyer <[EMAIL PROTECTED]>: Hi you could try adding the dependency with scope "system" [1]. oracle oracle x.x.x system ${basedir}/lib/oracle.jar Cheers, michael [1] http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html SiSi'mon schrieb: > We have a product we wish to deliver that requires compliation. We have a > pom.xml file that specifies all the dependencies but there is one dependency > (Oracle jdbc jars) for which there is no repository so we must package the > .jar files in a /lib/ directory under our application. > > Outside of this all dependencies can be handled by Maven2. How do you > specify the location of the jar or class files on the maven command line? > we need to tell maven where the ojdbc jars are when it runs. > > thanks > > Si'mon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can a POM import a profile from anothe POM?
Paul Spencer wrote: Armin, I did not know about profiles.xml, but this does not meet my requirements. Since I used Continuum on a different server in addition to developers on Windows and Unix machine, the use of symbolic links will not work. Indeed, my suggestion is not helpful in your particular case. The idea of having a "central" profile resource available in a development community sounds interesting to me. Maybe, you should formulate an improvement to maven such as being able to access a network wide profile resource via URL. Good luck. Armin Paul Spencer Armin Ehrenfels wrote: Paul Spencer wrote: I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Hi Paul, you don't need to import a profile. You can store it in a separate file called profiles.xml, located in the same directory as your pom.xml. Maven automatically looks for this file. If you work with an UNIX OS, you probably know symbolic links, so locating a single profiles.xml at a particular place and pointing to it from every module directory is very easy. HTH Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to tell Maven where to find jar (specify classpath)
Hi you could try adding the dependency with scope "system" [1]. oracle oracle x.x.x system ${basedir}/lib/oracle.jar Cheers, michael [1] http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html SiSi'mon schrieb: We have a product we wish to deliver that requires compliation. We have a pom.xml file that specifies all the dependencies but there is one dependency (Oracle jdbc jars) for which there is no repository so we must package the .jar files in a /lib/ directory under our application. Outside of this all dependencies can be handled by Maven2. How do you specify the location of the jar or class files on the maven command line? we need to tell maven where the ojdbc jars are when it runs. thanks Si'mon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven not respecting order of profiles passed in on the command line
I hate to bump my original email - but can someone from the dev side please let me know what to expect here? We're 100% wedged at this point. -Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 7:31 PM To: Maven Users List Subject: Maven not respecting order of profiles passed in on the command line Hey m2 mailing list - I'm having some issues with getting profiles activated that I'd like. I'm using version 2.0.5 (and tested with 2.0.6 with the same results) and when I do something like: mvn help:active-profiles -Ppersonal,StackDefaults,ca-lime,root I see this: Active Profiles for Project 'lty:app:pom:52.0-SNAPSHOT': The following profiles are active: - personal (source: profiles.xml) - ca-lime (source: profiles.xml) - StackDefaults (source: profiles.xml) - root (source: settings.xml) - personal (source: profiles.xml) - StackDefaults (source: profiles.xml) - ca-lime (source: profiles.xml) - root (source: settings.xml) I can see this is/was a bug: http://jira.codehaus.org/browse/MNG-2309 But I'm still seeing this in both 2.0.5 and 2.0.6. HELP!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: An undeploy plugin?
Do you mean "uninstall", as from your local repository, or "undeploy", as in a remote repository? I don't have an answer to your question, since I use Artifactory for my remote proxy and it has tools to undeploy, but I thought clarification was in order. -K On May 31, 2007, at 11:39 PM, Wendy Smoak wrote: I need to get things *out* of a repository, and would rather not touch the filesystem directly. What would maven-undeploy-plugin look like? Do we already have something that does this? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire 2.4-SNAPSHOT errors
Looks like the collab version works for me. The 2.4-SNAPSHOT still fails, but with a different error (missing property file). Thanks for getting on top of this Brett. I know this is in active development, and appreciate your support. Such are the risks of living on the cutting edge of progress :) Matt Brett Porter wrote: > > I have just deployed a 2.4-collab-SNAPSHOT which *should* be identical > to the previous one in use. It's temporary, but it might help if > 2.4-SNAPSHOT isn't working for you. > -- View this message in context: http://www.nabble.com/Surefire-2.4-SNAPSHOT-errors-tf3847995s177.html#a10927715 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: Can a POM import a profile from anothe POM?
Armin, I did not know about profiles.xml, but this does not meet my requirements. Since I used Continuum on a different server in addition to developers on Windows and Unix machine, the use of symbolic links will not work. Paul Spencer Armin Ehrenfels wrote: Paul Spencer wrote: I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Hi Paul, you don't need to import a profile. You can store it in a separate file called profiles.xml, located in the same directory as your pom.xml. Maven automatically looks for this file. If you work with an UNIX OS, you probably know symbolic links, so locating a single profiles.xml at a particular place and pointing to it from every module directory is very easy. HTH Armin - 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: Can a POM import a profile from anothe POM?
Paul Spencer wrote: I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Hi Paul, you don't need to import a profile. You can store it in a separate file called profiles.xml, located in the same directory as your pom.xml. Maven automatically looks for this file. If you work with an UNIX OS, you probably know symbolic links, so locating a single profiles.xml at a particular place and pointing to it from every module directory is very easy. HTH Armin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can a POM import a profile from anothe POM?
I am finding that profiles are very powerful. As I make more use of them across projects, many of which are unrelated, I find myself copying a profile from one POM to another. Placing profiles in a POM the is extended is impractical because each change to a profile in the POM will prompt a release cycle of the POM and every project that extends the POM. Thus my question, is their a way of importing a profile from another POM? Below is how I would expect to use profile importing. *** * POM of project which imports the profiles cargo_tomcat_remote and * cargo_jetty_remote and selenium-integration-test. *** ... com.foo.applications webapp_1 ... cargo_tomcat_remote com.foo.profiles cargo 1.0 ... cargo_jetty_remote com.foo.profiles cargo 1.0 ... selenium-integration-test com.foo.profiles selenium 1.0 ... *** * POM of project which defines 2 profiles, cargo_tomcat_remote and * cargo_jetty_remote. *** ... com.foo.profiles cargo 1.0 ... cargo_tomcat_remote ... cargo_jetty_remote ... Paul Spencer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire 2.4-SNAPSHOT errors
The new versions solve the ClassNotFound issue. The normal SNAPSHOT has a problem starting the testSuite in TestNG. Is there a specific TestNG version I need to use? (I use 5.5). The 'colab' version works like a charm. [INFO] [surefire:test] [WARNING] useSystemClassloader=true setting has no effect when not forking [INFO] Surefire report directory: d:\eclipse-installs\workspaces\ceres\ceres\support\target\surefire-reports [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Unable to find appropriate constructor to create suite: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.(ja va.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties); nested exception is java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.(java.io.File, java.util.Array List, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties); nested exception is org.apache.maven.surefir e.testset.TestSetFailedException: Unable to find appropriate constructor to create suite: org.apache.maven.surefire.testng.TestNGD irectoryTestSuite.(java.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Pro perties); nested exception is java.lang.NoSuchMethodException: org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.(ja va.io.File, java.util.ArrayList, java.util.ArrayList, java.lang.String, java.lang.String, java.util.Properties) Thanks Brett for the effort. Cheers, Jan Arend Brett Porter wrote: > > I have just deployed a 2.4-collab-SNAPSHOT which *should* be identical > to the previous one in use. It's temporary, but it might help if > 2.4-SNAPSHOT isn't working for you. > > On 02/06/07, Brett Porter <[EMAIL PROTECTED]> wrote: >> Surefire had only been partially deployed. I've just deployed the >> whole thing - try with -U again to see if that corrects the problem >> and let us know if not. >> >> This is under active development and may break - this is why it is not >> released. >> >> If you need to get a hold of the code that was previously deployed, >> you can biuld from this SVN: >> https://svn.apache.org/repos/asf/maven/sandbox/branches/surefire/surefire-collaboration >> >> Cheers, >> Brett >> >> On 02/06/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: >> > Hi! >> > >> > Same exact problem here, even after following all of the steps >> > suggested. >> > >> > Anyone have any work arounds (other than commenting out massive >> sections >> > of my pom.xml file)? >> > >> > >> > >> > >> > >I have got the same problem. >> > > >> > >Can anyone fix the pom? >> > > >> > >[WARNING] POM for >> > >'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' >> is >> > >invalid. It will be ignored for artifact resolution. Reason: Failed >> to> >> > >validate POM >> > > >> > >Jan >> > >> > >> > >2007/5/31, mhargus <[EMAIL PROTECTED]>: >> > >> >> > >> >> > >> I'm getting an error during during the test compile phase after >> > running >> > >> 'mvn >> > >> install'. I'm using the 2.4-SNAPSHOT version of Surefire, and it >> > just >> > >> started blowing up on me today. >> > >> >> > >> >> > >> Here a snippet of the error: >> > >> >> > >> >> > >> [WARNING] POM for >> > >> 'org.apache.maven.surefire:surefire-booter:pom:2.4-SNAPSHOT:runtime' >> > is >> > >> invalid. It will be ignored for artifact resolution. Reason: Failed >> > to >> > >> validate POM >> > >> - >> > >> this realm = >> > >> app0.child-container[org.apache.maven.plugins:maven-surefire-plugin] >> > >> urls[0] = >> > >> >> > >> >> > >> file:/Users/matt/.m2/repository/org/apache/maven/plugins/maven-surefire- >> > plugin/2.4-SNAPSHOT/maven- >> > >> surefire-plugin-2.4-SNAPSHOT.jar >> > >> urls[1] = >> > >> >> > >> >> > >> file:/Users/matt/.m2/repository/org/apache/maven/surefire/surefire-boote >> > r/2.4-SNAPSHOT/surefire- >> > >> booter-2.4-SNAPSHOT.jar >> > >> urls[2] = >> > >> >> > >> >> > >> file:/Users/matt/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/ple >> > xus- >> > >> utils-1.1.jar >> > >> Number of imports: 4 >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> >> > >> >> > >> this realm = plexus.core >> > >> urls[0] = file:/usr/local/maven/lib/maven-core-2.0.6-uber.jar >> > >> Number of imports: 4 >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> import: [EMAIL PROTECTED] >> > >> - >> > >> [INFO] >> > >> >> > >> >> > >> [ERROR] BUILD ERROR >> > >> [INFO] >> > >> >> > >> >> > >> [INF
Merging dependency reports from sibling projects.
I've been trying to get the "site" goal to run for a project that is based on a bunch of siblings instead of a hierarchical structure. However, it would be acceptable to only be able to get a list of all of the dependencies for all of the siblings in a single report. Is there a reasonably simple way to merge either the sites from the siblings or the dependency reports from the same? Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven surefire question
On 01/06/07, SiSi'mon <[EMAIL PROTECTED]> wrote: I am not sure I understand. I want to shut down and cause a ripple effect so that no other tests run. Si'Simon It sounds like you want something like the ANT Junit task haltonerror / haltonfailure attribute. I don't know of a way of doing this with maven[1]; there doesn't appear to be an equivalent setting. Perhaps you need to raise a feature request in JIRA[2] if you really need this functionality. My previous point was that the failure of one test should not cause the failure of lots of other tests: tests should be small and isolated. Cheers, James [1] http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html [2] http://jira.codehaus.org/browse/SUREFIRE James Abley-2 wrote: > > On 31/05/07, SiSi'mon <[EMAIL PROTECTED]> wrote: >> >> >> As I understand it, typically when a JUnit test fails, you want it to >> stop >> right there and report the error (and not continue running tests). >> >> However in some code I recently inherited using the Maven surefire >> plugin, >> a >> test fails and it keeps going, and going and going and in the end reports >> 40 >> test failures. >> >> How do I make it stop and shut down on the first test failure? > > > > Alter the tests so that they are isolated and a failure in one does not > cause a ripple effect. > > > thanks >> >> Si'mon >> -- >> View this message in context: >> http://www.nabble.com/Maven-surefire-question-tf3848991s177.html#a10902420 >> 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-surefire-question-tf3848991s177.html#a10916316 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]