Re: automate localhost deploy

2007-11-15 Thread Henry Isidro
Cargo would be your best bet...http://cargo.codehaus.org/ Cheers, Henry On 11/16/07, mitch [EMAIL PROTECTED] wrote: Hello, I'm using maven2 (and the m2eclipse integration plugin) and am able to use the deploy goal successfully to deploy to a remote repository. But I wonder what the easiest

Re: how to get the maven repository to local machine?

2007-10-17 Thread Henry Isidro
May I ask why you would want to do this? On 10/17/07, li frank [EMAIL PROTECTED] wrote: Hi all, I want to get the central repository using rsync from several mirrors,like *rsync -v -t -l -r mirrors.ibiblio.org::maven2*, but it give me message as following: receiving file list ... rsync:

Re: Maven dependencies issues

2007-07-23 Thread Henry Isidro
This might prove helpful http://maven.apache.org/plugins/maven-dependency-plugin/ especially the copy-dependencies goal. HTH, Henry On 7/23/07, Dmitry [EMAIL PROTECTED] wrote: My application is a jar file and when I run mvn package it generates my jar ok. But I need to distribute my app with

Re: Build failure out of the blue

2007-07-18 Thread Henry Isidro
ouch, is there something similar in Solaris? Jeff Mutonho wrote: On 7/18/07, Henry Isidro [EMAIL PROTECTED] wrote: Try changing your java alternative setting: sudo update-alternatives --config java HTH, Henry Hmmmit's running on a Solaris machine

Re: Build failure out of the blue

2007-07-17 Thread Henry Isidro
Try changing your java alternative setting: sudo update-alternatives --config java HTH, Henry Jeff Mutonho wrote: On 7/17/07, Maria Odea Ching [EMAIL PROTECTED] wrote: Hi, Try executing 'which java' from the command line and trace from this which java (the one displayed may be an alternate

Re: Maven and Ant | Executing Ant script before downloading dependencies | Need Help

2007-06-26 Thread Henry Isidro
Hi Shinjan, You can separate the two. Place the ant project in its own project, configure the ant run plugin there. Then, in the maven project, add the ant project as a dependency. If you want this in one nice build, you can place both projects under one parent, this way, when you build the

Re: [m2] best way to have an offline internal repository

2007-05-29 Thread Henry Isidro
Dário Luís Coneglian Oliveros wrote: Hi there, I've been reading several threads about having an offline internal repository and I wonder if there's any maven plugin or tool that can help on this matter as of now. I've heard of a repository builder, but could not find much information about

Re: invoke maven from java

2007-05-29 Thread Henry Isidro
?? wrote: Hi, everyone. Is there a way to invoking maven from java code? Thanks in advance. Hi ??, Continuum does something like that. You can check out the continuum code at https://svn.apache.org/repos/asf/maven/continuum/trunk. Then look at

Re: Requiring a specific version of maven to build a project?

2007-05-23 Thread Henry Isidro
I think there was talk of an enforcer plugin somewhere, you might want to search for that. HTH, Henry On 5/23/07, Alex Karasulu [EMAIL PROTECTED] wrote: Hi, Just wondering if there is a POM directive that I can use to enforce the use of a specific version of maven for it's modules to be

Re: PreGoal ??

2006-01-19 Thread Henry Isidro
preGoal executes the scripts you specify before the goal named. For instance, preGoal name=java:compile ... /preGoal Anything between preGoal and /preGoal would execute first and then java:compile would be executed. Regards, Henry Zheng Wen Zhe wrote: Hi, I have a pregoal set up

Re: Ear file doesnt contain war and jar

2006-01-18 Thread Henry Isidro
Hi Karthik, Glad to hear that you've got it working. You can send artifacts to specific directories in your ear by using the bundleDir tag. More info at http://maven.apache.org/plugins/maven-ear-plugin/howto.html. HTH, Henry Karthik V wrote: I got it working finally, but dont understand

Re: [m2] want advance about setting up multiple

2006-01-18 Thread Henry Isidro
Hi Mick, I assume you mean jars that were built from your project. In that case, you can install those jars manually. Please see http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html and

Re: CLASSPATH?

2006-01-17 Thread Henry Isidro
Hi Lutz, Check out dependencies. Any artifacts declared as dependencies are placed on the classplath depending on the specified scope. This is placed in the build section of your pom.xml. dependencies dependency groupId/ artifactId/

Re: [m2] Where to place resources for unit tests?

2006-01-17 Thread Henry Isidro
Hi David, Try excluding them: testResources testResource ... excludes/ /testResource /testResources HTH, Henry [EMAIL PROTECTED] wrote: Hello, I need some config files/resources for unit test, so I place them

Re: Ear file doesnt contain war and jar

2006-01-17 Thread Henry Isidro
Hi Karthik V, The properties tag for dependencies are no longer suppported. Can you post your pom so that we can see what you are actually doing? Regards, Henry Karthik V wrote: looks like things have changed :( ... the properties tag is not being recognized. On 1/17/06, Max Cooper

Re: [M2] Problem with maven-ear-plugin: Artifact[_:_:ejb] is not a dependency of the project.

2006-01-16 Thread Henry Isidro
Hi Stefan, Try adding typeejb/type in your dependency declarations. HTH, Henry Stefan Rademacher wrote: Hello, I have a problem, when I try creating an EAR file, that includes two EJB modules. Nobody else seems to have this issue, so there might be an easy solution... I have a project with

Re: [m2] outputDirectory

2006-01-13 Thread Henry Isidro
in the middle of the versioned source tree. So, how can I change the output directory for the package goal? Is there a universal way to divert output of any and all goals? Thanks Dmitry At 08:58 PM 1/10/2006, Henry Isidro wrote: Dmitry Beransky wrote: worked like a charm! I ended up putting

Re: [PROBLEM SOLVED but is it a bug?] Re: [m2] remote repository artifact update / local repository for multiproject question

2006-01-13 Thread Henry Isidro
Loïc Lefèvre wrote: Hello Henry, first, thanks for your answer :o) NP :-) 2/ Yes, Remember: local repository defined ... repositories repository idXXX/id nameLocal repository for XXX builds./name urlfile://${basedir}/thirdparty/url layoutdefault/layout /repository

Re: M2 - Help needed with profiles

2006-01-13 Thread Henry Isidro
Hi Sanjay, Can you post the errors you're getting? Regards, Henry Sanjay Choudhary wrote: I read the following on maven website Profiles specified in the POM can modify the following POM elements: - *repositories* - *pluginRepositories* - *dependencies* - *plugins* -

Re: [m2] jboss plugin location? Not where it is suppose to be...

2006-01-12 Thread Henry Isidro
you need svn for that: http://subversion.tigris.org/ - Henry Mick Knutson wrote: How would I do that in wincvs? Or dos? --- Thank You Mick Knutson Sr. Java/J2EE Consultant BASE logic, inc. (415) 648-1804 (S.F., CA) http://www.BASELogic.com Washington Mutual (WAMU) (Emeryville, California)

Re: [m2] remote repository artifact update / local repository for multiproject question

2006-01-12 Thread Henry Isidro
Hi Loïc, Please see inline answers. Questions: 1/ What is the process to (ask for) update on remote repository? I've found a broken link on the maven webpage: http://maven.apache.org/guides/introduction/introduction-to-repositories.html

Re: [m2] Global override of scope version

2006-01-12 Thread Henry Isidro
Hello Kees, Seems to be a transitive dependency issue. Check this out: http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-CanIdisabletransitivedependencies%3F HTH, Henry Kees de Kooter wrote: I am packaging a war and amazingly it twice as large in size compared to the old ant build. I

Re: EAR and non-repository libraries questions

2006-01-12 Thread Henry Isidro
Hi Ilya, Please see inline answers. Ilya Sterin wrote: Hello, I have two questions. First, I'm still trying to figure out how to generate an ear archive from a multi-module project. The site, nor google has any documentation on this, other than a listing of goals and/or how to customize the

Re: Overwriting a goal in subproject

2006-01-11 Thread Henry Isidro
written using maven-antrun-plugin. Could you give me an example? Thanks, Sandeep -Original Message- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 6:45 PM To: Maven Users List Subject: Re: Overwriting a goal in subproject Dixit, Sandeep (ProSource Solutions

Re: compile - removing source files from target directory

2006-01-11 Thread Henry Isidro
Hi Sean, Can you explain what you mean by source files being copied to the target directory? AFAIK, this isn't the case, source files are never copied to the target directory. Regards, Henry Sean Clarkson wrote: Hi, I'm new to Maven 2 - I was wondering if there was any setting you

Re: Overwriting a goal in subproject

2006-01-11 Thread Henry Isidro
oops make that: inheritedfalse/inherited -Henry Henry Isidro wrote: I mean try placing this in the child pom: plugin ... configuration inherited${inheritGoal}/inherited /configuration /plugin It might override the parent's setting. HTH, Henry Dixit, Sandeep (ProSource

Re: Overwriting a goal in subproject

2006-01-10 Thread Henry Isidro
Dixit, Sandeep (ProSource Solutions) wrote: How would that allow selective on and off? Wouldn't it set one value for all (parent and child projects)? Thanks, Sandeep Yup, sorry about that, I didn't fully understand your question. Have you tried overriding the property in the child pom?

Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro
Dmitry Beransky wrote: Hi, I'm trying to migrate for the first time one of my projects to Maven2. In Maven 1, I used to have the following line in the user level configuration file: maven.build.dir=c:/temp/maven/${pom.artifactId} this was for Windows-based workstations; on a server,

Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro
Rinku wrote: I don't see an outputDirectory/ specified under build/ element for profile/ in the pom descriptor. http://maven.apache.org/maven-model/maven.html Not sure if its an 'error of omission' in online docs or if a profile does (or does not) supports overriding the build

Re: [m2] outputDirectory

2006-01-10 Thread Henry Isidro
Dmitry Beransky wrote: worked like a charm! I ended up putting the following into the profile section: properties buildDir${java.io.tmpDir}/maven/${pom.artifactId}/buildDir /properties now the settings file is portalble among different platforms. Very cool, indeed. Thanks Dmitry I

Re: Overwriting a goal in subproject

2006-01-09 Thread Henry Isidro
Dixit, Sandeep (ProSource Solutions) wrote: I apologize. Error on my part... inheritedfalse/inherited did work. I have one more question: Project structure: -- LEVEL 1: GENRIC_PROJ: has app server deploy goal LEVEL 1: PROJ_PARENT: inherits GENRIC_PROJ and SHOULD NOT inherit the

Re: [m2] how to change maven-jar-plugin's basedir ?

2006-01-05 Thread Henry Isidro
Man-Chi Leung wrote: how can I change the generated jar location from default project_dir/target/ to project_dir/target/lib? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration

Re: [m2] how to change maven-jar-plugin's basedir ?

2006-01-05 Thread Henry Isidro
Henry Isidro wrote: Man-Chi Leung wrote: how can I change the generated jar location from default project_dir/target/ to project_dir/target/lib? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId configuration

Re: Copy Jar?

2006-01-02 Thread Henry Isidro
Davis Ford wrote: Thanks Brian, I will check into dependency-maven-plugin. In the meantime, I had solved it. This seems to be anti-Maven, b/c it uses an environment variable, but it seems to work. I added these two goals to maven.xml goal name=check-props j:if

Re: project.xml file

2006-01-01 Thread Henry Isidro
[EMAIL PROTECTED] wrote: Hello, I'm trying to compile a simple program using: mave java:compile command. build:start: java:prepare-filesystem: java:compile: [echo] Compiling to C:\repotest/target/classes [echo] No java source files to compile. BUILD SUCCESSFUL When I looked for

Re: IDE build and debugging

2005-12-19 Thread Henry Isidro
Sebastien Arbogast wrote: Is there a way to integrate Maven (1 or 2) into an IDE (IntelliJ or Eclipse) so that I can use the debugging capacities of my IDE : breakpoints, line-by-line execution, watchpoints, etc. ? -- Sébastien Arbogast Blog : http://www.sebastien-arbogast.com The Epseelon

Re: Is it possible to setup a backup repository?

2005-12-18 Thread Henry Isidro
Matt Raible wrote: Is it possible to check a mirror of ibiblio for dependency if ibiblio is down? If I put the following in my pom.xml, it checks this mirror first, rather than ibiblio. It seems like a better practice to check ibiblio first. repositories repository idplanetmirror/id

Re: propoer Jelly doc + samples

2005-12-16 Thread Henry Isidro
Michael Niemaz wrote: Hi all, I'm looking for pointers to jelly documentation and samples, a part from the tab libraries documentation on maven. I'm kinda struggling to write scripts so I thought there would a place somewhere that would help me. thanx, --mike

Re: [m2] How du I use the latest versions of plugins?

2005-12-09 Thread Henry Isidro
Baard Johansen wrote: Hi, I installed the binary Maven 2.0 distribution, and was hoping that the latest version of plugins were to be used. This appears not to be so. For instance, for the maven-site-plugin my Maven use the 2.0-beta-2 version, instead of the latest 2.0-beta-4. How can I tell

Re: Questions on assembly plugin

2005-12-09 Thread Henry Isidro
Jochen Wiedmann wrote: Hi, I'd like to use the assembly plugin for creating distributions. After reading the documentation and doing some first attempts, I do have the following questions: - There are predefined ID's like bin and src. These are (to me) very welcome for reading as examples.

Re: Dependency on a non-maven project?Need advice

2005-12-08 Thread Henry Isidro
li pan wrote: Hi, If my project depends on another project which is neither writen by myself nor has a maven POM(there are tons of these type on www.sf.net), what is the best way to include it in my project? Thanks Maven dependencies are named: artifactId-version.package so the first to do

Re: [m2] assembly headache

2005-12-08 Thread Henry Isidro
Arnaud Bailly wrote: Hi, I have a project that contains a bunch of modules and I want to make a source distribution of each module. Do I need to configure assembly in each module ? What is the configuration ? I tried to copy verbatim what's on the FAQ but it doesn't work :-( Nothing gets

Re: [m2] Downloading source-code jar files ?

2005-12-05 Thread Henry Isidro
Christian Schulte wrote: Hi, how do I make maven fetch e.g. junit-3.8.1-sources.jar so that this file gets copied into the local repository ? I tried putting a dependency to it in the root pom like this dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId

Re: M2 : How to add local NON-installed JARs to the build path for projects.

2005-12-02 Thread Henry Isidro
Matthew Wheaton wrote: Hello, I am an avid Maven fan, and am struggling to understand how to model my new projects based on my Maven 1.x experience. I have a number of Eclipse projects, one called csi_libs. csi_libs, contains all the compile time (and some deployment) 3rd party jars needed

Re: How not to include all jar files from parent pom?

2005-11-30 Thread Henry Isidro
Stephane Nicoll wrote: Use the right scope. If you don't want them to be included, specify the scope of your dependency (compile / provided). Hope it helps, Stéphane Just to clarify things further, the compile scope includes the dependencies in the final package and the provided scope does

Re: Dependencies

2005-11-25 Thread Henry Isidro
Markus M. May wrote: Also each component generates more then one artifact (one for the EJBs, one common and at least one for the client side, and sometimes one for the resources - this is needed for JWS). Would this be possible with Maven2 as well? I heard something about masks and filters -are

[m2] maven-antrun-plugin classloading issues?

2005-11-24 Thread Henry Isidro
Hi. I'm trying to run an ant task from the antrun plugin. When I try to define some dependencies as provided so that the packaging won't include them, the build stops and complains that the ant task can't find classes found in those provided dependencies. Everything works fine if I specify

Re: EJB with Maven2

2005-11-23 Thread Henry Isidro
Alexandre Poitras wrote: Just wanted to add, that you need a subproject C to produce the ear file and include jars A and B. It is quite easy to setup. Look in the guides on the Maven site but don't be shy to ask if you need any help! On 11/23/05, Alexandre Poitras [EMAIL PROTECTED] wrote:

Re: EJB with Maven2

2005-11-23 Thread Henry Isidro
Alexandre Poitras wrote: I think he also needs to add manifest entries so the ejb jar can loads class from the other jar. If you don't do that your A project won't be in your B project class path. Yup you're right there...I didn't mention it anymore since you already said something about

Re: EJB with Maven2

2005-11-23 Thread Henry Isidro
. Is this a bug? I figured Maven would be able to determine the dependency type itself without needing me to specify the type explicitly. Other than that, it works like a charm. Thanks for the help! -Original Message- From: Henry Isidro [mailto:[EMAIL PROTECTED] Sent: November 23, 2005

Re: about the maven-antrun-plugin phase!

2005-11-23 Thread Henry Isidro
[EMAIL PROTECTED] wrote: Dear All: who can tell me the all phase about maven-antrun-plugin and the detail description about every phase? thanks. plugin artifactIdmaven-antrun-plugin/artifactId executions execution phasepackage/phase what is the

[Fwd: Re: [m2] RAR plugin]

2005-11-22 Thread Henry Isidro
Stephane Nicoll wrote: Well it should. Could you please show your POM and the structure of your project please? Thx, Stéphane On 11/21/05, Henry Isidro [EMAIL PROTECTED] wrote: I'm using the RAR plugin and I found out that it does not create a JAR file to include in the package. So, I

[m2] RAR plugin

2005-11-21 Thread Henry Isidro
I'm using the RAR plugin and I found out that it does not create a JAR file to include in the package. So, I invoked the JAR plugin and everything worked fine. Now, I tried using the install plugin to install the rar file into my local repository and what happened was the plugin installed the

Re: [m2] RAR plugin

2005-11-21 Thread Henry Isidro
Brett Porter wrote: That bug is fixed in SVN - however, I'm not sure that the exceution should be needed, but I don't quite understand what you are attempting - hopefully someone with more RAR experience than me (that's anyone :) will know the answers. - Brett There are two problems I

Re: [M2] [M1] Multiproject dependencies question

2005-11-18 Thread Henry Isidro
Ballard, Ken wrote: This is a question for Maven 1 2, although I know that the answers will be different. Let's say that I have a multiproject with subprojects. Some build jars, one builds a war, a couple that build an ejb jar and an ejb client jar, and one builds an ear. Now let's say that I

Re: [m2] was5 plugin

2005-11-17 Thread Henry Isidro
Dion Gillard wrote: As the defacto maintainer of the maven 1 was5 plugin, and someone who isn't moving to m2 at this point, we've been asked this at sourceforge a couple of times, but it needs someone to step up and do the work. The antrun plugin probably couldn't be used (guessing here), as

Re: How to include dependencies when building/installing a .jar ???

2005-07-15 Thread Henry Isidro
Matthew L Daniel wrote: Is there an easy/built in way to include the dependency jar files when building a jar package? Or do I need to build my own plugin? Sounds suspiciously like an EAR to me. If you ignore the META-INF/application.xml, it's a zip file with all your jars packaged

Re: Component Descriptor Error Message

2005-06-17 Thread Henry Isidro
Simon McClenahan wrote: I'm running Maven under Windows, and I was unable to specify the drive letter. Conveniently I do everything on my C: drive, and I have ended up using the following: maven.repo.remote=file:///localhost/projects/online/trunk/,http://www.ib iblio.org/maven/ I know it

Re: Dependencies and the local repository

2004-04-06 Thread Henry Isidro
Jarrell, Maury wrote: Forgive me for asking what must be a very basic question. I've searched the Maven site and scoured the archives for this list and haven't found an answer. I have a simple java project defined in an Ant file. The dependencies for my current project are in jars in the