Where is the version scheme in Maven documented?

2008-01-12 Thread Sahoo
Hi, Where is the version scheme for Maven specified? I have found some links [1,2,3] where it is briefly described, but none seems to be complete. Thanks, Sahoo [1] http://docs.codehaus.org/display/MAVEN/Extending+Maven+2.0+Dependencies [2] http://docs.codehaus.org/display/MAVEN/Versioning [3

[solved] any maven support for "macros" ?

2008-01-12 Thread nicolas de loof
FYI, I've found an interesting solution in apache CXF : mvn -Psetup --> does a fast-minimal build and runs eclipse:eclipse The idea is to use a profile to bind some plugins to validate phase. Nico. 2008/1/9, nicolas de loof <[EMAIL PROTECTED]>: > > The assembly plugin requires the package goal

Re: Getting version at runtime

2008-01-12 Thread Wayne Fay
When Maven builds a jar, it writes a file named pom.properties to: /META-INF/maven///pom.properties It looks like this: #Generated by Maven #Thu Sep 13 15:43:41 PDT 2007 version=2.0 groupId=org.apache.maven.plugins artifactId=maven-ant-plugin You can just read this file directly to access the ver

Getting version at runtime

2008-01-12 Thread Chris
My app needs to know its version at runtime (so it can log it). I could just hardcode the version into one of the classes, but I'm concerned that the hardcoded version could get out of sync with the tag in the pom file. Is there a way for Maven to write the in the pom into a class at build

RE: Maven 2.1 release

2008-01-12 Thread Brian E. Fox
I think John is wrapping up a few issues before an alpha goes out. -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Friday, January 11, 2008 11:11 AM To: Maven Users List Subject: Maven 2.1 release Hi all, Is there any expected timeframe for the first stab (an alp

Re: Newbie: libraries out of date in repository

2008-01-12 Thread Wayne Fay
As shown in the mvnrepository.com search engine: http://www.mvnrepository.com/artifact/quartz/quartz Quartz 1.5.2 is the most recent release available in Maven. You will need to contact the Quartz dev team and ask them to please deploy/upload a newer version into the repo. Wayne On 1/12/08, Chr

Re: No OSGi APIs in Maven repositories

2008-01-12 Thread Sahoo
Stuart McCulloch wrote: On 13/01/2008, Sahoo <[EMAIL PROTECTED]> wrote: I am sorry; I did not check correctly. I see them in m2 repository, but the groupId is still org.apache.felix. Should such standard artifact not be available with a vendor neutral groupId? you mean like: htt

Newbie: libraries out of date in repository

2008-01-12 Thread Chris
Sorry for such a noob question: How do get the most up-to-date libraries into my project? I'm using Eclipse with the m2eclipse plug-in. I enable dependency management, pick Add Dependency off the menu, and try to add the Quartz library. The Repository Search dialog offers me only Quartz 1.5.

Re: Where to find mirros for spring2?

2008-01-12 Thread Wayne Fay
As Simon sent earlier: http://repo1.maven.org/maven2/org/springframework/spring-core/ (look at the version numbers... latest is 2.5.1) Wayne On 1/12/08, Thomas Chang <[EMAIL PROTECTED]> wrote: > HI all, > > I am looking for the mirrors for spring2. I've looked into several central > mirrors but

Maven jetty:run loads resources from wrong directory

2008-01-12 Thread Shalin Shekhar Mangar
Hello Maven Users, My question is related to the maven jetty plugin with the goal jetty:run. I'm trying to use this plugin to cut down the build/test/change cycle time. However, when I try to use MyClass.class.getClassLoader().getResourceAsStream("foo.bar"), it tries to load foo.bar from src/main

Re: No OSGi APIs in Maven repositories

2008-01-12 Thread Stuart McCulloch
On 13/01/2008, Sahoo <[EMAIL PROTECTED]> wrote: > > I am sorry; I did not check correctly. I see them in m2 repository, but > the groupId is still org.apache.felix. Should such standard artifact not > be available with a vendor neutral groupId? you mean like: http://repo1.maven.org/maven2/org

Re: No OSGi APIs in Maven repositories

2008-01-12 Thread Sahoo
I am sorry; I did not check correctly. I see them in m2 repository, but the groupId is still org.apache.felix. Should such standard artifact not be available with a vendor neutral groupId? Thanks, Sahoo Sahoo wrote: [posting to both felix and maven user forums] Hi, I don't seem to find OSGi

No OSGi APIs in Maven repositories

2008-01-12 Thread Sahoo
[posting to both felix and maven user forums] Hi, I don't seem to find OSGi API jars in standard Maven repositories. I find a version in http://people.apache.org/repo/m2-incubating-repository/ under the groupId org.apache.felix. But, I was expecting to find these standard APIs in the standar

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno
thanks for your Olivier , it works now! i forgot to make a clean in the target folder so that's why the files were always present ! regards The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Olivier Lamy
The excludes field in the jar plugin is to exclude content from ${project.build.outputDirectory} not to exclude resources. In order to exclude resources have a look here [1]. I don't really understand your jar plugin configuration. Can you try a more simple : org.apache.maven.plugi

Where to find mirros for spring2?

2008-01-12 Thread Thomas Chang
HI all, I am looking for the mirrors for spring2. I've looked into several central mirrors but htey just have spring1. Somebody knows? Regards Thomas - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.

Re: Where to find the mirror for spring*. jars?

2008-01-12 Thread Wayne Fay
Also use www.mvnrepository.com search engine to find the proper nodes to use for a given dependency you are searching to add to your project. For example, here's a search for "spring": http://www.mvnrepository.com/search.html?query=spring The search engine (and Maven in general) does assume that

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno
Thanks Olivier (and Jochen and Dennis), it is now building without any error but the xsd files is always here i'm gonna try with Ant task to if it is working ! regards Hi, Can you try with : **/*.xsd -- Olivier 2008/1/12, supareno <[EMAIL PROTECTED]>: Hel

Re: internationalization (i18n) of XML files during process-resources phase

2008-01-12 Thread Farrukh Najmi
It turns out my requirements were fairly specialized where for each localizable string I needed to add several elements (one for each locale). I have decided to use xslt-maven-plugin for the task. Thanks. Wayne Fay wrote: Tell us more about what exactly you're trying to do (what's your input, a

Re: Remote repository with self signed cert

2008-01-12 Thread Todd Nine
Thanks for the info. I've actually already performed those steps, its what I did to import the certificate in order to get the dav deployment to work with a self signed cert. It turns out that this was a routing issue with the VPN routing. Its since been fixed. Thanks to everyone for all the he

Generating a site for the company pom

2008-01-12 Thread Nick Stolwijk
I'm busy with making a company pom and now I wanted to generate a site for it. This site should contain information about the declared dependencies, the configuration of the reporting and such. Has someone already tried this and have some pointers or examples? With regards, Nick Stolwijk ---

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Dennis Lundberg
The excludes configuration is a set of things to exclude. It needs to be configured like this: **/*.xsd supareno wrote: Hello guys i read the previous threads about exclusion with interest because i am always confronted with the "excludes" problem i followed all the steps: changed my se

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Jochen Wiedmann
On Jan 12, 2008 3:59 PM, supareno <[EMAIL PROTECTED]> wrote: > [INFO] Failed to configure plugin parameters for: > org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT > > (found static expression: '**/*.xsd' which may act as a default value). Configuration problem on your side, use

Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Olivier Lamy
Hi, Can you try with : **/*.xsd -- Olivier 2008/1/12, supareno <[EMAIL PROTECTED]>: > Hello guys > > i read the previous threads about exclusion with interest > because i am always confronted with the "excludes" problem > > i followed all the steps: > changed my

Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno
Hello guys i read the previous threads about exclusion with interest because i am always confronted with the "excludes" problem i followed all the steps: changed my settings.xml to enable snapshot plugin repositories... (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositori

Re: Packaging HTML/JavaScript files into WAR from outside project

2008-01-12 Thread Manos Batsis
David Harkness wrote: When building the java webapp, I'd like some HTML and JS files to be packaged into the WAR, but those files live in the "html" and "javascript" directories instead of in "java/src/main/webapp". What's the appropriate plugin to use in this case? On a side note, there are ot

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

2008-01-12 Thread Dennis Lundberg
Please have a look at the documentation for the Tomcat Manager Application: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html Thomas Chang wrote: Yes. I can open http://localhost:8080/manager/html. In this page this is a table where there is "/manager". If I click it, I got the error

Re: Cobertura

2008-01-12 Thread Stephen Connolly
Use xml html The xml file is a standard cobertura xml report On Jan 11, 2008 8:43 PM, Wayne Fay <[EMAIL PROTECTED]> wrote: > Modify the Cobertura plugin so it does what you want. ;-) > > It is open source, after all. > http://mojo.codehaus.org/cobertura-maven-plugin/ > > Wayne > >

Re: Continuum: what does default mean?

2008-01-12 Thread simon
Ah, I see. So clicking on "build" at the higher level will only run nested build definitions with default=true. That makes sense. Thanks Olivier & Wendy for your help. I'll subscribe to the continuum list and ask there if I have any further questions. On Fri, 2008-01-11 at 22:23 +0100, Olivier La

Re: Where to find the mirror for spring*. jars?

2008-01-12 Thread simon
On Sat, 2008-01-12 at 11:20 +0100, Thomas Chang wrote: > Hi all, > > I use spring in my project. And I use maven2. In the "pom.xml" I have to > set the version of the dependencies. I wonder where can I the mirror site > which suply the spring*.jar with version number. I go to the spring ho

Where to find the mirror for spring*. jars?

2008-01-12 Thread Thomas Chang
Hi all, I use spring in my project. And I use maven2. In the "pom.xml" I have to set the version of the dependencies. I wonder where can I the mirror site which suply the spring*.jar with version number. I go to the spring homepage and there are different version of spring package. But eac

Re: Packaging HTML/JavaScript files into WAR from outside project

2008-01-12 Thread Insitu
> > When building the java webapp, I'd like some HTML and JS files to be > packaged into the WAR, but those files live in the "html" and > "javascript" directories instead of in "java/src/main/webapp". What's > the appropriate plugin to use in this case? > Hello, Don't know if it's possible, but t

Re: Remote repository with self signed cert

2008-01-12 Thread Insitu
Hello, I managed to deploy/download from https sites with client side authentication following this guide: http://maven.apache.org/guides/mini/guide-repository-ssl.html Maybe you could provide more information on your configuration (pom + settings) ? Regards, -- Arnaud Bailly, PhD OQube - Sof