[M2] Remote Repository

2005-06-16 Thread Edwin Punzalan
Hi, I tried to override the default remote repository in my pom.xml: repositories repository idmaven/id nameMaven repository/name urlhttp://foo:[EMAIL PROTECTED]/maven/url /repository /repositories However, m2 seems to be using the above

Re: [M2] Remote Repository

2005-06-16 Thread Brett Porter
Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Hi, I tried to override the default remote repository in my pom.xml: repositories repository

Re: How do I add 2 numbers in jelly?

2005-06-16 Thread Wim Deblauwe
It works now. The problem was that one of my variables was a string, not a number. Using the XPath function 'number()' solved this. 2005/6/15, Wim Deblauwe [EMAIL PROTECTED]: I'll check out the resource tomorrow for more info. I already tried the statement you say, but it did not seem to work.

JEXL arithmatic strangeness

2005-06-16 Thread Wim Deblauwe
Hi, does somebody know why division does not work in JEXL? I have the following fragment: x:set var=nrOfProjects select=count(//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()])/ x:forEach var=passRate select=//[EMAIL PROTECTED]'junitpassrate'][not(text()='-')][text()] x:set

Re: [m2] error downloading resources:resources

2005-06-16 Thread Nicolas Chalumeau
I remember to have discuss about it but it was probably on the common list... The resources:resources is an internal test artifact that the commons-configuration use to execute some test. I thought it was fixed ! I fix it in my local repo by change its scope to test. Nicolas 2005/6/16, Brett

RE: [m2] error downloading resources:resources

2005-06-16 Thread Anil Arora
Should it be the responsibility of the component owner to define the scope for the dependencies in the pom file? If you look at this component, there are a lot of dependencies and each with their own set of dependencies. For example, shouldn't junit be a test dependency? A. -Original

AW: relative personal stylesheet location

2005-06-16 Thread Daniel Frey
If I create a new file xdocs/stylesheets/project.css and do a maven clean site, then I get the following header in my index.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html head titleZiele - $pom.name/title

AW: [ANN] Maven Artifact Plugin 1.5.2 released

2005-06-16 Thread Daniel Frey
Works just perfect! -Ursprngliche Nachricht- Von: Brett Porter [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Juni 2005 17:54 An: Maven Users List Betreff: Re: [ANN] Maven Artifact Plugin 1.5.2 released I think you want scpexe://. scp:// uses the built in Jsch provider. - Brett On

Re: [M2] Remote Repository

2005-06-16 Thread Edwin Punzalan
Thanks, Brett. But I tried that and it didn't changed. Please verify... I'll be changing the maven to central inside the id tag right? Brett Porter wrote: Hi Edwin, You need to use the id central to override the normal repository, otherwise both will be used. Cheers, Brett On 6/16/05,

RE: [m2] error downloading resources:resources

2005-06-16 Thread Jason van Zyl
On Thu, 2005-06-16 at 01:01 -0700, Anil Arora wrote: Should it be the responsibility of the component owner to define the scope for the dependencies in the pom file? If you look at this component, there are a lot of dependencies and each with their own set of dependencies. For example,

Re:resource within jar is not being found

2005-06-16 Thread Yann LE DU
Hi Erick, Can you provide any details for reproducibility ? * A B POM contents * A-1.0.jar structure * Java code calling resource.xml Also, you said A depends on B. Didn't you mean the contrary ? Are you using Maven 1.0.2 or 2.0 ? Regards, Yann -- Mail d'origine --- De

[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Hi there, I'm 2-week-old to Maven and trying to build a small webapp with Maven (for POC). The thing is, my corp. is already using Eclipse Web Tools, which forces us into this kind of project structure (I hid test directories for readability) : foo |-- final-foo |-- JavaSource |--

Re:[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
So much for my project tree, all blanks were gotten rid of :) Here is another try : - foo - |-- final-foo - |-- JavaSource - |-- com - |-- ... - |-- WebContent - |-- WEB-INF - |-- ... - |--... Yann -- Mail d'origine ---

Re:[m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Well, this isn't working either, so let's jump to something less readable :) foo foo/final-foo foo/final-foo/JavaSource foo/final-foo/JavaSource/com foo/final-foo/JavaSource/com/... foo/final-foo/WebContent foo/final-foo/WebContent/WEB-INF foo/final-foo/WebContent/WEB-INF/...

Re: [m2] Overriding webapp source directory

2005-06-16 Thread Edwin Punzalan
Hi, Have you tried setting the |warSourceDirectory| property of the m2 maven-war-plugin? Your pom should look like this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration

Re: [m2] Overriding webapp source directory

2005-06-16 Thread Yann LE DU
Just tried, it works just fine ! I guess I can do the same with any other plugin goal parameter, which I didn't get from the docs. Thanks Edwin ! Yann -- Mail d'origine --- De : quot;Edwin Punzalanquot; [EMAIL PROTECTED] A : quot;Maven Users Listquot;

[m2] Archetype plugin: How can I define my own project skeleton?

2005-06-16 Thread Rahul
Hi, I have a project skeleton/structure that is different from what is generated by Archetype plugin by default. I would like to define a project skeleton that can be used by Archetype to setup projects. I think this is defined by archetype.xml packaged under META-INF in the archetype

Re: [m2] Archetype plugin: How can I define my own project skeleton?

2005-06-16 Thread Emmanuel Venisse
Hi, 1- You need to create a new m2 project like this : http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archetype/maven-archetypes/maven-archetype-quickstart/ that contains : - pom.xml file - src/main/resources/META-INF/archetype.xml file - src/main/resources/archetype-resources

RE: JEXL arithmatic strangeness

2005-06-16 Thread Eric Lapierre
Here is how I do it: j:new var=aBigDecimal1 className=java.math.BigDecimal j:arg type=java.lang.String value=${passrateTotal.toString()}/ /j:new j:new var=aBigDecimal2 className=java.math.BigDecimal

Re: [m2] Archetype plugin: How can I define my own project skeleton?

2005-06-16 Thread Brett Porter
We need an archetype archetype! :) - Brett On 6/16/05, Emmanuel Venisse [EMAIL PROTECTED] wrote: Hi, 1- You need to create a new m2 project like this : http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-archetype/maven-archetypes/maven-archetype-quickstart/ that contains : -

RE: resource within jar is not being found

2005-06-16 Thread Erick Dovale
Hi Yann, Yes, I meant B depends on A. Maven version is 1.0.2. A POM: ?xml version=1.0 encoding=UTF-8? project pomVersion3/pomVersion artifactIdA/artifactId nameA/name groupIdA/groupId currentVersion1.0/currentVersion organization/ inceptionYear2005/inceptionYear

RE: [m2] error downloading resources:resources

2005-06-16 Thread Anil Arora
Next issue on the list...commons-beanutils refers to jdbc-2.0. However, shouldn't this be a compile time only dependency. And if so, why would I need to download it? Maven should know that jdk-1.4 already contains jdbc-2.0. [INFO]

Maven and ejbdoclet/xdoclet examples

2005-06-16 Thread Nathan Sowatskey
Hi I have tried to follow the examples that I can find for Maven and xdoclet, and I have it apparently running, that it doesn't complain about dependencies, but it doesn't seem to be processing my EJB to generate the interfaces and deployment descriptors that I expect. I can get this to

Multiprojects and dependencies list

2005-06-16 Thread Damien Viel
Hi all, Is it possible to have the list off all the dependecies of the projects included in a multiproject build (like in the dependency-convergence report) ? Thanks Damien -- Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]

Re: [M2] Remote Repository

2005-06-16 Thread Brett Porter
Yes, correct. However, do you really want to override the repo, or are you providing a mirror to use instead? It sounds more like the latter, but that has to go in your settings file. - Brett On 6/16/05, Edwin Punzalan [EMAIL PROTECTED] wrote: Thanks, Brett. But I tried that and it didn't

RE: resource within jar is not being found

2005-06-16 Thread Yann LE DU
Erick, There's an erroneous tag in your A POM on line 85 : /dependency /dependency dependency groupIdx10/groupId artifactIdx10/artifactId Maybe it's a coincidence, but the erroneous tag is just before your failing dependency. Please correct it and let me know if your problem persists. Yann

RE: Multiprojects and dependencies list

2005-06-16 Thread Vincent Massol
Hi Damien, Maybe this will help you: http://mavenbook.xwiki.com/xwiki/bin/view/Main/Tip5ListingDependencies -Vincent -Original Message- From: Damien Viel [mailto:[EMAIL PROTECTED] Sent: jeudi 16 juin 2005 17:34 To: 'Maven Users List' Subject: Multiprojects and dependencies list

RE: Multiprojects and dependencies list

2005-06-16 Thread Vincent Massol
Hi Damien, Maybe this will help you: http://mavenbook.xwiki.com/xwiki/bin/view/Main/Tip5ListingDependencies -Vincent -Original Message- From: Damien Viel [mailto:[EMAIL PROTECTED] Sent: jeudi 16 juin 2005 17:34 To: 'Maven Users List' Subject: Multiprojects and dependencies list

Maven 1.1 Beta 1 Released

2005-06-16 Thread Brett Porter
The Apache Maven team is pleased to announce the release of Maven 1.1-beta-1 http://maven.apache.org/start/download.html Maven is a project management and project comprehension tool. Maven is based on the concept of a project object model: builds, documentation creation, site publication, and

Component Descriptor Error Message

2005-06-16 Thread Nathaniel Stoddard
I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs that aren't on Ibiblio. Everything seems to be fine with the exception that I can't actually load anything from it when I declare a

best practices to bundle artifacts other generated files within a war

2005-06-16 Thread jerome lacoste
I have a multiproject webapp and want to bundle in it several files that are artifacts of other projects. And I have trouble identifying the best practices when it comes to bundle all these files in the war. E.g. I use the jnlp plugin to create webstart applications (in target/jnlp). I want these

Re: Component Descriptor Error Message

2005-06-16 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I really have no idea what I'm doing! :) I've created a remote repository on my local drive to hold some JARs

Re: Component Descriptor Error Message

2005-06-16 Thread Nathaniel Stoddard
Unfortunately, that gives me the same error as before. On 6/16/05, John Casey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just a guess, but try using file:///dev/repository... Nathaniel Stoddard wrote: I'm on day one of having Maven build my project, so I

Re: Component Descriptor Error Message

2005-06-16 Thread John Casey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yeah, forgot that the file wagon isn't in the standard maven distro... You *could* try downloading it from here: http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-file/1.0-alpha-4/wagon-file-1.0-alpha-4.jar and putting it in

Re: example hibernate3 configuration for maven?

2005-06-16 Thread Graham King
Hibernate uses pretty much every other open source project ever written. Try this: dependency groupIddom4j/groupId artifactIddom4j/artifactId version1.6/version properties war.bundletrue/war.bundle /properties

RE: Component Descriptor Error Message

2005-06-16 Thread Simon McClenahan
I'm running Maven under Windows, and I was unable to specify the drive letter. Conveniently I do everything on my C: drive, and I have ended up using the following: maven.repo.remote=file:///localhost/projects/online/trunk/,http://www.ib iblio.org/maven/ I know it doesn't seem right, but I

Re: example hibernate3 configuration for maven?

2005-06-16 Thread Mick Knutson
Thanks. Much appreciated. From: Graham King [EMAIL PROTECTED] Reply-To: Maven Users List users@maven.apache.org To: Maven Users List users@maven.apache.org Subject: Re: example hibernate3 configuration for maven? Date: Thu, 16 Jun 2005 12:36:15 +0100 Hibernate uses pretty much every other

Re: Component Descriptor Error Message

2005-06-16 Thread Javier Kohen
Hi Nathaniel, El jue, 16-06-2005 a las 13:39 -0400, Nathaniel Stoddard escribi: I'm getting an error message: [INFO] Main Error: Unsupported Protocol: commons-sandbox:commons-id:0.1-dev:pom from the specified remote repositories: http://repo1.maven.org/maven2,

hibernate pom

2005-06-16 Thread Ryan Sonnek
Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I thought it was the project's responsibility to synchronize with ibiblio?

Re: Maven and ejbdoclet/xdoclet examples

2005-06-16 Thread Dennis Geurts
Hi nathan, the thing is,maven does not complain about missing dependencies ( for instance, the jmx-module is needed, but if you don't addits jar tothe list of dependencies, maven won't tell !!) -- maybethis iseven the cause you're experiencing failure to generate the interfaces... running

Re: hibernate pom

2005-06-16 Thread Emmanuel Venisse
Upload instructions are there : http://maven.apache.org/reference/repository-upload.html Emmanuel Ryan Sonnek wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have nothing to do with it. I

Re: hibernate pom

2005-06-16 Thread Carlos Sanchez
You can do that at http://jira.codehaus.org/browse/MAVENUPLOAD I've manually uploaded the jars. On 6/16/05, Ryan Sonnek [EMAIL PROTECTED] wrote: Who's responsibile to upload the hibernate jars to ibiblio? I opened a ticket with the hibernate team to correct their POM's but they said they have

RE: hibernate pom

2005-06-16 Thread Ryan Sonnek
I've gone through that documentation before. My question is how the current hibernate jars (only released within the last month) got to ibiblio without following these same instructions? there's no POM for versions 3.0.1 - 3.0.5, and current one for 3.0 doesn't have correct dependencies. So,

load a property file before the pom's parsing

2005-06-16 Thread fabrice jean
Hi, We have many maven projects and we'd like to store all the pom's versions in an external property file so in a pom, it would be : ... currentVersion${aProj.version}/currentVersion ... aProj.version is a property defined in this common external property file If i load this property file in

Re: hibernate pom

2005-06-16 Thread Carlos Sanchez
Just put the poms available in some url and write them in a jira issue under mavenuploads. I will upload them to ibiblio. On 6/16/05, Ryan Sonnek [EMAIL PROTECTED] wrote: I've gone through that documentation before. My question is how the current hibernate jars (only released within the last

Re: [M2] Remote Repository

2005-06-16 Thread Edwin Punzalan
What I am trying to do is really the former. I want to override the central repo and probably set the default repo as mirror. However, I've done what you've said yesterday by changing maven to central and it didn't work. Brett Porter wrote: Yes, correct. However, do you really want to

Re: [m2] Overriding webapp source directory

2005-06-16 Thread Brett Porter
Kenney, Btw it's best to prepend ${basedir} to those paths, because if the project is part of a multiproject build the current directory is taken as a starting point which may be bad ;) warSourceDirectory is (or should be!) of type java.io.File, so will automatically have basedir prepended :)

Re: [M2] Remote Repository

2005-06-16 Thread Brett Porter
Ok, please file a bug. Sounds like a regression. Thanks, Brett On 6/17/05, Edwin Punzalan [EMAIL PROTECTED] wrote: What I am trying to do is really the former. I want to override the central repo and probably set the default repo as mirror. However, I've done what you've said yesterday by

Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Shane Isbell
For my current project, I am testing a migration from ANT to Maven 2.0 (alpha 2). I have encountered an issue that I am unable to resolve. I have a single source tree, but I need to compile and package a JAR for two different platforms: J2SE and CDC. I have built two separate pom.xml files:

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Brett Porter
In Maven, a POM is a unit of work, so a project must have just one. Usually, targetting multiple platforms involves setting up multiple projects. pom.xml - parent that has modules/ for the following: +- foo-common/pom.xml - shared information +- foo-j2se/pom.xml - j2se specific build, depends on

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Shane Isbell
Hi Brett, The use case is as follows: Each sub project has a single set of source files. The developer sets a target flag to CDC or J2SE. Depending on the flag, the build tool compiles the Java source files under either CDC or J2SE. In the case of CDC, the build tool uses a different

Problem of targetting two JDK versions

2005-06-16 Thread Donszelmann, Mark
Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on the compiler, thus delivering jar files for jdk 1.4 and jdk 1.5, so that is ok. However, if I depend

Re: Problem of targetting two JDK versions

2005-06-16 Thread Shane Isbell
Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a library is written in both java 1.4 and java 1.5. I understand that the -source and -target options can be set on

Re: Problem of targetting two JDK versions

2005-06-16 Thread Brett Porter
And my answer is the same as the one in Shane's thread :) On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: Yep, I need that option as well. Shane On 6/16/05, Donszelmann, Mark [EMAIL PROTECTED] wrote: Hi I was wondering if Maven 2 handles (or is going to) the situation where a

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Shane Isbell
Say the project structure is something like myproject ---pom.xml +--subproject 1 ---pom.xml +--subproject 2 ---pom.xml In this case, the pom.xml[myproject] is the parent project. What I am trying to find out is if there is way to type m2 {target -CDC} install and

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Brett Porter
Yes, this is supported through profiles in alpha-3. You can try it from SVN today, or wait for the release next week. Some of the repository support may still need some work, so we'd be interested to hear your experiences. Cheers, Brett On 6/17/05, Shane Isbell [EMAIL PROTECTED] wrote: By

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Shane Isbell
By separate executions, I mean separate executions of xml.pom[myproject]. On 6/16/05, Shane Isbell [EMAIL PROTECTED] wrote: Say the project structure is something like myproject ---pom.xml +--subproject 1 ---pom.xml +--subproject 2 ---pom.xml In this case, the

RE: Problem of targetting two JDK versions

2005-06-16 Thread Donszelmann, Mark
Hi well, that answers my question, but developers using my library would have to say exactly which version (read target) they would need... I understand it is pretty late in the design phase, but would the following scenario not make sense: I have one library (for which I maintain 3 source

Re: Problem targeting two platform builds with Maven 2.0

2005-06-16 Thread Brett Porter
This sounds more like a profile solution, where the developer picks which one they want to use. m2 --profile=CDC package m2 --profile=j2se package You said earlier you wanted to have a parent project that would build both, though. Can you elaborate on that? This is the part that is not currently

RE: Problem of targetting two JDK versions

2005-06-16 Thread Donszelmann, Mark
oh, and... typically library developers would target for the lowest JDK version available/possible so that users can keep running things on older JDKs. and of course as long as SUN keeps their JDKs backward compatible. Regards Mark Donszelmann -Original Message- From: Donszelmann,

Re: load a property file before the pom's parsing

2005-06-16 Thread fabrice jean
Hi dan, We have +10 projects and some of them are allready using inheritance for ohter purposes, i was wondering if there was a maven.properties.load=c:/shared/versions.properties it would be simple and would avoid inheritance --- dan tran [EMAIL PROTECTED] a crit : put it in