Re: Setting up mirrors

2010-03-08 Thread Aleksey Didik
Hmm, _*!**_ looks strange. Try to use new-repository http://repo.upromise.com:8080/archiva/repository/new-repo platform-release,platform-snapshot Aleksey. 09.03.2010 4:49, Michael Delaney пишет: All, Using Maven 2.2.1, I'm trying to setup (in the $M2_HOME/conf/settings.xml file) some mirr

why does mvn release replace ${groupId} in with actual values?

2010-03-08 Thread hanasaki
Did a maven release and had "connection" information in the section. After the release, the new pom with updated coordinates in its section had replaced the ${groupId}/${artifactId}/trunk in the new pom with the Actual values. How can the dynamic nature be retained? Where is the algorithm f

Re: Refactoring the Maven Build

2010-03-08 Thread Justin Edelson
Bob- In addition to some strangeness that Jesse mentioned, I think you missed a few important points, especially given what I understand to be your site's core audience: 1. Use a Maven Repository Manager 2. Use an organizational POM. 3. Lock down all plugin versions (probably via #1) 4. Use a Mave

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread youhaodeyi
Yes I used "com.sun.xml.internal.messaging.saaj.client.p2p" package. hgomez wrote: > > Did you use/reference com.sun.xml.internal.* classes from your application > ? > > 2010/3/8 youhaodeyi : >> >> Hi, >> >> I have tried to use system dependency but it doesn't work this time. The >> pom.xml is

Setting up mirrors

2010-03-08 Thread Michael Delaney
All, Using Maven 2.2.1, I'm trying to setup (in the $M2_HOME/conf/settings.xml file) some mirrors. Looking at the documentation (http://maven.apache.org/guides/mini/guide-mirror-settings.html) for 2.2.1, it says that, in the tag, I can set repository includes and repository excludes but I c

Re: [bug?] Getting null in manifest when using custom

2010-03-08 Thread Wayne Fay
> /usr/lib/ctch/java/${artifact.artifactId} 1. Does it work if you use .../../a/b instead of your ${...} stuff? 2. Are you sure that you're using the latest version of Jar plugin etc? I don't see the version included so no way to know. Wayne --

RE: Unable to exclude .class files

2010-03-08 Thread Thomas Harris
Nope, not gonna do it... ball of mud stays. I can focus my efforts on newer projects with a life ahead of them. This one can't change, too many years of barnacles collecting. Tom -Original Message- From: Ron Wheeler [mailto:rwhee...@artifact-software.com] Sent: Friday, March 05, 2010 6

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Matthias Hofmann
Hello, tank you for the fast and many replies!! works fine now. Maybe it would be useful to integrate this issue in the maven "Getting started" documentation. Best regards, Matthias > Le Mon, 8 Mar 2010 15:03:07 +0100, > "Matthias Hofmann" a écrit : > >> Hi, >> >> currently i am trying to get

Re: If mirror fails, fall back to original?

2010-03-08 Thread Laird Nelson
On Fri, Mar 5, 2010 at 5:25 PM, Brian Fox wrote: > Further, you can configure Nexus to do the automatic fallback: > > http://www.sonatype.com/books/nexus-book/reference/config-sect-manage-repo.html#sect-config-selecting-mirrors-proxy > Ah, I think--not sure yet, coffee is still brewing--that thi

Re: Refactoring the Maven Build

2010-03-08 Thread Jesse Farinacci
Hi Bob, On Mon, Mar 8, 2010 at 8:09 AM, Bob Aiello wrote: > > I just wrote an article on tactics for refactoring the Maven build and I > would love to get your input. > http://www.cmcrossroads.com/cm-basics/13317-refactoring-the-maven-build > > Feel free to post comments or send them to me privat

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Tony Chemit
Le Mon, 8 Mar 2010 15:03:07 +0100, "Matthias Hofmann" a écrit : > Hi, > > currently i am trying to get my Java program running outside of the > Netbeans IDE. Within Netbeans, it works well, all dependencies are > correctly loaded and executed. > But if i try to run the program from the console w

Maven/Nexus/SVN Consulting gig in NJ!

2010-03-08 Thread Bob Aiello
Hi everyone, I am posting this for a colleague of mine who has an interesting gig in NJ. __ *Maven/Nexus/Subversion Implementation Specialist* *Short-term Consulting -- initial phase is 1 week * * * *Overview:* Client is in the process

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Shanbo Li
Hello Matthias, Read this: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html You can use mvn assembly:assembly To get a jar with all dependencies. BR, Shanbo On Mon, Mar 8, 2010 at 10:10 PM, Milos Kleint wrote: > On Mon, Mar 8, 2010 at 3:03 PM, Matthias Hofmann < > matthias.ho

Re: Problems with Dependencies and Classpath

2010-03-08 Thread Milos Kleint
On Mon, Mar 8, 2010 at 3:03 PM, Matthias Hofmann < matthias.hofm...@tu-dortmund.de> wrote: > Hi, > > currently i am trying to get my Java program running outside of the > Netbeans IDE. Within Netbeans, it works well, all dependencies are > correctly loaded and executed. > But if i try to run the p

mvn site:stage-deploy, wrong behaviour of input password, a bug?

2010-03-08 Thread Shanbo Li
Hello there, When I use the site plug in of maven 2.2.1: mvn site:stage-deploy and "scp" protocol to deploy my site. I meet two problem: 1. deploy from my local computer to a server, it ask me for the password. Yes, it ask me for the password even I v already specify the password in /{user_hom

Problems with Dependencies and Classpath

2010-03-08 Thread Matthias Hofmann
Hi, currently i am trying to get my Java program running outside of the Netbeans IDE. Within Netbeans, it works well, all dependencies are correctly loaded and executed. But if i try to run the program from the console with java -cp or java -jar, i get NoClassFoundDefError concerning the dependenc

Refactoring the Maven Build

2010-03-08 Thread Bob Aiello
Hi everyone, I just wrote an article on tactics for refactoring the Maven build and I would love to get your input. http://www.cmcrossroads.com/cm-basics/13317-refactoring-the-maven-build Feel free to post comments or send them to me privately. Bob Aiello Editor in Chief CM Crossroads http://

Re: Re : How to differentiate between pom.xml and ant's build file

2010-03-08 Thread Ryan Connolly
Just a guess but if you arent so much concerned with validation maybe a successful use of MavenXpp3Reader to get a Model instance from an XML file would indicate a good pom whereas an unsuccessful attempt may imply an ant build? On Mar 8, 2010 6:18 AM, "amaresh mourya" wrote: Hi All, Thanks for

Re : Re : How to differentiate between pom.xml and ant's build file

2010-03-08 Thread Julien HENRY
Are you sure namespace is required to perform validation? What are you using? See http://java.sun.com/developer/technicalArticles/xml/validationxpath/ for an example of XSD validation. There is no namespace in the XML document. Regards, Julien - Message d'origine > De : amaresh mour

Re: Re : How to differentiate between pom.xml and ant's build file

2010-03-08 Thread amaresh mourya
Hi All, Thanks for your replies. I tried validation with XSD(http://maven.apache.org/maven-v4_0_0.xsd).but It fails since the namespace is missing. I think any xml could still be POM if it doesn't have namespace as I have seen many pom.xml without schema. thanks Amaresh On Mon, Mar 8, 2010 at 4:

Re : How to differentiate between pom.xml and ant's build file

2010-03-08 Thread Julien HENRY
Hi, You could try an XML validation using Maven XSD (http://maven.apache.org/maven-v4_0_0.xsd). If the validation is ok => this is a valid POM. If the validation is ko... it can be anything else. Regards, Julien - Message d'origine > De : amaresh mourya > À : Maven Users List > E

Re: How to differentiate between pom.xml and ant's build file

2010-03-08 Thread Stephen Connolly
have a look at the xml namespaces... if that fails, look for common xpath portiions, e.g. /project/target is never going to be a valid pom /project/modelVersion along with a number of other fields are required to have a valid pom On 8 March 2010 10:40, amaresh mourya wrote: > Hi All, > I want

How to differentiate between pom.xml and ant's build file

2010-03-08 Thread amaresh mourya
Hi All, I want to write a recognizer class which takes input any xml file and returns true or false based on , whether or not the xml is POM. Problem : Since Ant's build file and POM both have root element with/without Namespace. I don't want POM Name to be restricted to just "pom.xml", this co

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread Wayne Fay
> I have tried to use system dependency but it doesn't work this time. The > pom.xml is shown below: > > I got the same error: >  package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist And this is why you should not be using classes marked INTERNAL. Sun makes NO guarantee about these

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread Henri Gomez
Did you use/reference com.sun.xml.internal.* classes from your application ? 2010/3/8 youhaodeyi : > > Hi, > > I have tried to use system dependency but it doesn't work this time. The > pom.xml is shown below: > > >      jdk >      jdk >      1.6.0 >      system >      ${java.home}/lib/rt.jar >

[bug?] Getting null in manifest when using custom

2010-03-08 Thread eyal edri
Hello, i don't know if this a bug or a misuse of the archiver. when using a custom layout in manifest, i get 'null' for every value i use: org.apache.maven.plugins maven-jar-plugin true ${project.groupId}.${

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread youhaodeyi
Hi, I have tried to use system dependency but it doesn't work this time. The pom.xml is shown below: jdk jdk 1.6.0 system ${java.home}/lib/rt.jar I got the same error: package com.sun.xml.internal.messaging.saaj.client.p2p doesn't exist thanks Wayne Fay wr

Re: Maven doesn't include com.sun.xml.internal.messaging.saaj.client.p2p package?

2010-03-08 Thread Wayne Fay
On Sun, Mar 7, 2010 at 11:08 PM, youhaodeyi wrote: > I use Maven to compile my project but it shows an error the this package > "com.sun.xml.internal.messaging.saaj.client.p2p" cannot found. You asked a nearly identical question almost 2 years ago. The answer today is no different from what you he