Re: help: can't exclude files from EAR file

2007-10-15 Thread Stephane Nicoll
Well, the dependencies should be declared only in your war project. If you declare them in the parent pom, it's a dependency of the EAR project as well (hence it packages it). invoke mvn dependency:resolve on both projects to see the result. You can use dependencyManagement to share the way you h

RE: Maven Proxy

2007-10-15 Thread Boeckli, Dominique
We are using Proximity as a war deployment on a JBoss Server. A little bit scary is that the abstracthorizon home page is down since a while: http://www.abstracthorizon.org/index.html. Since nearly half a hear the version number (RC8) didn't changed neither. -Original Message- From: Guil

Re: Maven Proxy

2007-10-15 Thread William Ferguson
Hi Denis, I have had some experience of 3 of them in the last week. All of them deployed as WebApps inside Tomcat. Promixity - simple config, file based storage, developers seem absent (at least at present). We are using this as our main Maven repository and also as a mirror of that repository at

Re: Maven Proxy

2007-10-15 Thread Brett Porter
On 15/10/2007, William Ferguson <[EMAIL PROTECTED]> wrote: > Archiva (beta2) - couldn't get it to work by following the installation > instructions. Doesn't install as a clean webapp (in Tomcat in any case). were you able to report these problems? Would be happy to hear bugs or thoughts on ways to

Maven plugin for JPA processing

2007-10-15 Thread Zarick Lau
Dear users and developers, I have come across an article on here http://weblogs.java.net/blog/ss141213/archive/2005/12/how_to_automati.html Which use apt to inspect all JPA beans (check @Entity) and update the persistence.xml. Is there any corresponding plugin in Maven? I intended to make one,

Mojo: Best way to get all artifact versions from local repository

2007-10-15 Thread vojtech.habarta
Hello, I am developing plugin (mojo) and I need to determine latest version in local repository for group of plugins. I tried org.apache.maven.artifact.resolver.ArtifactResolve.resolve but it needs org.apache.maven.artifact.Artifact with filled version. I also tried org.apache.maven.artifact.re

Repository Uploads

2007-10-15 Thread Rupert Smith
Hi, Is anybody currently looking after repository upload requests? I appreciate that this is done by volunteers, but I have waited patiently for 2 weeks for my stuff to be uploaded... Rupert

Ant tasks 2.0.7 with snapshot dependencies

2007-10-15 Thread Mark Hobson
Hi there, I'm upgrading to the latest maven-ant-tasks 2.0.7 from 2.0.4 and am having problems downloading snapshot dependencies. My build.xml is something like: http://xxx/";> http://yyy/";> But it's failing downloading the snapshot artifact si

problem with dependencies

2007-10-15 Thread Guillaume Boucherie
Hi, I have a project with modules. My first module depends on poi, and my second depends on my first. When I run eclipse:eclipse from my root project I have poi in both classpath of my projects, so everything works. But when I run it from my second project poi isn't in the classpath. So I try it w

Re: fatal error setDefaultRepositoryPermissions no such method

2007-10-15 Thread Jan Pittner
Fixed - a 2.0.4 jar was present in my lib dir. Jan Pittner wrote: This happened again, but now I can't get rid of it. I deleted the maven dir, copied the install over again (which previously fixed the problem), and it still happens. I tried it on a fresh user account, same thing. At this

Re: server certificate verification failed

2007-10-15 Thread Graham Leggett
On Mon, October 15, 2007 3:08 pm, Ashley Williams wrote: > Although I would have thought the issue of whether or not > I trust a particular site is different from whether my continuum > installation is connecting > me to the site I think it should be. SSL performs two functions - one to obscure t

Re: server certificate verification failed (sorry, offtopic)

2007-10-15 Thread Ashley Williams
I wonder if we are talking at cross purposes. Our subversion repository is actually hosted with a thirdparty (collabnet) and I believe they have changed their certificate and to one that isn't trusted by a root certificate. Therefore unless I am missing yet another point, I don't believe we can

Re: Repository Uploads

2007-10-15 Thread Carlos Sanchez
If you read carefully http://maven.apache.org/guides/mini/guide-central-repository-upload.html Sync'ing your own repository to the central repository automatically This is the preferred process. so if you want your stuff uploaded faster set up a synced repo On 10/15/07, Rupert Smith <[EMAIL P

RE: EJB Manifest file creation/update

2007-10-15 Thread EJ Ciramella
Do you have an example of this? addClassPath ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscr

Re: server certificate verification failed (sorry, offtopic)

2007-10-15 Thread Graham Leggett
On Mon, October 15, 2007 3:54 pm, Ashley Williams wrote: > I wonder if we are talking at cross purposes. Our subversion repository is > actually hosted with > a thirdparty (collabnet) and I believe they have changed their certificate > and to one that isn't trusted > by a root certificate. Therefo

war plugin: using optional=true

2007-10-15 Thread Adrian Gonzalez
I'm trying to build a ear structure containing war and jar files. I'm using maven-war-plugin instructions from http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html (last part of this page) to create MANIFEST.MF. Using : org.foo bar-jar1 ${pom.ve

RE: EJB Manifest file creation/update

2007-10-15 Thread Jörg Schaible
EJ Ciramella wrote on Monday, October 15, 2007 4:22 PM: > Do you have an example of this? http://maven.apache.org/guides/mini/guide-manifest.html I thought this pointer was not necessary, since you already configured your manifest ... - Jörg ---

Very newbie question

2007-10-15 Thread ichasco
Hi all, I have just started with maven and i have some questions. I have read the guide to creating archetype and i do not understand very well it. I know that i have to create an archetype.xml, pom.xml, ... but where i have to saved all these files? in .m2? where are stored archetypes? Thanks

Re: Very newbie question

2007-10-15 Thread Harlan Iverson
An archetype is installed the same way as a normal artifact; so running 'mvn install' in the directory will do it. In case you haven't seen it, this guide to creating archetypes helped me along: http://maven.apache.org/guides/mini/guide-creating-archetypes.html Harlan On 10/15/07, ichasco <[EMAI

Re: Very newbie question

2007-10-15 Thread Wayne Fay
Just curious, why do you think you need to CREATE an archetype? Most people will simply USE an archetype that has been previously created. "mvn archetype:create ..." is simply the command to create a new project using an archetype. I'd be very surprised that a new user would want to create an arch

RE : war plugin: using optional=true

2007-10-15 Thread Adrian Gonzalez
Hello, I'm currently looking at maven source code. In org.apache.maven.plugin.war.AbstractWarMojo (v2.0.2), line 582, the .jar is copied in WEB-INF/lib if !artifact.isOptional().. [1] I think that optionality is not inherited by transitivity and that's the cause of my problem : i.e. if artA decl

Re: Search with maven

2007-10-15 Thread Wayne Fay
This is not available out of the box, and I haven't seen any plugins that integrate Lucene etc. Wayne On 10/15/07, Sinduria,Anuradha <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Can we do search on maven generated website of our project, > > like we can do it on WIKI and user can enter search cri

Re: Very newbie question

2007-10-15 Thread Harlan Iverson
One application of it for me was a multi-project layout for an EAR with a myfaces web application, EJB3, a persistence archive, a custom login module, skeleton config files, etc. It's helpful if you create several projects using the same pattern. On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: >

Re: How to release if using testng

2007-10-15 Thread Patrick Moore
You know if you try really real hard you can get past the 'snapshot' aspect of 2.4-collab That is the version we use... but it is also the version tapestry.apache.org uses to release the tapestry project as well. Don't know why the main 2.4-SNAPSHOT can't get fixed to use the latest version of

Re: Very newbie question

2007-10-15 Thread Wayne Fay
The question was really directed to the original poster, ichasco. I have seen other people new to Maven who seem to believe that they must create archetypes themselves manually rather than simply reusing the existing archetypes. I want to make sure that ichasco is not heading down the wrong path.

Re: RE : war plugin: using optional=true

2007-10-15 Thread Wayne Fay
Sounds reasonable. Please file a bug in JIRA, ideally with a test and fix. ;-) Wayne On 10/15/07, Adrian Gonzalez <[EMAIL PROTECTED]> wrote: > Hello, > > I'm currently looking at maven source code. > > In org.apache.maven.plugin.war.AbstractWarMojo > (v2.0.2), line 582, the .jar is copied in WEB-

Re: How to release if using testng

2007-10-15 Thread Michael McCallum
i'm using surefire 2.3 and testng without any problems... well occasionally i get a null pointer instead of an error report... but other than that releasing no problems On Saturday 13 October 2007 15:48, Victor Cardona wrote: > Wim Deblauwe wrote: > > Hi, > > > > how do other people release their

Re: Maven good Design

2007-10-15 Thread Saloucious
Sure, a new branch (with Maven convention) should be the better solution. Unfortunately, this is not planned ... So is this stucture is fine : my-app |-- pom.xml |-- build.xml |-- src ||- App.java | |--m2 |--jar ||--pom.xml | |--ejb ||--pom.xml |

Re: Maven good Design

2007-10-15 Thread Wendy Smoak
On 10/12/07, Graham Leggett <[EMAIL PROTECTED]> wrote: > Get the most simplest part of your project (the jars) building cleanly > with maven, and use this as a testing ground to get you familiar with the > maven build process. Do this on the existing sources if you can, by > dropping in pom.xml in

Jar Version Best Practice

2007-10-15 Thread Mark_E
Hello, I have been using Maven for about a month now and I really like it however, I am having an issue with setting jar versions and I was looking for suggestions on how other people do it. I basically have a pom for each project I build. In the pom.xml I have the dependencies. We typically ve

Putting an XSD into the Maven Repo

2007-10-15 Thread Chris Huston
We have many projects that share a set of common XSDs. Is there a way to check these into a maven repo and use them as dependencies? Note that the schema's are inter-related, e.g. a type in one file extends a type in a second file and uses an enumeration type defined in a third. An exampl

Re: Maven good Design

2007-10-15 Thread Saloucious
Sure this is painful. The only solution I have found is : my-app |-- pom.xml |-- build.xml |-- src ||- App.java | |--m2 |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Is better to put everything in one pom.xml, with

[ANN] rpm-maven-plugin version 2.0-beta-1 released

2007-10-15 Thread Kaare Nilsen
Hi The mojo team are happy to announce that version 2.0-beta-1 of the rpm-maven plugin has been released. Changes since last release is : * Added support for %clean and %install scripts * Added support for %define arguments Best regards Kaare Nilsen --

Re: Maven good Design

2007-10-15 Thread Wayne Fay
I'm not aware of any published "best practices for people who want to use Maven but can't follow the conventions". Perhaps someone else will reply with something more useful. My general response is "do what works best for you". Wayne On 10/15/07, Saloucious <[EMAIL PROTECTED]> wrote: > > Sure th

Re: Putting an XSD into the Maven Repo

2007-10-15 Thread Wayne Fay
Package them into a Jar and deploy as usual. Then use m-remote-resources-p or dependency:unpack to put them in the proper place in your project. Wayne On 10/15/07, Chris Huston <[EMAIL PROTECTED]> wrote: > We have many projects that share a set of common XSDs. Is there a way > to check these int

Re: Jar Version Best Practice

2007-10-15 Thread Wayne Fay
The release plugin solves most people's version issues. Wayne On 10/15/07, Mark_E <[EMAIL PROTECTED]> wrote: > > Hello, > I have been using Maven for about a month now and I really like it > however, I am having an issue with setting jar versions and I was looking > for suggestions on how other

Re: Jar Version Best Practice

2007-10-15 Thread Mark_E
Hello Wayne, Thanks for the information. I will take a look at that plugin. Regards, Mark Wayne Fay wrote: > > The release plugin solves most people's version issues. > > Wayne > > On 10/15/07, Mark_E <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I have been using Maven for about a month n

How to specify repository on the command line?

2007-10-15 Thread siegfried
I'm trying to use the appfuse-basic-string described at http://docs.codehaus.org/display/MAVENUSER/Archetypes+List and it is not working. I think I need to specify the URL of the repository on the command line. I did maven -help but was surprised to find such a small number of switches and no switc

Re: Maven good Design

2007-10-15 Thread Graham Leggett
Saloucious wrote: |--jar ||--pom.xml | |--ejb ||--pom.xml | |--sar |--pom.xml Can you explain what is in the jar and the ejb? Is the jar the client side interface for the ejb, or is it something else? Is the code in the sar also i

Artifact Relocation in inhouse repository

2007-10-15 Thread rudy.bistrovich
Have any of you tried to use the "relocation" feature of maven when needing to change the group id of an already published artifact? See http://maven.apache.org/guides/mini/guide-relocation.html When I follow the directions from that link Maven starts complaining that it can no longer find the

RE : Re: RE : war plugin: using optional=true

2007-10-15 Thread Adrian Gonzalez
Thanks Wayne, created as MWAR-125 (http://jira.codehaus.org/browse/MWAR-125). I'll attach asap a test case and will try to find a fix tomorrow (I hope !). In the meantime can someone who's generating ear application with war and utility jar (used by war but deployed at the root ear), tell me ho

Re: Maven good Design

2007-10-15 Thread Saloucious
This is just an example (many projects) Here, ejb is embed in sar and jar a separated artifact Graham Leggett wrote: > > Saloucious wrote: > >> |--jar >> ||--pom.xml >> | >> |--ejb >> ||--pom.xml >> | >> |--sar >> |--pom.xml > > Ca

Re: Putting an XSD into the Maven Repo

2007-10-15 Thread Carlos Sanchez
or just manually upload and use xsd in the dependency section On 10/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > Package them into a Jar and deploy as usual. > > Then use m-remote-resources-p or dependency:unpack to put them in the > proper place in your project. > > Wayne > > On 10/15/07, Chris

Re: Maven good Design

2007-10-15 Thread Harlan Iverson
To build on this and give a concrete upgrade path that I've used: When a company I was with first tried Maven2, we had several projects with a common dependency. Each project and the dependency were built with Ant. * First, we wrote a pom for the common project that included all of its dependenc

Re: ear files and maven-eclipse-plugin

2007-10-15 Thread Jim Sellers
Make sure you have your pom type as "ear" (no quotes). If you need your .project file to have certain natures so that eclipse will "see" it as a certain type. http://maven.apache.org/plugins/maven-eclipse-plugin/examples/provide-project-natures-and-build-commands.html If you're using WTP, this mi

FW: How to specify repository on the command line?

2007-10-15 Thread siegfried
I'm sorry if this appears twice. I have waited over twelve hours and I still have not seen it appear on the list so I am posting it again. Siegfried From: siegfried [mailto:[EMAIL PROTECTED] Sent: Sunday, October 14, 2007 9:25 PM To: 'Maven Users List' Sub

Re: FW: How to specify repository on the command line?

2007-10-15 Thread Wayne Fay
Sounds like you've run into this bug: http://jira.codehaus.org/browse/ARCHETYPE-81 Wayne On 10/15/07, siegfried <[EMAIL PROTECTED]> wrote: > I'm sorry if this appears twice. I have waited over twelve hours and I still > have not seen it appear on the list so I am posting it again. > Siegfried >

RE : Re: ear files and maven-eclipse-plugin

2007-10-15 Thread Adrian Gonzalez
Thanks very much Jim. I've successfully created my ear pom.xml for RAD 7 (event if it's really ugly with all those custom files !). I attach my current pom.xml if it can help someone. I've only used : - eclipse plugin to generate .classpath and .project and custom files. - antrun (or cleaning pu

Re: Maven Proxy

2007-10-15 Thread William Ferguson
Sorry Brett, I was already 2 days overdue thanks to infrastructure issues. I'll try to put together a JIRA this afternoon. -Original Message- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Monday, 15 October 2007 6:25 PM were you able to report these problems? Would be happy to hear

maven offline

2007-10-15 Thread MavenMan
I am a beginer of maven .but I think it is a great artifact. but now I can not connect to Internet. I need a detail step to deel with this problem .I have trying to deel it a long time . who can help me . thank you in advance! -- View this message in context: http://www.nabble.com/maven-offlin

Re: Maven Proxy

2007-10-15 Thread Brett Porter
Thanks - much appreciated! On 16/10/2007, William Ferguson <[EMAIL PROTECTED]> wrote: > Sorry Brett, I was already 2 days overdue thanks to infrastructure > issues. > I'll try to put together a JIRA this afternoon. > > -Original Message- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sen

Re: How to release if using testng

2007-10-15 Thread Victor Cardona
Michael McCallum wrote: > i'm using surefire 2.3 and testng without any problems... well occasionally i > get a null pointer instead of an error report... but other than that > releasing no problems > On Saturday 13 October 2007 15:48, Victor Cardona wrote: >> Wim Deblauwe wrote: >>> Hi, >>> >>>

Re: How to release if using testng

2007-10-15 Thread Victor Cardona
Wim Deblauwe wrote: > I finally gave up on using the surefire plugin with TestNG. Now I just >> use antrun to run the testng ant task and generate a report. >> > > I did not know that was possible. How do you remove surefire from the > lifecycle? > > regards, > > Wim > You can't actually remo

Re: profiles qustion

2007-10-15 Thread Victor Cardona
Sonar, Nishant wrote: > Hi > > > > We work with profiles in maven as > > > > Mvn -Pprofile1,profile2 > > > > On pom > > > > > > > > profile1 > > > > > > ... > > > > > > > > > > profile2 > > > > > > ... > > > > >

Re: maven offline

2007-10-15 Thread Wayne Fay
Try "mvn -h" and then read the help text which is output. One of the printed options is what you're looking for. Wayne On 10/15/07, MavenMan <[EMAIL PROTECTED]> wrote: > > I am a beginer of maven .but I think it is a great artifact. but now I can > not connect to Internet. > I need a detail ste

Re: maven offline

2007-10-15 Thread MavenMan
Wayne Fay wrote: > > Try "mvn -h" and then read the help text which is output. One of the > printed options is what you're looking for. > > Wayne > If I select -o ,need I to set local Repositories ?how to set ? > Best Regards ! > > On 10/15/07, MavenMan <[EMAIL PROTECTED]> wrote: >> >> I am a

RE: Maven Proxy

2007-10-15 Thread William Ferguson
Woops, just reread my post. The finally bit should have read: My preference is Proximity for the simple config, file base storage. :-) that makes more sense. William -Original Message- From: William Ferguson [mailto:[EMAIL PROTECTED] Sent: Monday, 15 October 2007 6:04 PM To: Maven Use

Re: Very newbie question

2007-10-15 Thread ichasco
Ok, it´s what i wanted: to create my own archetype (now i know that it is not recommended). Then, i have a new question. If i want to make a project with a structure like: root src java test testDB testUnit doc build .