Re: Force snapshots to update always?

2008-02-12 Thread Simon Kitching
Jon Anning <[EMAIL PROTECTED]> schrieb: > Is there a way of setting the behaviour of the -U (--update-snapshots) > switch to be the default when running mvn? Or do I have to set the > updatePolicy element to be true for each given repository? export MAVEN_OPTS="-U" -

Re: damage image files

2008-02-12 Thread Simon Kitching
John Coleman <[EMAIL PROTECTED]> schrieb: > Hi, > > We are finding that our Maven build is damaging jpg and gif files during > the copy of resources into the target area. Is there something in the > config to tell it not to mess with binary resources? Is this an issue > with filters perhaps,

RE: Enforcer Plugin 1.0 release and requirePluginVersions rule

2008-02-12 Thread Simon Kitching
Yep, that does seem to break the convention that Wendy described. enforcer 1.0-alpha-3 is the latest release, 10-JUL-2007. But the site is 1.0-SNAPSHOT 17-JAN-2008. PS: sigh, more top-posting in reply to a bottom-post. Why do people do this? Ben Lidgey <[EMAIL PROTECTED]> schrieb: > > At t

RE: Weird behaviour with dependency range

2008-02-11 Thread Simon Kitching
r error, I'll file a separate issue for this. Regards, Simon "Brian E. Fox" <[EMAIL PROTECTED]> schrieb: > Looks like the same npe as MNG-3372 and MNG-3351 > > -Original Message- > From: Simon Kitching [mailto:[EMAIL PROTECTED] > Sent: Monday

Weird behaviour with dependency range

2008-02-11 Thread Simon Kitching
Hi, I've run across something very odd with dependency ranges. Maven version: 2.0.8 java: 1.6 If I put this in my pom commons-logging commons-logging [1.0.9] then run dependency:tree I get an error: Couldn't find a version in [1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1, 1

Re: Maven Concepts

2008-02-08 Thread Simon Kitching
Stephen Connolly <[EMAIL PROTECTED]> schrieb: > Redeploying a non-SNAPSHOT version is a _bad thing_ as Maven will not > re-download it. Absolutely. Never overwrite an existing deployed file except when it has SNAPSHOT in the version. Builds should be repeatable, ie you should be able to com

Re: Attaching javadoc to a non-maven artefact

2008-02-06 Thread Simon Kitching
Richard Chamberlain <[EMAIL PROTECTED]> schrieb: > Hey all, > > I've got a non maven artefact that i've added to my company repository > with mvn deploy:deploy-file. However i also have the javadoc and would > like to add it to the repo. > > mvn deploy:deploy-file seems to only handle one fi

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Simon Kitching
Simon Kitching <[EMAIL PROTECTED]> schrieb: > Doug Donohoe <[EMAIL PROTECTED]> schrieb: > > Hi Maven Community: > > > > I have added this dependency in my POM: > > > > > > javax.mail > > mail > > 1.4.1

Re: javax.mail and javax.activation in Java 6

2008-02-05 Thread Simon Kitching
Doug Donohoe <[EMAIL PROTECTED]> schrieb: > Hi Maven Community: > > I have added this dependency in my POM: > > > javax.mail > mail > 1.4.1 > > > Which is retrieved from java.net using this POM definition: > > > > java.net > http://download.java.net/ma

Re: howto configure svn access with maven2 using ssh connection

2008-02-05 Thread Simon Kitching
Ulrich Metzger <[EMAIL PROTECTED]> schrieb: > Hi list, > i tryed to configure the scm settings in a maven 2 pom.xml using ssh to > access the remote svn repository. > But i could not find any example or documentation how to manage this. > Does anybody know if this is possible and if yes, how t

Re: Problematic Parent tag.

2008-02-05 Thread Simon Kitching
Two choices: (1) Run "mvn -N deploy" in parent dir. This will deploy just the parent pom, without recursing down into modules. (2) Make the parent pom into its own project. The directory structure would then be rootdir parentpom-module a-module b-module c-module In rootd

Re: parent inheritence (site plugin)

2008-02-05 Thread Simon Kitching
"Ritz schrieb: > Hi User Group, > > I have a project with some submodules and generating the site of the whole > project through executing of the parents level. > I want to display the parent in the left navigation bar. > I found the only way is to do this is the element " inherit="bottom"/>

Re: How to debug transitive dependencies

2008-02-04 Thread Simon Kitching
In the recently-released version of the dependency plugin there is now the possibility to run mvn dependency:tree This should show you why those jars are being pulled in. You will need maven 2.0.8 for dependency:tree to run correctly. Regards, Simon Arash Bizhan zadeh <[EMAIL PROTECTED

Re: bootstrapping repos

2008-02-04 Thread Simon Kitching
Lorenzo Bigagli <[EMAIL PROTECTED]> schrieb: > I put all the in a parent pom, but now of course all > children poms look for their father in the central (and fail)... > Am I doomed to bootstrap the info in the settings, too? Yep. At least the one repository that contains the parent is nee

Re: ignoring test dependencies when you run maven with maven.test.skip=true

2008-02-04 Thread Simon Kitching
Simon Kitching <[EMAIL PROTECTED]> schrieb: > Tests can take a long time to run, so it's useful to sometimes skip that. But > compiling them is not normally something that people want to skip; checking > in code that breaks the compilation of tests should almost always b

Re: ignoring test dependencies when you run maven with maven.test.skip=true

2008-02-04 Thread Simon Kitching
Rohnny Moland <[EMAIL PROTECTED]> schrieb: > Hello, > > I was reading this: > > . > > It works fine if I build my project and run the tests, but what if I > want to just build my project and skip the tests? I get a dependency >

Re: maven renaming jar files

2008-01-31 Thread Simon Kitching
I've certainly done something similar in the past. To reduce network traffic, and to better control what libs are used, it is nice to have a repository on a local server hosting the jars you need. It is very tempting to just take the set of jars you have always been using (in an existing ant-ba

Re: want to save in one folder all dependency jars?

2008-01-31 Thread Simon Kitching
"Krastev schrieb: > Hi all, > please could you tell me is there a maven command which allows you to > save in a predefined folder all POM dependency jars? > say something like: > mvn -xxx C:\temp See the documentation for the dependency plugin: http://maven.apache.org/plugins/maven-depende

RE: Maven2 and artifact versions

2008-01-31 Thread Simon Kitching
"Jörg Schaible" <[EMAIL PROTECTED]> schrieb: > Simon Kitching wrote: > > [snip] > > > Personally, I prefer the second because it is clear to all > > readers that yes a version *is* being specified for this > > dependency. With the dependencyMana

Re: Maven2 and artifact versions

2008-01-31 Thread Simon Kitching
Guillaume Lederrey <[EMAIL PROTECTED]> schrieb: > On 31/01/2008, amidrunk <[EMAIL PROTECTED]> wrote: > > Is there any good way to manage versions of dependencies in maven? In maven1 > > it was possible to define the version in a properties file in a root > > project. Is there something similia

Re: Conflicting Jar Names

2008-01-30 Thread Simon Kitching
This looks to me like a bug (or at least an oversight) in the dependency plugin. I presume this is what you are using to copy all the jars into a directory before building your "installer"? Duplicate artifactIds are not normally a problem for maven; the classpath it builds for compiling, testin

Re: Parent project version

2008-01-29 Thread Simon Kitching
Hi Mick, I don't think there is any way to do what you are trying to do. Having modules in a directory tree is just an optimisation; maven should be able to build any module when it is just checked out on its own. In other words, the tag is just an optimisation that works *when* modules happe

Re: how to detect version conflicts?

2008-01-29 Thread Simon Kitching
[EMAIL PROTECTED] schrieb: > Hi, > > I´ve read about dependencyManagement, versions, version ranges and so on. > But still I have some questions: > > Following example: > > A1.0 references B1.0 > A1.0 references C1.0 > B1.0 references C2.0 > > which version of C will be used (packed in a

Re: How to specify local jars as dependencies?

2008-01-29 Thread Simon Kitching
Andy Grove <[EMAIL PROTECTED]> schrieb: > > Hi, > > I'm currently updating a code generator product to generate maven build > scripts as an alternative to Ant build scripts. Most of the dependencies in > the generated java code are open source jars and I can use the maven > tags for those.

RE: Make META-INF optional

2008-01-29 Thread Simon Kitching
That can be fixed by using the maven-buildhelper-plugin, which can attach any file to maven's list-of-deployable-files. http://mojo.codehaus.org/build-helper-maven-plugin/index.html John Coleman <[EMAIL PROTECTED]> schrieb: > Ah, this does not work, since the zip will not deploy to the m2 r

Re: Make META-INF optional

2008-01-29 Thread Simon Kitching
Yes, I would recommend this too. A jarfile is not just a compressed bundle of files; it is an application or a library. Yes, the sun jar specification says that META-INF is optional, but why would you ever want to leave it out for an app or a library? IMO, a compressed bundle of files without a

Re: [ANN] Maven Dependency Plugin 2.0 Released

2008-01-28 Thread Simon Kitching
Many thanks. I think dependency:tree is possibly the best feature since maven 2.0.0. Erez Nahir <[EMAIL PROTECTED]> schrieb: > Cograts !! that is great. > > Erez. > > On Jan 28, 2008 10:56 AM, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > > > Congrats and big thanks! I'm sure there's been a

Re: Conditionally including a jar file

2008-01-25 Thread Simon Kitching
The commons-logging pom for version 1.1 is screwed up [1]. Upgrade your dependency to 1.1.1 and the problem should go away. [1] commons-logging 1.1 was not build with maven, and so was not in the maven repo. Some external person helpfully provided a pom and installed it into the main repo - but

Re: maven-jar-plugin and maven-ejb-plugin / generate manifest if not present

2008-01-25 Thread Simon Kitching
Maybe you could set the settings to target/resources/META-INF/MANIFEST.MF (or whatever the right path is), and then use maven filtering to transform the "template" in src/main/resources into the form you want. Regards, Simon Julien CARSIQUE <[EMAIL PROTECTED]> schrieb: > Sorry, I didn't

Re: multimodule classpath

2008-01-24 Thread Simon Kitching
John Coleman <[EMAIL PROTECTED]> schrieb: > Hi, > > Is it possible to get a classpath for a multimodule project that > contains all the subproject target/class folders? What would be the point of that? Each module has exactly the classpath it needs, dynamically computed by maven using the

Re: MJAR-90 and empty jar files

2008-01-24 Thread Simon Kitching
Hi Robert, Oliver's proposal seems fine to me. Whatever file you put in the resources directory will just get copied byte-for-byte. So if you want a zero-sized file, put a zero-sized file there. If you want a valid jar with no contents, then create one and put it in the resources dir. What ar

Re: JUnit tests requiring j2ee.jar fail when running mvn surefire:test

2008-01-24 Thread Simon Kitching
Stephen Connolly <[EMAIL PROTECTED]> schrieb: > Don't use the borked j2ee.jar from the java.net or java.net2 maven > repositories. > > I had the same problem. Basically, the j2ee.jar on the java.net repos is > not a real jar, just stripped classes that have no method bodies, but just > the m

Re: about dependence transfer

2008-01-21 Thread Simon Kitching
Guillaume Lederrey <[EMAIL PROTECTED]> schrieb: > On 17/01/2008, Simon Kitching <[EMAIL PROTECTED]> wrote: > > Suppose your project depends on class Foo from project p1 (and so declares > > a compile-scope dependency on p1). > > > > But class Foo extend

Re: about dependence transfer

2008-01-17 Thread Simon Kitching
ght when maven needs a dependency for > compilation, it wouldn't need the transitive dependencies. > > With regards, > > Nick Stolwijk > > Simon Kitching wrote: > > Nick: for maven2, if a pom declares a dependency on something that itself > > has non-opti

RE: about dependence transfer

2008-01-17 Thread Simon Kitching
Nick: for maven2, if a pom declares a dependency on something that itself has non-optional dependencies, then they should get *immediately* downloaded. cmd: is the small bit of config you originally posted nested inside a section? If so, that is wrong. Otherwise, please tell us why you think t

Re: Using unreleased plugin

2008-01-16 Thread Simon Kitching
"Rémy Sanlaville" <[EMAIL PROTECTED]> schrieb: > Try this command : > mvn > org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree That did it. Thanks very much! - To unsubscribe, e-mail: [EMAIL PROTECTE

Using unreleased plugin

2008-01-16 Thread Simon Kitching
Hi, I'd like to run the "dependency:tree" goal against a local project. According to the docs, this goal is only available in 2.0-alpha-5 or later. But that isn't out yet. There is an alpha-5-SNAPHOT though: http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-de

Re: Resources from classpath in JAR

2008-01-16 Thread Simon Kitching
dddzzz <[EMAIL PROTECTED]> schrieb: > > > > Heinrich Nirschl wrote: > > > > > > Put them into src/main/resources. > > > > > > I want them to be in same folder that classes are. That's a reasonable way to structure your code I think. I always used to put resources together with the co

RE: Setting Java System property

2008-01-15 Thread Simon Kitching
Simon Kitching <[EMAIL PROTECTED]> schrieb: > Matthew Tordoff <[EMAIL PROTECTED]> schrieb: > > Thanks for that but I have already looked at the appropriate > > documentation. I have tried setting the system property in all of those > > locations and for

RE: Setting Java System property

2008-01-15 Thread Simon Kitching
Matthew Tordoff <[EMAIL PROTECTED]> schrieb: > Thanks for that but I have already looked at the appropriate > documentation. I have tried setting the system property in all of those > locations and for some reason none of the settings are passed through. I > did find a JIRA bug opened against

RE: Setting Java System property

2008-01-15 Thread Simon Kitching
http://maven.apache.org/ref/current/maven-model/maven.html Search for "properties". Matthew Tordoff <[EMAIL PROTECTED]> schrieb: > I still haven't moved forwards with this. Does any one have any ideas? > > -Original Message- > From: Matthew Tordoff [mailto:[EMAIL PROTECTED] > Sent

Re: Is there a problem with surefire-junit-2.4?

2008-01-14 Thread Simon Kitching
Ben Lidgey <[EMAIL PROTECTED]> schrieb: > Some of our builds here have started failing today as it is unable to > download surefire-junit-2.4-SNAPSHOT artifact. Is there an issue with this? > org.apache.maven.surefire:surefire-junit:jar:2.4-SNAPSHOT > > from the specified remote repositorie

Re: Release plugin for multiple projects with dependencyManagement in parent pom.xml

2008-01-14 Thread Simon Kitching
Guillaume Lederrey <[EMAIL PROTECTED]> schrieb: > On 11/01/2008, Simon Kitching <[EMAIL PROTECTED]> wrote: > > I've never really understood why the dependencyManagement section is useful > > at all. > > > > Why not just have each module declare th

Re: Release plugin for multiple projects with dependencyManagement in parent pom.xml

2008-01-11 Thread Simon Kitching
Simon Kitching <[EMAIL PROTECTED]> schrieb: > I've never really understood why the dependencyManagement section is useful > at all. Just to clarify: I meant using it to define lib versions for child poms, with simple stuff like. .. ... ... Obviously the

Re: Classpath order of dependencies

2008-01-11 Thread Simon Kitching
Marco Huber <[EMAIL PROTECTED]> schrieb: > Hello, > > I have a little problem with the order of my dependencies. > Depending on the posistion of one dependency I get an error during my tests. > > The first pom snippet result in an NoClassDefFoundError: > > ... > > org.hiber

Re: Release plugin for multiple projects with dependencyManagement in parent pom.xml

2008-01-11 Thread Simon Kitching
Aleksandras Skrynikovas <[EMAIL PROTECTED]> schrieb: > Hi, I've browsed the mailing list for a solution but there doesn't > seem to be a clear cut answer. > > Problem: in my app many projects depend on a single parent which uses > dependencyManagement to keep > module versions nice and ti

Re: Maven2 build and package targets' classpath

2008-01-10 Thread Simon Kitching
Filipe David Manana <[EMAIL PROTECTED]> schrieb: > Hi, > > I want to add a JAR archive to the CLASSPATH for the targets build/package. > I don't want to include that JAR archive in my final WAR file. I read the > documentation, and for that purpose I added in my pom.xml the following to > the

Re: Excluding files from JAR

2008-01-10 Thread Simon Kitching
amit kumar <[EMAIL PROTECTED]> schrieb: > Just like WAR can I as well exclude some files from JAR builds as well? Not until the next version of the jar plugin is released. For the moment, the usual workaround is to use the antrun plugin to remove the unwanted files before the jar is created

Re: site plugin with sub module

2008-01-10 Thread Simon Kitching
globulon <[EMAIL PROTECTED]> schrieb: > > I am using the latest version of the maven site plugin. > > In the site.xml file of the top parent project I have introduced the > following : > > > > > > > as a special menu to new projects. > > I have two problems. > > The

Re: how to add additional path to the compiler ?

2008-01-10 Thread Simon Kitching
garyng <[EMAIL PROTECTED]> schrieb: > > I followed this > > http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html > > but it seems that it is being ignored/eaten. > > What I want is to include the "src/main/webapp/WEB-INF/lib" to the compiler > classpa

Continuum: what does default mean?

2008-01-09 Thread Simon Kitching
Hi, On a continuum site, what does the "default" setting mean for a project? Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: A question about in in pom.xml

2008-01-03 Thread Simon Kitching
Heinrich Nirschl <[EMAIL PROTECTED]> schrieb: > On Jan 2, 2008 12:06 PM, Thomas Chang <[EMAIL PROTECTED]> wrote: > > Now I do as follow in the "settings.xml": > > > > > > > > > > 3.8.1 > > > > > > > > > > And it runs successful when I run "mvn clean". But as I run "´mvn

Re: Release killed by site config/how do you create multi module site with correct links?

2007-12-31 Thread Simon Kitching
Hi Paul, Sundling, Paul wrote: > > Already wasted over a day on this, so maybe someone else can give me an > idea how to do it. There are two parts to this, generating a site of a > multi module project with the correct links and the strange failure I > get when doing a release if site config

p tags lost after ul tag

2007-08-26 Thread Simon Kitching
Hi, I'm trying to update xdoc-format docs for the myfaces-orchestra project but have encountered something weird. Of course I'm using "mvn site" to build the website. But when I have foo bar para1 para2 in the document then the and tags following the list are not present in the genera

Re: accessing artifacts in local repository from pom expressions or antrun scripts

2006-08-03 Thread Simon Kitching
Maybe use the maven-dependency-plugin, which according to the docs can copy the set of dependencies to an arbitrary directory, and strip off version numbers? On Thu, 2006-08-03 at 00:25 +1000, J. Matthew Pryor wrote: > I am using the native-maven-plugin to compile C source for the ATmelplatform >

Re: [M2] Executing a single lifecycle phase

2006-08-03 Thread Simon Kitching
You can run a single goal with mvn plugin-name:goal-name However if you've got a phase that has multiple goals bound to it, then I don't know any way to run all those goals but not the goals bound to earlier phases. Regards, Simon On Thu, 2006-08-03 at 16:56 +0800, Maria Odea Ching wrote: > H

RE: maven-surefire-plugin - turn off for "test", turn on for "integration-test"?

2006-07-27 Thread Simon Kitching
Hi Chris, I don't think it's "bending" maven to run two lots of unit tests, "normal" and "integration". An section defines invocations of the specified plugin *in addition* to the standard one. If you want to skip the standard run, or restrict the set of classes it runs, then do that inside the

RE: How to deselect classes while creating jar?

2006-07-27 Thread Simon Kitching
No, unfortunately the maven-jar-plugin for maven 2.x does not support includes/excludes at the current time: http://jira.codehaus.org/browse/MJAR-30 You can of course control what goes into the jar by using includes/excludes at the *compile* stage, if that's appropriate for your project. If not,

Re: Expansion of maven variables

2006-07-25 Thread Simon Kitching
Hi Gilles, Thanks for your comments. On Mon, 2006-07-24 at 23:48 -0700, Gilles Scokart wrote: > ${project.classpathElements} can be used when your parameter is a List . > Here you want to place it in a String. True, and maybe that's the problem. The things that are working are all of type Strin

Re: Help!checkStyle [m2]

2006-07-24 Thread Simon Kitching
On Tue, 2006-07-25 at 05:29 +, narayan dhumale wrote: > > Hi, I want to build the project with Checkstyle(where Java coding conventions > are applied) using maven 2.0.3.Please suggest me the wayout You want the maven-checkstyle-plugin of course :-) http://maven.apache.org/plugins/maven-c

Expansion of maven variables

2006-07-24 Thread Simon Kitching
Hi, I'm confused by the availability of maven variables, in particular ${project.testClasspathElements}. In a surefire config section, I've got this: **/DumpProps.java test.finalName ${project.build.finalName}

maven-jar-plugin: include/exclude functionality?

2006-07-24 Thread Simon Kitching
Hi, I need to build 3 jars from the classes created by a module; a "full" jar and two jars that contain subsets of the available classes. Binding the jar:jar goal to the package phase using causes it to run fine, but I can't see any includes/excludes option for this plugin in the documentation.

Re: Classpath for integration tests

2006-07-24 Thread Simon Kitching
Sorry, please ignore previous email. The problem is that my unit test is explicitly looking for junit via the system classloader. Of course surefire is loading junit via a custom classloader. Regards, Simon On Tue, 2006-07-25 at 10:34 +1200, Simon Kitching wrote: > Hi, > > I'm t

Classpath for integration tests

2006-07-24 Thread Simon Kitching
Hi, I'm trying to write a maven2 pom.xml for commons-logging. Running the unit tests is a little tricky, because there are lots of tests that explicitly configure their own classpath, using the artifacts created during the build process. I've therefore got a set of unit tests that run in the norm

Re: log4j.properties expendable and ignored

2006-05-12 Thread Simon Kitching
Hi, I've just gone through all the JIRA issues for SUREFIRE and can't see any such issue. If it is true that src classes come before test classes then I agree an issue should be raised. Ido, you could just add a test which does System.out.println( this.getClassLoader().getResource("log4j.

Re: Dependency on war file in local repository.

2006-05-12 Thread Simon Kitching
On Fri, 2006-05-12 at 10:21 +0200, [EMAIL PROTECTED] wrote: > Hello List, > > I am a new user with Maven, so please excuse me if I am asking a trivial > question. > > My question is that I have a 3rd party war file, which I would like to > extend with some additional functionality. I read that

Re: Downloading poms

2006-05-11 Thread Simon Kitching
On Tue, 2006-05-09 at 09:53 -0700, Tim McCune wrote: > On Tue, 2006-05-09 at 22:25 +1200, Simon Kitching wrote: > > Even if your process is just doing a copy, a pom file is a fairly simple > > xml file. I'm sure your automated process could be enhanced to generate > >

Re: Problems with javax.sql:jbdc-sqlext download

2006-05-11 Thread Simon Kitching
On Wed, 2006-05-10 at 11:39 -0400, McGarr, Joseph M wrote: > All: > > > > I cannot download the javax.sql:jdbc-sqlext:jar:2.0 from the ibiblio > repository. it appears that this jar was never added correctly, only > the sources, the pom and their checksum files exist in the repository, > but n

Re: [m2] internal repository with jars but no pom

2006-05-09 Thread Simon Kitching
On Tue, 2006-05-09 at 00:48 -0700, barth wrote: > I am stupid... and not patient enough !!! > After the hundreds of "unable to get resource..." for the pom files, it > downloads directly the jars. Therefore I have just had to wait a bit. And if you really can't be bothered to install pom files in

Re: Downloading poms

2006-05-09 Thread Simon Kitching
On Mon, 2006-05-08 at 16:08 -0400, Alexandre Poitras wrote: > If I remember correctly, Maven 2 was able to work without pom in the past > but in the end there were so many jars coming without pom that they decided > to remove the option. But I could be wrong. I'm pretty sure maven2 works fine with

Re: Downloading poms

2006-05-09 Thread Simon Kitching
On Mon, 2006-05-08 at 11:50 -0700, Tim McCune wrote: > On Mon, 2006-05-08 at 13:36 -0500, Wayne Fay wrote: > > When you installed those dependencies in your local repo, did you use > > -DgeneratePom=true ? > > > > If not, reinstall the 3rd party artifacts and use that parameter so > > poms are c

Re: Odd Compilation Issue

2006-05-05 Thread Simon Kitching
On Fri, 2006-05-05 at 14:20 -0700, Sean McNamara wrote: > I'm having a VERY odd compilation problem and am at a loss for why it would > occur. We're in the process of moving from Maven v1.1 to Maven 2. We ported > the project.xml files over to pom.xml, and succeeded in getting the build > goin

Re: Issues downloading from repos

2006-05-04 Thread Simon Kitching
Hi, You can also put true in your settings.xml file to disable remote access permanently, once you've managed to download all the necessary dependencies. http://maven.apache.org/ref/current/maven-settings/settings.html Regards, Simon On Wed, 2006-05-03 at 15:21 +0200, Kees de Kooter wrote: >

Re: Artifacts reference in Maven2

2006-05-02 Thread Simon Kitching
On Wed, 2006-05-03 at 08:31 +0200, Sharma, Jaikumar wrote: > Dear Maven Users, > > Can I use third party libraries (required by build process to compile / test > sources etc.) which are located in application installed location in the > filesystem without installing them into local repository ?

Re: [m2] Is there any way to override the default filter pattern for resources?

2006-04-29 Thread Simon Kitching
On Sat, 2006-04-29 at 16:09 -0400, Colin Sampaleanu wrote: > Hi, > > When turning on filtering for resources in Maven2, is there any way to > override the default filter string pattern of '${token}'? I can't find > any mention of any way to customize this, in any docs. > > The use of ${token}

Re: Explain multi-module support in M2

2006-04-28 Thread Simon Kitching
Hi Clifton, Note that there are two different concepts here. (a) A "parent pom" is a pom whose attributes are inherited by any pom whose tag points at it. (b) A "module pom" uses tags to point at directories containing pom files. Whenever the "module pom" is specified, the phase/goal is execut

Re: New to Maven

2006-04-27 Thread Simon Kitching
On Wed, 2006-04-26 at 09:59 -0700, ajayasahoo wrote: > I am new to Maven. > > I have downloaded maven-2.0.4 and following the Maven Getting Started Guide. > > I am under How do I make my first Maven project? and issue the following > command > > mvn archetype:create -DgroupId=com.mycompany.app -

Re: issue with mvn clean install

2006-04-27 Thread Simon Kitching
Yep, that looks like the cause to me. if ${basedir} is mapping to ".", then when maven tries to delete the "output directory" it would end up deleting the "Project A" dir, just as shown. Try removing the outputDirectory elemnt from the pom (so it defaults to its normal value). Cheers, Simon On

Re: [ANN] Free Maven 2 Book now available: Better Builds with Maven

2006-04-27 Thread Simon Kitching
On Thu, 2006-04-27 at 17:52 +0900, Youngho Cho wrote: > Hello > > When I tried, I got > 'Not a Valid email address, please try again.' > popup message > > How can I download it ? Yep, looks like mergere's download page is brain-dead. The address [EMAIL PROTECTED] works fine. The address [EMAIL

Re: issue with mvn clean install

2006-04-27 Thread Simon Kitching
This is very odd. Normally, "mvn clean" would simply run "mvn clean" in each of the defined modules. That's certainly what it does for me. The child modules would then respond by (normally) deleting the "target" directory, to get rid of any old .class directories etc. What does your project A's p

Re: [M204] Can't replace propertise in settings.xml

2006-04-26 Thread Simon Kitching
Hi Michael, Is your profile "user-properties" actually *active*? mvn help:active-profiles There are many ways of activating a profile (as described in the maven docs). The most direct one is: mvn -P user-properties ... Regards, Simon On Wed, 2006-04-26 at 10:52 +0200, [EMAIL PROTECTED] wro

Re: Getting root parent POM artifactid

2006-04-26 Thread Simon Kitching
Hi, I believe that it is not possible to access artifactId/version/etc from parent poms. However it is possible to define properties in the parent pom which are accessable from the dependent projects. Cheers, Simon On Tue, 2006-04-25 at 15:14 +0400, javed mandary wrote: > ${project.artifactId}

Re: Dependencies Options

2006-04-25 Thread Simon Kitching
On Mon, 2006-04-24 at 21:25 -0400, Alexandre Poitras wrote: > On 4/24/06, Brandon Goodin <[EMAIL PROTECTED]> wrote: > > "tons of advantages" - please quantify this. > > Well distributing internal corporation dependencies and managing the > version, especially nightly build is way easier using Mave

RE: [M2] - Third party artifact installation / parse error in POM

2006-04-25 Thread Simon Kitching
On Tue, 2006-04-25 at 08:54 +0200, Sharma, Jaikumar wrote: > Thanks Tim for useful tip, I installed the thirdparty artifact, but did > not use the option as you mentioned -- (-DgeneratePom=true). I would do > this and let you know the results. Note: there are some jars (in particular, Sun stuff li

Re: Dependencies Options

2006-04-24 Thread Simon Kitching
Hi, I agree with much of what Brandon is saying. For *open source* projects, Maven's repository is really useful; the minor inconveniences are worth living with. In particular, such projects need to conserve disk space and network bandwidth; checking in jars for each project is therefore a bad id

Re: m2 Can a web project depend on source code from other web project

2006-04-22 Thread Simon Kitching
On Sat, 2006-04-22 at 03:25 -0500, Gautham Pamu wrote: > Hi Everyone, > > I have strange scenario. I have two web projects, one web project A is > accesing code from another web project B. Since > RAD allows it, the developer add the dependency on another web project in > RAD. > > Even though I d

Re: modules

2006-04-21 Thread Simon Kitching
On Sat, 2006-04-22 at 15:32 +1000, Torsten Curdt wrote: > I am currently playing with converting commons-jci to maven2 and > while doing that I would like to separate out the individual > compiler implementations. > > So I delegated the implementations into modules. But as soon > as defined them i

RE: SVN paths when adding an m2 pom with module declarations

2006-04-20 Thread Simon Kitching
_ From: Simon Kitching [mailto:[EMAIL PROTECTED] > > I specified the URL to this pom in continuum 20040414. Continuum correctly > added each of the child modules as a separate "project". However the SVN > urls are not set right. For example, the "core&

RE: SVN paths when adding an m2 pom with module declarations

2006-04-20 Thread Simon Kitching
Hi Emmanuel, _ From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 7:57 PM To: continuum-users@maven.apache.org Subject: Re: SVN paths when adding an m2 pom with module declarations Simon Kitching a écrit : > Hi, > > I've got a

NullPointerException: version was null

2006-04-19 Thread Simon Kitching
Hi, I am trying to use the assembly:assembly goal. However when I run my pom, I get the exception shown below. Any ideas?? BTW, I'm pretty sure that when I looked at ibiblio a day or two ago, Spring 1.2.6 was the latest available on ibiblio. There is now an org/springframework/spring/1.2.7 availa

SVN paths when adding an m2 pom with module declarations

2006-04-19 Thread Simon Kitching
Hi, I've got a pom with this: scm:svn:http://.../trunk common/core common/business transactions/transaction-server transactions/payment-server transactions/billing-server transactions/im_handset_sim management I specified the URL to this pom in continu

RE: struts config generation

2006-04-19 Thread Simon Kitching
Hi Dorileo, I'm not sure if there is a better way, but you can always run an ant task or ant buildfile from maven, so you could use your existing solution for config file generation. See the antrun plugin: http://maven.apache.org/plugins/maven-antrun-plugin/introduction.html

Re: Customized directory structure to produce artifacts / classes ?

2006-04-19 Thread Simon Kitching
On Wed, 2006-04-19 at 12:43 +0200, Sharma, Jaikumar wrote: > Dear Maven Users! > > M2 build produces standard directory structure as a result of build > process, is it possible to override the same and customize --- compile, > package, JAR, WAR, JavaDocs etc to the folder structure as per th

RE: Dependency Management, Prioritize Repositories - Internal, Central, etc.

2006-04-19 Thread Simon Kitching
On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote: > Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM: > > > Problem: > > I have a custom JAR (built by our team) installed in my local > > repository, and yet every time I do a build, Maven attempts > > to download > > it from C

Re: use of proxies

2006-04-14 Thread Simon Kitching
On Fri, 2006-04-14 at 11:55 +0200, Emmanuel Venisse wrote: > If you don't want to use repo1 repository but your own, you must define a > mirror in your > settings.xml like this: > > >. >. > > >local >Local Mirror of http://repo1.maven.org/maven2/ >http:

RE: use of proxies

2006-04-13 Thread Simon Kitching
Hi, Note that there are two types of repositories (as was pointed out earlier in this thread): -- holds "library" jars and -- holds "plugin" jars I believe that to completely disable downloading of *libraries* from the standard "library" repository hosted by ibiblio (and aliased from repo1.ma

Re: Override a phase?

2006-04-13 Thread Simon Kitching
On Wed, 2006-04-12 at 06:42 -0700, Kevin Carroll wrote: > Is there any way to override a phase? I am building a jar file that needs to > pull in > dependencies so I have a custom ant task (classdepandjar) that does it. The > maven > lifecycle still executes the default package phase and builds

Re: Specifying the location of web.xml in the POM

2006-04-13 Thread Simon Kitching
On Tue, 2006-04-11 at 22:42 +0100, Gareth Western wrote: > Hi, > > I'm playing around with an old project in Maven, trying to see how to > upgrade our current build scripts. Unfortunately we do not use the > recommended directory structures, therefore I've specified an alternate > sourceDirectory

Re: [M2] How to ensure reproducible releases?

2006-04-10 Thread Simon Kitching
On Mon, 2006-04-10 at 12:17 +0200, Jörg Schaible wrote: > Hello folks, > > what is the best way to ensure reproducible releases in M2? By default Maven > will update its plugins and dependencies from time to time - which is fine as > long as I work on the trunk. But when I release an artifact, I

Re: How to pack two jars in one project?

2006-03-29 Thread Simon Kitching
On Wed, 2006-03-29 at 13:32 +0200, Dennis Kempin wrote: > Hello, > > I just discovered maven and I am really impressed by this project! > To migrate my project to maven I am searching for a way to create two jar > files in one project. > > I would like to have a "./src/main/api" folder besides

  1   2   >