Re: Variables interpolation: dynamic in Maven 2, static in Maven 3 ?

2011-01-31 Thread Marc Rohlfs
I'll watch this issue as I'm really interested in how it might be handled. Personally I don't have a clear position here. Sometimes I'd like the property interpolation to be a little more dynamic. It would e.g. be great if I could activate a profile by the existence of a file whose path

Regarding Automating Deployment to JBoss from Nexus

2011-01-31 Thread Tirumal Reddy Moolamalla
Hi All, Currently I am able to build my artifacts using Maven and successfully published to Nexus repository. I want to deploy deploy the war files and other configuration zip files from Nexus to the remote Jboss server. I have few doubts regarding this. 1)Can I use separate pom.xml file

Re: Regarding Automating Deployment to JBoss from Nexus

2011-01-31 Thread Stephen Connolly
not quite the solution you are looking for but have a look at the ship-maven-plugin @ mojo On 31 January 2011 11:17, Tirumal Reddy Moolamalla t.moolama...@zensar.com wrote: Hi All, Currently I am able to build my artifacts using Maven and successfully published to Nexus repository. I want to

Re: Error while compiling : annotations are not supported in -source 1.3

2011-01-31 Thread ankured182
I am now running Maven 3 . and the mvn compile is successful . Hence It's got something to do with my lack of provisioning for Maven 2 However I am still getting another error when I tried to run the main class with Derby(with your suggestion on persistence taken into account) . I am

Re: Site plugin - broken links between modules only on site stage

2011-01-31 Thread Lukas Theussl
Which version of the site plugin are you using (it's not specified in your poms)? Please test 2.3-SNAPSHOT, some staging issues should be fixed with http://jira.codehaus.org/browse/MSITE-533. HTH, -Lukas Marcin Kuthan wrote: Hi My multi module project is structured with separate

failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:java

2011-01-31 Thread ankured182
This is the command I typed to run the main class with derby : mvn exec:java -Dexec.mainClass=com.apress.javaee6.chapter02.Main Following is the image of my command prompt http://maven.40175.n5.nabble.com/file/n3364506/maven.jpg I have uploaded my project in rapidshare

Re: Variables interpolation: dynamic in Maven 2, static in Maven 3 ?

2011-01-31 Thread Evgeny Goldin
Hi Marc, Marc Rohlfs wrote: What about introducing something like property scopes and/or types? properties my-prop scope=... type=...foo/my-prop !-- 'scope' = 'global|pom' -- !-- 'type' = 'mutable|immutable' -- /properties This was just a spontaneous idea, not

Re: Variables interpolation: dynamic in Maven 2, static in Maven 3 ?

2011-01-31 Thread lukewpatterson
Marc Rohlfs wrote: ... It would e.g. be great if I could activate a profile by the existence of a file whose path contains an interpolatable token (like 'src/main/filters/${target.environment}/something.properties'). But I understand that something like this might lead to confusing

Re: Site plugin - broken links between modules only on site stage

2011-01-31 Thread Marcin Kuthan
Hi Lukas I'm sorry that I didn't specify versions in the first post. I tested my poms with version 2.2 (for Maven 2.2.1) and version 3.0-beta-3 (for Maven 3.0.2). In both cases links are invalid. I updated my build to 2.3-SNAPSHOT and plugin reported invalid character in url element. There was a

Re: Site plugin - broken links between modules only on site stage

2011-01-31 Thread Lukas Theussl
This sounds like a manifestation of http://jira.codehaus.org/browse/MSITE-135 but I'm not sure. If you can attach a simple test project that would help, I haven't tried to fix this yet. -Lukas Marcin Kuthan wrote: Hi Lukas I'm sorry that I didn't specify versions in the first post. I

Re: surefire classpath problems with maven 3 parallel

2011-01-31 Thread fmeili
With further analyzing I found that in case of the error (ClassNotFound) the corresponding JAR file is really missing in the compiler class path while the test classes are compiled. On some build runs, the junit jar was not in the compiler classpath, on some other build runs, the mockito jar file

[ANN] LaTeX Maven Mojo 1.1 Released

2011-01-31 Thread Julien Ponge
Hi, The Mojo team is pleased to announce the release of the Mojo Latex Maven Plugin version 1.1. The LaTeX Maven Mojo is useful for building a set of LaTeX documents. It builds PDF documents using pdflatex, and has optional support for bibtex. http://mojo.codehaus.org/latex-maven-plugin/ To

How to build plugin before top-level project uses it

2011-01-31 Thread E S
I am new to maven. I have a top level project with several sub-projects below it. I have recently created a plugin as a sub-project that will be used by the top level project during the build (packaging phase most likely). I am having trouble getting maven to build the plugin and install it into

Re: How to build plugin before top-level project uses it

2011-01-31 Thread Hilco Wijbenga
On 31 January 2011 09:53, E S electric.or.sh...@gmail.com wrote: Anyway, what’s the best way to go about doing this? If I build the plugin separately, then run the entire build, it works fine. How can I get maven to do something like that but without two separate builds? Why don't you put it

Re: How to build plugin before top-level project uses it

2011-01-31 Thread E S
That's certainly an option, but it doesn't work as well as I would like for our build server or new developers getting their dev environments set up. We could get around it using something like build script on top of maven, but I would prefer a cleaner solution in which maven handles it

Re: How to build plugin before top-level project uses it

2011-01-31 Thread Stephen Connolly
you cannot use a plugin within the same reactor as the plugin is built from. this is usually solved in one of two ways: 1. use the immediately previous release of the plugin, so the reactor build version 1.1-SNAPSHOT but uses version 1.0 2. move the plugin to its own reactor the reason why this

Re: Site plugin - broken links between modules only on site stage

2011-01-31 Thread Marcin Kuthan
Hi Lukas I don't think that my findings are related to MSITE-135. Only 2.3-SNAPSHOT is affected. You should reproduce the issue in 10 mins: 1. Follow http://code.google.com/p/m4enterprise/wiki/GettingStarted (only Checkout Source Code and Install Corporate POM sections) 2. Go to

Re: How to build plugin before top-level project uses it

2011-01-31 Thread E S
Well, using a previous version of the plugin isn't an option since one doesn't exist. As for using it in a separate reactor, are you saying you can somehow have multiple reactors during a single build? Can you point me to further information on that subject? Or did you just mean running a separate

Re: How to build plugin before top-level project uses it

2011-01-31 Thread Hilco Wijbenga
On 31 January 2011 10:08, E S electric.or.sh...@gmail.com wrote: That's certainly an option, but it doesn't work as well as I would like for our build server or new developers getting their dev environments set up. We could get around it using something like build script on top of maven, but I

Basic POM Error: Project not Start_tag or End-Tag

2011-01-31 Thread Kenneth Litwak
Hi, I am getting an error for the very first word in my POM. I'm new to trying to really understand Maven because I have to modify a POM to do things together that I can't find a model for, Maven + Spring + web app. I used my IDE, IDEA, to create a basic project including a POM but IDEA is

RE: Basic POM Error: Project not Start_tag or End-Tag

2011-01-31 Thread Ludwig Magnusson
Perhaps the - before and after the commons-logging dependency? /Ludwig From: Kenneth Litwak [mailto:klit...@apu.edu] Sent: den 31 januari 2011 19:36 To: users@maven.apache.org Subject: Basic POM Error: Project not Start_tag or End-Tag Hi, I am getting an error for the very first word

Re: How to build plugin before top-level project uses it

2011-01-31 Thread E S
Yes, using our shared repository would be another option. We would have to maintain the plugin as if it were more like a 3rd party resource rather than part of the product's source, but maybe that's the right way to think about. Not sure, but if it works, I think that's fine. Thanks for the help.

RE: Basic POM Error: Project not Start_tag or End-Tag

2011-01-31 Thread Kenneth Litwak
Ludwig, Thanks. Yes, that did it. Ken Kenneth D. Litwak, Ph.D. Azusa Pacific University 901 E. Alosta Ave. Azusa, CA 91702 -Original Message- From: Ludwig Magnusson [mailto:lud...@itcatapult.com] Sent: Monday, January 31, 2011 10:40 AM To: 'Maven Users List' Subject: RE: Basic POM

Error building simple web project

2011-01-31 Thread Kenneth Litwak
I'm writing a web app with Maven and learning as I go. The packaging is war. I have a directory within my project that has the web pieces: web src main webapp WEB-INF Web.xml When I run mvn clean package, I get this error: [Info] Error

Re: Error building simple web project

2011-01-31 Thread Hilco Wijbenga
On 31 January 2011 13:08, Kenneth Litwak klit...@apu.edu wrote:   I'm writing a web app with Maven and learning as I go.  The packaging is war. I have a directory within my project that has the web pieces: web   src      main         webapp             WEB-INF                 Web.xml Is

Re: How to build plugin before top-level project uses it

2011-01-31 Thread Anders Hammar
I thought this was possible with Maven 3.0, but not with Maven 2.x. Am I wrong? /Anders On Mon, Jan 31, 2011 at 19:11, Stephen Connolly stephen.alan.conno...@gmail.com wrote: you cannot use a plugin within the same reactor as the plugin is built from. this is usually solved in one of two

RE: Error building simple web project

2011-01-31 Thread Kenneth Litwak
Sorry, just a copy-and-paste error. I know the real thing has to have all lower-case. WEB-INF/web.xml Kenneth D. Litwak, Ph.D. Azusa Pacific University 901 E. Alosta Ave. Azusa, CA 91702 -Original Message- From: Hilco Wijbenga [mailto:hilco.wijbe...@gmail.com] Sent: Monday,

Re: Regarding Automating Deployment to JBoss from Nexus

2011-01-31 Thread Wayne Fay
Currently I am able to build my artifacts using Maven and successfully published to Nexus repository. I want to deploy deploy the war files and other configuration zip files from Nexus to the remote Jboss server. I have few doubts regarding this. You would probably benefit from installing a

Re: Error building simple web project

2011-01-31 Thread Greg Akins
n Mon, Jan 31, 2011 at 5:20 PM, Kenneth Litwak klit...@apu.edu wrote: Sorry, just a copy-and-paste error. I know the real thing has to have all lower-case. WEB-INF/web.xml -- I haven't seen that error before. Maybe the web.xml isn't correctly formed? Greg Akins

RE: Error building simple web project

2011-01-31 Thread Kenneth Litwak
I resolved this error. I didn't realize how complex the structure of a web app was in Maven. Now that I added that complexity and have POMs all over the place, the project builds. Thanks. Kenneth D. Litwak, Ph.D. Azusa Pacific University 901 E. Alosta Ave. Azusa, CA 91702 -Original