Re: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Guillaume Boucherie
Hello, I'm think the m2eclipse goal is to be used with the eclipse plugin coled m2eclipse (http://m2eclipse.codehaus.org/). This plugin add support for maven2 directly in your eclipse and managed dependencies in special way so you have to used m2eclipse goal. Guillaume Boucherie 2008/5/21,

Release Prepare

2008-05-22 Thread René Johannes
Hi, Using the maven-release-plugin : release:prepare We use maven embedder in a project, when running the goal release:prepare then the version numbers are changed and now the maven embedder does not have the correct version number. The new version number is not installed during process but

Re: convert a maven project and xslt:transform

2008-05-22 Thread Javier Diaz
Hi: First step is to create a pom for your project. Then add xalan as a dependency, for example: dependency groupIdxalan/groupId artifactIdxalan/artifactId version2.7.0/version scopecompile/scope /dependency And that should be enough.

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Tim Kettler
[x] Our team uses HTTP to retrieve our artifacts HTTPS actually [ ] Our team uses the filesystem Don't using this at the moment, but I think a filesystem based repository could be really useful for example when one wants/needs to ship a repository with a product. -Tim Jason van Zyl

[archetype plugin] Cannot use -DarchetypeRepository if you have mirrors in your settings.xml file

2008-05-22 Thread Campbell, Jeff
I'm using the following command to create a new archetype project (only the relevant portion of the command is below): mvn archetype:generate -DarchetypeRepository=http://somehost.com/mvnrepo But, because I have the following in my settings.xml file, I cannot access the repository

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Daniele De Francesco
Hi all, [X] Our team uses HTTP to retrieve our artifacts Greetings -- Daniele De Francesco Senior Java Architect Value Team S.p.A. e-mail: [EMAIL PROTECTED]

Re: Can i use variables within the parentartifactId section?

2008-05-22 Thread Dobri Kitipov
Hi Baz, my observations are that it is not possible to use a placeholder for the groupId, artifactId, version of the parent pom for example. As you said the CLI -D option is not taken into consideration. Anyway, m2 take this option into consideration at some later stage, but not when it identifies

Re: RES: Problem with classloader in maven plugin

2008-05-22 Thread Tim Kettler
Hi, Claudio Ranieri schrieb: Hi, Why the maven plugins doesn´t load all libraries declared in pom.xml? You have to distinguish between the plugin project and the project you are using the plugin with. All libraries (with a proper scope) declared in the pom of the plugin project are

Getting a dynamic property

2008-05-22 Thread Richard Chamberlain
Hi, How can I run a command and get the return of that command put into a maven property? For example i'd like to get the latest perforce changelist number and add it to my Manifest file Thanks, Rich

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread simon
On Wed, 2008-05-21 at 14:14 -0700, Jason van Zyl wrote: On 21-May-08, at 1:07 PM, Wendy Smoak wrote: On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote: [X] Our team uses HTTP to retrieve our artifacts ... and should be using HTTPS because some repos require

AW: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Baeriswyl Kuno - Extern (IT-BA-MV)
Hello, I agree. Though, m2eclipse doens't handle WTP settings, as far as I know. I think it's planned for WTP 2.0 or so. Therefore, m2eclipse doens't work if you need those settings, e.g. for J2EE application servers. At least, that's what I figured out..any other opinions? Kuno

Create non conventional archetype

2008-05-22 Thread Ilya Ermolov
Hi! Please, help me. I need to create directory structure shown below: project +-src | +-org | +-mycompany |+-app.java +-test | +-org | +-mycompany |+-apptest.java pom.xml How can i create new archetype having this directory structure and redefine source directory from

RE: Create non conventional archetype

2008-05-22 Thread Richard Chamberlain
By creating this structure you are making it unfamiliar to other maven developers. But if you need to do it: ... build sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory ... In the pom.xml file will do it.

RE: Getting a dynamic property

2008-05-22 Thread Bracewell, Robert
Use an environmental property For example some other system could set the env var called P4_CL and then you could reference it using ${env.P4_CL} -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED] Sent: 22 May 2008 11:10 To: Maven Users List Subject: Getting a dynamic

Re: Error: MavenRequest

2008-05-22 Thread Clifton
I found out yesterday that my error may be due to the recent Surefire upgrade. I'm going to do some legwork and post back with additional details. Clifton wrote: Reason: org/apache/maven/toolchain/ToolchainManager That's what I'd been getting from time to time in IntelliJ Idea (using it's

Re: Create non conventional archetype

2008-05-22 Thread Raphaël Piéroni
Hi Ilya, Create the structure you'd like to have (don't forget the pom.xml file) go in the directory containing the pom file. call mvn archetype:create-from-project. You will have an archetype created in target/generated-sources/archetype. Hope this helps. Raphaël 2008/5/22 Ilya Ermolov

Naming convention for multimoduled projects?

2008-05-22 Thread Magne Nordtveit
I'm just wondering, how do you name your artifacts in a large multimoduled project to avoid having two modules with the same artifact-id? I am thinking in the lines of project-partofgroupid-descriptivename as artifact-id. This would make the name of the final jar files (at least more) unique and

Re: Naming convention for multimoduled projects?

2008-05-22 Thread simon
On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote: I'm just wondering, how do you name your artifacts in a large multimoduled project to avoid having two modules with the same artifact-id? I am thinking in the lines of project-partofgroupid-descriptivename as artifact-id. This would

Re: Naming convention for multimoduled projects?

2008-05-22 Thread Magne Nordtveit
On Thu, 2008-05-22 at 15:23 +0200, simon wrote: On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote: I'm just wondering, how do you name your artifacts in a large multimoduled project to avoid having two modules with the same artifact-id? I am thinking in the lines of

Re: Naming convention for multimoduled projects?

2008-05-22 Thread simon
On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote: On Thu, 2008-05-22 at 15:23 +0200, simon wrote: On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote: I'm just wondering, how do you name your artifacts in a large multimoduled project to avoid having two modules with the same

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Jason van Zyl
On 22-May-08, at 12:41 AM, Tim Kettler wrote: [x] Our team uses HTTP to retrieve our artifacts HTTPS actually [ ] Our team uses the filesystem Don't using this at the moment, but I think a filesystem based repository could be really useful for example when one wants/needs to ship a

Re: Error: MavenRequest

2008-05-22 Thread Clifton
The problem comes from the recent Surefire upgrade. I found an issue in the Q4E Jira explaining the fix but to save time I'll list it here. Force Surefire 2.4.2 for now and the problem goes away. If you're using different IDE integration that supports an external Maven runner then I'd suggest

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Wendy Smoak
On Tue, May 20, 2008 at 11:15 PM, Jason van Zyl [EMAIL PROTECTED] wrote: [X] Our team uses the filesystem I also use the filesystem with file:// urls, it's very useful for testing a set of repository contents locally before making them available in a remote repo, and for quick examples. I

Is there a list of available variables or expressions to use in POM file

2008-05-22 Thread Andreas Guther
Hi, Is there a list of available variables and expressions one can insert into a pom file? In particular I am looking for inserting variables like the current date into the manifest entries. Andreas

Certification build question

2008-05-22 Thread Chris Helck
Hi, We have multiple components and applications. When I hand an application over to our certification team to build I need to tell them which (if any) dependent components they need to build. So every release I have provide specific instructions of the form: From SCM get this label, build

Re: [SURVEY] How does your team retrieve artifacts?

2008-05-22 Thread Tom Huybrechts
I use HTTP for ordinary development. However file is also used often in tooling. For example I have a custom release plugin that deploys to a file based staging repository. Only when the release completely succeeds, is the staging repository uploaded (using the staging plugin) to the real

Re: integration-test practices

2008-05-22 Thread Paul Davis
I actually meant src/test/resources I have found that if I place the resource (xml file) in both places, it works src/it/java src/test/resources However, if I only have one copy (in either location) it does not work. I didn't try src/main/resources because it's an integration test. Should I put

retrieving jar with highest version

2008-05-22 Thread Brane F. Gračnar
Hello there ;) First, i have to mention, that i'm just system administrator, not developer, so please, excuse me for the following stupid question. I would like to retrieve jar with highest version number from our central maven repository using mvn command to some directory on a filesystem.

Downloading a unique snapshot

2008-05-22 Thread Richard Chamberlain
Hi, Still on my quest of getting perforce numbered unique snapshots: 1) If I specify a SNAPSHOT dependency in my pom, can I configure maven to download the unique named artefact rather than one that has SNAPSHOT on the end? i.e. repo has myproduct-1.0-SNAPSHOT-20080522.114841-2.jar,

Re: convert a maven project and xslt:transform

2008-05-22 Thread Mansour
Thank you Javier, but how do I perform the transformation ? or in other words, in order to execute a transformation using xalan, I need to do this: java org.apache.xalan.xslt.Process -xsl myxsl.xsl -in in.xml -out out.xml How do I get this done from maven ? I have figured it using

[m2] the maven-release-plugin alters the eol style of cdata sections

2008-05-22 Thread Adrian Herscu
Hi all, Spent an hour or so to discover why subversion fails to commit the pom.xml during a release:prepare... If the pom.xml file contains CDATA sections (as required by few plugins, such as the maven-eclipse-plugin), then the end of line sequence of these lines is changed to LF. The only

RE: Certification build question

2008-05-22 Thread Richard Chamberlain
Why do the team need to build your application? Can you not give them a built version for them to test? If you can do this, have an application project that depends on all the components that you use. Configure the assembly plugin to zip all the dependencies into a kit. You can then tell them to

Re: [m2] the maven-release-plugin alters the eol style of cdata sections

2008-05-22 Thread Adrian Herscu
This solution causes other problem with subversion -- the error message look like this: svn: Can't move some tmp file some file access is denied I couldn't make it work, even on a clean working copy with minimum running processes (search, anti-virus, tortoisesvn). The only remedy was to

RE: Certification build question

2008-05-22 Thread Chris Helck
Rich, It's very common for corperations to implement this sort of thing. It helps ensure that the products can be rebuilt from the source code, and that helps certain audit/security processes. In any case, this is what my company does, and they pay me every two weeks. I do what you suggest for

Maven Unplugged (no network access)

2008-05-22 Thread Seth Geoghegan
I am attempting to set up Maven on a corporate network without access to the web. I've got Maven, a repository (Nexus) and now need to fill my repository with all the needed plugins. Unfortunately, I don't have the option of letting Maven connect to the web and download its plugins/dependencies.

RE: Certification build question

2008-05-22 Thread Richard Chamberlain
Oh I see. How about having a release branch for each of your projects? Then you wouldn't have to worry about specifying a svn number for each project. A parent project could still work as they could do a multi-module build, which builds each project in turn. Rich -Original Message-

Problem with tagging in maven-release-plugin

2008-05-22 Thread Alex Reina
Hi all, I have a multi-module project that I'm trying to run the release plugin against. scm connections are configured in the POMs and so is the tagBase. Checkin of POMs with updated release numbers works, but the tagging fails... Strangely enough, I get prompted for the new release and

Using interactive mode with maven-archetype-plugin to define properties

2008-05-22 Thread Trent Rosenbaum
Hi there, I have been exploring the 2.0-alpha-3 release of the maven-archetype-plugin. Understanding that it is still in alpha release stages I wanted to try it out. I defined a project, (a simple web project) and then ran the following command: mvn archetype:create-from-project

Re: Weird Signed Jar Issue

2008-05-22 Thread Adam
On further investigation, it is a problem with the way the assembly plugin setup I have is doing jar-with-dependencies -it's duplicate in other projects as well, we just found it now since we are using it to create the signed JAR in the other project. Does anyone have any insight as to what is

Re: second zip artifact from the same pom?

2008-05-22 Thread James Levinson
I wanted to thank you for responding and giving me a good head start on the maven-assembly-plugin. The documentation is Excellent and they are powerful indeed. I also wanted to share the very simple solution to building the zip file: --in my profile sections for different env's I have the

Re: integration-test practices

2008-05-22 Thread Wendy Smoak
On Thu, May 22, 2008 at 8:39 AM, Paul Davis [EMAIL PROTECTED] wrote: I have found that if I place the resource (xml file) in both places, it works src/it/java src/test/resources However, if I only have one copy (in either location) it does not work. I wouldn't expect src/it/* to work,

Re: Eclipse Plugin and WTP Facets problem

2008-05-22 Thread Arnaud HERITIER
0.9.4 of m2eclipse start to support natively WTP : http://docs.codehaus.org/display/M2ECLIPSE/WTP+mini+howto Arnaud On Thu, May 22, 2008 at 11:54 AM, Baeriswyl Kuno - Extern (IT-BA-MV) [EMAIL PROTECTED] wrote: Hello, I agree. Though, m2eclipse doens't handle WTP settings, as far as I know.

versions on central-repo (stupid question)?

2008-05-22 Thread kawazu
Folks; after merrily using maven2 for quite a while, by now I dealt with defining dependency using version ranges for the first time - and failed, not sure why. Maybe I am just too stupid, and maybe someone can help me outta this? Example: Dependency defined is dependency

Question about Maven, Eclipse WTP and war overlay

2008-05-22 Thread Lorenzo Arcaini
Hello everyone, I have multiple maven projects sharing some code via a war overlay and would like to use WTP in Eclipse to deploy my webapps and benefit from the productivity gain it brings to the dev teams. However, due to my war overlay, WTP seems unable to work properly as my webapps depends

RE: How to include junit tests in a generated jar, using maven 1.1?

2008-05-22 Thread Morgan Fletcher
I suggest adding a custom goal maven.xml that adds the test classes dir to the list of source dirs, then creates the jar. Thanks. I ended up adding this goal, which produces a separate test jar: goal name=test-build attainGoal name=test:compile/ ant:jar

Re: Naming convention for multimoduled projects?

2008-05-22 Thread Hilco Wijbenga
On Thu, May 22, 2008 at 6:44 AM, simon [EMAIL PROTECTED] wrote: On Thu, 2008-05-22 at 15:33 +0200, Magne Nordtveit wrote: On Thu, 2008-05-22 at 15:23 +0200, simon wrote: On Thu, 2008-05-22 at 15:02 +0200, Magne Nordtveit wrote: I'm just wondering, how do you name your artifacts in a large

Re: integration-test practices

2008-05-22 Thread Paul Davis
Before my response, I just want to say, I really appreciate you taking the time to help me with this. Yes, I am defining the src to look in src/it/java. I heard a rumor that maven 2.1 would support that for integration tests so, I wanted to start using the location. I also have the integration

RE: Maven Unplugged (no network access)

2008-05-22 Thread Brian E. Fox
Ouch. Is there any way this privileged group can hook up a Nexus to the internet, and run through some of your builds? They could then analyze and approve the contents which could then be moved to your protected instance. Enumerating the full list of things and doing it manually is going to be

RE: retrieving jar with highest version

2008-05-22 Thread Andreas Guther
Repositories have metadata xml files from where you can retrieve the highest number. It is usually pretty straightforward downloading the metadata file, extracting the information and constructing the required version number. Andreas -Original Message- From: Brane F. Gračnar

RE: Downloading a unique snapshot

2008-05-22 Thread Andreas Guther
Did you try to define in your dependency the part after myproduct as version, i.e. 1.0-SNAPSHOT-20080522.114841-2? Andreas -Original Message- From: Richard Chamberlain [mailto:[EMAIL PROTECTED] Sent: Thursday, May 22, 2008 8:48 AM To: Maven Users List Subject: Downloading a unique

RE: Maven Unplugged (no network access)

2008-05-22 Thread Andreas Guther
In your scenario Nexus is not necessary since you are actually not proxying anything. If I understand your scenario correctly you need to provide a managed and controlled repository. An Apache Server is good enough. I would suggest having the folks with the external access to run the builds

artifact.jar - artifact.zip?

2008-05-22 Thread Russ Tremain
is it possible to coax the maven-jar-plugin to name my artifact with a .zip suffix instead of .jar? also, can I tell it not to include any manifest? I don't see anything helpful in the docs. tia, -Russ - To unsubscribe,

Re: artifact.jar - artifact.zip?

2008-05-22 Thread Wendy Smoak
On Thu, May 22, 2008 at 5:59 PM, Russ Tremain [EMAIL PROTECTED] wrote: is it possible to coax the maven-jar-plugin to name my artifact with a .zip suffix instead of .jar? also, can I tell it not to include any manifest? I don't see anything helpful in the docs. It sounds like the assembly

Re: Is there a list of available variables or expressions to use in POM file

2008-05-22 Thread Maria Odea Ching
Maybe this would help :) http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide Thanks, Deng On Thu, May 22, 2008 at 10:46 PM, Andreas Guther [EMAIL PROTECTED] wrote: Hi, Is there a list of available variables and expressions one can insert into a pom file? In particular I