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:

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:

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,

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

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,

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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:

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

[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:

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

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,

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

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:

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

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.

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

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

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

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

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.

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

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

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

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

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

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

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 =

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

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

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

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

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

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

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

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

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

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

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