Re: How can I get dependency including its children

2009-09-02 Thread Anders Hammar
Ok, (sub-)moduls of a project are not (that project's) dependencies. Two different things. This is the key thing here. What you need to do is to define dependencies to all of your dependencies. Your dependencies' dependencies (aka transitive dependencies) will be included automatically. So, in your

Re: How can I get dependency including its children

2009-09-02 Thread youhaodeyi
This is not Transitive. The children dependencies mean its sub models. Alexander-129 wrote: > > Transitive dependencies are included automatically. > > 2009/9/3 youhaodeyi > >> >> I added a dependency in my pom.xml file and I want to add its children >> automatically. How can I do this? >> -

M2 site-plugin: Roadmap for 2.2

2009-09-02 Thread Bruno Marti
Which is the roadmap/timeline for release 2.2? And will Doxia 1.1.2 be included? http://jira.codehaus.org/browse/MSITE-419 http://jira.codehaus.org/browse/MSITE-419 -- View this message in context: http://www.nabble.com/M2-site-plugin%3A-Roadmap-for-2.2-tp25270282p25270282.html Sent from the M

Re: How can I get dependency including its children

2009-09-02 Thread Alexander
Transitive dependencies are included automatically. 2009/9/3 youhaodeyi > > I added a dependency in my pom.xml file and I want to add its children > automatically. How can I do this? > -- > View this message in context: > http://www.nabble.com/How-can-I-get-dependency-including-its-children-tp25

How can I get dependency including its children

2009-09-02 Thread youhaodeyi
I added a dependency in my pom.xml file and I want to add its children automatically. How can I do this? -- View this message in context: http://www.nabble.com/How-can-I-get-dependency-including-its-children-tp25268684p25268684.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Getting Maven project resources (Eclipse)

2009-09-02 Thread zagu2
Good thinking, shouldn't bee to hard to be written either. I'd like it more dynamic, though :) On the other hand, I just had a doh! moment. Seems like new File(".").getAbsolutePath() gives the execution folder in Eclipse (and not the classpath root where the class is, like getClass().getResource("

Re: Getting Maven project resources (Eclipse)

2009-09-02 Thread James Russo
zagu2 wrote: I suppose there are more examples of this. In general, it's - I want to load many files and not have to specify what in two places - as files themselves (which already contain a name) and as a list of resources (which just duplicate the file names) Understand..How about some type of

Re: Getting Maven project resources (Eclipse)

2009-09-02 Thread zagu2
Correct - I want to have an option of getting many files at once. In my case, it's the Spring configuration - I have many applicationContext*.xml files that I just need aggregated, but there are many other cases - Hibernate mappings, different kinds of property files, etc. The main motivation is

Tests Not Running After Executing SQL Script

2009-09-02 Thread Neil Chaudhuri
I am using Surefire and Failsafe to perform unit testing and integration testing respectively. In the latter case, I want to run a sql script in the pre-integration-test phase to put the database into a known state (not using DBUnit but the same idea). Here is what I have in my pom:

Re: Getting Maven project resources (Eclipse)

2009-09-02 Thread James Russo
Hello, I just started with Maven also, but it appears that when you are running your test case the classpath will be set to both testproject/target/classes and testproject/target/testclasses. Are these resources you need for a test or something and you won't know how many are there? ie: y

Getting Maven project resources (Eclipse)

2009-09-02 Thread zagu2
I'm using Eclipse and m2eclipse. Say I have a project like this: testproject - src -- main --- java MainClass.java --- resources 1.txt 2.txt -- test --- java TestClass.java --- resources 3.txt Now, I can have some code in TestClass doing something like: this.getClass().

RE: mvn sonar:sonar

2009-09-02 Thread Arnaud X Dostes
This has been covered many times in the sonar user mailing list, check the archive, you'll find your answer : http://mojo.codehaus.org/sonar-maven-plugin/mail-lists.html -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent

[ANNOUNCE] Apache Archiva 1.2.2 Released!

2009-09-02 Thread Deng Ching
The Apache Archiva team is pleased to announce the release of Archiva 1.2.2 Apache Archiva is an extensible repository management software that helps taking care of your own personal or enterprise-wide build artifact repository. It is the perfect companion for build tools such as Maven, Continuum,

Re: mvn sonar:sonar

2009-09-02 Thread Anders Hammar
I think the sonar mailing list is a better option than this generic maven mailing list (for this type of sonar specific issue). /Anders On Wed, Sep 2, 2009 at 13:46, Peter Horlock wrote: > Hi, > > I am using hte maven sonar plugin and recently updated to the 1.10.1 > server version. > Since then

mvn sonar:sonar

2009-09-02 Thread Peter Horlock
Hi, I am using hte maven sonar plugin and recently updated to the 1.10.1 server version. Since then I got: [exec] [INFO] Sonar plugin (1.7) and server (1.10.1) version do not matchExclusionPattern. [exec] Either update your server to the 1.7 plugin version or launch [exec] the mvn org.

Re: Sun jersey jars

2009-09-02 Thread Anders Hammar
Which repo have you checked? I found some artifacts at the java.net maven repo. If you specify the GAV it will be easier. /Anders On Wed, Sep 2, 2009 at 13:04, Bert 1 Waltniel wrote: > Hi > > I got an error compiling my project. > > I'm using Sun Jersey. > > The error is that maven was unable to

Re: Building mvn site with flat project hierarchy

2009-09-02 Thread Antonio Petrelli
2009/9/2 Pilgrim, Peter : > Is there a way to view the site in this exploded directory? You might be interested in the site:stage goal: http://maven.apache.org/plugins/maven-site-plugin/stage-mojo.html HTH Antonio - To unsubscri

Sun jersey jars

2009-09-02 Thread Bert 1 Waltniel
Hi I got an error compiling my project. I'm using Sun Jersey. The error is that maven was unable to download the depending jar's from the repository. I have checked manually the maven repository and all the jar's from Sun Jersey are gone. Does anybody has a solution? Kind regards Bert Walt

Building mvn site with flat project hierarchy

2009-09-02 Thread Pilgrim, Peter
Hi Can Maven build the "site" multi-model poms organised in a flat hierarchy? For example If I have folders like this /home/peterp/workspace/ /home/peterp/workspace/acme-master /home/peterp/workspace/acme-core /home/peterp/workspace/acme-ejbs /home/peterp/workspace/acme-ear

Re: XMLBeans Schema's not Jar generating

2009-09-02 Thread Anders Hammar
Did you try it? If you have the xsd files in your project, you specify that as described under "Basic Usage" in the link you provided. If the xsd files are in a separate artifact, you do it as described under "Schema Jar Support" (and change the artifact reference as appropriate). /Anders On Wed,

Re: XMLBeans Schema's not Jar generating

2009-09-02 Thread Stuff_Me
Thanks for the quick response Andres geronimo:geronimo-tomcat So you mean to say, repalcing the geronimo:geronimo-tomcat to my specific xsd file will work. like Let say my xsd names are one.xsd, and two.xsd then one.xsd two.xsd Please suggest this On Wed

Re: XMLBeans Schema's not Jar generating

2009-09-02 Thread Anders Hammar
Please, re-read the text in the link you provided carefully. It states that IN THE EXAMPLE geronimo-tomcat jar is expected to be a dependency. In your application, you would depend on some other artifact that contains the schema. Just change the value of hte xsdJar element. /Anders On Wed, Sep 2,

XMLBeans Schema's not Jar generating

2009-09-02 Thread Stuff_Me
Hi to All, I am using Maven with XMLBeans Plugin as mentioned in the http://mojo.codehaus.org/xmlbeans-maven-plugin/usage.html Now in the example, the geronimo-tomcat jar is expected to be a listed depedency of the project. As I am new to Maven, I don't want to use geronimo-tomcat and make the pro

Re: sure-fire plug in, no class def found error on TestCase?

2009-09-02 Thread Wayne Fay
> org.apache.maven.surefire.booter.SurefireExecutionException: TestCase; > nested exception is java.lang.NoClassDefFoundError: TestCase > java.lang.NoClassDefFoundError: TestCase Googling "NoClassDefFoundError TestCase" gave me this in the first two hits: http://www.mail-archive.com/users@maven.ap

Re: Labeling recursive to the top with maven-release-plugin and Clearcase?

2009-09-02 Thread Anders Hammar
I think that this is a ClearCase specific issue. I've run into similar problems, which we solved by manually adding the label to the parent folders of 'myproject'. If you create a jira for some kind of automatic support for this, I'll vote for it. Possibly, there is one already; I haven't checked.

Labeling recursive to the top with maven-release-plugin and Clearcase?

2009-09-02 Thread torsten . reinhard
Hi, we´re using Base ClearCase as SCM. the scm section in the pom.xml looks like: ... scm:clearcase:load /AAA/BBB/src/root/myproject ... ... When releasing a project, the source is tagged, based on the auto-generated configSpec, which looks like element * CHECKEDOUT element