[M2]Why can't find parent POM?

2006-09-02 Thread jiangshachina
Hello, I'm newbie in Maven. I make a very simple example for Maven, but meet a trouble.The example as follows. The example's direcotry layout is D:\maven |-- example |-- pom.xml |-- A |-- pom.xml |-- B |-- pom.xml |-- src

Re: module.basedir

2006-09-04 Thread jiangshachina
Sorry, I can't understand you really. Why do you want to use the basedir? What's your target? For example... foxcoll wrote: I have been doing some searching on this forum, and since there seems to be no way of using a root directory, is there a way to use the basedir of a module, or a

Re: Maven2 newbee question

2006-09-04 Thread jiangshachina
Alexander Sack-3 wrote: I've just started using Maven2 with Eclipse Hello, Which eclipse plugin fo Maven2 do you use? I downloaded Mergere's plugin(0.0.9), but it don't work. :( a cup of Java, cheers! Sha Jiang -- View this message in context:

Why Failed to create database?

2006-09-05 Thread jiangshachina
Continuum1.0.3 + Windows 2000 I installed a new Continuum, and run bin\win32\run.bat. I got the result SQL Exception: Failed to create database 'D:\continuum\bin\win32\..\..\apps\continuum/database', see the next exception for details. at

Re: Why Failed to create database?

2006-09-07 Thread jiangshachina
. Because the page don't refresh itself. I must click Show projects, then the page turns to right. jiangshachina wrote: The matter is happened at first run, but it seems that all is ok at second, third... run. a cup of Java, cheers! Sha Jiang Emmanuel Venisse wrote: They are false

Re: Why Failed to create database?

2006-09-07 Thread jiangshachina
Actually, you need to click Show Project, but I don't recommend to use the refresh button of your browser. Yes. If I click my browser's refresh button, my action will be send repeatly. a cup of Java, cheers! Sha Jiang Emmanuel Venisse wrote: jiangshachina a écrit : I'm so puzzled about

How to cancel the maven dir in META-INF?

2006-09-10 Thread jiangshachina
Hello, I use mvn package for packaging. In the archive file, there is a maven directory in MAET-INF, but that's not my want. How not to generate the directory? a cup of Java, cheers! Sha Jiang -- View this message in context:

Re: How to cancel the maven dir in META-INF?

2006-09-10 Thread jiangshachina
setter nor field in org.apache.maven.archiver.MavenArchiveConfiguration for 'addMavenDescriptor' ... Wendy Smoak-3 wrote: On 9/9/06, jiangshachina [EMAIL PROTECTED] wrote: I use mvn package for packaging. In the archive file, there is a maven directory in MAET-INF, but that's not my want

Re: How to cancel the maven dir in META-INF?

2006-09-10 Thread jiangshachina
Hi, Wendy Thanks very much! The problem disappeared. a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 9/10/06, jiangshachina [EMAIL PROTECTED] wrote: The output is ... [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-jar-plugin:2.0 Cause

Install file to other repositories?

2006-09-10 Thread jiangshachina
Hello, I have set localRepository parameter in Maven_Home/conf/settings.xml. For install files, I use command mvn install:install-file -Dfile=path-to-file -DgroupId=group-id -DartifactId=artifact-id -Dversion=version -Dpackaging=packaging Defaultly, the file will be install to local repository.

Re: Install file to other repositories?

2006-09-10 Thread jiangshachina
. Wayne On 9/10/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have set localRepository parameter in Maven_Home/conf/settings.xml. For install files, I use command mvn install:install-file -Dfile=path-to-file -DgroupId=group-id -DartifactId=artifact-id -Dversion=version -Dpackaging

Javadoc + Chinese character

2006-09-11 Thread jiangshachina
Hello, I'm using Windows2K + JDK1.5.0_08 In JDK1.5.0, many items(package-summary, package-use, Class, Constructor Summary ...) in Javadoc pages are Chinese characters. If I directly use command javadoc in cmd window, all of javadoc generated is OK. But if I use mvn javadoc:javadoc for generating

Re: Javadoc + Chinese character

2006-09-11 Thread jiangshachina
Hello, The problem disappeared. I use UTF16 charset. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration charsetUTF16/charset /configuration /plugin a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I'm using

Why Could not download POM file?!

2006-09-13 Thread jiangshachina
Hi, I added a Maven2 project with several moduels, and the M2 POM Url is right. But an error thrown Could not download file:/E:/path/pom.xml: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\continuum\path\pom.xml (cann't find the specific system path) But I'm so puzzled that I added another simple Maven2

Puzzles on Standard Directory Structure?

2006-10-27 Thread jiangshachina
Mergere's book Better Builds with Maven, appendix B.1 Standard Directory Structure. I don't understand some of directories. For example, src/main/filters and src/main/assembly. The descriptions in the book, the former is Standard location for resource filters, and the latter is Standard location

RE: Puzzles on Standard Directory Structure?

2006-10-28 Thread jiangshachina
. Under that directory, definitions of assembly are put. Adrian -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 7:04 PM To: users@maven.apache.org Subject: Puzzles on Standard Directory Structure? Mergere's book Better Builds

Maven documents?

2006-10-28 Thread jiangshachina
Hi, I think that Maven's document is not clear and not enough. For example, I find the doc of puglin archetype at following link, http://maven.apache.org/plugins/maven-archetype-plugin/create-mojo.html The doc only shows what attributes I can set, but don't give me all of values can be used for

Re: Maven documents?

2006-10-28 Thread jiangshachina
Hi Wendy, Thanks for you reply. The links you gave me are very helpful. a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/28/06, jiangshachina [EMAIL PROTECTED] wrote: For example, I find the doc of puglin archetype at following link, http://maven.apache.org/plugins/maven

Re: Puzzles on Standard Directory Structure?

2006-10-28 Thread jiangshachina
you might like, and then use dependencies etc to bring in submodules etc to eventually build up a larger project (ie WAR or EAR). Wayne On 10/28/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Adrian, Thanks for your reply. I see a Sun recommended Java EE project directory structure

Debug project?

2006-10-29 Thread jiangshachina
Hello, Currently, I use an Eclipse plugin(WTP) to create a Web application. And I use the plugin to export(deploy) the Web application to an Web/Application Server(JBoss)'s deploy directory. Then I can debug the application when the server is running. The function is provided by the plugin. If

RE: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
to creating a assebly for use of real deployment. Under that directory, definitions of assembly are put. Adrian -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, October 27, 2006 7:04 PM To: users@maven.apache.org Subject: Puzzles on Standard Directory

Re: Debug project?

2006-10-29 Thread jiangshachina
at 00:28 -0700, jiangshachina wrote: Hello, Currently, I use an Eclipse plugin(WTP) to create a Web application. And I use the plugin to export(deploy) the Web application to an Web/Application Server(JBoss)'s deploy directory. Then I can debug the application when the server is running

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
get you off on the right foot. Use mvn archetype:create to get a full webapp (war) structure created for you to fill in. Wayne On 10/29/06, jiangshachina [EMAIL PROTECTED] wrote: Web application project has following conventional directory structure. myapp |--pom.xml |--LICENSE.txt

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED] wrote: I don't get directories src/main/filters and src/main/resources/META-INF when I use the plugin. My command is mvn archetype:create -DgroupId=demo.mvn -DartifactId=demo -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-webapp The archetype

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
Thanks very much! I must care the section in Better Builds with Maven and the links your gave me. Best regards! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 10/29/06, Wendy Smoak [EMAIL PROTECTED] wrote: In the first reply to your original message, Adrian referred to to a

Re: Debug project?

2006-10-29 Thread jiangshachina
jiangshachina wrote: Hi Max, I think remote debug local server(I'm using JBoss) would be OK. But it there alternative approach for local debugging? If use remote debugging, shall I re-config some parameters in web.xml or other conf files? Thanks! a cup of Java, cheers! Sha Jiang Max Cooper

Re: Puzzles on Standard Directory Structure?

2006-10-29 Thread jiangshachina
doesn't list the directory webapp in appendix B.1. Standard Directory Structure. Then I have the problem(released by my below attached letter), but it's not factually :D a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wayne, I may not express my mind clearly. Mergere's book Better

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
But I'm failed with the action. I have an simple application project, and put MANIFEST.MF file into directory src/main/resources/META-INF the file has an entry Main-Class But Maven don't add the manifest automatically. I have to do following, build plugins plugin

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
, cheers! Sha Jiang jiangshachina wrote: But I'm failed with the action. I have an simple application project, and put MANIFEST.MF file into directory src/main/resources/META-INF the file has an entry Main-Class But Maven don't add the manifest automatically. I have to do following

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
Of course, I can locate MANIFEST.MF to another directory. I just be curious of why application project have not the trouble. And I cannot use standard directory structure. a cup of Java, cheers! Sha Jiang jiangshachina wrote: I find another problem. If the project is Web application

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
, cheers! Sha Jiang jiangshachina wrote: Of course, I can locate MANIFEST.MF to another directory. I just be curious of why application project have not the trouble. And I cannot use standard directory structure. a cup of Java, cheers! Sha Jiang jiangshachina wrote: I find another

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
to this page for more info on using excludes: http://people.apache.org/~aramirez/maven-resources-plugin/examples/include-exclude.html Wayne On 10/30/06, jiangshachina [EMAIL PROTECTED] wrote: In Web application project, I want to put MANIFEST.MF into main/resources/META-INF directory(it's the same

Re: Custom Manifest file

2006-10-30 Thread jiangshachina
/MANIFEST.MF. Why is this happening? And can I force the file to go into {WAR}/META-INF/MANIFEST.MF like I want, rather than under WEB-INF/classes? Is that what you're trying to ask?? Wayne On 10/30/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Wayne, I just think src/main/resources

Re: Custom Manifest file

2006-10-31 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED] wrote: Hi Wayne, I'm so sorry that I confused you :( But I think you have understand my mind. Your thinking is compatible with my question. instead of this file going into {WAR}/META-INF/MANIFEST.MF as I'd expect based on the JAR File specifications, the file

Re: Maven rant

2006-10-31 Thread jiangshachina
Hello Jeff, I think it's really a trouble. But all will be OK, I'm sure of that. Best Regards. a cup of Java, cheers! Sha Jiang Jeff Mutonho wrote: Is maven in the process of unintentionally killing itself due to poor support and documentation?I may be wrong but I strongly feel that the

Eclipse knows resources dir?

2006-11-01 Thread jiangshachina
myapp |--pom.xml |--LICENSE.txt |--README.txt |--target/ |--src/ |--main |--java/ |--webapp/ |--WEB-INF/ |--resources/ Maven recommends Application/Library resources should be located at resources. And when run mvn package, the

Re: SV: Eclipse knows resources dir?

2006-11-01 Thread jiangshachina
as the default output folder Hermod -Opprinnelig melding- Fra: jiangshachina [mailto:[EMAIL PROTECTED] Sendt: 2. november 2006 06:47 Til: users@maven.apache.org Emne: Eclipse knows resources dir? myapp |--pom.xml |--LICENSE.txt |--README.txt |--target/ |--src

Too many jars added to lib?

2006-11-02 Thread jiangshachina
Hello, My web projects needs Apache commons-configuration. I added commons-configuration to my dependency. After run mvn package, too many jar files were added into WEB-INF/lib directory. But I found many jars(e.g. xalan-2.7.0.jar) out of the list, which lists commons-configuration's runtime

Re: Too many jars added to lib?

2006-11-02 Thread jiangshachina
can help me? How can I do? jiangshachina wrote: Hello, My web projects needs Apache commons-configuration. I added commons-configuration to my dependency. After run mvn package, too many jar files were added into WEB-INF/lib directory. But I found many jars(e.g. xalan-2.7.0.jar) out

Re: Too many jars added to lib?

2006-11-02 Thread jiangshachina
/jar2, /warSourceExcludes /configuration /plugin /plugins /build Checkout : http://maven.apache.org/plugins/maven-war-plugin/index.html jiangshachina wrote: I have another question. In Web application project, generally, class files would be located at WEB

Design projects?

2006-11-02 Thread jiangshachina
Up to now, I just see the project structure as following, project-super |--pom.xml |--project-app |--pom.xml |--content of project-app |--project-webapp |--pom.xml |--content of project-webapp |--project-ejb |--pom.xml |--content of

Re: Too many jars added to lib?

2006-11-02 Thread jiangshachina
pom.xml? jiangshachina wrote: Hi Dmystery, Thanks for your help. I'm sorry that I cannot success with your instructions. And I also read the guide on maven-war-plugin, especially at http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

Re: Design projects?

2006-11-02 Thread jiangshachina
your mind as above? a cup of Java, cheers! Sha Jiang Arnaud Bailly-3 wrote: jiangshachina [EMAIL PROTECTED] writes: Can I have more deep structures? And can I have any content between projects, expects pom.xml? For instance, project-super |--pom.xml |--other content of project

Add pom tags into Eclipse?

2006-11-02 Thread jiangshachina
Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context:

Re: Too many jars added to lib?

2006-11-02 Thread jiangshachina
note that the plugin version is 2.0.1 jiangshachina wrote: Hi, I used the following scripts(for example, I didn't want dom4j-1.4.jar), and had a success. dependency dependency groupIdcommons-configuration/groupId artifactIdcommons-configuration

Re: Too many jars added to lib?

2006-11-02 Thread jiangshachina
jar will continue to exist in that folder. jiangshachina wrote: Dear Dmystery, The following is new pom.xml with your instructions, project parent groupIdce.demo/groupId artifactIddemo/artifactId version1.0-SNAPSHOT/version /parent

how to use workDirectory?

2006-11-04 Thread jiangshachina
Hi guys, I'm trying to use customized directory structure. The following is my pom scripts(part), build finalNamewebapp/finalName directorytarget/directory sourceDirectorysrc/java/sourceDirectory outputDirectorytarget/classes/outputDirectory plugins

Add non-unit test in testSourceDirectory?

2006-11-04 Thread jiangshachina
I find only unit test codes could be putted into dir testSourceDirectory, or Maven would say No Java test frameworks found. Can I put non-test codes into the diretory? How to config? Thanks! a cup of Java, cheers! Sha Jiang -- View this message in context:

Re: Add non-unit test in testSourceDirectory?

2006-11-04 Thread jiangshachina
From another view, can maven-surefire-plugin do this work, run test classes and skip non-test classes? a cup of Java, cheers! Sha Jiang jiangshachina wrote: I find only unit test codes could be putted into dir testSourceDirectory, or Maven would say No Java test frameworks found. Can I

Re: Add non-unit test in testSourceDirectory?

2006-11-05 Thread jiangshachina
I checked the matter again. I added junit jar file to dependencies, then the problem is resolved. I ever thought that junit is depended automatically(implicitly). a cup of Java, cheers! Sha Jiang Arnaud Bailly-3 wrote: jiangshachina [EMAIL PROTECTED] writes: From another view, can maven

Re: Add non-unit test in testSourceDirectory?

2006-11-05 Thread jiangshachina
I see. Sometimes, I may have some non-JUnit codes. The codes also have testing functions, but aren't used for final application. I just put them into test source directory. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, jiangshachina, You can put anything you want

no classes, but lib?

2006-11-05 Thread jiangshachina
Generally, in Web application project, the Java class files would be put into WEB-INF/classes folder. Now, I want the classes to be archived and putted into WEB-INF/lib folder. And the classes should be classified and putted into different sub-directories under WEB-INF/lib respectively. For

Re: no classes, but lib?

2006-11-05 Thread jiangshachina
November 2006 11:12, jiangshachina wrote: Generally, in Web application project, the Java class files would be put into WEB-INF/classes folder. Now, I want the classes to be archived and putted into WEB-INF/lib folder. And the classes should be classified and putted into different sub-directories

Re: how to use workDirectory?

2006-11-05 Thread jiangshachina
overlaying. It will unpack the dependent WARs into work directory and then merge your webapp with those files. http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html Wayne On 11/4/06, jiangshachina [EMAIL PROTECTED] wrote: Hi guys, I'm trying to use customized directory

RE: Add pom tags into Eclipse?

2006-11-05 Thread jiangshachina
; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4

RE: Add pom tags into Eclipse?

2006-11-05 Thread jiangshachina
to cumulate some experience for building pom file. Some general format used for writing pom.xml aren't clearly shown by the docs. a cup of Java, cheers! Sha Jiang franz see wrote: Good day to you, jiangshachina, IIRC, the eclipse' content assist on XML is plugin specific. So as to where

RE: Add pom tags into Eclipse?

2006-11-06 Thread jiangshachina
/index.html jiangshachina wrote: Hello franz, Thanks for your warm heart. IIRC, the eclipse' content assist on XML is plugin specific. So as to where it downloads it (assuming it does) depends on the plugin. I have search any directory the file potentially located. But nothing is interesting

RE: Final name

2006-11-06 Thread jiangshachina
In my mind, build finalNamefinalName/finalName /build the configuration just affect output file(jar, war, etc.) at target directory. If install or deploy the project, the final name still is artifactId-version. The format is specified by Maven. a cup of Java, cheers! Sha Jiang Laura

Why don't Overriding the default destination directory of a web resource?

2006-11-06 Thread jiangshachina
Hello, I want to add some resource files into sub-directory of WAR/WEB-INF, I'm using following scripts, build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0.1/version

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-06 Thread jiangshachina
Oh, I just found that webResources/resource may don't work at 2.0.1, it's 2.1 feature. please see, http://www.nabble.com/Re%3A-incorrect-war-file-structure-p5717762s177.html Then how can I achieve the goal without maven-war-plugin 2.1-SNAPSHOT? a cup of Java, cheers! Sha Jiang jiangshachina

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-06 Thread jiangshachina
directory, why Maven can recognize it? Maven see the directory as what? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Oh, I just found that webResources/resource may don't work at 2.0.1, it's 2.1 feature. please see, http://www.nabble.com/Re%3A-incorrect-war-file-structure-p5717762s177

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-06 Thread jiangshachina
, 2006-11-06 at 20:18 -0800, jiangshachina wrote: Hello, I want to add some resource files into sub-directory of WAR/WEB-INF, I'm using following scripts, build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId

How to customize pre-archive directory?

2006-11-07 Thread jiangshachina
Hello, I'm using customized project directory structure. To standard Maven Web application project, when run mvn package, a folder generated at directory target, the folder includes all of files/dirs would be archived to war file. I call the folder pre-archived directory :D I customized three

Re: How to customize pre-archive directory?

2006-11-07 Thread jiangshachina
. Really, I don't understand webappDirectory well, too. How to explain the parameter? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I'm using customized project directory structure. To standard Maven Web application project, when run mvn package, a folder generated at directory

Re: How to customize pre-archive directory?

2006-11-07 Thread jiangshachina
is undesirable for a number of reasons, mainly relating to the mixing of source and build artifact files in the same directory structure. maven-war-plugin usage doc: http://maven.apache.org/plugins/maven-war-plugin/usage.html -Max jiangshachina wrote: Oh, I may find the problem. I shall use

Java Source and Resource

2006-11-07 Thread jiangshachina
Hello, With Maven standard directory structure, resources relative to Java source codes are located at src/resources. Now I'm using Hibernate. Generally, a Hibernate xml file directly adheres to its domain Java class. For example, src |--java |--myapp |--demo

Re: How to reference the tools.jar of the jdk lib folder

2006-11-07 Thread jiangshachina
Hi, See also: http://maven.apache.org/general.html#tools-jar-dependency System scope isn't recommended by Maven. Using repository is standard way. a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/7/06, Dudu [EMAIL PROTECTED] wrote: I need to use the tools.jar of the lib

naming groupId and artifactId?

2006-11-07 Thread jiangshachina
Hello, As far as I know, artifactId doesn't include '.' and indicates the project work. Then how about groupId? As package naming spec, we use the format: org.apache.realProject.innerPackage... We can regard org.apache as groupId, realProject as artifactId. But at Maven central repository,

Re: Java Source and Resource

2006-11-07 Thread jiangshachina
-3 wrote: On 11/7/06, jiangshachina [EMAIL PROTECTED] wrote: With Maven standard directory structure, resources relative to Java source codes are located at src/resources. Now I'm using Hibernate. Generally, a Hibernate xml file directly adheres to its domain Java class. ... Some

Re: naming groupId and artifactId?

2006-11-07 Thread jiangshachina
! Sha Jiang Wendy Smoak-3 wrote: On 11/7/06, jiangshachina [EMAIL PROTECTED] wrote: But at Maven central repository, http://www.ibiblio.org/maven2/ I don't find any accurate regular. For example, Apache Commons projects aren't grouped as org.apache, or org.apache.commons, or apache.commons

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-08 Thread jiangshachina
, because I used mvn eclipse:eclipse to create Eclipse project. Maybe I didn't clean the content of the project firstly. Maybe... I don't know. What only I can make sure is I set some things wrong.. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Another, I'm using customized directory

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-08 Thread jiangshachina
webapp |--WEB-INF |--lib |--classes |--web.xml The following is my want, WAR |--WEB-INF |--lib |--classes |--resource |--resource.txt |--web.xml Thanks! a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I

Re: naming groupId and artifactId?

2006-11-08 Thread jiangshachina
Oh Dennis, http://mvnrepository.com/ The site is very helpful. Thanks very much! a cup of Java, cheers! Sha Jiang dennisl-2 wrote: Check out this site: http://mvnrepository.com/ -- Dennis Lundberg jiangshachina wrote: Hello, I think Maven official should give a tree list

Re: Too many jars added to lib?

2006-11-08 Thread jiangshachina
--- Dmystery [EMAIL PROTECTED] schrieb: This should definitely remove all the unwanted dependencies. Even if they are dependencies of a dependency. I'm doing the same thing to remove all the unwanted files. Can you post your pom.xml? jiangshachina wrote: Hi Dmystery, Thanks for your help

Re: Why don't Overriding the default destination directory of a web resource?

2006-11-08 Thread jiangshachina
Or I have to use Ant scripts with maven-ant-plugin? That's not my want :( a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I have tried maven-assembly-plugin, but it seems that the plugin cannot help me. maven-assembly-plugin would create a new product(specified by format

Re: no classes, but lib?

2006-11-08 Thread jiangshachina
, you can use maven-assembly-plugin (see [1] for the released plugin documentation, and [2] for the staged unreleased plugin documentation) Cheers, Franz [1] http://maven.apache.org/plugins/maven-assembly-plugin/ [2] http://people.apache.org/~epunzalan/maven-assembly-plugin/ jiangshachina

Re: no classes, but lib?

2006-11-08 Thread jiangshachina
into one jar file. I expect to classify the classes and archive them into different jar files. I may have strange requirement :-) a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, Now, my requirement is following, I want

Re: no classes, but lib?

2006-11-08 Thread jiangshachina
into different jar files very easily. Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Wendy, There is a configuration option to do this in the war plugin itself. See 'archiveClasses' here: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That really is a pretty

Re: Too many jars added to lib?

2006-11-08 Thread jiangshachina
reasons to use excludes, but these are a few I've run into myself in the last few months... Wayne On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Automatically importing dependencies of dependencies is a great feature. But users have to know the dependency hierarchy, or we cannot exclude

Re: Too many jars added to lib?

2006-11-08 Thread jiangshachina
is my want, then I can set dependencies exactly. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, I have encountered some of the reasons you gave. But the reason why I release the topic is very simple :D I just think so many jar files are put at WEB-INF/lib would confused

Depend on other files?

2006-11-08 Thread jiangshachina
Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two Web application projects, the one wants to use some configuration files of the other one. How can I achieve

Re: Puzzles on Standard Directory Structure?

2006-11-09 Thread jiangshachina
the directory to somewhere? ... I find nothing is interesting :( a cup of Java, cheers! Sha Jiang jiangshachina wrote: Mergere's book Better Builds with Maven, appendix B.1 Standard Directory Structure. I don't understand some of directories. For example, src/main/filters and src/main

Re: Too many jars added to lib?

2006-11-09 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central repository? I just use different groupId, but artifactId and version aren't changed. Namely, before start a project, I install the dependencies

Re: Depend on other files?

2006-11-09 Thread jiangshachina
build-helper-maven-plugin for deployment. -D On 11/8/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, I have known that a project can depend on artifacts. The artifact can be pom or jar, and ear project can depend on war or ejb. Now, how about other files(e.g. xml)? Assumely, I have two

Re: Depend on other files?

2006-11-09 Thread jiangshachina
Hi dan, Thanks, I'll care the plugin. But its examples are very simple, the plugin would take me some time. a cup of Java, cheers! Sha Jiang dan tran wrote: the plugin also allows you to attach arbitrary artifact to maven to be deployed. - On 11/9/06, jiangshachina [EMAIL PROTECTED

Re: Too many jars added to lib?

2006-11-09 Thread jiangshachina
open source code library and so you literally have a different artifact than what is being delivered by Central. Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, I have an idea, can I install jar files to local repository, and don't use the artifacts at central

Re: Too many jars added to lib?

2006-11-09 Thread jiangshachina
on Maven continuously. All will be OK, I'm sure of that. Thanks! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Undoubtedly, Maven central repository is crucial. My question just be why so many unessential artifacts are added to pom

Re: Depend on other files?

2006-11-09 Thread jiangshachina
and completed your project with the configuration you are looking for etc? Wayne On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi dan, Thanks, I'll care the plugin. But its examples are very simple, the plugin would take me some time. a cup of Java, cheers! Sha Jiang dan tran wrote

Re: Depend on other files?

2006-11-09 Thread jiangshachina
://mojo.codehaus.org/build-helper-maven-plugin/howto.html a cup of Java, cheers! Sha Jiang dan tran wrote: ummm, not sure what is blocking you ;-) the build-helper-maven-plugin's usage? -D On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Wayne, I think if try my best the goal would

Re: Depend on other files?

2006-11-09 Thread jiangshachina
/execution /executions /plugin but option 2 is way complicated ;-) use option 1 instead. On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: Hello Dan, ummm, not sure what is blocking you ;-) the build-helper-maven-plugin's usage? Yes

Dependency cycle?

2006-11-10 Thread jiangshachina
Hello guys, I suddenly have a virtual case just in mind. There are two projects, A and B, each of them depends on the other one. How do Maven to deal with the dependency cycle? a cup of Java, cheers! Sha Jiang -- View this message in context:

Re: Dependency cycle?

2006-11-10 Thread jiangshachina
on A, then B want A to be installed at repository, too. The cycle can not be resolved. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello guys, I suddenly have a virtual case just in mind. There are two projects, A and B, each of them depends on the other one. How do Maven to deal

Re: Source code examples for Better Builds with Maven?

2006-11-11 Thread jiangshachina
Hi Ed, I tried the download site just now http://www.mergere.com/m2book_code.jsp but all is OK. You can try again. Good luck! a cup of Java, cheers! Sha Jiang Ed Young wrote: The links have been down all week, but I didn't email or call them until Friday. Oh, well. Anyone have them

Re: Setting up a new jre to maven

2006-11-11 Thread jiangshachina
Hello, configuration source1.5/source target1.5/target /configuration If that's true, I'm confused by the settings. Why Maven(or javac) can compile sources to 1.5-compatible classes at 1.4.2JRE(or 1.4.2 javac)? In order to fulfil the requirement, I think must install JDK1.5 firstly.

Re: Setting up a new jre to maven

2006-11-12 Thread jiangshachina
, otherwise it defaults to 1.4 classes with the 1.5 JRE. Wayne On 11/11/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, configuration source1.5/source target1.5/target /configuration If that's true, I'm confused by the settings. Why Maven(or javac) can compile sources to 1.5

Re: Puzzles on Standard Directory Structure?

2006-11-12 Thread jiangshachina
wrote: On 11/9/06, jiangshachina [EMAIL PROTECTED] wrote: I may have known the goal of src/main/assembly(assembly descriptor files used by maven-assembly-plugin). Now I want to ask what files should be put at src/main/conf? It seems that the folder would include configuration files, but which

Re: Puzzles on Standard Directory Structure?

2006-11-12 Thread jiangshachina
! Sha Jiang Wendy Smoak-3 wrote: On 11/12/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, that's means that the directories just are recommended by Maven, but Maven does nothing for it as default. It probably means that during the design discussions, someone thought a 'conf' directory would

Not set groupId and version?

2006-11-13 Thread jiangshachina
Hi guys, I have saw some guides like the following, http://maven.apache.org/guides/mini/guide-assemblies.html plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor /configuration /plugin Why can not set groupId and

Re: Not set groupId and version?

2006-11-13 Thread jiangshachina
of this pom might be using pluginManagement. To know more http://maven.apache.org/pom.html#Plugin%20Management jiangshachina wrote: Hi guys, I have saw some guides like the following, http://maven.apache.org/guides/mini/guide-assemblies.html plugin artifactIdmaven-assembly-plugin/artifactId

Re: Not set groupId and version?

2006-11-13 Thread jiangshachina
On 11/13/06, jiangshachina [EMAIL PROTECTED] wrote: Hi guys, I have saw some guides like the following, http://maven.apache.org/guides/mini/guide-assemblies.html plugin artifactIdmaven-assembly-plugin/artifactId configuration descriptorsrc/main/assembly/dep.xml/descriptor

  1   2   3   >