Removing dependency elements using profiles

2009-09-22 Thread Reik Schatz
Hi, I have the following scenario. I have a WAR type project which uses the WAR overlay feature. The WAR overlay is added as dependency as described http://maven.apache.org/plugins/maven-war-plugin/overlays.html here . Now I have the problem, that when building the WAR artefact for production, I

My application is not getting compiled using Maven

2009-09-22 Thread rasahere
Hi, I am using Maven 1.0 and my jdk is 1.5. Now when i am trying to build my application jar i am getting some strange errors. warning: unmappable character for encoding UTF8 [javac] /** [javac] ^ this is just a warning but still the build is failed. I have added maven.compile.sour

Re: Pom type dependency behavior

2009-09-22 Thread Anders Hammar
A project having (child) modules is a different story than a project having dependencies. Modules are not dependencies. So, you declaring a dependencu on an aggregating project (a project with modules) will not add the modules as transitive dependencies. If you have dependencies on any of the modul

Re: some maven basic problem

2009-09-22 Thread Anders Hammar
A good introduction to Maven is this book: http://www.sonatype.com/products/maven/documentation/book-defguide It's free! /Anders On Wed, Sep 23, 2009 at 04:22, maven apache wrote: > I am new in using maven , so some basic problem confusing me: > 1 When I create a new maven project how do I know

RE: java.lang.NoClassDefFoundError: org/apache/log4j/Appender

2009-09-22 Thread GANDZ
Hello, Thanks for your reply. But if I add the org.apache to the group ID, i am having the following error: [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [ERROR] BUILD FAILED [ERROR] Failed to validate POM for project sg.com.star.amrts:amrts-svc at C:\GAN

Issues with maven-android-plugin with maven-proguard-plugin

2009-09-22 Thread prenaud76
Hi all. I am having all sorts of issues with maven-android-plugin together with maven-proguard-plugin. I managed to sort out most of them, but I just can't get rid of this final one. And I just don't understand what's happening really. It works well if I call android:dex separately from progua

some maven basic problem

2009-09-22 Thread maven apache
I am new in using maven , so some basic problem confusing me: 1 When I create a new maven project how do I know which plugin to use? 2 the artifaceID and groupID respent what? 3 I have not use ant or other build tool before,so the pom.xml is stange to me . 4 what is the difference between the maven

RE: using my own archtype

2009-09-22 Thread Edelson, Justin
You need to specify the archetype repository: http://maven.apache.org/plugins/maven-archetype-plugin/generate-mojo.html#archetypeRepository Justin From: Manuel Grau [mailto:mang...@gmail.com] Sent: Tue 9/22/2009 5:47 PM To: users@maven.apache.org Subject: using

RE: Maven on AIX getting Authentication Denied errors

2009-09-22 Thread Jim McCaskey
Wayne, I knew this was the answer I was going to get. I should have prefaced with "Use a repository manager" answers need not apply. :) The answer is I would rather not spin my wheels on that exercise as I won't use it ultimately for a variety of reasons. I suppose your hoping to prove that

using my own archtype

2009-09-22 Thread Manuel Grau
I have created my own archetype, to use with google app engine projects. I have packaged it and installed to my local repository usin mvn package install command. I've navigated in my repo to test if the jar is installed, and it is. But when I try to create a project using my archetype I g

Re: Maven on AIX getting Authentication Denied errors

2009-09-22 Thread Wayne Fay
> I'm not using a repository manager, just a file system exported via IIS. Can you set up Nexus (or Archiva, Artifactory, etc) just to see if that works? Then, if it does, you're all set to run a real MRM instead of IIS/file system. ;-) If it doesn't work, that gives some additional useful inform

Maven on AIX getting Authentication Denied errors

2009-09-22 Thread Jim McCaskey
Hello all, I'm in a very mixed environment which has me doing a variety of things on Native platforms. I have been able to get this to work reliably on Solaris, HPUX, Linux, Win32, and Win64. However, I am having some trouble with AIX. I have a local Maven repository which requires authentica

Pom type dependency behavior

2009-09-22 Thread David Hoffer
I notice that specifying a pom type dependency on a pom that has child modules (e.g. it's a pom type) does not include those dependencies nor their transitive dependencies. However a pom type dependency on a pom that is not of pom type itself does bring in that dependency and its transitive depend

[ANN] Maven Remote Resources Plugin 1.1 Released

2009-09-22 Thread John Casey
The Maven team is pleased to announce the release of the Maven Remote Resources Plugin, version 1.1 This plugin uses configurable sets of template files stored in the Maven repository, combined with project and dependency POM information, to generate files such as DEPENDENCIES or LICENSE statemen

[ANN] Maven Artifact Resolver (Shared Library) 1.0 Released

2009-09-22 Thread John Casey
The Maven team is pleased to announce the release of the Maven Artifact Resolver, version 1.0 This is a shared library that aims to simplify as much as possible the task of resolving dependency artifacts for one or more projects (MavenProject instances) all at once. http://maven.apache.org/share

[ANN] Maven Verifier 1.2 Released

2009-09-22 Thread John Casey
The Maven team is pleased to announce the release of the Maven Verifier, version 1.2 This is a shared library for use in testing various Maven components. It allows the user to execute Maven builds as part of the testing process, with methods supporting test preparation and assertion of results.

Re: LATEST / RELEASE dependency version

2009-09-22 Thread Stephen Connolly
these are *deprecated* features they never do what you think they do! LATEST picks the last version to be deployed... RELEASE picks the last non-SNAPSHOT to be deployed now imagine you have two development streams in progress... 1.x and 2.x as each stream deploys their releases, RELEASE wil

RE: LATEST / RELEASE dependency version

2009-09-22 Thread Martin Gainty
James they are both versions so as the same level you have 1.0.0. create a folder called LATEST and a folder called RELEASE and put the latest pom and jar into LATEST and release pom and jar into RELEASE so your directory tree should look something like Repository/groupId/artifactId/LATEST Repo

LATEST / RELEASE dependency version

2009-09-22 Thread james.shute
Looking in the Sonatype Maven book I see mention of the ability to specify the version of a dependency as LATEST or RELEASE (http://www.sonatype.com/books/maven-book/reference/pom-relationships-se ct-pom-syntax.html , 9.3.1.3) However when I try this (I'm using 2.0.9 and Nexus) it doesn't seem

RE: Help with (sibling directory) modules

2009-09-22 Thread Barlow, Keith
In my mind... those are governance issues and are inherent in the decision to port to maven. Maven will simplify your life in terms of code and dependency management and if those legacy projects are still in active development - it's not an unadvisable port. For the most part, your codebase shoul

RE: Help with (sibling directory) modules

2009-09-22 Thread dennis.mendelson
I care, because the legacy nature of the project means that any changes I make to the existing structure of codebase on filesystem entails a lot of thought, and risks a veto. This is surely not an uncommon scenario. I understand what is involved in, and (directly) implied by, declaring one proj

RE: Help with (sibling directory) modules

2009-09-22 Thread Barlow, Keith
With all due respect, why do you care? The parent project is only a POM... It effectively declares the structure of the project. If there is a core piece of logic that all other modules are built around, you define a module for that logic and then declare it as a dependency of all other modul

RE: Help with (sibling directory) modules

2009-09-22 Thread dennis.mendelson
Indeed the projects share common dependencies. It seems to me, though, that you conflate the "structural/functional" relationships referred to by Stephen below (or is that perhaps imposed by Maven?). Surely a parent POM containing common dependencies can live in $DEV_ROOT/parent, without requir

RE: Help with (sibling directory) modules

2009-09-22 Thread Barlow, Keith
If those projects have no dependencies upon each other... than you are best off declaring them as separate projects - you will then be able to check them out and build them as necessary. If those projects share common dependencies, you will want to establish as "parent" project which will decla

RE: Help with (sibling directory) modules

2009-09-22 Thread dennis.mendelson
Let me be more explicit about my requirements.. I have a set of legacy projects, each belonging within a sub-directory of $DEV_ROOT, say: $DEV_ROOT/A; $DEV_ROOT/B; etc. >From an empty $DEV_ROOT, I would like to be able to checkout from SCM a POM >(which lists A, B, etc. as modules), into either

UCM Clearcase + Changes on Site

2009-09-22 Thread raghu guru
Hi All, Is anyone successfully configured UCM clearcase using SCM plugin and created a source codes changes report from maven?? I couldn't configure nothing working for me, can you please any one point me to any available examples please!!! Thanks Jan

Re: Help with (sibling directory) modules

2009-09-22 Thread Stephen Connolly
The documentation is correct w.r.t. sections however, this does not apply to sections. The section does not have to contain any at all. In fact some people maintain that it is better if the parent-child relationship is "functional" while the modules-child relationship is "structural" The ot

RE: Javascript support

2009-09-22 Thread Sluis, M. van der (Minto)
It seems we all suffer from the same. A day only has 24 hours and a few of them are required for hibernation. Why don't we all state that a day has a 100 hours then we would at least be ably to do 4 times as much ;-) On the otherhand, we could also try to improve our efficiency, but that is much

Re: Maven Log Analyzer?

2009-09-22 Thread Wayne Fay
> I'm looking for a Maven plugin (or some other way, we use Teamcity) > to make my build fail if the build log contains a keyword (let's use an > example: "BadSqlGrammarException"). This sounds like something that would be implemented as a Teamcity module, not a Maven module... And it sounds like

Re: Maven snapshot dependencies are not treated as snapshots

2009-09-22 Thread
Sorry to ask again, but does anyone have any ideas? Is the question clear enough/have enough info? I cannot get snapshots to work... Thanks in advance, Paul -- Forwarded Message From: Paul Thomas-FM&T Reply-To: Maven Users List Date: Thu, 17 Sep 2009 17:09:06 +0100 To: Maven Users List S

RE: Help with (sibling directory) modules

2009-09-22 Thread Barlow, Keith
The documentation is correct... the structure must follow a predefined layout. Maven uses convention over configuration and requires you to use a defined directory structure (it's possible customize in some cases but not worth it). Why you would want a root level pom in a sibling directory is bey

Re: how do I include test-sources in the release:prepare and release:preform targets.

2009-09-22 Thread Bill Brown
Greetings: I found the answer to my question in the maven-source-plugin wiki page here: http://docs.codehaus.org/display/MAVENUSER/Source+Plugin org.apache.maven.plugins maven-source-plugin true install jar test-jar Now when I

Maven Log Analyzer?

2009-09-22 Thread Tim Andersen
I'm looking for a Maven plugin (or some other way, we use Teamcity) to make my build fail if the build log contains a keyword (let's use an example: "BadSqlGrammarException"). I searched for "maven log analyzer" and "maven fail exception" and didn't find anything useful. I acknowledge that so

Help with (sibling directory) modules

2009-09-22 Thread dennis.mendelson
Hello, Could someone please confirm or dismiss (preferably the latter) the following, from http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-multi-module.html (Maven: The Definitive Guide): "The directory structure on the file system would also mirror the module relati

Profile inheritance and activation in POM

2009-09-22 Thread Wush'
Hi, I have a parent POM with multiple profiles containing dependencyManagements. > > > PROD-1.0 > > > > > group

Re: Unable to build M3 from trunk

2009-09-22 Thread Jason van Zyl
On 2009-09-22, at 2:28 AM, Rob Harrop wrote: All, I am unable to build M3 from trunk. It complains about a bunch of Plexus bundles that don't seem to exist in central. What am I doing wrong? You're not doing anything wrong. We wander back and forth between some snapshots and we use re

[ANN] New book - Apache Maven 2: Effective Implementation

2009-09-22 Thread Brett Porter
The final release of "Apache Maven 2: Effective Implementation" is now available online! It is available in both eBook and printed + eBook versions, and is written by Deng Ching and myself with help from our reviewers Wendy Smoak, Emmanuel Venisse, and Carsten Ziegler. http://www.packtpub

Re: Javascript support

2009-09-22 Thread nicolas de loof
> PS. Nicolas, 19 open issues in Jira, so there is some community feedback > for your project. > > Half of them are Harlan Iverson todo list (also committer in this project) Some may get fixed quickly, but few of them has patch attached. By "feedback" I suggested mailing list activity on user or

Re: Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Nick Stolwijk
Yes, Nexus is one of the repository managers, and the best imho. Others are Archiva or Artifactory. With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Sep 22, 2009 at 11:46 AM, Richard Taylor wrote: > Brett > > Would this

Re: Javascript support

2009-09-22 Thread Manos Batsis
Sluis, M. van der (Minto) wrote: It seems I misunderstood the functionality. I thought .js files were pulled from outside the delivered EAR/WAR file straight from the maven repository. Truth is I need to make this clearer in the documentation. To provide an example, suppose you wanted to inc

Re: Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Richard Taylor
Brett Would this be something like Nexus? Thanks Regards On Tue, 2009-09-22 at 18:32 +1000, Brett Porter wrote: > ServiceMix need to update their examples since they are pointing to an > old domain name they apparently no longer own - you're going to need > to ask them. > > BTW, a more ro

RE: Javascript support

2009-09-22 Thread Sluis, M. van der (Minto)
Hi Manos, It seems I misunderstood the functionality. I thought .js files were pulled from outside the delivered EAR/WAR file straight from the maven repository. In this case the part you didn't get does not apply anymore. The same counts for my objections. Regards, Minto -Oorspronkelijk

Unable to build M3 from trunk

2009-09-22 Thread Rob Harrop
All, I am unable to build M3 from trunk. It complains about a bunch of Plexus bundles that don't seem to exist in central. What am I doing wrong? Regards, Rob Harrop SpringSource - To unsubscribe, e-mail: users-unsubscr..

Re: Javascript support

2009-09-22 Thread Manos Batsis
Hi Minto, Minto van der Sluis wrote: Hi Manos, JavascriptDependencyFilter is a nice feature and a technical showcase, but I would not allow a feature like that to be activated in projects I control. With this feature I have no absolute control over my deliverables. As far as I can tell th

Re: Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Brett Porter
ServiceMix need to update their examples since they are pointing to an old domain name they apparently no longer own - you're going to need to ask them. BTW, a more robust set up you can work with is to put a repository manager in place - you can direct all your maven requests to it and t

Re: Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Richard Taylor
Nick I have followed the tutorials on the ServiceMix site to the letter. The repositories in the pom.xml file are: false apache Apache Repository http://people.apache.org/repo/m2-ibiblio-rsync-repository false

Re: Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Nick Stolwijk
As you are the first one to notice this, I would think it would be or your local computer or your company repository. Which repositories are you using for your project? With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Tue, Sep

Re: how do I include test-sources in the release:prepare and release:preform targets.

2009-09-22 Thread Stephen Connolly
Ahh much nicer... I should have guessed there was a second mojo! 2009/9/22 Nick Stolwijk > Add a second execution which executes the test-jar goal[1]. > > >org.apache.maven.plugins >maven-source-plugin > > > test-jar > >

Re: how do I include test-sources in the release:prepare and release:preform targets.

2009-09-22 Thread Nick Stolwijk
Add a second execution which executes the test-jar goal[1]. org.apache.maven.plugins maven-source-plugin test-jar test-jar [1] http://maven.apache.org/plugins/maven-s

Corrupt repository? (spam html in .jar files)

2009-09-22 Thread Richard Taylor
Hi I am completely new to maven, just running through some ServiceMix tutorials (completely new to that too). Tracking down a 'mvn install' failure that said: [INFO] [ERROR] BUILD FAILURE [INFO]

Maven War Plugin

2009-09-22 Thread Barlow, Keith
Hiyas, I am trying to use the Maven War Plugin to move some resources into the WEB-INF/xsd directory instead of the WEB-INF/classes directory... The XSDs exist in the src/main/config directory along with some descriptive xml files which I do not want copied. I configured the Maven War Plug

Re: Understanding Assembly Plugin

2009-09-22 Thread Luca Li Greci
2009/9/21 Neil Chaudhuri > I have that book, but it isn't clear to me if the assembly plugin actually > builds and installs all the components. The way it reads, it seems like you > simply describe where existing files live to be included in the assembly. It > doesn't seem to actually build the d