Differences between dependencies

2007-07-26 Thread Dmitry
Could you please give the main differences between the following depedencies: - Release and Snapshot thanks, DT, www.ejinz.com Search Engine Maven differentiates between two kinds of dependencies: a.. Release. Released dependencies are artifacts downloaded to the local maven

External Property files

2007-07-26 Thread cb2007
Hi! In the Maven2 documentation (http://maven.apache.org/pom.html#Properties) I read that properties can come from 1. env.X: Prefixing a variable with env. will return the shell’s environment variable. For example, ${env.PATH} contains the $path environment variable (%PATH% in

Looking for IZPack mater in the repo

2007-07-26 Thread Aron Sogor
The izpack poms has some issues: 1. the dependencies dependency/ /dependencies causes mvn 2.0.6 to call the pom invalid. 2. 3.8.0 is old 3. The biggest pain is none of the packages contains the classes from the izpack-events.jar so if you write plugins there is no way to

Re: Maven plugin for WebSphere 6.x

2007-07-26 Thread Dion Gillard
The maven 1.x plugin wasn't developed by IBM. Some of us on WebSphere are happily sticking with 1.1. On 7/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have spent the last few hours looking the Maven 2 equivalent of the following 1.1 plugin

External property files

2007-07-26 Thread Carlo Bonamico
Hi! In the Maven2 documentation (http://maven.apache.org/pom.html#Properties) I read that properties can come from 1. env.X: Prefixing a variable with env. will return the shell’s environment variable. For example, ${env.PATH} contains the $path environment variable (%PATH% in

Filtering in src/main/webapp/WEB-INF with maven-war-plugin

2007-07-26 Thread Matthias Berndt
Greetings, I'd like to filter the web.xml in src/main/webapp/WEB-INF. I tried to follow the instructions on http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html but it doesn't work src/main/webapp/WEB-INF/web.xml. Can anyone give me an advice or provide

resources as dependencies

2007-07-26 Thread John Coleman
Hi, We want to farm off some of our common resources (java scripts and images) into a project that other projects can use as a dependency. Does Maven2 have a way of getting such dependencies into a resources phase? Regards, John Eurobase International Limited and its subsidiaries

Broken links in project-reports.html

2007-07-26 Thread erik_k
Hi, I'm using Maven2 and the maven-site-plugin. The generated project-reports.html contains broken links, such as .../project-reports.html#changelog.html. I want to delete the anchor-tags. Is there a possibility to delete the tags in a template-file or do you know which class(es) generate(s) the

RE: Maven plugin for WebSphere 6.x

2007-07-26 Thread hermod.opstvedt
Hi The WAS 5 plugin for Maven2 is not meant for WAS6. The WAS directory structure has changed between the two versions. When I wrote that plugin, I specifically stated that. For WAS6 take a look at the Cargo plugin. Cargo should work for WAS6 because WAS6 is based on JDK 1.4, whereas WAS5 is

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

2007-07-26 Thread John Patrick
Baz, I would put this type of information into a profile within the pom. Then its simple and repeatable. Also trackable if your project is under source control, instead of just relying on people knowing the correct command line arguments to use. Personally I think building a different version

Best Practice Repository usage

2007-07-26 Thread maarten roosendaal
Hi, I was wondering if there is a best practice regarding the use of repositories, not just for handling 3rd party dependencies but also regarding SNAPSHOT development and Releases from the project itself. I've read some articles related to setting up a repo and why use one, but nothing

RE: runtime properties

2007-07-26 Thread John Coleman
Thanks Wayne, I had not seen this before, and it seems indeed to be some damage in the repo. Just copying fresh over repaired it. Quiet a lot seems to of corrupted. Would be nice to have something to that effect in the Maven log for that message. And what about a repository:repair kind of goal?

Not running test on jetty:run?

2007-07-26 Thread mateamargo
I'm having problems with my webapp. But the problems were while running it (e.g. saving an object), but yesterday I have tried running mvn clean jetty:run-war instead of mvn clean jetty:run and hasn't compile it because a test fail. Running jetty:run it don't run the surefire plugin. Is this

Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread Wayne Fay
A work-around for this problem which I've previously mentioned is roughly: 1. Figure out which classes are the problem 2. Figure out which jars contain those classes 3. Figure out which version of those classes you want to keep 4. Extract and re-jar the others problem jars minus the offending

Filtering issue

2007-07-26 Thread CDickson
Hi, This is a follow up to my previous question regarding resource copying. Below is my resources plugin configuration which will hopefully give people a better idea of what I am trying to achieve. When I run my build I can see the 2 different executions of the plugin run and files do get

Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack
This turns out to be some incompatibility between the clover plugin and the junit-report plugin. http://jira.codehaus.org/browse/MPCLOVER-59 Jeff Lukas Theussl-3 wrote: Can't you get that using the maven.clover.instrument.tests and/or maven.clover.includes/excludes properties? -Lukas

[m2] issue with module running ant task that creates an jar

2007-07-26 Thread Mick Knutson
I have a module that is defined as a jar as this jar is a dependency within other modules in my project. This pom.xml: jar calls a bpel and task that creates a bpel suitcase JAR. The bpel jar is the artifact I actually want in my repository and available as a dependency. So, how do I accomplish

Run surefire unit test with custom junit runner.

2007-07-26 Thread Gohan
I wonder if it's possible to run JUnit4 tests with a custom JUnit runner using the surefire maven2 plugin. The test uses the @RunWith annotation to tell which JUnit runner to use, e.g.: @RunWith(MyJUnitRunner.class) public class MyClassTest { .. } The tests runs perfectly in Eclipse but not

Re: What is the correct way to use classifiers

2007-07-26 Thread Graham Leggett
Dennis Lundberg wrote: To sum this up: it works, but is it the right way (TM) to use classifiers? For what it's worth, that's how we use classifiers. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature

Re: relativePath

2007-07-26 Thread Jesse McConnell
generally you don't need to use that relativePath tag.. and your second scenario still looks a little odd. I think maybe your not installing your superpom into the repository before you start building your project? Normally if your doing something like this with a company pom, then that pom is

Creating a JAR to include in the lib directory

2007-07-26 Thread Vaidya, Supriya A \(US - Chicago\)
Hi: I am working with multiple modules - An EJB contained in a WAR contained in a EAR There are some libraries that are shared between the EJB and the WAR. In reading up on skinny WARs, I was able to find that a way to include the lib directory in teh EAR only, so that they are

site:site versus site:stage

2007-07-26 Thread Adam Fisk
I'm having issues using site:site with a multi-module project. site:stage works fine, but for some reason site:site doesn't like my modules, instead just listing them in bold. Shouldn't they do the same thing? Any idea how I get site:site to just link the darn modules? I'm using maven 2.0.7.

Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Mick Knutson
Not sure i understand what this plugin will do for the artifact. I have a modele, that runs an ant task that creates a jar. So maven module is not creating the jar from the target DIR, the ant task already creates the jar I want inside the target DIR that I want to add to my repository. On

Re: can not log in after deploy the continuum

2007-07-26 Thread Jesse McConnell
sorry, not understanding your problem... what does 'whatever I create a password remind session' mean? did you forget your admin account password? On 7/24/07, Rex Zhen [EMAIL PROTECTED] wrote: I set the admin account at the first page after I deployed the continuum. But I can not log in,

Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Wayne Fay
If I understand you correctly, build-helper-maven-plugin should be what you're looking for: http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html Wayne On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote: To give a little more idea of what I am looking for: I want to see

Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack
Maybe nevermind, I checked out the source and tests for the clover plugin and there is a test to instrument the tests and it verifies the plugin works as expected (line count increases with property set to true). I will double-check my project setup to determine what is wrong. Jeff jblack

Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack
Lukas, Thanks for the ideas, I think this is the right track. However, setting maven.clover.instrument.tests=true did not produce and change to the clover report (source lines of code, or otherwise). Tracking the plugin.jelly, the path to the test source is being included as a fileset to

Re: Maven Idea Plugin

2007-07-26 Thread Dennis Lundberg
Kannan Ekanath wrote: Thanks !!! That is exactly what I need. I however have a question though. I am using 2.2-SNAPSHOT version, there is a patch for this JIRA issue, (which means that it is already added to source control). No, it just means that someone has created a patch for the issue. It

Re: Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Arnaud Bailly
Wayne Fay [EMAIL PROTECTED] writes: 1) Use mvn -X and parse the text dependency tree to find out which dependency is pulling in the unwanted lucene artifact version. Just copy and paste the mvn -X output to Notepad etc and search for lucene. Then add an excludes node to the offending

Re: resources as dependencies

2007-07-26 Thread Arnaud Bailly
John Coleman [EMAIL PROTECTED] writes: The web.xml in the dependency war does seem to be ignored so this is quite a neat solution. :) We are using this to provide a library of resources all our web applications can draw from. I still don't have a good answer on how to do what I call client

Re: Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Wayne Fay
1) Use mvn -X and parse the text dependency tree to find out which dependency is pulling in the unwanted lucene artifact version. Just copy and paste the mvn -X output to Notepad etc and search for lucene. Then add an excludes node to the offending dependency to exclude the bad artifact. 2) The

RE: resources as dependencies

2007-07-26 Thread John Coleman
The web.xml in the dependency war does seem to be ignored so this is quite a neat solution. :) We are using this to provide a library of resources all our web applications can draw from. I still don't have a good answer on how to do what I call client flavours. The client may need to have

Re: runtime properties

2007-07-26 Thread Wayne Fay
The process for downloading and installing jars into the local repo cache is rather flawed. At least one bug has been filed and this is certainly in the mind of the Maven developers. I'm just not sure when it will be addressed -- probably not until M2.1. I like the idea of the repo:repair mojo.

Re: Maven creating a WAR: strange error about file access

2007-07-26 Thread Wayne Fay
A Maven bug would imply that its a problem of Maven, and therefore repeatable etc, so we would expect to see a lot of people encoutering the problem. Given that a lot of us are very successfully creating our own WARs, and you're the only one who has reported this trouble, I would tend to assume

Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Marcelo de Barros Alcantara
Hi All, I am having a problem with two dependencies (lucene 1.4.3 and lucene 2.0). They are both dependencies at some level from my root dependencies but the wrong classes are being called making the application unable to run. 1) Someone know how can I isolate the dependencies so that right

RE: Maven creating a WAR: strange error about file access

2007-07-26 Thread Vaidya, Supriya A \(US - Chicago\)
Tried that - still getting the same error... And this with the only window open is the command prompt, after a restart of my system. Is this a Maven bug? Nobody else seems to encounter it... -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007

RE: resources as dependencies

2007-07-26 Thread John Coleman
Hi, The Maven war packaging forces me to have a web.xml which is not required in the dependency project. Perhaps I can switch that off? I just want to pack generic script and images up for web projects. Or will my project web.xml simply overrule the dependency web.xml? John -Original

Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread jaxzin
Thanks Manos, What I've found so far by looking at the source is that its dependent on how the Set that MavenProject.getArtifacts() orders itself. I still haven't found which impl of Set is used. That would tell us how predictable the order is. My guess is its a HashSet and so the order will

Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Emmanuel Venisse
To know what's happen, I'd need logs of maven-scm classes in debug level. Emmanuel Dan Tran a écrit : it intermittenly happens on 1.1-beta-1 as well -D On 7/26/07, Martin Alejandro Villalobos [EMAIL PROTECTED] wrote: Emmanuel, thanks for your answer. I'm using Continuum 1.0.3 and SVN, but

Re: runtime properties

2007-07-26 Thread Wayne Fay
Try mvn -U to force an update. If it still is failing, delete the ~/.m2/ directory (if not the whole thing, delete the org/apache/maven/plugins directory) and try again. The plugin does not exist or no valid version could be found error sometimes happens when you get bad artifacts in your m2

Re: Broken links in project-reports.html

2007-07-26 Thread erik_k
Sorry, but it still doesn't work. I got your version (1.0-alpha-9), but the anchor-tags are still in the generated html-files. Perhaps you have another solution?! --erik Lukas Theussl-3 wrote: I suppose you are using a SNAPSHOT of the site plugin? I committed a fix this morning and

RE: resources as dependencies

2007-07-26 Thread John Coleman
Hi, Yes that does the right kind of thing, was thinking of using dependency:unpack. However, I'd like to use a zip file instead of JAR. But nevermind. It looks like it can deal with Java source. Not quiet what I want, but maybe it can be used anyway. Thanks, John -Original Message-

Re: External property files

2007-07-26 Thread Maria Odea Ching
Hi Carlo, You may want to take a look at Maven 2's filters :-) http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? HTH, Deng Carlo Bonamico wrote: Hi! In the Maven2 documentation (http://maven.apache.org/pom.html#Properties) I read that

Re: Broken links in project-reports.html

2007-07-26 Thread Lukas Theussl
I suppose you are using a SNAPSHOT of the site plugin? I committed a fix this morning and deployed a new snapshot of doxia-module-xhtml, try upgrading with -U (and report if there's still a problem). HTH, -Lukas erik_k wrote: Hi, I'm using Maven2 and the maven-site-plugin. The generated

Re: Maven Idea Plugin

2007-07-26 Thread Kannan Ekanath
Thanks !!! That is exactly what I need. I however have a question though. I am using 2.2-SNAPSHOT version, there is a patch for this JIRA issue, (which means that it is already added to source control). Since I am referring to the snapshot version directly, wouldnt I get this fix this week

Exception thrown during cvs update

2007-07-26 Thread Luke Matthews
Hi, I added a project to our Continuum instance the other day and everything appeared normal. The first time a build ran I got the following output: Provider message: The cvs command failed. Command output: ---

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

2007-07-26 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.

What is Use SCM Credentials Cache, if available?

2007-07-26 Thread Dan Tran
Could not figure out what it means in continuum 1.1? any hint? :-) Thanks -D

Re: Differences between dependencies

2007-07-26 Thread Wayne Fay
Release is a specific version ie Apache log4j, latest release is 1.2.14, no matter how many times you download it, the source code and binary jar for this release will be the same. Snapshot is used for development ie Apache log4j, say their current working version is 1.2.15-SNAPSHOT. So every

Re: resources as dependencies

2007-07-26 Thread Arnaud Bailly
John Coleman [EMAIL PROTECTED] writes: Hi, The Maven war packaging forces me to have a web.xml which is not required in the dependency project. Perhaps I can switch that off? I Hi John, Yes, It seems so. But it is not used in overlays and you can control it so this is not big deal. (see

Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Wendy Smoak
On 7/26/07, Dan Tran [EMAIL PROTECTED] wrote: it intermittenly happens on 1.1-beta-1 as well What does scmconnection look like? I've found that if the connection url has a trailing slash, the author info does not show up. -- Wendy

Error during Maven site stage

2007-07-26 Thread Rodolphe Beck
Hello, I have a build error during my site:stage generation. My maven workspace is constituted in many projects, and when I want to stage the site on a linux machine I get the following error : [ERROR] BUILD ERROR [INFO]

Re: Projects dependencies and mail notifiers

2007-07-26 Thread Christophe Lechenne
Thxs for your reply, but when I said that : Pb 1 : No info is given to user1 to tell him that PA was built because of change on B. What I mean is : although user1 received a mail, that mail contains no info about the real reason of that build : is-it because of a code modification on PA

Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread Manos Batsis
Come on guys let us not give too much attention to eachother :-) I dont think Maven's behaviour regarding the order of JARs in the classpath is random; that would be impossible. My guess is the order is predictable and based on the dependencies configuration and the algorithm that goes

Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread jaxzin
My bad. I didn't realize that a predictable classpath order vs. random classpath order would shake the Maven project to the core of its very being and betray the very objectives it has set out to achieve. But on a more serious note, I've been using Maven for years and don't plan to stop anytime

Re: Projects dependencies and mail notifiers

2007-07-26 Thread Emmanuel Venisse
Christophe Lechenne a écrit : Hi all, I'm testing this feature on 1.1 version. Here's my conf: I've got 2 maven 2 projects : PA and PB PA depends on PB. PA pom file has a mail notifier for user1 PA pom file has a mail notifier for user2 PA has 2 api, one using PB api PA has 2 junit

Filtering in src/main/webapp/WEB-INF with maven-war-plugin

2007-07-26 Thread Matthias Berndt
Greetings, I'd like to filter the web.xml in src/main/webapp/WEB-INF. I tried to follow the instructions on http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webre sources.html but it doesn't work src/main/webapp/WEB-INF/web.xml. Can anyone give me an advice or provide

Re: resources as dependencies

2007-07-26 Thread John Patrick
Initial thoughts are you could have it as a seperate project and get the dependency plugin to unpack it. http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html On 26/07/07, John Coleman [EMAIL PROTECTED] wrote: Hi, We want to farm off some of our common resources (java

Re: Writing portable CVS configuration using Maven 2

2007-07-26 Thread Martin Hoeller
Hi! First, please stop hijacking somebody else's thread by replying to a mail and changing the subject! If you want to start a new topic, write a new email and DO NOT reply to another thread. Thanks! Second, why do you repost somebody's questions answered months ago? Jerome Thibaud posted

Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Dan Tran
it intermittenly happens on 1.1-beta-1 as well -D On 7/26/07, Martin Alejandro Villalobos [EMAIL PROTECTED] wrote: Emmanuel, thanks for your answer. I'm using Continuum 1.0.3 and SVN, but this behaviour is only with some projects, not with all. Can be related with the way in that the svn

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

2007-07-26 Thread Baz
John, I agreed with your comments. Here is the practical usage: The version under source code is building against xyz version 5.6.1.0. However, we need the capability to build against the non-release quality of version xyz that comes out every day or week, say 5.6.1.1, then 5.6.1.2, then

Projects dependencies and mail notifiers

2007-07-26 Thread Christophe Lechenne
Hi all, I'm testing this feature on 1.1 version. Here's my conf: I've got 2 maven 2 projects : PA and PB PA depends on PB. PA pom file has a mail notifier for user1 PA pom file has a mail notifier for user2 PA has 2 api, one using PB api PA has 2 junit tests, one for each api. PB has 1 api

Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Martin Alejandro Villalobos
Emmanuel, thanks for your answer. I'm using Continuum 1.0.3 and SVN, but this behaviour is only with some projects, not with all. Can be related with the way in that the svn plugin of Eclipse do the commits? Thanks. Martin. Emmanuel Venisse wrote: div class=moz-text-flowed

Re: Creating a JAR to include in the lib directory

2007-07-26 Thread Wayne Fay
The assembly plugin can be used to put some of the jars in lib and others in the root directory of your ear. Wayne On 7/26/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: Hi: I am working with multiple modules - An EJB contained in a WAR contained in a EAR There

Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Wayne Fay
Yes, I think I understand, and I still think the build-helper-maven-plugin can help you. Take a look at goal attach-artifact in the usage page: http://mojo.codehaus.org/build-helper-maven-plugin/howto.html Wayne On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote: Not sure i understand what this