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 compiler plugin my
profile with toolchain for jdk 1.5 worked fine

for other users to see what i was using : 

http://codepad.org/RiTy1hAz  myweb.war POM 

but I have this conceptual issue now : If i use SITJDK5 profile that has a
hardcoded JDK path for 1.5 it never goes for the default, but if i use the
DEVJDK5 profile that has the toolchain it ignores the toolchain and goes for
the default if there is one present. So with tool chain I cannot have a
default compiler config and will have to have a default profile just for
this reason and use -PDEFAULT if i am going for toolchain.

Also: if anyone could be kind enough to shed some light on this :

If i use DEVJDK5 profile it says:
[INFO] Webapp assembled in [105622 msecs]

and if i use SITJDK5 profile:
[INFO] Webapp assembled in [72607 msecs]

with toolchain it takes more time though even though the jdk is the same.

Thanks for the help so far. Maven is so easy to work with im lovin it !! (at
least for now :D )

Syed...

--
View this message in context: 
http://maven.40175.n5.nabble.com/what-does-define-do-in-maven-tp5485392p5501578.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 so it seems.

 The pom file:

 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdbuild-helper-maven-plugin/artifactId
 version1.7/version
 executions
 execution
 idadd-source/id
 phasegenerate-sources/phase
 goals
 goaladd-source/goal
 /goals
 configuration
 sources
 source${basedir}/client/generated/cxf/source
 /sources
 /configuration
 /execution
 /executions
 /plugin

 The log says:

 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/generated/cxf
 added.

 The full log output:

 [INFO] Scanning for projects...
 [INFO] Reactor build order:
 [INFO] webapp-on-abcdata
 [INFO] webapp-on-abcdata-client
 [INFO] webapp-on-abcdata-web
 [INFO]
 
 [INFO] Building webapp-on-abcdata
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/generated/cxf
 added.
 [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/pom.xml to
 /home/stephane/.m2/repository/no/nki/webapp-on-abcdata/1.0-SNAPSHOT/webapp-on-abcdata-1.0-SNAPSHOT.pom
 [INFO]
 
 [INFO] Building webapp-on-abcdata-client
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting file set:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target
 (included: [**], excluded: [])
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/client/generated/cxf
 added.
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding UTF-8,
 i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 4 resources
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Compiling 2 source files to
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/classes
 [INFO] [resources:testResources {execution: default-testResources}]
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] skip non existing resourceDirectory
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/src/test/resources
 [INFO] [compiler:testCompile {execution: default-testCompile}]
 [INFO] No sources to compile
 [INFO] [surefire:test {execution: default-test}]
 [INFO] No tests to run.
 [INFO] [jar:jar {execution: default-jar}]
 [INFO] Building jar:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 [INFO] [install:install {execution: default-install}]
 [INFO] Installing
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/client/target/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 to
 /home/stephane/.m2/repository/no/nki/webapp-on-abcdata-client/1.0-SNAPSHOT/webapp-on-abcdata-client-1.0-SNAPSHOT.jar
 [INFO]
 
 [INFO] Building webapp-on-abcdata-web
 [INFO] task-segment: [clean, install]
 [INFO]
 
 [INFO] [clean:clean {execution: default-clean}]
 [INFO] Deleting file set:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/target
 (included: [**], excluded: [])
 [INFO] [build-helper:add-source {execution: add-source}]
 [INFO] Source directory:
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/client/generated/cxf
 added.
 [INFO] [resources:resources {execution: default-resources}]
 [WARNING] File encoding has not been set, using platform encoding UTF-8,
 i.e. build is platform dependent!
 [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
 resources, i.e. build is platform dependent!
 [INFO] Copying 0 resource
 [INFO] [compiler:compile {execution: default-compile}]
 [INFO] Compiling 4 source files to
 /home/stephane/work/nki/dev/java/projects/webapp-on-abcdata/web/target/classes
 [INFO]
 

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 that
the solution may be to place them in separate modules and need to be told. 

Kristian I find Cedric's opinions very refreshing and his work on TestNG
makes it my #1 choice as a java test framework. ScalaTest and Moquito are
sheer elegance imo. Let it suffice to say that I make it my business to know
my test frameworks but when it comes to Maven usage, I am the new kid in the
block.

Thank you for being gentle with me for side-tracking.

--
View this message in context: 
http://maven.40175.n5.nabble.com/known-problem-to-get-JUnit-4-and-TestNG-working-together-tp5500597p5501941.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 Response XSD
One WSDL, using Request and Response XSD
i.e.
1) User calls Web Service, which uses my-request.xsd
2) Web Service calls Stateless EJB, which uses my-request.xsd
3) Stateless EJB constructs response, which uses my-response.xsd
4) Web Service returns response, which uses my-response.xsd

Most people I speak to suggest Axis2 with XML Beans for data binding,
but that solutions seams to result in file duplication or messy
copying of xsd's around. I see the simple scenario as 5 pom's but am
unsure where to put axis2 wsdl 2 code generation and if it should have
it's own pom.

./pom.xml (Packaging POM)
./schema/pom.xml (Packing JAR, using xmlbeans plugin)
./service/pom.xml (Packing EJB)
./web/pom.xml (Packing WAR)
./app/pom.xml (Packing EAR)

Thoughts?

John

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 projects...

There is nothing here what maven does wrong! It is just that you didn't follow 
the convention, thus you need to configure that stuff yourself. ...like you 
would need to configure this stuff manually in all other build systems I know...

LieGrue,
strub



- Original Message -
 From: Manfred Moser manf...@mosabuam.com
 To: users@maven.apache.org
 Cc: 
 Sent: Tuesday, February 21, 2012 1:04 AM
 Subject: Re: Help again for working with release:plugin
 
T orsten,
 
 While you are right that you can do this setup using relative paths and 
 so on like Ansgar told you rightly and you have discovered yourself.. it 
 wont work nicely.
 
 If you are fighting Maven you are wasting a lot of time and effort. Just 
 refactor the build to follow maven conventions.. it will be way easier 
 to deal with it..
 
 manfred
 
 On 12-02-20 02:48 PM, Dipl.-Ing. Torsten Liermann wrote:
  Hi,
 
  you are right, but that was not my decision. Maven work with this
  configuration, relative pathes to the child modules is sufficiently
 
  modules
     module../child1/module
     module../child2/module
     ...
  /modules
 
  Now I must see, if is it possible, to give the scm commands a working 
 directory.
 
  Greetings
  Torsten
 
  On Mon, 20 Feb 2012 22:22:13 +0100
    Ansgar Konermannansgar.konerm...@googlemail.com  wrote:
  Hi Torsten,
 
  Am 20.02.2012 22:02, schrieb Dipl.-Ing. Torsten Liermann:
  My parent pom is on the same level as the children poms
  If you mean they're in the same directory: this is a 
 configuration
  error. Maven is not designed to work with this setup.
 
  Please configure your project to follow Maven directory layout
  conventions (i. e. put child modules in subdirectories and put the
  pom.xml of each submodule in the corresponding directory).
 
  If you cannot use Maven conventions at all for some reason, it's 
 best to
  choose a different tool.
 
  Best regards
 
  Ansgar
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 some help with the connection URL: 

I went to the SCM plugin for CC page and the URL for UCM is :

scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name

At some places it says that the POM in the folder of the project (inside the 
clear case view) should only contain scm:clearcase, but when i try mvn
scm:validate with that then i get the error :

[ERROR] Validation of scm url connection (connectionUrl) failed :
[ERROR] Illegal URL: (ClearCaseUCM need more parameters. Expected url format
: [view_name]|[configspec]|[vob_name]|[stream_name])
[ERROR] The invalid scm url connection: 'scm:clearcase:'.


I added the view name , vob name and stream name but I dont know what the
config spec and elementName should be. is the config-spec the host name of
the clear case server. After adding the hostname as the config spec i get
this error :   http://codepad.org/ZXCLskCR  exception on mvn validate with
URL on codepad 



I will appreciate if anyone can guide me to complete these two values for my
URL connection.

Thanks
Syed...





--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502632.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: sarmahdi [mailto:sarma...@hotmail.com] 
Sent: Tuesday, February 21, 2012 11:08 AM
To: users@maven.apache.org
Subject: maven: scm: clearcase URL help

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 some help with the connection URL: 

I went to the SCM plugin for CC page and the URL for UCM is :

scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name

At some places it says that the POM in the folder of the project (inside the 
clear case view) should only contain scm:clearcase, but when i try mvn 
scm:validate with that then i get the error :

[ERROR] Validation of scm url connection (connectionUrl) failed :
[ERROR] Illegal URL: (ClearCaseUCM need more parameters. Expected url format
: [view_name]|[configspec]|[vob_name]|[stream_name])
[ERROR] The invalid scm url connection: 'scm:clearcase:'.


I added the view name , vob name and stream name but I dont know what the 
config spec and elementName should be. is the config-spec the host name of the 
clear case server. After adding the hostname as the config spec i get
this error :   http://codepad.org/ZXCLskCR  exception on mvn validate with
URL on codepad 



I will appreciate if anyone can guide me to complete these two values for my 
URL connection.

Thanks
Syed...





--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502632.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 using a UCM CC Snapshot view. the worst part is that I
dont know how to work with CC in depth either. I tried finding for a
config-spec file in the views folder for each project i have updated from CC
streams but there is nothing there. I will have to generate it some how but
i do not know what exactly goes in there.

I will only run mvn scm:validate or scm:update  and then mvn install in the
projects directory. So i do not need to check out anything either. 

svn would be easier to work with i suppose i ahve used it before. CC is just
a complex brand of animal i guess.. :( 


Thanks for the reply. 
Syed..

--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502716.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: maven: scm: clearcase URL help

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 some help with the connection URL: 

I went to the SCM plugin for CC page and the URL for UCM is :

scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name

At some places it says that the POM in the folder of the project (inside the 
clear case view) should only contain scm:clearcase, but when i try mvn 
scm:validate with that then i get the error :

[ERROR] Validation of scm url connection (connectionUrl) failed :
[ERROR] Illegal URL: (ClearCaseUCM need more parameters. Expected url format
: [view_name]|[configspec]|[vob_name]|[stream_name])
[ERROR] The invalid scm url connection: 'scm:clearcase:'.


I added the view name , vob name and stream name but I dont know what the 
config spec and elementName should be. is the config-spec the host name of the 
clear case server. After adding the hostname as the config spec i get
this error :   http://codepad.org/ZXCLskCR  exception on mvn validate with
URL on codepad 



I will appreciate if anyone can guide me to complete these two values for my 
URL connection.

Thanks
Syed...





--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502632.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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: sarmahdi [mailto:sarma...@hotmail.com] 
Sent: Tuesday, February 21, 2012 11:08 AM
To: users@maven.apache.org
Subject: maven: scm: clearcase URL help

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 some help with the connection URL: 

I went to the SCM plugin for CC page and the URL for UCM is :

scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name

At some places it says that the POM in the folder of the project (inside the 
clear case view) should only contain scm:clearcase, but when i try mvn 
scm:validate with that then i get the error :

[ERROR] Validation of scm url connection (connectionUrl) failed :
[ERROR] Illegal URL: (ClearCaseUCM need more parameters. Expected url format
: [view_name]|[configspec]|[vob_name]|[stream_name])
[ERROR] The invalid scm url connection: 'scm:clearcase:'.


I added the view name , vob name and stream name but I dont know what the 
config spec and elementName should be. is the config-spec the host name of the 
clear case server. After adding the hostname as the config spec i get
this error :   http://codepad.org/ZXCLskCR  exception on mvn validate with
URL on codepad 



I will appreciate if anyone can guide me to complete these two values for my 
URL connection.

Thanks
Syed...





--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502632.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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
  useVWSParametertrue/useVWSParameter
  viewstore/net/ccview1/viewstg1//viewstore
/clearcase-settings


-Original Message-
From: Lyons, Roy 
Sent: Tuesday, February 21, 2012 10:52 AM
To: Maven Users List
Subject: RE: maven: scm: clearcase URL help

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: maven: scm: clearcase URL help

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 some help with the connection URL: 

I went to the SCM plugin for CC page and the URL for UCM is :

scm:clearcasedelimiter[view_name]delimiterconfig_specdelimitervob_namedelimiterstream_name

At some places it says that the POM in the folder of the project (inside the 
clear case view) should only contain scm:clearcase, but when i try mvn 
scm:validate with that then i get the error :

[ERROR] Validation of scm url connection (connectionUrl) failed :
[ERROR] Illegal URL: (ClearCaseUCM need more parameters. Expected url format
: [view_name]|[configspec]|[vob_name]|[stream_name])
[ERROR] The invalid scm url connection: 'scm:clearcase:'.


I added the view name , vob name and stream name but I dont know what the 
config spec and elementName should be. is the config-spec the host name of the 
clear case server. After adding the hostname as the config spec i get
this error :   http://codepad.org/ZXCLskCR  exception on mvn validate with
URL on codepad 



I will appreciate if anyone can guide me to complete these two values for my 
URL connection.

Thanks
Syed...





--
View this message in context: 
http://maven.40175.n5.nabble.com/maven-scm-clearcase-URL-help-tp5502632p5502632.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 do
this.  Can we create a pom file to call the maven deploy once and have it
upload all of the artifacts.

We have 
x.jar
y.jar
a.jar
b.jar

each one is uploaded to 
com.biz.xxx.xxx.trunk/x/x.jar
com.biz.xxx.xxx.trunk/y/y.jar
com.biz.xxx.xxx.trunk/a/a.jar
com.biz.xxx.xxx.trunk/b/b.jar

Can what I want to do be done in a single pom file?  Thanks in advance.

--
View this message in context: 
http://maven.40175.n5.nabble.com/using-maven-deploy-tp5503099p5503099.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 upload.  However I wanted to see if there is a better way to do
 this.  Can we create a pom file to call the maven deploy once and have it
 upload all of the artifacts.

 We have
 x.jar
 y.jar
 a.jar
 b.jar

 each one is uploaded to
 com.biz.xxx.xxx.trunk/x/x.jar
 com.biz.xxx.xxx.trunk/y/y.jar
 com.biz.xxx.xxx.trunk/a/a.jar
 com.biz.xxx.xxx.trunk/b/b.jar

 Can what I want to do be done in a single pom file?  Thanks in advance.


Since these artifacts are different you should have different pom files.
You might want to look at the Maven Ant Tasks or the newer Aether Ant
Tasks..

manfred

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 project. I mean to say i
don't want to publish any artifactory/nexus/archiva repository copy for
other people to use it.

*Use Case :*

Here my maven-ear is part of the maven-main-project and that's the only
module which use the maven-pojo and maven-java generated artifacts and
which i don't want to publish it on repository but just want to use it for
building the EAR.

How can i disable those 2 (maven-pojo and maven-java) projects not to
publish artifacts at repository level.

Looking for some solution on this, As don't want to create unncessary
artifacts on repository as nobody is going to use it other then my own Main
project EAR project.

Thanks.


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
/plugins
  /build

-Original Message-
From: Daivish Shah [mailto:daivish.s...@gmail.com] 
Sent: Tuesday, February 21, 2012 3:09 PM
To: Maven Users List
Subject: One question about Multi Project Structure in MAVEN

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 project. I mean to say i don't want to 
publish any artifactory/nexus/archiva repository copy for other people to use 
it.

*Use Case :*

Here my maven-ear is part of the maven-main-project and that's the only module 
which use the maven-pojo and maven-java generated artifacts and which i don't 
want to publish it on repository but just want to use it for building the EAR.

How can i disable those 2 (maven-pojo and maven-java) projects not to publish 
artifacts at repository level.

Looking for some solution on this, As don't want to create unncessary artifacts 
on repository as nobody is going to use it other then my own Main project EAR 
project.

Thanks.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 don't want to create unncessary
 artifacts on repository as nobody is going to use it other then my own Main
 project EAR project.

This isn't sufficient justification for these efforts, IMO.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 (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 don't want to create unncessary
  artifacts on repository as nobody is going to use it other then my own
 Main
  project EAR project.

 This isn't sufficient justification for these efforts, IMO.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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:
http://weblogs.java.net/blog/johnsmart/archive/2008/03/using_hudson_en.html

It does a similar thing (injects build number into the JAR manifest).

-Curtis

P.S. I think screwing around with the Maven snapshot naming scheme is
asking for trouble. Putting it in the manifest seems safer to me.
Unfortunately, you didn't elaborate on *why* you want to do this, so we
can't really comment on any alternative solutions.


On Wed, Feb 15, 2012 at 12:23 PM, chad.da...@emc.com wrote:

 I'm trying to figure out a way to get my Hudson build number onto my
 snapshot artifact names.  I noticed that the timestamp in the snapshot
 unique version number is followed by a build number.  Is there way to
 inject my own value here, the Hudson build number for instance.



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.


Looking for some solution on this, As don't want to create unncessary
artifacts on repository as nobody is going to use it other then my own Main
project EAR project.

This isn't sufficient justification for these efforts, IMO.
+1 Unless you are building a personal toy that will never go into 
production use and will never require maintenance.
If it is a serious project, it should be properly structured and 
everything required to build and maintain it should be in a repo of some 
kind - sources in SCM, jars in Maven Repo.
If you do not put the jars in a repo, then you may have to check out a 
bunch of sources to rebuild something that is not changing in order to 
update a configuration file.



Ron



Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

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 generation of the files into this directory.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 don't
want to publish any artifacts outside of this project. I mean to say i
don't want to publish any artifactory/nexus/archiva repository copy for
other people to use it.

Other people being your coworkers and co-developers?
A Maven repo is a private place.
You control who has access.
It is normally only for your team (even if you are the whole team).

If you are using Maven you need a repo. We went for 2 years without one 
and it was a really stupid oversight on our part.
It greatly simplifies your life and makes Maven much easier to 
understand and makes it much easier to do the right things.

Publish does not mean to the whole world.

Ron


*Use Case :*

Here my maven-ear is part of the maven-main-project and that's the only
module which use the maven-pojo and maven-java generated artifacts and
which i don't want to publish it on repository but just want to use it for
building the EAR.

How can i disable those 2 (maven-pojo and maven-java) projects not to
publish artifacts at repository level.

Looking for some solution on this, As don't want to create unncessary
artifacts on repository as nobody is going to use it other then my own Main
project EAR project.

Thanks.




--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

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.

 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 project. I mean to say i
 don't want to publish any artifactory/nexus/archiva repository copy for
 other people to use it.

 Other people being your coworkers and co-developers?
 A Maven repo is a private place.
 You control who has access.
 It is normally only for your team (even if you are the whole team).

 If you are using Maven you need a repo. We went for 2 years without one
 and it was a really stupid oversight on our part.
 It greatly simplifies your life and makes Maven much easier to understand
 and makes it much easier to do the right things.
 Publish does not mean to the whole world.

 Ron


  *Use Case :*

 Here my maven-ear is part of the maven-main-project and that's the only
 module which use the maven-pojo and maven-java generated artifacts and
 which i don't want to publish it on repository but just want to use it for
 building the EAR.

 How can i disable those 2 (maven-pojo and maven-java) projects not to
 publish artifacts at repository level.

 Looking for some solution on this, As don't want to create unncessary
 artifacts on repository as nobody is going to use it other then my own
 Main
 project EAR project.

 Thanks.



 --
 Ron Wheeler
 President
 Artifact Software Inc
 email: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102




 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



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 install.

This is what i wanted.

Thanks.


On Tue, Feb 21, 2012 at 2:20 PM, Wayne Fay wayne...@gmail.com wrote:

  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 generation of the files into this directory.

 Wayne

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




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 compile scope. But, this leads to the fact that the EAR
later contains not only the EJB and the RAR, but also the interface JAR.
As the interface JAR already is contained in the RAR, this is redundant.
What is The Maven Way to prevent this redundance, so the EAR will not
contain the additional interface JAR?

 



[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 imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-

at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:139)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: org.apache.maven.plugin.PluginContainerException: An API
incompatibility was encountered while executing
org.apache.maven.plugins:maven-site-plugin:3.0:site:
java.lang.AbstractMethodError: null

I still have a couple of small components which can successfully pass the
'site' goal, but they don't seem to have anything different from the others.
Can't figure anything form those, site.xml is identical in every project.

See end of post for complete debug stack trace.

Thanks for any help or pointer.



realm =pluginorg.apache.maven.plugins:maven-site-plugin:3.0
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] =
file:/Users/nodje/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar
urls[1] =
file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
urls[2] =
file:/Users/nodje/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
urls[3] =
file:/Users/nodje/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
urls[4] = file:/Users/nodje/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[5] =
file:/Users/nodje/.m2/repository/velocity/velocity/1.5/velocity-1.5.jar
urls[6] =
file:/Users/nodje/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
urls[7] =
file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
urls[8] =
file:/Users/nodje/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
urls[9] =
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
urls[10] =
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
urls[11] =
file:/Users/nodje/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[12] =
file:/Users/nodje/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[13] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar
urls[14] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar
urls[15] =
file:/Users/nodje/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[16] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar
urls[17] =
file:/Users/nodje/.m2/repository/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar
urls[18] =
file:/Users/nodje/.m2/repository/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar
urls[19] =
file:/Users/nodje/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
urls[20] =
file:/Users/nodje/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
urls[21] =
file:/Users/nodje/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
urls[22] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
urls[23] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar
urls[24] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
urls[25] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar
urls[26] =
file:/Users/nodje/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
urls[27] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar
urls[28] =
file:/Users/nodje/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar
urls[29] =
file:/Users/nodje/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
urls[30] =
file:/Users/nodje/.m2/repository/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar
urls[31] =
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar
urls[32] =
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar
urls[33] =
file:/Users/nodje/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[34] =

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 Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 problem on Stack Overflow
(http://stackoverflow.com/questions/9364511/maven-different-dependency-version-in-test),
but I'll repeat the explanation here.

In my project I need to depend on a Cloudera distribution of Hadoop
and a 'vanilla' version for JUnit testing, as the former only works on
*nix.

When I try and execute my application, I get Exception in thread
main java.lang.NoClassDefFoundError:
org/apache/hadoop/conf/Configuration. When I run JUnit tests from
Maven or Eclipse, everything works fine. If I comment out the test
dependencies, the application runs successfully, but then the tests
fail because they're using the wrong version.

Why is the compile dependency getting ignored when the test dependency
is uncommented?

dependency
groupIdorg.apache.hadoop/groupId
artifactIdhadoop-core/artifactId
version0.20.2-cdh3u2/version
scopecompile/scope
/dependency

dependency
groupIdorg.apache.hadoop/groupId
artifactIdhadoop-core/artifactId
version1.0.0/version
scopetest/scope
/dependency

dependency
groupIdorg.apache.hadoop/groupId
artifactIdhadoop-test/artifactId
version1.0.0/version
scopetest/scope
/dependency

mvn dependency:list shows the following, which does not show the
compile scoped version at all:

[INFO] The following files have been resolved:
[INFO]ant:ant:jar:1.6.5:test
[INFO]aopalliance:aopalliance:jar:1.0:compile
[INFO]asm:asm:jar:3.3.1:compile
[INFO]cglib:cglib:jar:2.2.2:compile
[INFO]ch.qos.logback:logback-classic:jar:1.0.0:compile
[INFO]ch.qos.logback:logback-core:jar:1.0.0:compile
[INFO]com.google.guava:guava:jar:r08:compile
[INFO]com.h2database:h2:jar:1.3.164:test
[INFO]com.jolbox:bonecp:jar:0.7.1.RELEASE:compile
[INFO]com.sun.jersey:jersey-core:jar:1.11:test
[INFO]commons-beanutils:commons-beanutils:jar:1.7.0:test
[INFO]commons-beanutils:commons-beanutils-core:jar:1.8.0:test
[INFO]commons-cli:commons-cli:jar:1.2:test
[INFO]commons-codec:commons-codec:jar:1.4:test
[INFO]commons-collections:commons-collections:jar:3.2.1:test
[INFO]commons-configuration:commons-configuration:jar:1.6:test
[INFO]commons-digester:commons-digester:jar:1.8:test
[INFO]commons-el:commons-el:jar:1.0:test
[INFO]commons-httpclient:commons-httpclient:jar:3.0.1:test
[INFO]commons-lang:commons-lang:jar:2.4:test
[INFO]commons-logging:commons-logging:jar:1.1.1:compile
[INFO]commons-net:commons-net:jar:1.4.1:test
[INFO]hsqldb:hsqldb:jar:1.8.0.10:test
[INFO]junit:junit:jar:4.10:test
[INFO]mysql:mysql-connector-java:jar:5.1.18:compile
[INFO]net.java.dev.jets3t:jets3t:jar:0.7.1:test
[INFO]net.sf.kosmosfs:kfs:jar:0.3:test
[INFO]org.apache.commons:commons-math:jar:2.1:test
[INFO]org.apache.ftpserver:ftplet-api:jar:1.0.0:test
[INFO]org.apache.ftpserver:ftpserver-core:jar:1.0.0:test
[INFO]org.apache.ftpserver:ftpserver-deprecated:jar:1.0.0-M2:test
[INFO]org.apache.hadoop:hadoop-core:jar:1.0.0:test
[INFO]org.apache.hadoop:hadoop-test:jar:1.0.0:test
[INFO]org.apache.mina:mina-core:jar:2.0.0-M5:test
[INFO]org.codehaus.jackson:jackson-core-asl:jar:1.0.1:test
[INFO]org.codehaus.jackson:jackson-mapper-asl:jar:1.0.1:test
[INFO]org.eclipse.jdt:core:jar:3.1.1:test
[INFO]org.hamcrest:hamcrest-core:jar:1.1:test
[INFO]org.liquibase:liquibase-core:jar:2.0.3:test
[INFO]org.liquibase.ext:liquibase-slf4j:jar:0.0.1:test
[INFO]org.mortbay.jetty:jetty:jar:6.1.26:test
[INFO]org.mortbay.jetty:jetty-util:jar:6.1.26:test
[INFO]org.mortbay.jetty:jsp-2.1:jar:6.1.14:test
[INFO]org.mortbay.jetty:jsp-api-2.1:jar:6.1.14:test
[INFO]org.mortbay.jetty:servlet-api:jar:2.5-20081211:test
[INFO]org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:test
[INFO]org.slf4j:jcl-over-slf4j:jar:1.6.4:compile
[INFO]org.slf4j:log4j-over-slf4j:jar:1.6.4:compile
[INFO]org.slf4j:slf4j-api:jar:1.6.4:compile
[INFO]org.springframework:spring-aop:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-asm:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-beans:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-context:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-context-support:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-core:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-expression:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-jdbc:jar:3.1.1.RELEASE:compile
[INFO]org.springframework:spring-test:jar:3.1.1.RELEASE:test
[INFO]

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 them gets 'noticed'.
 I've detailed the problem on Stack Overflow
 (http://stackoverflow.com/questions/9364511/maven-different-dependency-
version-in-test),
 but I'll repeat the explanation here.
 
 In my project I need to depend on a Cloudera distribution of Hadoop
 and a 'vanilla' version for JUnit testing, as the former only works on
 *nix.
 
 When I try and execute my application, I get Exception in thread
 main java.lang.NoClassDefFoundError:
 org/apache/hadoop/conf/Configuration. When I run JUnit tests from
 Maven or Eclipse, everything works fine. If I comment out the test
 dependencies, the application runs successfully, but then the tests
 fail because they're using the wrong version.
 
 Why is the compile dependency getting ignored when the test dependency
 is uncommented?
 
 dependency
 groupIdorg.apache.hadoop/groupId
 artifactIdhadoop-core/artifactId
 version0.20.2-cdh3u2/version
 scopecompile/scope
 /dependency
 
 dependency
 groupIdorg.apache.hadoop/groupId
 artifactIdhadoop-core/artifactId
 version1.0.0/version
 scopetest/scope
 /dependency
 
 dependency
 groupIdorg.apache.hadoop/groupId
 artifactIdhadoop-test/artifactId
 version1.0.0/version
 scopetest/scope
 /dependency
 
 mvn dependency:list shows the following, which does not show the
 compile scoped version at all:
 
 [INFO] The following files have been resolved:
 [INFO]ant:ant:jar:1.6.5:test
 [INFO]aopalliance:aopalliance:jar:1.0:compile
 [INFO]asm:asm:jar:3.3.1:compile
 [INFO]cglib:cglib:jar:2.2.2:compile
 [INFO]ch.qos.logback:logback-classic:jar:1.0.0:compile
 [INFO]ch.qos.logback:logback-core:jar:1.0.0:compile
 [INFO]com.google.guava:guava:jar:r08:compile
 [INFO]com.h2database:h2:jar:1.3.164:test
 [INFO]com.jolbox:bonecp:jar:0.7.1.RELEASE:compile
 [INFO]com.sun.jersey:jersey-core:jar:1.11:test
 [INFO]commons-beanutils:commons-beanutils:jar:1.7.0:test
 [INFO]commons-beanutils:commons-beanutils-core:jar:1.8.0:test
 [INFO]commons-cli:commons-cli:jar:1.2:test
 [INFO]commons-codec:commons-codec:jar:1.4:test
 [INFO]commons-collections:commons-collections:jar:3.2.1:test
 [INFO]commons-configuration:commons-configuration:jar:1.6:test
 [INFO]commons-digester:commons-digester:jar:1.8:test
 [INFO]commons-el:commons-el:jar:1.0:test
 [INFO]commons-httpclient:commons-httpclient:jar:3.0.1:test
 [INFO]commons-lang:commons-lang:jar:2.4:test
 [INFO]commons-logging:commons-logging:jar:1.1.1:compile
 [INFO]commons-net:commons-net:jar:1.4.1:test
 [INFO]hsqldb:hsqldb:jar:1.8.0.10:test
 [INFO]junit:junit:jar:4.10:test
 [INFO]mysql:mysql-connector-java:jar:5.1.18:compile
 [INFO]net.java.dev.jets3t:jets3t:jar:0.7.1:test
 [INFO]net.sf.kosmosfs:kfs:jar:0.3:test
 [INFO]org.apache.commons:commons-math:jar:2.1:test
 [INFO]org.apache.ftpserver:ftplet-api:jar:1.0.0:test
 [INFO]org.apache.ftpserver:ftpserver-core:jar:1.0.0:test
 [INFO]org.apache.ftpserver:ftpserver-deprecated:jar:1.0.0-M2:test
 [INFO]org.apache.hadoop:hadoop-core:jar:1.0.0:test
 [INFO]org.apache.hadoop:hadoop-test:jar:1.0.0:test
 [INFO]org.apache.mina:mina-core:jar:2.0.0-M5:test
 [INFO]org.codehaus.jackson:jackson-core-asl:jar:1.0.1:test
 [INFO]org.codehaus.jackson:jackson-mapper-asl:jar:1.0.1:test
 [INFO]org.eclipse.jdt:core:jar:3.1.1:test
 [INFO]org.hamcrest:hamcrest-core:jar:1.1:test
 [INFO]org.liquibase:liquibase-core:jar:2.0.3:test
 [INFO]org.liquibase.ext:liquibase-slf4j:jar:0.0.1:test
 [INFO]org.mortbay.jetty:jetty:jar:6.1.26:test
 [INFO]org.mortbay.jetty:jetty-util:jar:6.1.26:test
 [INFO]org.mortbay.jetty:jsp-2.1:jar:6.1.14:test
 [INFO]org.mortbay.jetty:jsp-api-2.1:jar:6.1.14:test
 [INFO]org.mortbay.jetty:servlet-api:jar:2.5-20081211:test
 [INFO]org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:test
 [INFO]org.slf4j:jcl-over-slf4j:jar:1.6.4:compile
 [INFO]org.slf4j:log4j-over-slf4j:jar:1.6.4:compile
 [INFO]org.slf4j:slf4j-api:jar:1.6.4:compile
 [INFO]org.springframework:spring-aop:jar:3.1.1.RELEASE:compile
 [INFO]org.springframework:spring-asm:jar:3.1.1.RELEASE:compile
 [INFO]org.springframework:spring-beans:jar:3.1.1.RELEASE:compile
 [INFO]org.springframework:spring-context:jar:3.1.1.RELEASE:compile
 [INFO]   
 [org.springframework:spring-context-support:jar:3.1.1.RELEASE:compile
 [INFO]org.springframework:spring-core:jar:3.1.1.RELEASE:compile
 [INFO]org.springframework:spring-expression:jar:3.1.1.RELEASE:compile
 [INFO]