First build errors

2007-07-30 Thread Randall Fidler
Hello, I'm running Continuum v1.0.3 on Ubuntu Linux with Maven 2.0.7 and Java 1.5.0_011. The web service comes up, I can login and upload a POM but when I run it, all I end up with is Exception: Null for the build status. I've increased the logging to DEBUG for all the

deploying to two repositories and two snapshots repositories in m2

2007-07-30 Thread Piotr Oktaba
Hi. I have to deploy artifacts to two repositories (if snapshots, to two snapshots repositories). I cannot define two repositories (and two snapshots repositories) in section distributionManagement. Is any way to do it without double calling goal deploy:deploy with argument

Re: Looking for IZPack mater in the repo

2007-07-30 Thread Geoffrey De Smet
I'd recommend contacting the izpack mailing list with this issue. Maybe someone already has a decent pom of an up to date version, which can be pushed to the central maven repo. PS: there is also an issue of an izpack maven2 plugin in mojo.codehaus.org's JIRA. Also for maven1 I wrote one at

Re: Hibernate and 2.0.7

2007-07-30 Thread Martin Gilday
Using those versions together with no problems. - Original message - From: jallen [EMAIL PROTECTED] To: users@maven.apache.org Date: Sun, 29 Jul 2007 13:00:27 -0700 (PDT) Subject: Hibernate and 2.0.7 Has anyone else experienced issues with 2.0.7 and hibernate 3.2.4.ga? It's not my

[m2] release process - maven-release-plugin usage

2007-07-30 Thread James Abley
Hi, We currently have the following process for our releases: Walk the DAG of our modules in a breadth-first traversal [1] and for each module being released: 1) Create a branch in Subversion. 2) Check out the branch 3) Update the POMs so that no SNAPSHOT dependencies are stil in the POMs and

Deployment of runtime configurations? Deployment of assemblies?

2007-07-30 Thread Georg Öttl
Hi I have a different configurations (spring, Text files and so on). I really tried hard to figure out how I should handle those runtime configurations with maven. Has anybody done such a thing so far? My problem is: If I put the configuration into the src/main/resources directory and

Re: deploying to two repositories and two snapshots repositories in m2

2007-07-30 Thread maarten roosendaal
Use profiles to define 2 profiles, each having it's own repository. You can then say mvn deploy:deploy -P repo1 - Original Message From: Piotr Oktaba [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, July 30, 2007 8:31:30 AM Subject: deploying to two

JAXP DocumentBuilderFactory not found by maven-antrun-plugin initiated Ant

2007-07-30 Thread Sahoo
(I have not subscribed to users alias, so please copy a reply directly to my email) Hi, I get /javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException/ when I call an

Deployment of runtime configurations? / Deployment of assemblies?

2007-07-30 Thread Georg Öttl
Hi I have a different configurations (spring, Text files and so on). I really tried hard to figure out how I should handle those runtime configurations with maven. Has anybody done such a thing so far? My problem is: If I put the configuration into the src/main/resources directory and therefore

latest non-snapshot dependency

2007-07-30 Thread Rodrigo Gonçalves
Hi... In my poms I have some plugins configured without the version in order to use the latest one, but in my settings.xml file I need to have some snapshot-repositories. So in the builds maven will use the latest version available witch is a snapshot version, and that is not my intension. Is

Re: latest non-snapshot dependency

2007-07-30 Thread Stuart McCulloch
On 30/07/07, Rodrigo Gonçalves [EMAIL PROTECTED] wrote: Hi... In my poms I have some plugins configured without the version in order to use the latest one, but in my settings.xml file I need to have some snapshot-repositories. So in the builds maven will use the latest version available

Re: latest non-snapshot dependency

2007-07-30 Thread Rodrigo Gonçalves
Hi Stuart ! Thx for your response... I've tried to use your suggestion but it does not work for every artifacts. For example: when I use: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId

merge 2 web applications into 1

2007-07-30 Thread Eugeny N Dzhurinsky
Hello there! I have some (strange?) requirement: there is a web application, let's say projectA. This application contains some classes, required libraries, images, javascript/jsp files etc. now I have application (projectB), which depends on projectA. To resolve such dependency, I need to have

Re: latest non-snapshot dependency

2007-07-30 Thread Stuart McCulloch
On 30/07/07, Rodrigo Gonçalves [EMAIL PROTECTED] wrote: Hi Stuart ! Thx for your response... I've tried to use your suggestion but it does not work for every artifacts. For example: when I use: plugin groupIdorg.apache.maven.plugins/groupId

Re: latest non-snapshot dependency

2007-07-30 Thread Wayne Fay
To answer your original question, it is not currently possible to tell Maven to use the latest non-snapshot of a dependency. Something along these lines has been under discussion on the Dev list in the last month, though. Your best bet is to simply specify the exact version you want, or remove

Re: merge 2 web applications into 1

2007-07-30 Thread Wayne Fay
Maven2 supports this already. It is called WAR overlaying. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Wayne On 7/30/07, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote: Hello there! I have some (strange?) requirement: there is a web application, let's say

Re: [m2] release process - maven-release-plugin usage

2007-07-30 Thread Tom Huybrechts
You can use the release plugin on a multi-module project, and it will it walk the module graph for you. You can also run release:prepare with -B (batch mode) so that all defaults will be used automatically. On 7/30/07, James Abley [EMAIL PROTECTED] wrote: Hi, We currently have the following

Re: latest non-snapshot dependency

2007-07-30 Thread Wayne Fay
As far as I understand it, this works fine so long as you are only connecting to non-snapshot repos. As Rodrigo mentioned, he has snapshot repos configured in his pom, and as such the RELEASE tag will not work as desired. Wayne On 7/30/07, Stuart McCulloch [EMAIL PROTECTED] wrote: On 30/07/07,

Re: [m2] release process - maven-release-plugin usage

2007-07-30 Thread James Abley
On 30/07/07, Tom Huybrechts [EMAIL PROTECTED] wrote: You can use the release plugin on a multi-module project, and it will it walk the module graph for you. That's what I doing currently. Nearly all of our SVN modules are Maven2 multi-module projects; there's an unfortunate overloading of the

Passing System Variables to Maven

2007-07-30 Thread David Williams
Hi Everyone, How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. Thanks, David

Re: [maven-dependency-plugin] v 2.0-alpha-4 : include/exclude scopes

2007-07-30 Thread Wayne Fay
I don't believe all but test as a possible scope makes much sense when you're thinking about valid use/business cases. Can you think of such a real-life situation? Also, it might be helpful to review the Maven Dependency Scope section on this page:

Re: deploying to two repositories and two snapshots repositories in m2

2007-07-30 Thread Wayne Fay
Correct me if I'm wrong Maarten, but you'd still need to call deploy twice, once for -P repo1 and again for -P repo2. The original question was asking if it was possible to do 2 deploys with a single call of mvn deploy -- my general response would be no. But I've never needed to do this, so

Re : Passing System Variables to Maven

2007-07-30 Thread eric . giguere
Hi DavidThose are all already available in the Java environment running Maven. If the property your are looking for is not in the system default, you pass them in the command line using the -D option.Hope it helps.Eric.- Message d'origine -De: David Williams [EMAIL PROTECTED]Date:

Re: Passing System Variables to Maven

2007-07-30 Thread Graham Leggett
David Williams wrote: How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. You can access environment variables by using maven variables of the form ${env.VARIABLE}. So ${env.PATH} would be your path, for example.

Re: Deployment of runtime configurations? / Deployment of assemblies?

2007-07-30 Thread Greg Davidson
I don't believe you should put environment specific, such as TEST-db connection params vs PROD-db connection params in the binary. Put that information in a file which can be edited outside your artifact (jar, war, ear). As long as this config file is in your classpath, then you can access it

Problems with ear packaging and existing jboss-app.xml

2007-07-30 Thread Todd Nine
Hi all, I'm running into a pretty big issue with the ear plugin. I'm creating an ear for JBoss with an existing jboss-app.xml file. I need to have special classloading directives, and they're not available in the file that's generated by the plugin. Whenever the plugin runs, it never packages

Re: How can i build a specific version without changing the pom.xml?

2007-07-30 Thread Thorsten Heit
In that case, you will need to change pom.xml everytime right? As long as you're using snapshots: No. You only have to change your pom.xml if you decide that the code is stable enough to be called a new release. Or, we can have profile defined in profiles.xml or settings.xml to avoid

Re: Problems with ear packaging and existing jboss-app.xml

2007-07-30 Thread Wayne Fay
src/main/resources is not the correct (default) directory to use for EARs resources. As stated on [1], the correct directory is src/main/application. Try that and report back! [1] http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html Wayne On 7/30/07, Todd Nine [EMAIL PROTECTED]

Exit codes on Windows

2007-07-30 Thread Martin Gilday
I am currently writing a Windows Powershell script which calls the maven bat file to trigger a build as part of its functionality. It seems that regardless of sucess or failure an exit code of 0 is returned. I have found this closed JIRA issue (http://jira.codehaus.org/browse/MNG-2127) which

Re: Exit codes on Windows

2007-07-30 Thread Martin Gilday
Seems I posted a bit prematurely. It works in a standard command prompt just not in powershell. It seems it's not picking up the environmental variable MAVEN_TERMINATE_CMD. If you define it again in your powershell script in the env namespace ($ENV:MAVEN_TERMINATE_CMD=on) it starts working.

Running a single JUnit test

2007-07-30 Thread Scott Purcell
Hello, Maven 2.0.7 I have a project that encompases different projects, so I have a parent pom with children. I created a JUnit test called InternalDAOTest.java. In my pom, I have the following: plugin groupIdorg.apache.maven.plugins/groupId

Re: Running a single JUnit test

2007-07-30 Thread ben short
Your missing test from the end of your class name, see [1] mvn -Dtest=com.xxx..InternalDAOtest test [1] http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html On 7/30/07, Scott Purcell [EMAIL PROTECTED] wrote: Hello, Maven 2.0.7 I have a project that

Re: Running a single JUnit test

2007-07-30 Thread ben short
*mvn -Dtest=com.xxx..InternalDAOTest test On 7/30/07, ben short [EMAIL PROTECTED] wrote: Your missing test from the end of your class name, see [1] mvn -Dtest=com.xxx..InternalDAOtest test [1] http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html On

Re: Running a single JUnit test

2007-07-30 Thread Scott Purcell
Thanks Ben that was it. I got screwed up because the docs say the following: The value for the test parameter is the name of the test class (without the extension). so I assumed the extension was Test and so I kept leaving it off. Thanks, Mondays. On 7/30/07, ben short [EMAIL PROTECTED]

Assembly plugin includes directories

2007-07-30 Thread Petar Tahchiev
Hi guys, I have the following situation: I have configured the assembl plugin so that it produces an archive that contains the content of another two archives. My assembly descriptor is this one: assembly formats formatjar/format /formats

RE: Assembly plugin includes directories

2007-07-30 Thread Andrew Boyer
Check your assembly descriptor for A:B and A:C, make sure you've set the includeBaseDirectory property for them to false. Andrew -Original Message- From: Petar Tahchiev [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 5:43 PM To: Maven Users List Subject: Assembly plugin

Re: Jdev project error using Maven to build .jpr

2007-07-30 Thread ScottBrank
Hi Wayne, I'm not familiar to JDev and Maven integration too, so then I'm using both separetly. Well, I fixed my issue putting my project folder in the same volume as maven folder. I was completly unwarned of it. I think this is some kind of problem in the engine of Jdev plugin. However I do

Re: Assembly plugin includes directories

2007-07-30 Thread Petar Tahchiev
Andrew hi, and thank you for the swift response. As I have listed I have set includeBaseDirectoryfalse/includeBaseDirectory so I don't think this is the problem. The A:B and A:C artifacts doesn't have the B.jar and C.jar directories in their archives. Any other ideas? 2007/7/31, Andrew Boyer

RE: [maven-dependency-plugin] v 2.0-alpha-4 : include/exclude scopes

2007-07-30 Thread Brian E. Fox
The dependency plugin uses the same code as core to determine the scope. Specifically, it calls a method (going by memory here) isScope(scope). The test scope includes everything, so if used to exclude, you would get nothing. You can use the copy goal to name specific dependencies if you need to,

Eclipse 3.3 plugin based war build with Maven?

2007-07-30 Thread George Stragand
With Eclipse 3.3, the temptation to use the osgi plugin framework is huge, and we would really like to utilize the osgi framework within our web app. Differences exist between the classic layout of a web app and where the osgi bundles exist (the Eclipse plugin jars existing under WEB-INF/eclipse

Julia Vilke/Moscow/Canon/FI is out of the office.

2007-07-30 Thread Julia . Vilke
I will be out of the office starting 16.05.2007 and will not return until 08.01.2008. I'm on maternity leave till January 2008. In case of Canon Consumable business, please contact Mikhail Popov, in case of Paper business - Maria Bondarenko.

Re: Passing System Variables to Maven

2007-07-30 Thread Eric Redmond
I would stick to -D options. env variables are going away in Maven soon. Eric On 7/30/07, Graham Leggett [EMAIL PROTECTED] wrote: David Williams wrote: How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. You

Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
Hi, In the parent POM I have the following: [...] properties scmConnection http://localhost/repos/repo/${groupId}/${artifactId}/trunk/scmConnection /properties scm connection${scmConnection}/connection developerConnection${scmConnection}/developerConnection /scm [...] The

Excluding build .jars from .war

2007-07-30 Thread Frederick N. Brier
I am relatively new to Maven and my project is including a number of .jars which I believe are only needed by Maven at build time into my .war. How do I stop them from being included? maven-artifact-20.0.jar maven-artifact-manager-2.0.jar maven-model-2.0.jar maven-plugin-api-2.0.jar

Re: Eclipse 3.3 plugin based war build with Maven?

2007-07-30 Thread Eric Redmond
Assuming the servletbridge jar is in your repo and dependency list, try something like this: plugin artifactIdmaven-dependency-plugin/artifactId executions execution phaseprocess-resources/phase goals goalcopy-dependencies/goal /goals configuration

Re: Parent POM, properties and scm problem

2007-07-30 Thread Oscar Picasso
I have also noticed the same behavior with the project url, the sit url and the scm url even if in the effective the corresponding properties are correct (without the artifactId appended). On 7/30/07, Oscar Picasso [EMAIL PROTECTED] wrote: Hi, In the parent POM I have the following: [...]

Maven local process artifacts

2007-07-30 Thread Dmitry
By default Maven attempts to locate a dependecies artifact using the follloing process: 1-st generate path to the artifact in local repositiory. etc How we can change Maven configuration that instead having to add the Spring framework jar to every project - change just from one common

Re: Excluding build .jars from .war

2007-07-30 Thread Wayne Fay
Show us your pom. You must be doing something wrong -- I've never seen any of those jars including in any wars I've ever constructed. Wayne On 7/30/07, Frederick N. Brier [EMAIL PROTECTED] wrote: I am relatively new to Maven and my project is including a number of .jars which I believe are

Re: How to use ${project.build.directory}?

2007-07-30 Thread Dmitry
When we run maven JUnits - and ensure that testing is successful. - run mvn test but its through out exception and looks like it did not run properly JUnit in project. How the first step to check where is error in configuration / setting sof maven and fix this error thanks, DT www.ejinz.com

Re: How to use ${project.build.directory}?

2007-07-30 Thread Wendy Smoak
On 7/20/07, Tawfik, Sameh E [EMAIL PROTECTED] wrote: Hi, I'm using the following code: dependency groupIdconnector/groupId artifactIdconnector/artifactId version1_0/version scopesystem/scope systemPath${Build_base}/ma-jdm-tck/lib/connector_1_0.jar/systemPath

Re: Maven local process artifacts

2007-07-30 Thread Wayne Fay
First off, I think you probably should avoid doing this. I think you will run into troubles down the line if/when changes in Spring cause your older projects to break, so suddenly you can't use the latest Spring in all your projects, etc. Having said that, you could create a single Super Parent

Maven coherent dependencies build

2007-07-30 Thread Dmitry
we changed configuration using Coherent Dependency - Maven conf but it did not work. Any advices about how to use coherent dependecies? project modelVersion4.0.0/modelVersion groupIdcom.mycompany.app/groupId artifactIdAdvertiseFreeModule/artifactId packagingjar/packaging

Re: Excluding build .jars from .war

2007-07-30 Thread Frederick N. Brier
Here it is: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion parent

Maven standard directory layout question

2007-07-30 Thread Dmitry
We are suing common case which requires no changes to the POM project - the packaging of resources into a JAR file. Maven again uses for this task the standard directory layout. This means that by adopting Maven's standard conventions, we can package resources within JARs, simply by

Re: Excluding build .jars from .war

2007-07-30 Thread Wendy Smoak
On 7/30/07, Frederick N. Brier [EMAIL PROTECTED] wrote: parent groupIdorg.apache.struts/groupId artifactIdstruts2-apps/artifactId version2.0.9/version /parent Using a pom from some else's project as your parent is unusual. I'd remove that and leave the dependencies

Re: Maven standard directory layout question

2007-07-30 Thread Wendy Smoak
On 7/30/07, Dmitry [EMAIL PROTECTED] wrote: This means that by adopting Maven's standard conventions, we can package resources within JARs, simply by placing those resources in a standard directory structure. But when we put resources in standard directory we get nothing -what we did wrong?

Re: Maven coherent dependencies build

2007-07-30 Thread Wayne Fay
What didn't work? What happened vs what did you expect to happen? We need more details to be able to help. And what is a coherent dependency? Wayne On 7/30/07, Dmitry [EMAIL PROTECTED] wrote: we changed configuration using Coherent Dependency - Maven conf but it did not work. Any advices

Re: Excluding build .jars from .war

2007-07-30 Thread Frederick N. Brier
I was building off of the struts2-portlet-2.0.x.war example. So I guess that means I need to travel up the pom parents tree and merge all the dependencies and other elements into my own pom? I will try and attempt not to break anything. Thank you. Do you happen to know why all those .jars

Re: Excluding build .jars from .war

2007-07-30 Thread Wayne Fay
I'd assume this is happening because some parent (or grandparent, or grand-grandparent, etc) of your pom is including those jars as a dependency. And so your own project is bringing them in as a dependency, so they are included in your war. You could try mvn -X package and then search the

Re: Excluding build .jars from .war

2007-07-30 Thread Wendy Smoak
On 7/30/07, Frederick N. Brier [EMAIL PROTECTED] wrote: I was building off of the struts2-portlet-2.0.x.war example. So I guess that means I need to travel up the pom parents tree and merge all the dependencies and other elements into my own pom? No, you should just declare dependencies on