Re: Java EE

2006-07-11 Thread Matthias Wessendorf

Markus,

try this

   repository
 snapshots
   enabledfalse/enabled
 /snapshots
 idjava-net/id
 namejava.net repository/name
 !-- NOTE: this URL must be HTTPS.  However, unfortunately this
  doesn't work behind a firewall.  See:
http://jira.codehaus.org/browse/WAGONHTTP-6
  ... for the source of that problem.  Users behind firewalls
  will have to manually download the files from this repository
  and transfer them to their local repository.
 --
 urlhttps://maven-repository.dev.java.net/nonav/repository//url
 layoutlegacy/layout
   /repository

Regards,
Matt

On 7/10/06, Wendy Smoak [EMAIL PROTECTED] wrote:

On 7/10/06, Markus Wolf [EMAIL PROTECTED] wrote:

 are there any recommendations for groupId and artifactId for Java EE
 Specs available? On the website-guides there are only EJB3 / Persistence
  recommendations, but this does not include the JEE Annotations required
 to deploy something to Glassfish using annotations (e.g. @EJB or
 @PersistenceContext).

Isn't that in javax.persistence?  There is a Maven 1 repo available at
java.net, you can use it with m2 by saying layoutlegacy/layout in
the repository element.

 * https://maven-repository.dev.java.net/repository/

(And persistence-api-1.0.jar which seems to contain
PersistenceContext, is here:
https://maven-repository.dev.java.net/repository/javax.persistence/jars/
.)

 If there are no recommendations, what about this:
 groupId: javax.jee (maybe javax.j2ee)
 artifactId: jee (maybe even j2ee)
 version: 5.0

If the above isn't what you're looking for, How about javaee ? Sun
uses it in the URL: http://java.sun.com/javaee/   The '2' is out now,
it's just Java EE. :)

HTH,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java EE

2006-07-11 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

repository
  snapshots
enabledfalse/enabled
  /snapshots
  idjava-net/id
  namejava.net repository/name
  !-- NOTE: this URL must be HTTPS.  However, unfortunately this
   doesn't work behind a firewall.  See:
 http://jira.codehaus.org/browse/WAGONHTTP-6
   ... for the source of that problem.  Users behind firewalls
   will have to manually download the files from this repository
   and transfer them to their local repository.
  --
  urlhttps://maven-repository.dev.java.net/nonav/repository//url
  layoutlegacy/layout
/repository
 

This repository and the javax.persistence groupId are great. Thanks for
this.
But I'm missing some more API's from JavaEE (like @Remote or @Stateless,
 ...). Is there anything available? I know Sun releases a javaee.jar
package with SAS and Glashfish containing all JavaEE APIs in one, but
there is no maven repository for it.

Thanks
Markus Wolf
- --

 emedia-solutions wolf
 Wedeler Landstrasse 63
 22559 Hamburg
 (040) 550 083 70

  web: http://www.emedia-solutions-wolf.de
 mail: [EMAIL PROTECTED]
  pgp: http://wwwkeys.de.pgp.net

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEs011eyJE91ndMG4RAoyqAJ4t2umrStKzE6HezdzQVrGRTOvIZwCfQOzl
7ZD8bz/DppFjdBM3/b2zmRQ=
=SKHB
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [M2] Control all the dependencies injected

2006-07-11 Thread Jörg Schaible
Hi Alöexandre,

Alexandre Touret wrote on Monday, July 10, 2006 6:35 PM:

 Hello,
 
 I m trying to migrate from m1.x to m2. I think M2 is powerfull by
 transitive dependencies functionality.But in my J2EE
 environment, I have
 some problems with an application which use Hibernate,
 Struts, Spring,
 Log4J ...
 
 First, I use Oracle AS 10.1.3. This server doesn' t integrate both
 xerces  xalan for XML parsing/transform but XDK. How can I override
 the dependencies of xerces and xalan and replace them by a
 reference of XDK ?

Use a super POM as parent (1). Define there a dependencyManagement section 
where you include the spring artifacts with appropriate exclusions (2).

 Secondly, I have an another problem with the injection of dependencies
 with antlr librabry. some of my components depends of the
 version 2.7.2
 and another ones depends of the version 2.7.
 This problem is available for other libraries. I have prefered this
 example, because its well representative.

Maven will take the nearest version i.e. the version of antlr with the less 
transitive levels to the current artifact (3).

 So that's I would like to have some skill testimonies about injection
 of dependencies with MAVEN 2 in Java EE environment


1) A parent pom is isdentified like a normal artifact my 
groupId:artifactId:version. It does not have to be present in the parent 
directory nor must it declare all modules, that refer it as parent. So a super 
POM is normally a project of its own. Use the depednencyManagement also to 
define the versions, dojn't enter them in the POMs of your modules.

2) Exclusions have a very nasty characteristic: An artifact that excluded for 
an arbitrary dependency is excluded implicitly for all dependencies.

3) Especially in an J2EE environment the version control gets nasty. The 
version included in an EAR might be different from the version referenced in 
the EJB's classpath (because the EAR's depednency resolution might take another 
version as nearer). The only way to circumvent this is the declaration of a 
dependency directly in your POMs - which makes the transitive depednencies 
somewhat pointless.

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Password ignored when checking out using CVS with ext

2006-07-11 Thread Achim Abeling

Hi,

Barrie Treloar wrote:

On 7/11/06, Mike Lee [EMAIL PROTECTED] wrote:
I had a similar problem as you described. I believe I had to do a 
xhost +

command before I ssh'ed into the machine as root to start the Continuum
server.


Err, xhost + is a very insecure solution to the problem.


And it does not help me to make continuum run in batch.




 Hi,

 I am using continuum 1.0.3 on linux.

 The continuum server is run as root.


I'd create a continuum user and run as that, never run applications as 
root.

Continuum has no need for the privileges that root enjoys.


 scm:cvs:ext:server:path:module

[del]

 Error: Can't open display: :0.0
 Xlib: connection to :0.0 refused by server
 Xlib: No protocol specified

 openssh tries to ask for the password in a popup which fails.

[del]
 When I run continuum as a user which owns the display the popup 
appears,
 I can type in the password and continuum continues its work 
successfully.


 How can I configure continuum (or openssh) to take the password 
provided

 in the web interface?


Continuum runs maven no differently than if you ran mvn on the command 
line.


You should get mvn to work as the continuum user in batch-mode so that
no popups occur and it works correctly from the command line. Until
this happens there is no point setting up continuum.





This may require configuring the key files in ~continuum/.ssh to not
have a passphrase.


Ok. I got this to work by using ssh keyfiles.

But what are the username and password fields in the web interface good 
for? Can they only be used for pserver connections?


Thanks for your help
Achim


It may also require your to have run the cvs login command by hand to
create the ~/.cvspass file with a password included.

Having no passphrase and storing keys in .cvspass are not ideal
security choices but they rely on linux filesystem permissions which
is pretty reasonable.  It is much better than running continuum as
root or using xhost +.




Re: Java EE

2006-07-11 Thread Martin Vysny
On Tue, 2006-07-11 at 09:04 +0200, Markus Wolf wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 repository
   snapshots
 enabledfalse/enabled
   /snapshots
   idjava-net/id
   namejava.net repository/name
   !-- NOTE: this URL must be HTTPS.  However, unfortunately this
doesn't work behind a firewall.  See:
  http://jira.codehaus.org/browse/WAGONHTTP-6
... for the source of that problem.  Users behind firewalls
will have to manually download the files from this repository
and transfer them to their local repository.
   --
   urlhttps://maven-repository.dev.java.net/nonav/repository//url
   layoutlegacy/layout
 /repository
  
 
 This repository and the javax.persistence groupId are great. Thanks for
 this.
 But I'm missing some more API's from JavaEE (like @Remote or @Stateless,
  ...). Is there anything available? I know Sun releases a javaee.jar
 package with SAS and Glashfish containing all JavaEE APIs in one, but
 there is no maven repository for it.
 

I made a small example app for Seam/EJB3, you may download it here:
http://vyzivus.host.sk/maven2-seam.html. The dependencies are not
perfect but I hope it helps.
Sincerely,
Martin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mvn deploy

2006-07-11 Thread ben short

Matthias,

You dont need to use the sshExecuteable element. I use the that setup
on windows xp and it works. Maven uses wagon [1] to do the ssh.
Although you will need to manually download it ad put it into the lib
dir under your maven home dir.

[1] http://maven.apache.org/wagon/

Ben

On 7/11/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:

Ben,

thanks for your help. I tried to add my passed to settings.xml.
But I more thing that putty / pscp are not *callable* for my box/environment
(windoze w/o ! cygwin)

Below is my message...
I added sshExecuteable to my settings. Now putty comes up -o unkown option.
any ideas?

snip

[INFO] Retrieving previous build number from apache-maven-snapshots
[WARNING] repository metadata for: 'snapshot
org.apache.myfaces.core:myfaces-core-project:1.1.4-SNAPSHOT' could not
be retrieved from repository: apache-maven-snapshots due to an error:
Failed to post-process the source file
[INFO] Repository 'apache-maven-snapshots' will be blacklisted
Uploading: 
scpexe://minotaur.apache.org/www/people.apache.org/maven-snapshot-repository/org/apache/myfaces/core/myfaces-core-project/1.1.4-SNAPSHOT/myfaces-core-project-1.1.4-SNAPSHOT.pom
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error deploying artifact: Error executing command for transfer

Exit code 1 - 'ssh' is not recognized as an internal or external command,
operable program or batch file.

[INFO] 
[INFO] For more information, run Maven with the -e switch
/snip

-Matt


On 7/10/06, ben short [EMAIL PROTECTED] wrote:
 I use the follwoing in my pom.xml

 distributionManagement
 −
 repository
 idinternal-released/id
 urlscp://192.168.6.194/var/mvn/internal-released/url
 /repository
 −
 snapshotRepository
 idinternal-snapshot/id
 urlscp://192.168.6.194/var/mvn/internal-snapshot/url
 /snapshotRepository
 /distributionManagement

 and the following in my settings.xml

 server
   idinternal-snapshot/id
   usernamemvn/username
   passwordmvn/password
 /server
 server
   idinternal-released/id
   usernamemvn/username
   passwordmvn/password
 /server


 On 7/10/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
  Hey,
 
  I am getting this error
 
  snip
  [INFO] Error deploying artifact: Error executing command for transfer
 
  Exit code 1 - 'ssh' is not recognized as an internal or external command,
  operable program or batch file.
  /snip
 
  when trying mvn deploy on windoze
 
  my settings.xml contains:
 
  ...
servers
  server
idapache-maven-snapshots/id
usernamematzew/username
configuration
  scpExecutablepscp/scpExecutable
/configuration
  /server
/servers
 
  ...
 
 
  BTW pscp is in my $PATH
 
  Any missing configuration ?
 
  -Matt
 
  --
  Matthias Wessendorf
 
  futher stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is it possible to *embed* the management of libraries of Maven2 into a product?

2006-07-11 Thread Tugdual Grall

Hello,

First of all I am very very new to Maven, no real use experience, but
would like to leverage some very cool stuff of this tools.

IDEs, Application Server need to be able to quickly integrate new
libraries to their environment.

For example from an IDE I would like to be able to use the Maven
framework and say:
Please install all XFire 1.1 library in my project. Same for an app server...

Is-it possible to leverage Maven dependencie analysis and library
management is other application than Maven? If yes could you please
give me pointer?

Regards
Tug

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to *embed* the management of libraries of Maven2 into a product?

2006-07-11 Thread Tarun Ramakrishna

Hi Tugdall,

I am also new to maven. :-). But if you are using eclipse, there is a
good eclipse plugin (still a bit rough at the edges) at
m2eclipse.codehaus.org. It reads your POM file, downloads the
libraries and puts them on your eclipse classpath. Its really useful
and removes the integration pain with an IDE.

Regards,
Tarun

On 7/11/06, Tugdual Grall [EMAIL PROTECTED] wrote:

Hello,

First of all I am very very new to Maven, no real use experience, but
would like to leverage some very cool stuff of this tools.

IDEs, Application Server need to be able to quickly integrate new
libraries to their environment.

For example from an IDE I would like to be able to use the Maven
framework and say:
 Please install all XFire 1.1 library in my project. Same for an app server...

Is-it possible to leverage Maven dependencie analysis and library
management is other application than Maven? If yes could you please
give me pointer?

Regards
Tug

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SureFire plugin doesn't support Junit 4 paramterized tests?

2006-07-11 Thread Tarun Ramakrishna

Hi all,

(Posting reply for benefit of anybody searching archives)

I found that the surefire plugin does not currently support JUnit 4.x.
This is a known issue at
http://jira.codehaus.org/browse/SUREFIRE-31

Regards,
Tarun

On 7/7/06, Tarun Ramakrishna [EMAIL PROTECTED] wrote:

Hi all,

(Maven 2.0.4, Surefire 2.2)

I am using the JUnit 4 @RunWith(Parameterized.Class) annotation in my
JUnit tests for paramterized tests which takes in  a sequence of input
data and compares against an expected output sequence.

The constructors for these test classes take parameters, but it looks
like the plugin is attempting to use the default constructor.

Is this functionality supported at the moment?

PLUS: Apologize for any gloopers. I am a maven newbie.

All help appreciated!
Regards, Tarun



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Maven 2 dependency

2006-07-11 Thread Simone Gianni
Hi Nguyen,
don't trust me too much cause I'm still far from being a Maven expert :)
but we made some experiments in using Hibernate doclets in a maven 2
project, and what i see is that you are generating mappings in the
src/main/resources directory (destdir), which IIUC should contain source
resources and not generated ones.

IIRC we used to generate the hibernate mappings directly in the target
directory (where .class are) and not in the src directory.

Maybe, maybe, that could be why maven is getting confused and brings
resources from one project to another?

Simone

Nguyen Huy Quang wrote:

Hi all,

I'm using Maven 2 to build my three projects named
parent0, child1 and child2.

parent0 is parent of child1 and child2.

parent0 has also child1 and child2 as his modules.

child2 depends on child1.

all of three projects have their own pom.

I want to use xdoclet to generate mapping files, so I
configure the plugin xdoclet-maven-plugin in the poms
of child1 and child2:

tasks
   property
   
file=src/main/resources/hibernate.properties /

   taskdef 
 name=hibernatedoclet
   
classname=xdoclet.modules.hibernate.HibernateDocletTask
   
 classpathref=maven.compile.classpath /

   hibernatedoclet
   
 destdir=src/main/resources
   
 excludedtags=@version,@author,@todo,@see
verbose=true

   
 fileset dir=src/main/java/
   
 include name=**/*.java /
   
 /fileset

   
 hibernate version=3.0 /
   
 /hibernatedoclet
   /tasks

This config is the same in two poms.

When I compile the projects from the root directory of
parent0, the mapping files are generated. But the
problem is:

All the generated mapping files of the project child2
are put in the directory src/main/resources of the
child1, not in child2. It seems to me that the pom of
child2 is not used to generate the mapping files. And
it is overriden by the pom of child1.

Could you give me a help?

Thanks a lot,


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  

-- 
Simone Gianni

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is it possible to *embed* the management of libraries of Maven2 into a product?

2006-07-11 Thread Tomasz Pik

On 7/11/06, Tugdual Grall [EMAIL PROTECTED] wrote:

Hello,


[]


Is-it possible to leverage Maven dependencie analysis and library
management is other application than Maven? If yes could you please
give me pointer?


There's a 'maven embedder' project.
This link http://maven.apache.org/guides/mini/guide-embedding-m2.html
may be used as a some kind of pointer.
Embedder may be downloaded separately from
http://maven.apache.org/download.html

Regards,
Tomek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



calling a maven goal from pom.xml

2006-07-11 Thread Kishore Sasidharan


Hi,

I am trying to write a maven2 wrapper over a maven build. I need to call 
a maven goal from pom.xml.

Is there a plugin for doing this?

Thanks in advance
Kishore


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.


 Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



pro in a maven command

2006-07-11 Thread maverick83

Hi
   I am new user of maven.I had copied the following command line from the
maven site 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

but i am getting the following error
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retrieved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Jul 10 15:30:21 IST 2006
[INFO] Final Memory: 1M/2M
[INFO]



kindly help regarding its pretty urgent i have searched on websites but got
pretty vague answers 

I have tried to edit my settings.xml file but after i edit it the above
command doesnt even recognize settings.xml file nd gives the follwing error

Error reading settings.xml: only whitespace content allowed before start tag
and not - (position: START_DOCUMENT seen -... @1:1)
  Line:   1

kindly reply asap thanks in advance 

Kindly give s step by step procedure for regarding this pro nd repository  i
had checked on some other sites too but no repository is being created on my
system 

regards
rahul
-- 
View this message in context: 
http://www.nabble.com/pro-in-a-maven-command-tf1923598.html#a5266892
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pro in a maven command

2006-07-11 Thread Andrew-A . Davies
Sounds like you are behind a firewall.

Try setting up the proxies section in your settings.xml

proxies
proxy
activetrue/active
protocolhttp/protocol
usernameENTER YOUR USER NAME/username
passwordENTER YOUR PASSWORD/password
hostENTER YOUR PROXY
IP/NAME/host 
portENTER YOUR PROXY PORT/port
/proxy
/proxies

A
-Original Message-
From: maverick83 [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 11:23
To: users@maven.apache.org
Subject: pro in a maven command


Hi
   I am new user of maven.I had copied the following command line from
the maven site 

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

but i am getting the following error
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retrieved from repository: central due to an error: Error
transferring file [INFO] Repository 'central' will be blacklisted [INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
not exist or no valid version could be found [INFO]

[INFO] For more information, run Maven with the -e switch [INFO]

[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Jul 10 15:30:21 IST 2006 [INFO] Final Memory:
1M/2M [INFO]



kindly help regarding its pretty urgent i have searched on websites but
got pretty vague answers 

I have tried to edit my settings.xml file but after i edit it the above
command doesnt even recognize settings.xml file nd gives the follwing
error 
Error reading settings.xml: only whitespace content allowed before start
tag and not - (position: START_DOCUMENT seen -... @1:1)
  Line:   1

kindly reply asap thanks in advance 

Kindly give s step by step procedure for regarding this pro nd
repository  i had checked on some other sites too but no repository is
being created on my system 

regards
rahul
--
View this message in context:
http://www.nabble.com/pro-in-a-maven-command-tf1923598.html#a5266892
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



binding ant plugin to specific packaging

2006-07-11 Thread micah craig

Hello,
   I've been working on what I'd hoped would be a fairly simple plugin
in Ant, but I'm coming up against great difficulty trying to get it
bound only to those project which I want it to execute for.  I've tried
every hack I can think of, from trying to override inherited plugin
configuration with non-inherited, to adding extra goals to the Ant
script to set a property based on the value of ${project.packaging} to
creating a profile and attempting to bind it to war packaging only, but
nothing seems to work.  I'm at my wit's end, and short of rewriting the
plugin in Java or inventing a new packaging with components.xml, both of
which seem like huge amounts of overkill for the problem in front of me,
I don't know what to do.
   A quick overview of our situation: we have a hierarchical project
layout, with all our webapps underneath a parent apps project.  The apps
project is packaged as a POM, and the webapps, obviously, are packaged
as wars.  The plugin I'm working on is just a shortcut for rapid
deployment to our Resin servers in development.  It simply creates a
symbolic link from the exploded webapp directory to Resin's webapps
directory, allowing for rapid reving, particularly for simple JSP
changes.  (I realize this solution isn't portable.  It's an in-house
solution, tailored to our standard development environment.)  I want to
bind this plugin to the install phase in apps/pom.xml, so that the
behavior will be inherited by all our webapps, but when I do the plugin
is executed in the install phase of the build for the apps project its
self, and I end up with an extra link to 'apps/target/apps' in my Resin
webapps directory.  This isn't the end of the world, but it is messy,
and I'd like to avoid it.
   So, as I say, I've tried adding some logic to my Ant scripts to test
for the packaging, but I haven't been able to get that to work as it
seems that properties fall out of scope as soon as target completes.  I
tried providing two configurations of the plugin in the apps/pom.xml,
one inherited and the other not, with the non-inherited configuration
bound to the fictional 'never' phase, but this didn't fly either.  I've
tried creating a profile for war builds, but I can't get it to activate
based on the ${project.packaging} setting.
   Is there a correct solution to this problem, or am I going to have
to use a sledge hammer to swat a fly?  Any help would be hugely
appreciated.  Thanks,

   -micah


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pro in a maven command

2006-07-11 Thread maverick83

hi
   thanks to u its working now i was nearing a deadline really thanks to u
-- 
View this message in context: 
http://www.nabble.com/pro-in-a-maven-command-tf1923598.html#a5267547
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Control all the dependencies injected

2006-07-11 Thread Alexandre Touret

OK thanks for your answers, I ll try to implement that :-)

Alexandre

Jörg Schaible wrote:

Hi Alöexandre,

Alexandre Touret wrote on Monday, July 10, 2006 6:35 PM:

  

Hello,

I m trying to migrate from m1.x to m2. I think M2 is powerfull by
transitive dependencies functionality.But in my J2EE
environment, I have
some problems with an application which use Hibernate,
Struts, Spring,
Log4J ...

First, I use Oracle AS 10.1.3. This server doesn' t integrate both
xerces  xalan for XML parsing/transform but XDK. How can I override
the dependencies of xerces and xalan and replace them by a
reference of XDK ?



Use a super POM as parent (1). Define there a dependencyManagement section 
where you include the spring artifacts with appropriate exclusions (2).

  

Secondly, I have an another problem with the injection of dependencies
with antlr librabry. some of my components depends of the
version 2.7.2
and another ones depends of the version 2.7.
This problem is available for other libraries. I have prefered this
example, because its well representative.



Maven will take the nearest version i.e. the version of antlr with the less 
transitive levels to the current artifact (3).

  

So that's I would like to have some skill testimonies about injection
of dependencies with MAVEN 2 in Java EE environment




1) A parent pom is isdentified like a normal artifact my 
groupId:artifactId:version. It does not have to be present in the parent 
directory nor must it declare all modules, that refer it as parent. So a super 
POM is normally a project of its own. Use the depednencyManagement also to 
define the versions, dojn't enter them in the POMs of your modules.

2) Exclusions have a very nasty characteristic: An artifact that excluded for 
an arbitrary dependency is excluded implicitly for all dependencies.

3) Especially in an J2EE environment the version control gets nasty. The 
version included in an EAR might be different from the version referenced in 
the EJB's classpath (because the EAR's depednency resolution might take another 
version as nearer). The only way to circumvent this is the declaration of a 
dependency directly in your POMs - which makes the transitive depednencies 
somewhat pointless.

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Jose Gonzalez Gomez

Hi there,

I would like to hear about what you're doing to test your Hibernate/EJB3
POJOs (if you're doing at all). I have a project with some of them, and I
have the following concerns:

First of all, I may test them just ignoring persistence (already done). No
problem here, just a bunch of TestNG tests running smoothly under Maven2. I
think this is important, as I'm developing a library mainly intended to be
used as annotated Hibernated POJOs, but maybe people using it prefer another
persistence api. What do you think?

Then I thought about testing the library including the persistence stuff,
but this brings some problems:

Problem 1: Whenver building the project, publishing the site, etc. you must
have access to a runnning database in order to perform the tests. I'm
currently running a postgresql database, but it may be cumbersome for users
wanting to download and hack the sources. Maybe this could be solved using
some kind of embeddable database? Or maybe I could create several profiles
(never done this) and activate database tests only under demand?

Problem 2: Having database tests involves having configuration data written
down in some configuration file (the jdbc URL, user, password, etc.
hibernate.cfg.xml) or even in the pom (jdbc driver dependency). It's kind of
putting in the sources of the library some information that may be only of
interest to me in my current environment. How to solve this? Again using
some kind of embeddable datasource for tests? Using source filters? (again,
I haven't done this before, so I don't know if it's suitable)

Best regards
Jose


RE: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Andrew-A . Davies
Have you thought about using dependency injection framework to cater for
this ?

A 

-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 12:53
To: Maven Users List
Subject: Best practices in testing Hibernate/EJB3 POJOs (or doing
database tests)

Hi there,

I would like to hear about what you're doing to test your Hibernate/EJB3
POJOs (if you're doing at all). I have a project with some of them, and
I have the following concerns:

First of all, I may test them just ignoring persistence (already done).
No problem here, just a bunch of TestNG tests running smoothly under
Maven2. I think this is important, as I'm developing a library mainly
intended to be used as annotated Hibernated POJOs, but maybe people
using it prefer another persistence api. What do you think?

Then I thought about testing the library including the persistence
stuff, but this brings some problems:

Problem 1: Whenver building the project, publishing the site, etc. you
must have access to a runnning database in order to perform the tests.
I'm currently running a postgresql database, but it may be cumbersome
for users wanting to download and hack the sources. Maybe this could be
solved using some kind of embeddable database? Or maybe I could create
several profiles (never done this) and activate database tests only
under demand?

Problem 2: Having database tests involves having configuration data
written down in some configuration file (the jdbc URL, user, password,
etc.
hibernate.cfg.xml) or even in the pom (jdbc driver dependency). It's
kind of putting in the sources of the library some information that may
be only of interest to me in my current environment. How to solve this?
Again using some kind of embeddable datasource for tests? Using source
filters? (again, I haven't done this before, so I don't know if it's
suitable)

Best regards
Jose

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Johann Reyes
Hello Jose

About problem 1: You can use HSQL

About problem 2: You can run the tests against HSQL, so you can the
connection properties inside your test directory, so those tests would just
run against your embeddable database. An example can be found here:

http://fisheye.codehaus.org/browse/mojo/trunk/mojo/mojo-sandbox/hibernate3-m
aven-plugin/src/test/project-jdk15/src/main/resources/database.properties?r=
1673

Regards

Johann Reyes

-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 7:53 AM
To: Maven Users List
Subject: Best practices in testing Hibernate/EJB3 POJOs (or doing database
tests)

Hi there,

I would like to hear about what you're doing to test your Hibernate/EJB3
POJOs (if you're doing at all). I have a project with some of them, and I
have the following concerns:

First of all, I may test them just ignoring persistence (already done). No
problem here, just a bunch of TestNG tests running smoothly under Maven2. I
think this is important, as I'm developing a library mainly intended to be
used as annotated Hibernated POJOs, but maybe people using it prefer another
persistence api. What do you think?

Then I thought about testing the library including the persistence stuff,
but this brings some problems:

Problem 1: Whenver building the project, publishing the site, etc. you must
have access to a runnning database in order to perform the tests. I'm
currently running a postgresql database, but it may be cumbersome for users
wanting to download and hack the sources. Maybe this could be solved using
some kind of embeddable database? Or maybe I could create several profiles
(never done this) and activate database tests only under demand?

Problem 2: Having database tests involves having configuration data written
down in some configuration file (the jdbc URL, user, password, etc.
hibernate.cfg.xml) or even in the pom (jdbc driver dependency). It's kind of
putting in the sources of the library some information that may be only of
interest to me in my current environment. How to solve this? Again using
some kind of embeddable datasource for tests? Using source filters? (again,
I haven't done this before, so I don't know if it's suitable)

Best regards
Jose



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Alexandre Touret

Hello
Jose Gonzalez Gomez wrote:
Problem 1: Whenver building the project, publishing the site, etc. you 
must

have access to a runnning database in order to perform the tests. I'm
currently running a postgresql database, but it may be cumbersome for 
users
wanting to download and hack the sources. Maybe this could be solved 
using
some kind of embeddable database? Or maybe I could create several 
profiles

(never done this) and activate database tests only under demand?

In my company we have choosen to create a dedicated schema for running 
junit tests nightly. It s easier to configure and more secure for data 
integrity. In my opinion, you should use several profiles and add one 
for run tests
Problem 2: Having database tests involves having configuration data 
written

down in some configuration file (the jdbc URL, user, password, etc.
hibernate.cfg.xml) or even in the pom (jdbc driver dependency). 
With both maven 1 and maven 2 you can separate clearly the test  
configuration of the runtime.

It's kind of
putting in the sources of the library some information that may be 
only of
interest to me in my current environment. How to solve this? 
I think you sould use a tool which produce some injections of 
dependencies like spring. It will be easier for you.


Hope this helps
Regards,
Alexandre Touret

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] maven-pmd-plugin 2.1 released

2006-07-11 Thread Mike Perham
This release upgrades the plugin to use PMD 3.7 and adds a few minor new
features.  Users should also find that PMD can no longer crash the Maven
site generation due to PMD bugs.

You can get more details with the Change Log report in JIRA:

http://jira.codehaus.org/browse/MPMD?report=com.atlassian.jira.plugin.sy
stem.project:changelog-panel

More information about the plugin can be found at its site:

http://maven.apache.org/plugins/maven-pmd-plugin/

mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Simone Gianni
Hi Jose,
we usually use hypersonic DB, which is a very lightweight, embeddable
DB, able to run in ram only mode. You can simply set it up in the test
setup method and shut it down in the teardown.

http://www.hsqldb.org/

Hope this helps,
Simone

Jose Gonzalez Gomez wrote:

 Hi there,

 I would like to hear about what you're doing to test your Hibernate/EJB3
 POJOs (if you're doing at all). I have a project with some of them, and I
 have the following concerns:

 First of all, I may test them just ignoring persistence (already
 done). No
 problem here, just a bunch of TestNG tests running smoothly under
 Maven2. I
 think this is important, as I'm developing a library mainly intended
 to be
 used as annotated Hibernated POJOs, but maybe people using it prefer
 another
 persistence api. What do you think?

 Then I thought about testing the library including the persistence stuff,
 but this brings some problems:

 Problem 1: Whenver building the project, publishing the site, etc. you
 must
 have access to a runnning database in order to perform the tests. I'm
 currently running a postgresql database, but it may be cumbersome for
 users
 wanting to download and hack the sources. Maybe this could be solved
 using
 some kind of embeddable database? Or maybe I could create several
 profiles
 (never done this) and activate database tests only under demand?

 Problem 2: Having database tests involves having configuration data
 written
 down in some configuration file (the jdbc URL, user, password, etc.
 hibernate.cfg.xml) or even in the pom (jdbc driver dependency). It's
 kind of
 putting in the sources of the library some information that may be
 only of
 interest to me in my current environment. How to solve this? Again using
 some kind of embeddable datasource for tests? Using source filters?
 (again,
 I haven't done this before, so I don't know if it's suitable)

 Best regards
 Jose

-- 
Simone Gianni

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Interrnal remote repository

2006-07-11 Thread EJ Ciramella
Any more suggestions on this?

This has to be one of the least documented features of maven and I'm
completely wedged. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 10, 2006 2:18 PM
To: Maven Users List
Subject: RE: Interrnal remote repository

Yeah, I switched the pluginRepository from file to http (I am running
apache 2 to make these fils available via http).

But, it just can't find what it's looking for (even though things _do_
exist up there):

E:\work\up-svcs\lty\proj\LTY-P39mvn -e -Dmaven.test.skip=true
install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]   Lty Utils
[INFO]   Lty Crypto(Client)
[INFO]   LtyModel
[INFO]   LtyDataGen
[INFO]   Crypto Server
[INFO]   Upromise.com Site
[INFO]


[INFO] Building Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]task-segment: [install]
[INFO]


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid
versio
n could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
aging(DefaultLifecycleExecutor.java:1011)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:975)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.apache.maven.plugins:maven-site-plugin' does not exist
 or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:87)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:158)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1252)
... 18 more
[INFO]

[INFO] Total time:  1 second
[INFO] Finished at: Mon Jul 10 14:15:21 EDT 2006
[INFO] Final Memory: 1M/3M
[INFO]




Why is this?

-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 10, 2006 2:04 PM
To: Maven Users List
Subject: Re: Interrnal remote repository

Hi,

I don't think the file url given in your pluginRepository definition
is valid. Shouldn't 
it be something like 'file:///C:/PATH/TO/REPOSITORY' for windows or 
'file:///PATH/TO/REPOSITORY' for unix style os's? Or you need to change
the 'file://' to 
'http://'.

Regarding your other mail and the ibiblio problems:
It is known that the load on ibiblio is high at some times. It's best to
configure a 
mirror for it [1].

-Tim

[1] 

RE: [m2] How to configure the local repository

2006-07-11 Thread EJ Ciramella
Within the settings.xml, you should be able to have an entry like this:

localRepositorysome\path\you'd\like/localRepository 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 9:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practices in testing Hibernate/EJB3 POJOs (or doing database tests)

2006-07-11 Thread Chris Richardson

Jose,

Here are a couple of things you might find interesting:
* A excerpt from my book POJOs in Action on testing a persistence
layer: http://www.theserverside.com/tt/articles/article.tss?l=PersistentDomain
* The slide from my JavaOne talk on the same topic:
http://www.chrisrichardson.net/presentations/JavaOne2006Testing_dist.ppt

The tests that access the database use a Spring application context
that points to the test DB, which is typically HSQLDB.

With regards to using annotated Hibernated POJOs:. there is a good
case to be made that annotated POJOs are not POJOs (see
http://www.aspectprogrammer.org/blogs/adrian/2004/08/when_is_a_pojo.html).
In the case of a library using XML configuration might enable
different persistence mechanisms to be used.

Chris

--
Enterprise POJO consulting - http://www.chrisrichardson.net
Author, POJOs in Action - http://www.manning.com/crichardson
Enterprise POJOs blog - http://chris-richardson.blog-city.com



On 7/11/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:

Hi there,

I would like to hear about what you're doing to test your Hibernate/EJB3
POJOs (if you're doing at all). I have a project with some of them, and I
have the following concerns:

First of all, I may test them just ignoring persistence (already done). No
problem here, just a bunch of TestNG tests running smoothly under Maven2. I
think this is important, as I'm developing a library mainly intended to be
used as annotated Hibernated POJOs, but maybe people using it prefer another
persistence api. What do you think?

Then I thought about testing the library including the persistence stuff,
but this brings some problems:

Problem 1: Whenver building the project, publishing the site, etc. you must
have access to a runnning database in order to perform the tests. I'm
currently running a postgresql database, but it may be cumbersome for users
wanting to download and hack the sources. Maybe this could be solved using
some kind of embeddable database? Or maybe I could create several profiles
(never done this) and activate database tests only under demand?

Problem 2: Having database tests involves having configuration data written
down in some configuration file (the jdbc URL, user, password, etc.
hibernate.cfg.xml) or even in the pom (jdbc driver dependency). It's kind of
putting in the sources of the library some information that may be only of
interest to me in my current environment. How to solve this? Again using
some kind of embeddable datasource for tests? Using source filters? (again,
I haven't done this before, so I don't know if it's suitable)

Best regards
Jose




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] How to configure the local repository

2006-07-11 Thread Mike Perham
settings.xml can only exist in two places AFAIK.  ~/.m2/settings.xml and
MAVEN_HOME/conf/settings.xml.  The latter can be used to configure all
users on the machine and is thoroughly commented.

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 8:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] How to configure the local repository

2006-07-11 Thread Andrew-A . Davies
Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A

!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
  localRepository/path/to/local/repo/localRepository 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 14:59
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Thank you, but in fact I need to do not use the 
your-home-directory/.m2/settings.xml and your-home-directory/.m2/repository 
at all. There's no way to place them in the project's folder ?


- Original Message 
From: EJ Ciramella [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org; Tung Nguyen [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:09:41 PM
Subject: RE: [m2] How to configure the local repository

Within the settings.xml, you should be able to have an entry like this:

localRepositorysome\path\you'd\like/localRepository 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 11, 2006 9:59 AM
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] How to configure the local repository

2006-07-11 Thread Tim Kettler
Are you talking about your local repository or a repository you want to put 3d-party 
libraries for your project in that you want under version control together with your project?


If the latter. I think (never tried myself) you can just define a repository in your 
pom.xml like this:


project

...

  repositories
repository
  idmyrepo/id
  namereponame/name
  urlfile://${basedir}/repository/url
/repository
  /repositories
/project

-Tim


Tung Nguyen schrieb:

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my projet 
but I can't figure out how to do that. I tried to place the settings.xml in the 
project folder (with the pom.xml) but it doesn't work.

Anyone can help ? 
Thank you in advance




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] How to configure the local repository

2006-07-11 Thread Wendy Smoak

On 7/11/06, Tung Nguyen [EMAIL PROTECTED] wrote:


Thank you, but in fact I need to do not use the 
your-home-directory/.m2/settings.xml and your-home-directory/.m2/repository 
at all. There's no way to place them in the project's folder ?


Yes, there is.

$ mvn --help
...
-s,--settings Alternate path for the user settings file
...

Define a 'settings.xml' file containing a localRepository element,
then use -s on the command line to tell Maven to use that settings
file rather than the one it expects to find in your home directory.

HTH,
--
Wendy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Howto: Assembly, type and extension

2006-07-11 Thread Jörg Schaible
Hi folks,

even after reading available docs (mini-howto's and plugin docs) I still don't 
know awhat I am missing:

In a module I've created a second artifact with a different classifier 
usilizing the assembly plugin. The artifact's type seems to be the assembly's 
id and the file extension (zip) is also defined in the assembly.xml. Now, how 
can I refer this artifact in another module? Basically I wanna unpack the zip 
file and add it as resource to my module. But if I add this artifact as 
dependency with its type, the artifact cannot be found. Somehow I must still 
miss something in the picture what the assembly plugin produces and the 
differences between a classifier and type with extension. Can someone enlighten 
me?

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Howto: Assembly, type and extension

2006-07-11 Thread Martijn Dashorst

IIUC The assembly plugin is used to build distributable artifacts,
such as zips containing your project, documentation, installation
scripts, run scripts etc. It is not intended to be put into a
repository.

Maven only allows one artifact (the result of building your module)
per project/module. This is either a jar, war, ejb-jar, or ear. A
project/module cannot produce both a jar and a war. That is why the
packaging element is in your pom.

Now the second part of your question: what /is/ your second artifact
used for? Why do you want to produce a second artifact type from your
project/module?

Martijn

On 7/11/06, Jörg Schaible [EMAIL PROTECTED] wrote:

Hi folks,

even after reading available docs (mini-howto's and plugin docs) I still don't 
know awhat I am missing:

In a module I've created a second artifact with a different classifier 
usilizing the assembly plugin. The artifact's type seems to be the assembly's 
id and the file extension (zip) is also defined in the assembly.xml. Now, how 
can I refer this artifact in another module? Basically I wanna unpack the zip 
file and add it as resource to my module. But if I add this artifact as 
dependency with its type, the artifact cannot be found. Somehow I must still 
miss something in the picture what the assembly plugin produces and the 
differences between a classifier and type with extension. Can someone enlighten 
me?

- Jörg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: calling a maven goal from pom.xml

2006-07-11 Thread Raphaël Piéroni

Hi,

If you are trying to call a maven goal from an external java program, just
use the embedder.
http://maven.apache.org/guides/mini/guide-embedding-m2.html

Hope this helps.

Raphaël

2006/7/11, Kishore Sasidharan  [EMAIL PROTECTED]:



Hi,

I am trying to write a maven2 wrapper over a maven build. I need to call
a maven goal from pom.xml.
Is there a plugin for doing this?

Thanks in advance
Kishore


This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on this
e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Build time classpath using my java plugin

2006-07-11 Thread TimHedger

You're right - I did some unnecessary work!  (I took my approach from the
idlj plugin, that basically puts some wrapper stuff around running the main
method on a Java class - I guess that was done that way for convenience
rather than needing lots of config in the pom).

Anyway, I've dumped my plugin (less code has to be better) and am now using
the exec-maven-plugin.  And I can get it to do exactly what I need stand
alone - by invoking it explicitly:

mvn exec:java

will run the necessary Java class with all my arguments.

But I want to attach this step to a phase so it is nicely included in my
build cycle.  So I took the approach I have taken with other pugins, but it
doesn't seem to work here.

Specifics - this is the plugin section of my pom.xml:
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
  execution
idglue-processing/id
phasecompile/phase
goals
  goalexec/goal
/goals
  /execution
/executions
configuration
  debugtrue/debug
  executablejava/executable
  mainClasselectric.application.tools.NewApp/mainClass
  arguments
argument-Delectric.apphome=target/glue/argument
argument-Delectric.home=/apps/product/glue/argument
argument-h/argument
argumentVentureVaRService/argument
  /arguments
/configuration
  /plugin
/plugins
  /build

Here I've tried to attach the exec:java goal to the compile phase.

When I invoke mvn exec:java, I get what I expect:

: mvn exec:java
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO]

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [exec:java]
[INFO]

[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
[INFO] [exec:java]
[DEPLOYMENT] creating application directory at
/home/hedgert/maven/venvar/target/glue/VentureVaRService
[DEPLOYMENT] copying application files from /apps/product/glue/common
[DEPLOYMENT] adding application configuration URLs to config.xml
[DEPLOYMENT] saving application configuration file
[DEPLOYMENT] application has been successfully created
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Jul 11 18:47:37 BST 2006
[INFO] Final Memory: 3M/8M
[INFO]


(The DEPLOYMENT lines are the correct output from the Java class I'm
running, and this output shows it has taken the arguments I defined in the
pom).

But if I try to use the compile phase instead:

: mvn compile
[INFO] Scanning for projects...
[INFO] ---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [compile]
[INFO] ---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [exec:exec {execution: glue-processing}]
[INFO] Usage: java [-options] class [args...]
[INFO](to execute a class)
[INFO]or  java -jar [-options] jarfile [args...]
[INFO](to execute a jar file)
[INFO]
[INFO] where options include:
[INFO] -d32
[INFO]   use a 32-bit data model if available
[INFO] -d64
[INFO]   use a 64-bit data model if available
(etc etc)

In this case it seems to have invoked the plugin, but it has ignored all my
arguments and simply run Java with no parameters.  And yet the pom.xml file
is unchanged between these two runs.

So given the first one (mvn exec:java) works, I guess I'm doing something
wrong with the way I'm trying to attach the plugin goal to the compile phase
of the build.

Can someone point out my mistake?
-- 
View this message in context: 
http://www.nabble.com/Build-time-classpath-using-my-java-plugin-tf1914923.html#a5274398
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Build time classpath using my java plugin

2006-07-11 Thread Tim Kettler

replace goalexec/goal with goaljava/goal

TimHedger schrieb:

You're right - I did some unnecessary work!  (I took my approach from the
idlj plugin, that basically puts some wrapper stuff around running the main
method on a Java class - I guess that was done that way for convenience
rather than needing lots of config in the pom).

Anyway, I've dumped my plugin (less code has to be better) and am now using
the exec-maven-plugin.  And I can get it to do exactly what I need stand
alone - by invoking it explicitly:

mvn exec:java

will run the necessary Java class with all my arguments.

But I want to attach this step to a phase so it is nicely included in my
build cycle.  So I took the approach I have taken with other pugins, but it
doesn't seem to work here.

Specifics - this is the plugin section of my pom.xml:
  build
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
  execution
idglue-processing/id
phasecompile/phase
goals
  goalexec/goal
/goals
  /execution
/executions
configuration
  debugtrue/debug
  executablejava/executable
  mainClasselectric.application.tools.NewApp/mainClass
  arguments
argument-Delectric.apphome=target/glue/argument
argument-Delectric.home=/apps/product/glue/argument
argument-h/argument
argumentVentureVaRService/argument
  /arguments
/configuration
  /plugin
/plugins
  /build

Here I've tried to attach the exec:java goal to the compile phase.

When I invoke mvn exec:java, I get what I expect:

: mvn exec:java
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO]

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [exec:java]
[INFO]

[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
[INFO] [exec:java]
[DEPLOYMENT] creating application directory at
/home/hedgert/maven/venvar/target/glue/VentureVaRService
[DEPLOYMENT] copying application files from /apps/product/glue/common
[DEPLOYMENT] adding application configuration URLs to config.xml
[DEPLOYMENT] saving application configuration file
[DEPLOYMENT] application has been successfully created
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Jul 11 18:47:37 BST 2006
[INFO] Final Memory: 3M/8M
[INFO]


(The DEPLOYMENT lines are the correct output from the Java class I'm
running, and this output shows it has taken the arguments I defined in the
pom).

But if I try to use the compile phase instead:

: mvn compile
[INFO] Scanning for projects...
[INFO] ---
[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [compile]
[INFO] ---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [exec:exec {execution: glue-processing}]
[INFO] Usage: java [-options] class [args...]
[INFO](to execute a class)
[INFO]or  java -jar [-options] jarfile [args...]
[INFO](to execute a jar file)
[INFO]
[INFO] where options include:
[INFO] -d32
[INFO]   use a 32-bit data model if available
[INFO] -d64
[INFO]   use a 64-bit data model if available
(etc etc)

In this case it seems to have invoked the plugin, but it has ignored all my
arguments and simply run Java with no parameters.  And yet the pom.xml file
is unchanged between these two runs.

So given the first one (mvn exec:java) works, I guess I'm doing something
wrong with the way I'm trying to attach the plugin goal to the compile phase
of the build.

Can someone point out my mistake?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



New user

2006-07-11 Thread Mayank Gupta
Hi All,

 

I am a new user and I am facing difficulty in understanding a basic maven
concept. My source code need some jar files in the classpath (here which may
be referred as a dependency). I add those in the dependency list of my
pom.xml. But where I need to store those jar files so that at the time of
compilation those jar files are picked?

 

With Regards,

Mayank



Re: New user

2006-07-11 Thread Thierry Barnier

Hi Mayank,

as you put your jar files as dependencies, you should install them in your
local repository, using the maven install-file command...

More on this on:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Cheers

Thierry

2006/7/11, Mayank Gupta [EMAIL PROTECTED]:


Hi All,



I am a new user and I am facing difficulty in understanding a basic maven
concept. My source code need some jar files in the classpath (here which
may
be referred as a dependency). I add those in the dependency list of my
pom.xml. But where I need to store those jar files so that at the time of
compilation those jar files are picked?



With Regards,

Mayank





Re: Specifying/Installing dependencies

2006-07-11 Thread Ken Tanaka
I recommend installing with a version number. If the jar is version 2.3,
but they released it as just useful.jar, I would install it as
useful-2.3.jar

If their website or documentation doesn't give a version, but a release
date, you might use useful-2006.01.23.jar.

Failing all that, you can make up a version, prefixed or suffixed by
your initials, or company initials, to cue you in later that the version
is not official. For example, installed as useful-jm-0.1.jar and
entered into the pom.xml as:

dependency
  groupIdorg.third.party/groupId
  artifactIduseful/artifactId
  versionjm-0.1/version
/dependency

If anyone has better advice, please enlighten me.

-Ken

Jeff Mutonho wrote:
 But ,can one install non versioned jars , if you wish/ prefer to do so?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-- 
= Enterprise Data Services Division ===
| CIRES, National Geophysical Data Center / NOAA  |
= [EMAIL PROTECTED] =


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven2 TestCase with System.getProperty(java.class.path);

2006-07-11 Thread Patrick GIRY

I have a problem in a TestCase. I need to obtain the current classpath
definition and I use the System.getProperty(java.class.path);
When i run the TestCase into Eclipse all it's ok and i obtain this value for
the java.class.path :

java.class.path =
H:\eclipse\workspace-spring\cglib\target\test-classes;H:\eclipse\workspace-spring\cglib\target\classes;H:\maven2.repository\junit\junit\3.8.1\junit-
3.8.1.jar;H:\maven2.repository\asm\asm-tree\2.2.1\asm-tree-2.2.1.jar
;H:\maven2.repository\ant\ant\1.6.5\ant-1.6.5.jar
;H:\maven2.repository\asm\asm-attrs\2.2.1\asm-attrs-2.2.1.jar
;H:\maven2.repository\asm\asm\2.2.1\asm-2.2.1.jar
;H:\maven2.repository\asm\asm-commons\2.2.1\asm-commons-2.2.1.jar
;H:\maven2.repository\asm\asm-util\2.2.1\asm-util-2.2.1.jar
;H:\maven2.repository\asm\asm-analysis\2.2.1\asm-analysis-2.2.1.jar
;/d:/apps/dev/Java/eclipse_sdk/eclipse/plugins/org.eclipse.jdt.junit_3.1.1/junitsupport.jar;/d:/apps/dev/Java/eclipse_sdk/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.1.0/junitruntime.jar


When I run the same TestCase with maven2 it's failed and I have this value
for the java.class.path :
java.class.path = D:\apps\dev\maven-2.0.4\core\boot\classworlds-1.1.jar

How can configure the pom.xml for having the same java.class.path into
Eclipse and maven2.


Re: New user

2006-07-11 Thread Max Cooper
Many jars do not require manual installation. Don't install a jar 
manually if it is already available on the public repo:


  http://www.ibiblio.org/maven2/

I recommend reading the free maven2 book 
(http://www.mergere.com/m2book_download.jsp) to get started. A little 
time spent doing pure learning up front is well worth it.


-Max

Thierry Barnier wrote:

Hi Mayank,

as you put your jar files as dependencies, you should install them in your
local repository, using the maven install-file command...

More on this on:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Cheers

Thierry

2006/7/11, Mayank Gupta [EMAIL PROTECTED]:


Hi All,



I am a new user and I am facing difficulty in understanding a basic maven
concept. My source code need some jar files in the classpath (here which
may
be referred as a dependency). I add those in the dependency list of my
pom.xml. But where I need to store those jar files so that at the time of
compilation those jar files are picked?



With Regards,

Mayank







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: New user

2006-07-11 Thread Mayank Gupta
Thanks Thierry,

This was a quick help for a beginner like me. I have done the same and wow!
I am able to compile my project.

Thanks,
Mayank

-Original Message-
From: Thierry Barnier [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 12:48 AM
To: Maven Users List
Subject: Re: New user

Hi Mayank,

as you put your jar files as dependencies, you should install them in your
local repository, using the maven install-file command...

More on this on:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Cheers

Thierry

2006/7/11, Mayank Gupta [EMAIL PROTECTED]:

 Hi All,



 I am a new user and I am facing difficulty in understanding a basic maven
 concept. My source code need some jar files in the classpath (here which
 may
 be referred as a dependency). I add those in the dependency list of my
 pom.xml. But where I need to store those jar files so that at the time of
 compilation those jar files are picked?



 With Regards,

 Mayank





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: New user

2006-07-11 Thread Mayank Gupta
Max,

You are very right. At the moment I have done the manual installation of my
jar files but I should really go through the web page mentioned by you.

This is a very welcome suggestion. Thanks for your help.

With Regards,
Mayank

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 2:36 AM
To: Maven Users List
Subject: Re: New user

Many jars do not require manual installation. Don't install a jar 
manually if it is already available on the public repo:

   http://www.ibiblio.org/maven2/

I recommend reading the free maven2 book 
(http://www.mergere.com/m2book_download.jsp) to get started. A little 
time spent doing pure learning up front is well worth it.

-Max

Thierry Barnier wrote:
 Hi Mayank,
 
 as you put your jar files as dependencies, you should install them in your
 local repository, using the maven install-file command...
 
 More on this on:
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 
 Cheers
 
 Thierry
 
 2006/7/11, Mayank Gupta [EMAIL PROTECTED]:

 Hi All,



 I am a new user and I am facing difficulty in understanding a basic maven
 concept. My source code need some jar files in the classpath (here which
 may
 be referred as a dependency). I add those in the dependency list of my
 pom.xml. But where I need to store those jar files so that at the time of
 compilation those jar files are picked?



 With Regards,

 Mayank



 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Site plugin and modules

2006-07-11 Thread dohadwala_moiz
I have a multi-module project. The modules POMs are inheriting from a
super-POM ( which is different from the aggregator POM ).
 
When I run the site plugin, the sites for aggregator POM does not list the
modules under the Modules section. If I change the module POMs to inherit
from the project POM, the modules show up.
 
Also, when the module POMs inherit from the super-POM, the module site is
deployed under the parent site and not the aggregator project site.
 
So, how do I get the modules to be deployed correctly, is there anything in
the project POM that needs to be configured differently?
 
Or, is this a practice that is frowned on?
 
 
 +-Parent
+-pom.xml
 +-project
   +- module 1
+-pom.xml  ( derives from parent\pom.xml )
   +- module 2
+-pom.xml  ( derives from parent\pom.xml )
   +- pom.xml( the aggregator pom )
 
-Moiz


Re: Build time classpath using my java plugin

2006-07-11 Thread TimHedger

Doh!  (Thank you)
-- 
View this message in context: 
http://www.nabble.com/Build-time-classpath-using-my-java-plugin-tf1914923.html#a5281234
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] How to configure the local repository

2006-07-11 Thread Tung Nguyen
Yeah, but in my company, we are tied down with our revision control
process that requires in short term this kind of configuration. This 
configuration aims to facilitate a local and demonstration build without many 
steps of downloading plug-in, creating, editing the settings.xml file.


- Original Message 
From: [EMAIL PROTECTED]
To: users@maven.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:19:49 PM
Subject: RE: [m2] How to configure the local repository

Leave the setttings xml where it is, configure the repository location
in there as described in the settings.xml file ...

Why would you have to put repository in same directory as project though
?

A

!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ~/.m2/repository
  localRepository/path/to/local/repo/localRepository 

-Original Message-
From: Tung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2006 14:59
To: users@maven.apache.org
Subject: [m2] How to configure the local repository

Hi everybody,

I'm contrained to place the repository of maven in the same folder of my
projet but I can't figure out how to do that. I tried to place the
settings.xml in the project folder (with the pom.xml) but it doesn't
work.

Anyone can help ? 
Thank you in advance



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generating site for multiple projects

2006-07-11 Thread Dorian Gloski

Hello,

while migration my projects from maven 1 to maven 2 I'm wondering if 
there is a way in maven 2 to generate a site for multiple projects like  
maven  mutliproject:site in maven 1 does.


Thanks in advance

Dorian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generating site for multiple projects

2006-07-11 Thread Maria Odea Ching

Hi Dorian,

You can use the site plugin for this. You need to execute mvn 
site:site on the parent directory of your multi-module project.


For example, you have the following directory structure:
Project
|-- pom.xml
|-- Module1
|   |-- src/main/java/../*.java
|   `-- pom.xml
|-- Module2
|   |-- src/main/java/../*.java
|   `-- pom.xml
`-- Module3
   |-- src/main/java/../*.java
   `-- pom.xml

To generate a site that includes Module1, Module2 and Module3, execute 
mvn site:site in Project directory.


Please see also the section on Building More Than One Project At Once at 
http://maven.apache.org/guides/getting-started/index.html


Hope this hepls! :)

Thanks,
Odea


Dorian Gloski wrote:


Hello,

while migration my projects from maven 1 to maven 2 I'm wondering if 
there is a way in maven 2 to generate a site for multiple projects 
like  maven  mutliproject:site in maven 1 does.


Thanks in advance

Dorian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running a Test suite with surefire

2006-07-11 Thread Mark Chaimungkalanont

Guys  Gals,

I think I must be missing something quite obvious here. I'm trying to run a Test suite 
(defined in the static suite() method in a class) through surefire.


So I have a class with the method:

JettyAcceptanceTestHarness.java 

public static Test suite() throws IOException...

And I've tried to get the test to run by specifying:

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  executions
execution
  phaseintegration-test/phase
  goals
goaltest/goal
  /goals
  configuration
includes
  include**/*JettyAcceptanceTestHarness.java/include
/includes
  /configuration
/execution
  /executions
/plugin

which seems to pick up the class fine, but try to run the class as a standard test case, 
rather than pick up the suite?


Is there anyway you can get surefire to pick this up?


I've tried searching the mail archives, but since the problem is quite simple / generic, I 
haven't been able to find any post matching this.


Any help will be tops!

Cheers,

Mark C
--
-
ATLASSIAN - http://www.atlassian.com
Australia's Fastest Growing Software Company 2002-05 [BRW Magazine]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mvn deploy

2006-07-11 Thread Matthias Wessendorf

Hey Ben,

the wagon plugin is already part of the project (MyFaces).
So I guess something different is wrong

Will try on a linux box. That is easier ;)

Thanks,
Matthias

On 7/11/06, ben short [EMAIL PROTECTED] wrote:

Matthias,

You dont need to use the sshExecuteable element. I use the that setup
on windows xp and it works. Maven uses wagon [1] to do the ssh.
Although you will need to manually download it ad put it into the lib
dir under your maven home dir.

[1] http://maven.apache.org/wagon/

Ben

On 7/11/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
 Ben,

 thanks for your help. I tried to add my passed to settings.xml.
 But I more thing that putty / pscp are not *callable* for my box/environment
 (windoze w/o ! cygwin)

 Below is my message...
 I added sshExecuteable to my settings. Now putty comes up -o unkown 
option.
 any ideas?

 snip

 [INFO] Retrieving previous build number from apache-maven-snapshots
 [WARNING] repository metadata for: 'snapshot
 org.apache.myfaces.core:myfaces-core-project:1.1.4-SNAPSHOT' could not
 be retrieved from repository: apache-maven-snapshots due to an error:
 Failed to post-process the source file
 [INFO] Repository 'apache-maven-snapshots' will be blacklisted
 Uploading: 
scpexe://minotaur.apache.org/www/people.apache.org/maven-snapshot-repository/org/apache/myfaces/core/myfaces-core-project/1.1.4-SNAPSHOT/myfaces-core-project-1.1.4-SNAPSHOT.pom
 [INFO] 

 [ERROR] BUILD ERROR
 [INFO] 

 [INFO] Error deploying artifact: Error executing command for transfer

 Exit code 1 - 'ssh' is not recognized as an internal or external command,
 operable program or batch file.

 [INFO] 

 [INFO] For more information, run Maven with the -e switch
 /snip

 -Matt


 On 7/10/06, ben short [EMAIL PROTECTED] wrote:
  I use the follwoing in my pom.xml
 
  distributionManagement
  −
  repository
  idinternal-released/id
  urlscp://192.168.6.194/var/mvn/internal-released/url
  /repository
  −
  snapshotRepository
  idinternal-snapshot/id
  urlscp://192.168.6.194/var/mvn/internal-snapshot/url
  /snapshotRepository
  /distributionManagement
 
  and the following in my settings.xml
 
  server
idinternal-snapshot/id
usernamemvn/username
passwordmvn/password
  /server
  server
idinternal-released/id
usernamemvn/username
passwordmvn/password
  /server
 
 
  On 7/10/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   Hey,
  
   I am getting this error
  
   snip
   [INFO] Error deploying artifact: Error executing command for transfer
  
   Exit code 1 - 'ssh' is not recognized as an internal or external command,
   operable program or batch file.
   /snip
  
   when trying mvn deploy on windoze
  
   my settings.xml contains:
  
   ...
 servers
   server
 idapache-maven-snapshots/id
 usernamematzew/username
 configuration
   scpExecutablepscp/scpExecutable
 /configuration
   /server
 /servers
  
   ...
  
  
   BTW pscp is in my $PATH
  
   Any missing configuration ?
  
   -Matt
  
   --
   Matthias Wessendorf
  
   futher stuff:
   blog: http://jroller.com/page/mwessendorf
   mail: mwessendorf-at-gmail-dot-com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Matthias Wessendorf

 futher stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Matthias Wessendorf

futher stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New user

2006-07-11 Thread Tim Kettler

If you don't want to browse through the repository by hand this sites can be 
handy:

http://www.mvnregistry.com/
http://www.mvnrepository.com/

The allow you to search for artifacts in the main maven repository.

-Tim

Mayank Gupta schrieb:

Max,

You are very right. At the moment I have done the manual installation of my
jar files but I should really go through the web page mentioned by you.

This is a very welcome suggestion. Thanks for your help.

With Regards,
Mayank

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 12, 2006 2:36 AM

To: Maven Users List
Subject: Re: New user

Many jars do not require manual installation. Don't install a jar 
manually if it is already available on the public repo:


   http://www.ibiblio.org/maven2/

I recommend reading the free maven2 book 
(http://www.mergere.com/m2book_download.jsp) to get started. A little 
time spent doing pure learning up front is well worth it.


-Max

Thierry Barnier wrote:

Hi Mayank,

as you put your jar files as dependencies, you should install them in your
local repository, using the maven install-file command...

More on this on:
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


Cheers

Thierry

2006/7/11, Mayank Gupta [EMAIL PROTECTED]:

Hi All,



I am a new user and I am facing difficulty in understanding a basic maven
concept. My source code need some jar files in the classpath (here which
may
be referred as a dependency). I add those in the dependency list of my
pom.xml. But where I need to store those jar files so that at the time of
compilation those jar files are picked?



With Regards,

Mayank





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]