Re: what does --define do in maven

2012-02-21 Thread sarmahdi
Hello Stephen and everybody, Thanks for replying (apologies i was not allowed to get back to my PC as I had to go for a BPM installation so couldn't reply in time): I noticed that there was a default build in my POM which had a compiler plugin config there as well so when i commented out the

Re: Added source directory still allows for compile errors

2012-02-21 Thread Asmann, Roland
Maybe a dumb question, but: are there already sources in that directory? It seems to me it is only added to your build, but I don't see a plugin writing something there... Roland On 21.02.2012 10:02, Stephane-3 wrote: Hello, I have a Maven build that correctly adds a source directory, or

Re: known problem to get JUnit 4 and TestNG working together

2012-02-21 Thread Gogirl
Barrie, Kristian very useful replies. You guys all nailed it. I am the kind of dog that would climb Mt Everest and won't let go of that bone if her life depends on it. So I will hopefully have the wisdom to take your advise. With that said, having worked with Maven for just 5 days, I wouldn't know

Looking for Web Services Best Practices Views

2012-02-21 Thread John Patrick
How would people structure the following example... with a view on the following tools/plugin/integration... a) maven packaging types b) maven plugin's used c) ide integration Simple Echo Java Enterprise Application Scenario One Request XSD One Response XSD One Stateless EJB, using Request and

Re: Help again for working with release:plugin

2012-02-21 Thread Mark Struberg
Hi! Please note that this isn't as crucial as it sounds here. The only thing that you might add is a simple pom.xml which just contains the modules section including all your child projects.  If you don't like to do it then you can also just add scm sections to each and every of your

maven: scm: clearcase URL help

2012-02-21 Thread sarmahdi
Hello all, I am trying to connect to a remote clearcase to update my view I just started on this project with Clear case and been asked to maven ize the project and update the view from clearcase I added the scm tag and added the clearcase-settings.xml defining the clearcasetype as UCM I need

RE: maven: scm: clearcase URL help

2012-02-21 Thread Bobbepalli, Purnachandrarao
Use like this In place of svn use clear case ... scm connectionscm:svn:subversion URL/connection developerConnectionscm:svn: subversion URL/developerConnection urlsubversion URL/url /scm Let me know still having any issues. Thanks PurnachandraRao. -Original Message- From:

RE: maven: scm: clearcase URL help

2012-02-21 Thread sarmahdi
Thanks for the reply! No in CC it will be a bit different i think. I now know that config-spec is a txt file with something like this : element * CHECKEDOUT element * /main/LATEST load load_directory I have no idea where to get this file from. I dont think my CC admin will know either. I am

RE: maven: scm: clearcase URL help

2012-02-21 Thread Lyons, Roy
scm connectionscm:clearcase:load /some/load/rule:/your/project/vob:your_stream_name/connection /scm -Original Message- From: sarmahdi [mailto:sarma...@hotmail.com] Sent: Tuesday, February 21, 2012 10:09 AM To: users@maven.apache.org Subject:

RE: maven: scm: clearcase URL help

2012-02-21 Thread Bobbepalli, Purnachandrarao
Use like this In place of svn use clear case ... scm connectionscm:svn:subversion URL/connection developerConnectionscm:svn: subversion URL/developerConnection urlsubversion URL/url /scm Let me know still having any issues. Thanks PurnachandraRao. -Original Message- From:

RE: maven: scm: clearcase URL help

2012-02-21 Thread Lyons, Roy
FYI -- this is the format we used for a couple of years here with the release plugin, before we moved to git. You also need a clearcase-settings.xml in your $MAVEN_HOME/conf directory containing something like this: clearcase-settings clearcaseTypeUCM/clearcaseType

using maven deploy

2012-02-21 Thread headshaver
I am sorry but I am a novice maven user. We are trying to use the maven deploy to upload several artifacts from our ant build to a nexus repository. We can accomplish this by calling the maven deploy-file on each file that we want to upload. However I wanted to see if there is a better way to

Re: using maven deploy

2012-02-21 Thread Manfred Moser
On Tue, February 21, 2012 11:10 am, headshaver wrote: I am sorry but I am a novice maven user. We are trying to use the maven deploy to upload several artifacts from our ant build to a nexus repository. We can accomplish this by calling the maven deploy-file on each file that we want to

One question about Multi Project Structure in MAVEN

2012-02-21 Thread Daivish Shah
Hi, I have a project with following structure. maven-main-project maven-ear maven-ejb maven-schema maven-pojo maven-java This is my project structure for multi-module project. And now if i don't want to publish any artifacts outside of this

RE: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Bobbepalli, Purnachandrarao
Please have a look on the following build plugins plugin artifactIdmaven-war-plugin/artifactId version2.2/version configuration packagingExcludesWEB-INF/lib/*.jar/packagingExcludes /configuration /plugin

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Wayne Fay
How can i disable those 2 (maven-pojo and maven-java) projects not to publish artifacts at repository level. You can perhaps try to do this using deploy:deploy-file to only deploy the specific files/artifacts you want deployed but not the entire project. Looking for some solution on this, As

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Daivish Shah
HI wayne, I think deploy approach is the correct one looks like in this case. But when we execute MVN INSTALL it will generate all artifacts locally or on our local cache correct ? Thanks. On Tue, Feb 21, 2012 at 12:50 PM, Wayne Fay wayne...@gmail.com wrote: How can i disable those 2

Re: customizing the snapshot version build number

2012-02-21 Thread Curtis Rueden
Hi Chad, I'm trying to figure out a way to get my Hudson build number onto my snapshot artifact names. Did you see this thread on the Jenkins mailing list? http://jenkins.361315.n4.nabble.com/Maven-Artifacts-using-Hudson-build-numbers-td372479.html In particular, it references this article:

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Ron Wheeler
On 21/02/2012 3:50 PM, Wayne Fay wrote: How can i disable those 2 (maven-pojo and maven-java) projects not to publish artifacts at repository level. You can perhaps try to do this using deploy:deploy-file to only deploy the specific files/artifacts you want deployed but not the entire project.

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Wayne Fay
But when we execute MVN INSTALL it will generate all artifacts locally or on our local cache correct ? Yes it will generate all artifacts locally in your local ~/.m2/repository directory or where ever you have configured the localRepository in settings.xml. It is not possible to turn off

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Ron Wheeler
On 21/02/2012 3:09 PM, Daivish Shah wrote: Hi, I have a project with following structure. maven-main-project maven-ear maven-ejb maven-schema maven-pojo maven-java This is my project structure for multi-module project. And now if i

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Curtis Rueden
Publish does not mean to the whole world. Well, it *can*, if that's what you want... ;-) -Curtis On Tue, Feb 21, 2012 at 4:25 PM, Ron Wheeler rwhee...@artifact-software.com wrote: On 21/02/2012 3:09 PM, Daivish Shah wrote: Hi, I have a project with following structure.

Re: One question about Multi Project Structure in MAVEN

2012-02-21 Thread Daivish Shah
Hi Wayne, Thanks a lot !! That is all i wanted to confirm with you guys. So basically i have to use deploy plugin to deploy the stuffs at repository and over there i can define what components i want to publish or deployed. And locally i will have all those copy available by executing mvn

How to correctly make an EJB module dependend of the interface JAR of a RAR?

2012-02-21 Thread Markus Karg
I have set up a typical EAR scenario, where a EJB module and a RAR module are packaged into a EAR module (using the respective package types of ear, ejb and rar). To be able to compile the EJB module, I have to make it dependend of the interface JAR (which is later packed into the RAR) with

[maven-site-plugin] trouble migrating from 3.0-beta3 to 3.0, bug?

2012-02-21 Thread nodje
migration form 2.x to 3.0-betax wasn't much of a problem, but since then, I had to release components and fix version. Now with maven-site-plugin:3.0, I have a recurring error and can't find any information on it. It basically looks like this, happens on 'mvn site' goal. Number of foreign

How to set the dependencies of plugin?

2012-02-21 Thread zhaoyi
I am using a maven plugin which has some dependencies. How can I modify the plugin's dependencies in my pom.xml? -- View this message in context: http://maven.40175.n5.nabble.com/How-to-set-the-dependencies-of-plugin-tp5504204p5504204.html Sent from the Maven - Users mailing list archive at

Maven 3.0.3 Not Allowing Different Versions for Compile/Test

2012-02-21 Thread Daniel Jones
Hi all, Apologies in advance if this isn't the right list to post to. Using Maven 3.0.3 and Dependency plug-in 2.4, I've encountered a strange issue whereby if I specify different versions of a dependency, one in compile scope and one in test, only one of them gets 'noticed'. I've detailed the

Re: Maven 3.0.3 Not Allowing Different Versions for Compile/Test

2012-02-21 Thread Jörg Schaible
Hi Daniel, Daniel Jones wrote: Hi all, Apologies in advance if this isn't the right list to post to. Using Maven 3.0.3 and Dependency plug-in 2.4, I've encountered a strange issue whereby if I specify different versions of a dependency, one in compile scope and one in test, only one of