Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread asookazian
answer here: http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html -- View this message in context: http://maven.40175.n5.nabble.com/how-does-Maven-determine-which-version-to-download-for-a-plugin-when-no-version-specified-tp512519p512544.html Sent from the

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread asookazian
Where are the variables (properties?) defined? e.g. ${project.artifactId}-${project.version} -- View this message in context: http://maven.40175.n5.nabble.com/how-does-Maven-determine-which-version-to-download-for-a-plugin-when-no-version-specified-tp512519p512543.html Sent from the Maven - Us

Re: maven-antrun-plugin not working

2010-07-01 Thread asookazian
I exec'd 'mvn clean install': [INFO] --- maven-antrun-plugin:1.3:run (fix.eclipse:eclipse-eclipseEAR.applicationXML) @ com.echo.cis.gui.ear --- [INFO] Executing tasks [xslt] Processing C:\projects\clean\com.echo.cis.gui\com.echo.cis.gui.ear\target\eclipseEar\META-INF\application.xml to C:\pr

Re: maven-antrun-plugin not working

2010-07-01 Thread asookazian
also, must I use antrun to output (echo) to console? Does Maven not have a way to do it itself? -- View this message in context: http://maven.40175.n5.nabble.com/maven-antrun-plugin-not-working-tp512535p512538.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: maven-antrun-plugin not working

2010-07-01 Thread Anders Hammar
Your xml snippet binds the antrun-plugin to the build lifecycle. Executing mvn antrun:run does not call teh lifecycle, but the plugin directly. Try mvn install /Anders On Fri, Jul 2, 2010 at 08:01, asookazian wrote: > > I have the following XML snippet in my parent POM: > > >

maven-antrun-plugin not working

2010-07-01 Thread asookazian
I have the following XML snippet in my parent POM: maven-antrun-plugin 1.3 echodir

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread Anders Hammar
This svn path should help you figure that out: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?view=markup /Anders On Fri, Jul 2, 2010 at 07:33, asookazian wrote: > > Thanks! > > I was able to locate the following rele

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread asookazian
Thanks! I was able to locate the following relevant XML snippet in pom-4.0.0.xml for Maven 2.2.1 in the maven-2.2.1-uber.jar: maven-antrun-plugin 1.3 For Maven 3 beta 1 there is no *uber.jar (it's modularized like Seam 3 and Spring 3). Where is the equivalent

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread Anders Hammar
When you don't specify the version of a plugin, Maven should download the latest version. However, very often the version is defined through a pluginManagement section. This could be either in your pom hierarchy or in Maven's super-POM. In your case, the version of the antrun-plugin is defined in t

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread asookazian
Using Maven 3 beta 1... I have the following XML snippet in my pom.xml: env-dev true maven-antrun-plugin

how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread asookazian
Using Maven 3 beta 1... I have the following XML snippet in my pom.xml: env-dev true maven-antrun-plugin

Re: Get local IP via Maven

2010-07-01 Thread Justin Edelson
On 7/1/10 3:48 PM, CassUser CassUser wrote: > Hey, > > Is there a way in maven to get the local IP address of the box which it's > running on? > In a Maven plugin? http://lmgtfy.com/?q=getting+local+ip+address+in+java - To unsub

Re: Version is Missing in POM

2010-07-01 Thread Stephen Connolly
most likely the pom you were copy&pasting from either inherited a dependencyManagement section which is specifying the version in that pom.xml -S. On 1 July 2010 16:52, Konovalov, Oleg wrote: > Hi, > > > > I am very new to Maven, writing my first POM file. > > > > I am getting errors like: > > [

Re: Version is Missing in POM

2010-07-01 Thread Manfred Moser
Dont read the book Better Builds with Maven. It is horribly out of date. Check out Maven: The Complete Reference or Maven By Example.. More here http://www.sonatype.com/documentation/books manfred > Read the manuals is always good advice. > Install another good idea is to get a Nexus repositor

Re: Version is Missing in POM

2010-07-01 Thread Ron Wheeler
Read the manuals is always good advice. Install another good idea is to get a Nexus repository installed. See below for a short answer. Ron On 01/07/2010 5:45 PM, Arnaud X Dostes wrote: You will find answers to your questions by spending five minutes reading the five minute tutorial : http:

Re: Version is Missing in POM

2010-07-01 Thread Dennis Lundberg
You have to specify a version for your dependencies, otherwise Maven will not know which version you want to use. Read more about the dependency mechanism here: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html On 2010-07-01 17:52, Konovalov, Oleg wrote: > Hi

Re: Multi Module Site Links

2010-07-01 Thread Dennis Lundberg
On 2010-07-01 18:11, Benjamin Wootton wrote: > Ah indeed it was the project/URL. I didn't realise that was actually used as > part of the site generation. Removing it from the default value fixes up the > links. > > Out of interest, is there any document that describes how the URL works in > re

RE: Version is Missing in POM

2010-07-01 Thread Arnaud X Dostes
You will find answers to your questions by spending five minutes reading the five minute tutorial : http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html There is also the "Getting Started" tutorial which will take you about 30 minutes : http://maven.apache.org/guides/gettin

RE: Version is Missing in POM

2010-07-01 Thread Konovalov, Oleg
From: Konovalov, Oleg Sent: Thursday, July 01, 2010 11:52 AM To: 'users@maven.apache.org' Subject: Version is Missing in POM Hi, I am very new to Maven, writing my first POM file. I am getting errors like: [0] 'dependencies.dependency.version' is missing for javax.mail:mail:jar

Version is Missing in POM

2010-07-01 Thread Konovalov, Oleg
Hi, I am very new to Maven, writing my first POM file. I am getting errors like: [0] 'dependencies.dependency.version' is missing for javax.mail:mail:jar [1] 'dependencies.dependency.version' is missing for javax.activation:activation:jar Here is a snippet from my POM:

Re: Multi Module Site Links

2010-07-01 Thread Benjamin Wootton
Ah indeed it was the project/URL. I didn't realise that was actually used as part of the site generation. Removing it from the default value fixes up the links. Out of interest, is there any document that describes how the URL works in relation to sites. The pom reference describes it as "a nic

Re: Get local IP via Maven

2010-07-01 Thread Wayne Fay
> Is there a way in maven to get the local IP address of the box which it's > running on? What possible reason do you have for needing this? You may find this list is more helpful if you describe what your end-goal is instead of asking for how to solve intermediate steps. Wayne -

Re: making a zip of a bunch of jar-with-dependency jars stored in Nexus

2010-07-01 Thread Ron Wheeler
On 01/07/2010 3:43 PM, Marshall Schor wrote: Hi Ron, Did you read the documentation for writing descriptors for the assembly plugin? For instance, it has this bit: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet Yes with the parameter: |useTransi

Get local IP via Maven

2010-07-01 Thread CassUser CassUser
Hey, Is there a way in maven to get the local IP address of the box which it's running on?

Re: making a zip of a bunch of jar-with-dependency jars stored in Nexus

2010-07-01 Thread Marshall Schor
Hi Ron, Did you read the documentation for writing descriptors for the assembly plugin? For instance, it has this bit: http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet with the parameter: |useTransitiveDependencies| Determines whether transitive depen

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Anders Hammar
I'm with Tamás here. Having something that works, is not always the correct solution... /Anders 2010/7/1 Tamás Cservenák > While Kalle's solution will do the work, I can't emphasize how this > approach > is wrong, at least I think it is. > > For situations like this, a custom plugin (or better,

Re: Site docs in Maven 3

2010-07-01 Thread Kathryn Huxtable
Heh! I like that! I change mine to my usual "-K" signature that I've been using since the late 1980s. Before that I used my full name. -K, who would like a larger screen than her iPhone, and is dithering between several choices. My contract is up in September. I'm in Overland Park, KS, and thu

Re: Site docs in Maven 3

2010-07-01 Thread Stephen Connolly
AFAIK, When I first got a device like that, Brian might even have been one of the people who complained about the tag line (which I subsequently change to "Send from my rhymes with myPod") On 1 July 2010 18:33, Kathryn Huxtable wrote: > BTW, "Sent from my iPad" (or iPhone) is the first thing I

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Tamás Cservenák
While Kalle's solution will do the work, I can't emphasize how this approach is wrong, at least I think it is. For situations like this, a custom plugin (or better, custom packaging) would be the best, since this solution will produce inconsistent data: Deployed POM will have packaging "pom", and

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Kalle Korhonen
The pom artifact is always produced regardless. Make your module type pom and attach the assembly zip as an artifact with the help of buildhelper plugin: http://mojo.codehaus.org/build-helper-maven-plugin/usage.html. Kalle On Thu, Jul 1, 2010 at 9:56 AM, Andreas Sewe wrote: > Hi all, > > I have

Re: Site docs in Maven 3

2010-07-01 Thread Kathryn Huxtable
You'll find out... BTW, "Sent from my iPad" (or iPhone) is the first thing I change when I get a device like that. -K On Jul 1, 2010, at 7:22 AM, Brian Fox wrote: > Since the site stuff is fully decoupled from core, it shouldn't really > matter if site is done. Most people run the site build s

Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Andreas Sewe
Hi all, I have a project which should produce a ZIP, with all contents of ${project.build.outputDirect} put into a base directory within the ZIP. So far, the maven-assembly-plugin with fits the bill perfectly. There is one issue, however, which I haven't been able to solve: I can't get the

Re: WAR packaging question

2010-07-01 Thread CassUser CassUser
Thanks for the response. I was looking at the wrong pom file, sorry. Here is what i have as the plugin: org.apache.maven.plugins maven-war-plugin src/main/resou

Re: WAR packaging question

2010-07-01 Thread Wendy Smoak
On Thu, Jul 1, 2010 at 12:19 PM, CassUser CassUser wrote: > resource1.xml is in src/main/resources.  The resulting WAR looks like this: ... > I don't want resource1.xml again at the top level.  Any way to remove that? Was that file ever somewhere else in the project? Have you run 'mvn clean' re

Re: WAR packaging question

2010-07-01 Thread CassUser CassUser
Don't know if this message went through to users @ maven, sending again... Nope. I have no resources defined in , it is using the standard maven directory structure to find resources (src/main/resources). Nothing really interesting in the POM, it is using the war plugin defaults:

Re: Multi Module Site Links

2010-07-01 Thread Stephen Connolly
well one assumes that you have correctly defined the /project/url parameter. there are a number of multi-module releases at apache and codehaus all of which deploy their site via mvn site-deploy or via mvn release:perform and I have not seen issues with the links in the deployed sites as long a

Re: Multi Module Site Links

2010-07-01 Thread Benjamin Wootton
Hi Stephen I am talking about the deployed site - though I'm actually deploying to a file:// URL on the same server. Would this make a difference over an scp? Thanks Ben On 1 Jul 2010, at 16:05, Stephen Connolly wrote: > On 1 July 2010 15:02, wrote: > >> I am experiencing the common proble

Re: Multi Module Site Links

2010-07-01 Thread Stephen Connolly
On 1 July 2010 15:02, wrote: > I am experiencing the common problem of links broken in multi module > sites with parent poms. > > I understand that* mvn site* builds individual module sites but doesn't > link them, and the* mvn site:deploy* should repair the links. The latter > however doesn't

Re: Disable usage of snapshot version of plugin

2010-07-01 Thread chetan mehrotra
Thanks Nick, I had to fallback on fully qualified notation. But this sometimes become annoying as I face similar exception using eclipse pluginn. So if a user does not know much about Maven and is only interested in using archytype:generate he would have dig out the latest stable version and also

Multi Module Site Links

2010-07-01 Thread benjamin.wootton
I am experiencing the common problem of links broken in multi module sites with parent poms. I understand that mvn site builds individual module sites but doesn't link them, and the mvn site:deploy should repair the links. The latter however doesn't happen. >From here http://maven.apache.org/

Re: Disable usage of snapshot version of plugin

2010-07-01 Thread Nick Stolwijk
Put it in your pluginmanagement with a fixed version. Or if you don't have a pom, specify the GAV of the plugin: mvn org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-5:crawl Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.ipro

Disable usage of snapshot version of plugin

2010-07-01 Thread chetan mehrotra
I am trying to run Maven archetype plugin using 'mvn archetype:crawl' However it fails with a message "[INFO] Unable to find resource 'org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:2.0-alpha-6-SNAPSHOT' in repository central (http://central)" Now I already have alpha-5 in my local

RE: standardized Maven GAV URN?

2010-07-01 Thread Stan Devitt
Such a notation would be much more useful if it were 1. standardized and 2. unambiguous My personal preference would be "something like" groupId:artifactId(classifier):version;extension[scope] This way, the classifier, the extension, and the scope could be optional simp

Re: Site docs in Maven 3

2010-07-01 Thread Brian Fox
Since the site stuff is fully decoupled from core, it shouldn't really matter if site is done. Most people run the site build separately from a ci system anyway and for the time being you could use m2 if needed. For all the goodness m3 provides, I don't think the site plugin which has a separate re

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Mark Struberg
If you need it for a company, then I would highly recommend a repository manager like Nexus or Archiva + a decent data backup for the accumulated repo. You will route () all your requests to public repos through your repo manager and thus it will 'cache' your artifacts. So even if the repo on ja

Re: maven runtime error java.net.UnknownHostException: repo1.maven.org.

2010-07-01 Thread Brett Randall
This posting describes some DNS resolver changes that one user found they needed - something OS/distribution specific and not your OS, but might be worth a check: http://www.mail-archive.com/users@maven.apache.org/msg90647.html . You're on Linux, so you might run tcpdump and see if Maven is callin

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Thomas Porschberg
I think org.glassfish.embedded:glassfish-embedded-all:jar is obsolete now, e.g. javax.ejb.embeddable.EJBContainer is contained in javax.ejb.jar. I drop the entry from my list and it worked. However the question how to get reliable maven repositories is still important for me. Thomas Am Thu, 1

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Thomas Porschberg
Ok, I understand your concerns but what would be a reliable repository which provides: >snip Missing: -- 1) org.glassfish.embedded:glassfish-embedded-all:jar:3.0 >snip ? Thomas Am Thu, 1 Jul 2010 09:41:13 +0100 schrieb Stephen Connolly : > Well I consider that to fall under immutabili

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Jörg Schaible
Mark Struberg wrote: > to back Stephens word: it's even worse - they recently dropped 'old' JSF-1 > artifacts from their repo without any noticing... It's not the first time I wished that they would not even *try* to provide a Maven repo ... > > So really only use the java.net maven repo via a

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Stephen Connolly
Well I consider that to fall under immutability of releases: 1. don't delete released artifacts (except possibly when there are legal issues) 2. don't change released artifacts. But I did not know about that example! -Stephen On 1 July 2010 09:31, Mark Struberg wrote: > to back Stephens word:

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Mark Struberg
to back Stephens word: it's even worse - they recently dropped 'old' JSF-1 artifacts from their repo without any noticing... So really only use the java.net maven repo via a repo manager like Nexus or Archiva. LieGrue, strub - Original Message > From: Stephen Connolly > To: Maven U

Re: maven runtime error java.net.UnknownHostException: repo1.maven.org.

2010-07-01 Thread CONSULTANT Composants-Chaaba (93)
Did u configure the proxy tag in settings.xml maven's file ? Message original Sujet : maven runtime error java.net.UnknownHostException: repo1.maven.org. De : Andrew Bucknell Pour : users@maven.apache.org Date : 01/07/2010 03:13 I downloaded maven 2.2.1 on to my debian box and

[Maven2][hibernate3-maven-plugin][Version 2.2] Mappings read twice when trying to execute hbm2ddl

2010-07-01 Thread CONSULTANT Composants-Chaaba (93)
Hye everybody,I'm trying to generate database schema using hibernate3:hbm2ddl . When I see traces i see that plugin is reading the mapping files twice. Is there a reason for that, I've seen on the net many threads talking about this issue and the solution is to disable class scanning. But in my

Re: WAR packaging question

2010-07-01 Thread CONSULTANT Composants-Chaaba (93)
Hye, Did you define your resources in . Can we see your pom file. Message original Sujet : WAR packaging question De : CassUser CassUser Pour : users@maven.apache.org Date : 30/06/2010 22:48 When the maven war plugin packages the maven project, the war includes my xml resource

Re: Site docs in Maven 3

2010-07-01 Thread Anders Hammar
It should be "alpha-7". /Anders On Thu, Jul 1, 2010 at 09:20, Kathryn Huxtable wrote: > Where is beta-7? > > As a side note, the developers had better not release version 3 until the > site plugins and other major elements are actually ready. They did this with > Maven 2 and it was hell. I know

Re: Site docs in Maven 3

2010-07-01 Thread Kathryn Huxtable
Where is beta-7? As a side note, the developers had better not release version 3 until the site plugins and other major elements are actually ready. They did this with Maven 2 and it was hell. I know because I went through it. On a side note, I decided that Tycho wasn't worth it for as simple a

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Dan Tran
ah, that is really overkill :-) On Thu, Jul 1, 2010 at 12:08 AM, Andreas Sewe wrote: > Hi, > >> I need to invoke an external command using the Exec plugin, with one of >> the >> arguments equal to "${basedir}/target". The problem is that under Windows >> this expands to "c:\\temp\\project/target"

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Andreas Sewe
Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to "${basedir}/target". The problem is that under Windows this expands to "c:\\temp\\project/target" because ${basedir} uses Windows-style slashes whereas the rest of the argument uses Unix-style slas

Re: Unable to find resource 'org.glassfish:javax.ejb:pom:3.0'

2010-07-01 Thread Stephen Connolly
I am going to state this once and only once: "Friends don't let friends use the java.net maven repositories" (at least without protection (e.g. a maven repository manager)) It's fine for following a tutorial, but don't keep the bad habit when you start writing real code. -Stephen P.S. the