Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Anders Hammar
I'd like to stress that Jesse explains the true Maven way. This is how this should be done if you want to enjoy simple and correct dependency management through Maven. Using classifiers will make your two (for instance) artifacts have the same dependencies. As I've stated before, classifiers are mo

Re: [Release] getting rewritten. how does it work?

2009-12-02 Thread Stephen Connolly
you have to be clear about what I will call as "release roots" A release root is a project that has an section. It will typically be an aggregator project (i.e. packaging=pom && modules.size()>0) but it does not need to be. If it is a parent project (i.e. at least one of the modules it aggregat

Re: [Release] getting rewritten. how does it work?

2009-12-02 Thread Anders Hammar
I'm guessing that when you do the release of the child module, a snapshot-version of the parent is actually being used as that's what your child pom specifies. The snapshot-version is in your local repo (or a remote repo) and still has all the properties in the scm url (it's just the released versi

[Release] getting rewritten. how does it work?

2009-12-02 Thread nodje
Hi, I'm using maven-release-plugin 2.0-beta9 and I'm still getting urls rewritten at each deployment. http://jira.codehaus.org/browse/MRELEASE-231 is been closed quite a while ago, so many we're not speaking about the same rewriting. The way we use the tag in our organization is trough a pare

Re: the module in maven

2009-12-02 Thread Alexander
Thats what Im talking about. Try to follow maven-way style and you would get minimal amount of problems. 2009/12/3 Dan Tran > the reason to make module name to have the same name as artifactId is > so that you dont have define your scm element in every child pom. All > Maven needs to the top po

Re: the module in maven

2009-12-02 Thread Dan Tran
the reason to make module name to have the same name as artifactId is so that you dont have define your scm element in every child pom. All Maven needs to the top pom.xml's scm to figure out out scm element of the child module. this is crucial when cutting a release the maven way using its infam

Re: the module in maven

2009-12-02 Thread maven apache
2009/12/3 Alexander > Yeah, thats right. > > There are some problems? > I have tested it ,and I found that the module configed in the pom just referred to the module directory so the module artifact id can changed as one want . > > 2009/12/3 maven apache > > > 2009/12/3 Alexander > > > > > Mav

Re: the module in maven

2009-12-02 Thread Alexander
Yeah, thats right. There are some problems? 2009/12/3 maven apache > 2009/12/3 Alexander > > > Maven way is to name module directory as module artifact id. > > > I want to rename the module since the old project are not well named.So I > should rename both the module directory and module artif

Re: the module in maven

2009-12-02 Thread maven apache
2009/12/3 Alexander > Maven way is to name module directory as module artifact id. > I want to rename the module since the old project are not well named.So I should rename both the module directory and module artifact id? > > 2009/12/3 maven apache > > > Hi: > > I want to know how do maven fin

Re: the module in maven

2009-12-02 Thread Alexander
Maven way is to name module directory as module artifact id. 2009/12/3 maven apache > Hi: > I want to know how do maven find the module of the parent project: > for example in the root project whose packaging is pom and the directory is > C:/project, I define the following modules: > - > ma

the module in maven

2009-12-02 Thread maven apache
Hi: I want to know how do maven find the module of the parent project: for example in the root project whose packaging is pom and the directory is C:/project, I define the following modules: - maven platform main -- So the module "maven" should be a directory under the C:/proj

WAR manifest customization - not again!

2009-12-02 Thread amit patel
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html According to this guide, marking dependency as optional=true should be regarded by war plugin to not copy jars in web-inf / lib I cant get it to work without  packagingExcludes If I want to copy some jars in web-in

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Jesse Farinacci
Hi KJ, On Wed, Dec 2, 2009 at 3:19 PM, K J wrote: > Does anyone have any examples or tips about how to handle the > generation of multiple artifacts based on a shared model? For example, > I have a project which needs to produce both Java and ActionScript > code based on a shared UML model. I'm h

Building Maven

2009-12-02 Thread Ryan Cuprak
Hello, I've followed the instructions for building Maven (http://maven.apache.org/guides/development/guide-building-m2.html) but I am not sure what to do after the "mvn install" step. I am trying to get up and running with Maven 3.x (trunk). I am building with Maven 2.2.1. I thought the output

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread Kalle Korhonen
Since the build artifacts are output of the same source, they should part of the same module. Use classifiers to specify the different artifacts. If you are using custom scripts to produce the output (i.e. not plugins that attach additional artifacts automatically), use buildhelper plugin to attach

Timestamped -1.0-SNAPSHOT is being packaged

2009-12-02 Thread Venkata R Madugundu
Hi, When I am packaging a WAR artifact which indirectly depends on 1.0-SNAPSHOT version of XYZ.jar, somehow XYZ-1.0.jar is actually packaged inside the WAR file. This is happening with some artifacts. Wouldn't the latest copy of XYZ-1.0.jar get picked up from the repository and get renamed to XY

What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-02 Thread K J
Does anyone have any examples or tips about how to handle the generation of multiple artifacts based on a shared model? For example, I have a project which needs to produce both Java and ActionScript code based on a shared UML model. I'm having trouble figuring out how to best setup and manage thes

Re: Release Plugin with Flat Multi-Module Projects

2009-12-02 Thread jkaipa
I have done enough research and found a few things. 1. 2.0-beta-10 partially addresses this issue, but that is not a desired solution (will explain this later) 2. Better not to rely on the maven release plugin if you want to save some time before they fix it completely. I have multiple flat multi

repo2 and repo1 the same? (Was Re: please tell me repository)

2009-12-02 Thread Glen Mazza
Wendy Smoak-3 wrote: > > On Wed, Oct 29, 2008 at 1:45 PM, miro wrote: >> >> please tell me repository where I can find all dependency for an >> application >> using hibernate , spring, wicket jdk 1.6 > > It depends on exactly what artifacts and version numbers you need, but > most of that shou

Upload Apache Pivot artifacts to central repository

2009-12-02 Thread Greg Brown
Hi all, Apache Pivot is preparing for graduation, and we would like to upload our next set of release artifacts to the central Maven repository. We don't currently use Maven as a build tool, so I have been trying to follow the manual upload instructions listed here: http://www.apache.org/dev/r

Re: Maven Run & Manifest entries

2009-12-02 Thread eppleton
Thanks Milos, is there a variable for like for className, packageClassName? Toni Bugzilla from mkle...@gmail.com wrote: > > I would say you need to change the Run project action mapping in the ide > not > to use mvn exec:exec to execute "java -cp " but to execute > :java > -jar " > > Regards

Re: Maven Run & Manifest entries

2009-12-02 Thread Milos Kleint
or somehow generate the manifest file in the target area. Milos On Wed, Dec 2, 2009 at 6:02 PM, Milos Kleint wrote: > I would say you need to change the Run project action mapping in the ide > not to use mvn exec:exec to execute "java -cp " but to execute > :java -jar " > > Regards > > > Milos

Re: Maven Run & Manifest entries

2009-12-02 Thread Milos Kleint
I would say you need to change the Run project action mapping in the ide not to use mvn exec:exec to execute "java -cp " but to execute :java -jar " Regards Milos Kleint On Wed, Dec 2, 2009 at 5:46 PM, eppleton wrote: > > Hi, > > I've created a Maven Project in NetBeans. It writes an entry in

Maven Run & Manifest entries

2009-12-02 Thread eppleton
Hi, I've created a Maven Project in NetBeans. It writes an entry into the JARs manifest. That works fine. At runtime I'm reading that entry (which points to a configuration file) and use it for configuration. That works fine as well… The problem is, that when running the project from the IDE in

RE: How to access Maven default properties from a Junit test?

2009-12-02 Thread Jamie Whitehouse
As you suggest you can also read them in from somewhere. Create a test resources property file that gets filtered and read that. Much simpler and easier to maintain when there's more than a few properties. -Original Message- From: Dan Tran [mailto:dant...@gmail.com] Sent: Wednesday, Dec

Re: Global shared memory

2009-12-02 Thread Stephen Connolly
MavenSession? 2009/12/2 Gajo Csaba : > Hello, > > Is there a way I can share some values between mojos, and so that they > aren't Strings? I know that there is a mavenProject.getProperties() thing > which can be used, but in this case I would like to share a HashMap. > > Regards, Csaba > > > > > -

Global shared memory

2009-12-02 Thread Gajo Csaba
Hello, Is there a way I can share some values between mojos, and so that they aren't Strings? I know that there is a mavenProject.getProperties() thing which can be used, but in this case I would like to share a HashMap. Regards, Csaba -

Re: How to access Maven default properties from a Junit test?

2009-12-02 Thread Dan Tran
You need to pass them in explicitly using surefire plugin's properties configuration -D On Wed, Dec 2, 2009 at 4:55 AM, Costin Caraivan wrote: > > Hello, > > Does Maven pass the default properties to a Junit test launched? If so, how > can I access them? > > For example I would like to know ${pr

How to access Maven default properties from a Junit test?

2009-12-02 Thread Costin Caraivan
Hello, Does Maven pass the default properties to a Junit test launched? If so, how can I access them? For example I would like to know ${project.groupId} or ${project.version}. Is there any way I can access these from the Junit tests? Thank you, Costin. PS: What I really want to know if there

How to change the plugin config from a mojo?

2009-12-02 Thread Gajo Csaba
Hello, I have a mojo which requires a project. When it starts, it gets the project's build plugins, searches for a specific one, and then takes its configuration and changes is. The configuration is an Xpp3Dom object, which I convert to String with toString()... but how do I convert that Stri

Issue with assembly plugin executions and phase binding (prepare-package)

2009-12-02 Thread Jeremie BOUSQUET
Hello, I have some questions about assembly and inheritance... Purpose is to generate a tar.gz archive, containing a text file with the list of checksums of the tar.gz content (excluding the checksums file itself of course). So the wanted order of execution would be : - call assembly plugin with "

Re: Security credentials to repository on the command line

2009-12-02 Thread Anders Hammar
As you say you either grant anonymous access to the repo or you don't. If you don't allow anonymous access, every user needs to provide his/her credentials. This is what the user specific settings.xml file is for. Put it there. If you think that creating that file is difficult for a user, you need

Security credentials to repository on the command line

2009-12-02 Thread wujek.srujek
Hi. Here is my situation: we have an internal repository that used HTTP basic authentication. This repository is defined in the parent pom of the project to create a portable build. However, when I check this project out along with its submodules, mvn package doesn't download the dependencies, as

Re: File system repo

2009-12-02 Thread Anders Hammar
Seems as we keep on repeating this best-practice. Still people try to prove us wrong... /Anders 2009/12/2 Tamás Cservenák > Hi there, > > This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is > sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out > the d

Re: Running ANT task before pulling down dependencies

2009-12-02 Thread Stephen Connolly
Golder rule of build scripts: If they are not broken, don't fix them Now if you want to refactor your build scripts from ANT to Maven (which IMHO is a good thing) here is what I would recommend: 1. Set up a Maven Repository Manager (I use nexus, but there are others, e.g. artifactory) 2. Start b

Re: File system repo

2009-12-02 Thread Tamás Cservenák
Hi there, This thread started at Mon, Nov 9, 2009 at 8:00 PM, and last response is sent on Tue, Dec 1, 2009 at 11:58 PM (my local TZ, but i want to point out the duration). Installing _any_ MRM out there lasts certainly well under 1 hrs (some of them even under 10 minutes if you don't count the d

Re: Running ANT task before pulling down dependencies

2009-12-02 Thread Anders Hammar
Well, set up a repository manager for your project then. Setting up Nexus shouldn't take more than half a day and it doesn't require a super computer. Then deploy the artifacts there. As stated in many threads by many people, if you fight Maven you'll just be sorry and likely you'd be better off st

Re: Running ANT task before pulling down dependencies

2009-12-02 Thread Vijay Venkataraman
Hi Anders You are right. Unfortunately all the product builds are ant builds and there is no central repository concept which holds the artifacts in the way that is prescribed by maven. Again i cannot change all those pieces one shot. I want to try this out on one project and then slowly work on m