Re: SCM report?

2007-05-31 Thread jiangshachina
Hello, Thanks very much! I'll have a try. a cup of Java, cheers! Sha Jiang Dennis Lundberg-2 wrote: jiangshachina wrote: Hi, I want to get a report, which show all of modifications of my project from SVN every day. Does Maven (or its plugins) could provide the feature? Thanks

SCM report?

2007-05-30 Thread jiangshachina
Hi, I want to get a report, which show all of modifications of my project from SVN every day. Does Maven (or its plugins) could provide the feature? Thanks in advance! a cup of Java, cheers! Sha Jiang -- View this message in context:

currentpage removed from central repo?

2007-05-27 Thread jiangshachina
Hello, I ever saw artifact currentpage-1.1 in Maven central repository, but now I don't find it in the repo. Does it mean that the artifact is removed from central repo for ever? Why? What artifact replace currentpage? Thansk! a cup of Java, cheers! Sha Jiang -- View this message in context:

Re: Why the result of antrun are different?

2007-04-30 Thread jiangshachina
Hello, I used the same project source files, local repository and Maven in Red Hat AS 4.0, language is zh_CN.UTF-8. In the box, antrun task executed well. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi, When I said LANG, I meant Language I see, but I didn't know what's concreted

Re: encoding of file name?

2007-04-30 Thread jiangshachina
archive files by default. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello encodingGBK/encoding Really, I had tried, but it didn't work :-( And one point must be cared: In the exploded package (a directory) before real packaging, all of files' names are OK. The trouble merely

Re: Why the result of antrun are different?

2007-04-30 Thread jiangshachina
think it just be related to Java/JDK or some jars. Which element would affect the plugin? Thanks! a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I used the same project source files, local repository and Maven in Red Hat AS 4.0, language is zh_CN.UTF-8. In the box, antrun

Re: encoding of file name?

2007-04-30 Thread jiangshachina
Hi, From the tests, I'm sure that Maven uses UTF-8 to make archive files by default. If that's true, then we'd better not to use non-ascii characters in file names. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I made some test with Linux -- Red Hat AS 4.0. [1]I set

encoding of file name?

2007-04-29 Thread jiangshachina
Hi guys, I'm using Maven 2.0.4 + JDK 1.5.0 + Windows 2000 (Chinese version) Some names of my project's files have Chinese characters. When I made a package file (ex. war) by running mvn package, the Chinese characters would be in wrong encoding. With my tests, I find that Maven uses UTF-8

Re: encoding of file name?

2007-04-29 Thread jiangshachina
a advance for this,set the encoding's value like the this in your pom.xml ?xml version=1.0 encoding=GBK? project . . . /project good luck! 2007/4/29, jiangshachina [EMAIL PROTECTED]: Hi guys, I'm using Maven 2.0.4 + JDK 1.5.0 + Windows 2000 (Chinese version) Some names of my

Why the result of antrun are different?

2007-04-29 Thread jiangshachina
Hello, I'm using Maven 2.0.4 + JDK 1.5.0 I have a web application project. When running package phase, one of the tasks was using native2ascii tool to convert some files. I take advantage of maven-ant-run plugin to do the job, the related scripts is shown as follows,

Re: encoding of file name?

2007-04-29 Thread jiangshachina
... encodingUTF-8/encoding ... /configuration /plugin /plugins ... /build ... /project 2007/4/30, jiangshachina [EMAIL PROTECTED]: Hi, Thanks for your reply. Unfortunately, I don't resolve the problem with your instruction. In fact, I

Re: encoding of file name?

2007-04-29 Thread jiangshachina
/encoding ... /configuration /plugin /plugins ... /build ... /project 2007/4/30, jiangshachina [EMAIL PROTECTED]: Hi, Thanks for your reply. Unfortunately, I don't resolve the problem with your instruction. In fact, I don't believe Maven use UTF-8

Re: Why the result of antrun are different?

2007-04-29 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED] wrote: Hello, I'm using Maven 2.0.4 + JDK 1.5.0 I have a web application project. When running package phase, one of the tasks was using native2ascii tool to convert some files. I take advantage of maven-ant-run plugin to do the job, the related scripts is shown

Re: Why the result of antrun are different?

2007-04-29 Thread jiangshachina
it in Linux box, soon. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: When I said LANG, I meant Language... Assuming you're on Windows, go Start, Settings, Control Panel, Regional and Language Options and compare the configuration of both machines. Wayne On 4/30/07, jiangshachina

Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED]: Hello, When using maven-antrun-plugin, I think, the main work is writing Ant task scripts. You can use the following scripts in executionconfiguration tag. tasks copy todir=path_to_JBoss_some_lib_dir overwrite=true fileset dir

Re: [m2] How to deploy all of the 3th party jars under the Jboss directory ?please.

2007-02-26 Thread jiangshachina
Hello, Deploys all jars at one time? How do you set groupId, artifactId, version for each jar file? Maven central repo(and other public remote repos) have had so many jars, I think you really can find your like. Although some of artifacts don't exist in the repos, you just deploy/install them by

Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED]: Hello, You always encountered some strange trouble :-D May other friends can help you ^_^ I'm very sorry. a cup of Java, cheers! Sha Jiang 秋秋 wrote: HI, jiagsha,Long time no see,I use the maven-antrun-plugin by the method you

Re: [m2] system scope dependency

2007-02-26 Thread jiangshachina
Hello, All of artifacts would be in repository(local or remote). That's the standard way on manipulating jars(or other artifacts) by Maven. Deploying artifacts to remote repository, then they could be shared by more guys. a cup of Java, cheers! Sha Jiang Jagan Padmanabha Pillai -X (jpadmana -

Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
10:05:54 CST 2007 [INFO] Final Memory: 3M/6M [INFO] Is there anything missed? 2007/2/27, jiangshachina [EMAIL PROTECTED]: Hi, file=D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\*.jar I think

RE: system scope dependency

2007-02-26 Thread jiangshachina
) wrote: What if the artifact doesn't have to be shared with others. Is it ok to use system scope Is there any advantage in copying to repository than storing it in clearcase and use system scope Thanks -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED

Re: [m2] maven-antrun-plugin error

2007-02-25 Thread jiangshachina
Hello, When using maven-antrun-plugin, I think, the main work is writing Ant task scripts. You can use the following scripts in executionconfiguration tag. tasks copy todir=path_to_JBoss_some_lib_dir overwrite=true fileset dir=path_to_some_lib_dir / /copy /tasks a cup of Java,

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-13 Thread jiangshachina
be downloaded from the central repository. 2007/2/13, jiangshachina [EMAIL PROTECTED]: Hello, When you use maven-antrun-plugin first time, Maven would download the plugin and its dependencies to your local repo. Did you find that? Happy Spring Festival :-) a cup of Java

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-13 Thread jiangshachina
artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin /plugins /build 2007/2/13, jiangshachina [EMAIL PROTECTED]: Hello, May the downloading wasn't completed successfully? Or please show

Re: [m2] how to run a program build with maven

2007-02-13 Thread jiangshachina
Hello, Or how do I make maven copy the jar files from the repository to somewhere I can use them? I used the approach. dependency-maven-plugin(http://mojo.codehaus.org/dependency-maven-plugin/) may help you. The plugin can copy all dependencies from the repository to a specific location.

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-13 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED]: Hi, I'm using Maven 2.0.4 + maven-antrun-plugin 1.1, all is OK. Do you use Maven 2.0.4? If can't resolve the trouble, you can download the plugin to local repo by manual, and then run mvn compile. Happy Spring Festival :-) a cup of Java, cheers! Sha

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-12 Thread jiangshachina
Hello, How can I deploy the 3th party jar in the directory %JBOSS_HOME%server\ProjectName\lib ? I think maven-antrun-plugin may help you, http://maven.apache.org/plugins/maven-antrun-plugin/ copies specific jars to specific directory. a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi,

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-12 Thread jiangshachina
, jiangsha,can you give me the exact url of the subject about copies specific jars to specific directory?I can't find it to link to http://maven.apache.org/plugins/maven-antrun-plugin/. 2007/2/13, jiangshachina [EMAIL PROTECTED]: Hello, How can I deploy the 3th party jar in the directory

Re: [m2] How to deploy a war which is not includes directory WEB-INF/lib?

2007-02-12 Thread jiangshachina
for a project .. It seems like maven can't find the plugin of antrun. 2007/2/13, jiangshachina [EMAIL PROTECTED]: Hello, The following scripts may can help you, build plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: [m2] install-file createChecksum does not work

2007-02-09 Thread jiangshachina
=truemode=hidesorter/order=DESCsorter/field=priorityresolution=-1pid=11136fixfor=12256 jiangshachina wrote: Hello, I have the same problem. I'm using Maven2.0.4 and the version of my maven-install-plugin is 2.1. Factly, if I deploy an artifact to remote repository, the checksum files

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-08 Thread jiangshachina
Hi Maria Odea Ching-2, I think the two plugins are used by command mvn install:install-file or mvn deploy:deploy-file exactly. a cup of Java, cheers! Sha Jiang Maria Odea Ching-2 wrote: Hi Sam, You can use the maven-install-plugin (install:install-file goal) to install a 3rd party jar

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-08 Thread jiangshachina
can browser them at http://www.blogjava.net/jiangshachina Good Luck! a cup of Java, cheers! Sha Jiang 秋秋 wrote: HI, jiangsha,I am from shenzhen,It is a pleasure to meet you! 2007/2/8, jiangshachina [EMAIL PROTECTED]: Hello 秋秋, where are you from ? I'm from Beijing, China

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-08 Thread jiangshachina
, jiangshachina [EMAIL PROTECTED]: Hi Maria Odea Ching-2, I think the two plugins are used by command mvn install:install-file or mvn deploy:deploy-file exactly. a cup of Java, cheers! Sha Jiang Maria Odea Ching-2 wrote: Hi Sam, You can use the maven-install-plugin (install:install-file

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-08 Thread jiangshachina
blog,I also want to publish my doc about maven on my blog ,but I don't have time . thanks! 2007/2/8, jiangshachina [EMAIL PROTECTED]: Dear 秋秋, Glad to see you! In my memory, you sent a mail to me about Maven several days ago. I'm a newbie user on Maven, too. we may discuss some matters

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-08 Thread jiangshachina
and war,so,It seems like few fisk. so, what's your opinion? 2007/2/8, jiangshachina [EMAIL PROTECTED]: Hi, I have studied maven for three week, Because our company is going to use maven to manage the project in the next project. I think your company and you should evaluate Maven carefully

Re: What plugin does the package life sycle use?

2007-02-08 Thread jiangshachina
Hello, What plugin does the package life sycle use? That depends on which package do you make. jar -- maven-jar-plugin war -- maven-war-plugin ear -- maven-war-plugin ... You can find main Maven plugins at the following site, http://maven.apache.org/plugins/ a cup of Java, cheers! Sha Jiang

Re: install-file createChecksum does not work

2007-02-08 Thread jiangshachina
Hello, I have the same problem. I'm using Maven2.0.4 and the version of my maven-install-plugin is 2.1. Factly, if I deploy an artifact to remote repository, the checksum files will be created and stored at remote repository. But the checksum files still don't exist in local repository. What's

Re: What plugin does the package life sycle use?

2007-02-08 Thread jiangshachina
Sorry, I made a mistake ear -- maven-war-plugin the upper words must be changed to ear -- maven-ear-plugin. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, What plugin does the package life sycle use? That depends on which package do you make. jar -- maven-jar-plugin

Re: Can't deploy site,Help please.

2007-02-07 Thread jiangshachina
and run command mvn deploy. Maven indicated me to login remote machine via [EMAIL PROTECTED], but there isn't the user in remote machine, factly, Administrator is my current user in local machine. Absolutely, the authentication would be failed. a cup of Java, cheers! Sha Jiang jiangshachina wrote

Re: Can't deploy site,Help please.

2007-02-07 Thread jiangshachina
Hi, OK, I get it! Thanks very much! a cup of Java, cheers! Sha Jiang Markku Saarela wrote: Hi, You configure authentication in settings.xml. Look here for details: http://maven.apache.org/settings.html#Servers rgds, markku jiangshachina wrote: Hello, I tried to deploy

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-07 Thread jiangshachina
Hello, Some guides are available at Maven main site, [1]installing 3rd party JARs http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html [2]deploying 3rd party JARs http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html a cup of Java, cheers! Sha Jiang 秋秋 wrote:

Re: additional classpath to maven2

2007-02-07 Thread jiangshachina
Hi, I ever used maven:maven-dependency-plugin, but it didin't work and even had other trouble. mojo.codehaus.org:dependency-maven-plugin may work well. a cup of Java, cheers! Sha Jiang franz see wrote: Good day, Try using maven-dependency plugn ( or codehaus' dependency-maven-plugin )

RE: additional classpath to maven2

2007-02-07 Thread jiangshachina
repository. a cup of Java, cheers! Sha Jiang Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) wrote: Once jars are copied to a specific directory, how can I add that folder to the classpath ? -Jagan -Original Message- From: jiangshachina [mailto:[EMAIL

Re: Removing version id from war artifacts

2007-02-07 Thread jiangshachina
Hello uma_rk, You can set a finalName for the project, for example as the following, project build finalNamemyapp/finalName build /project a cup of Java, cheers! Sha Jiang uma_rk wrote: My war artifact is generated as myapp-1.0-SNAPSHOT.war. However, I need this deployed as

Re: How to deploy the jar of third party into the repository on our company's server?

2007-02-07 Thread jiangshachina
Hello 秋秋, where are you from ? I'm from Beijing, China. It looks like we come from the same place. I think so *_* a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, thanks,where are you from ?It looks like we come from the same place. 2007/2/8, jiangshachina [EMAIL PROTECTED

Re: Can't deploy site,Help please.

2007-02-06 Thread jiangshachina
Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path/to/deployment/dir*, * thanks. 2007/2/6, Tim Kettler

Re: Can't deploy site,Help please.

2007-02-06 Thread jiangshachina
jiangshachina wrote: Hello, I have solved the issue by used file:///path/to/deployment/dir file protocol just deploys to a local path, doesn't it? a cup of Java, cheers! Sha Jiang 秋秋 wrote: Hi, yes,I have solved the issue by used file:///path

Re: Eclipse throwed the error when runed compile

2007-01-16 Thread jiangshachina
Hello, May the plugin isn't compatible with Eclipse 3.2.1. In my mind, org.maven.ide.eclipse:0.0.9 has been released for a long time. a cup of Java, cheers! Sha Jiang fy wrote: Hi, My project develope with Eclipse:3.2.1 , maven:2.0.4 and org.maven.ide.eclipse:0.0.9. Eclipse throwed the

[M2]Why don't create checkSum?

2006-12-29 Thread jiangshachina
Hi guys, I want to install a jar(db4o for java5) to local repository, and pom and checkSum files would be generated. I followed the instruction http://maven.apache.org/plugins/maven-install-plugin/examples/installing-checksums.html and used the following command install:install-file

Re: [M2]Why don't create checkSum?

2006-12-29 Thread jiangshachina
Hello, Additionally, I find that all of checkSum files in central repository are sha1. If I want md5, how to get it? Thanks! a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi guys, I want to install a jar(db4o for java5) to local repository, and pom and checkSum files would

Re: Super POM

2006-12-28 Thread jiangshachina
/resources/org/apache/maven/project/pom-4.0.0.xml [2] http://maven.apache.org/guides/introduction/introduction-to-the-pom.html jiangshachina wrote: Hi Wayne, but you can find it if you search the Maven jars. I'll do. But you shouldn't extract the file, edit, and add it back to the jar

Re: Super POM

2006-12-24 Thread jiangshachina
Hi Wayne, I really don't understand your words. If Super POM doesn't exist in my machine as a real and independent file, then it may be built by source codes as a concept. Does it means that if the concept of Super POM is changed, then the source of Maven would be changed, too? I cannot imagine

Re: Super POM

2006-12-24 Thread jiangshachina
shouldn't extract the file, edit, and add it back to the jar; instead just write your configuration etc in your own local project pom.xml file. Wayne On 12/24/06, jiangshachina [EMAIL PROTECTED] wrote: Hi Wayne, I really don't understand your words. If Super POM doesn't exist in my machine

RE: sets repository in settings.xml?

2006-12-23 Thread jiangshachina
... -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 4:46 AM To: users@maven.apache.org Subject: sets repository in settings.xml? Hi guys, Can I set a third-part repository in settings.xml? Then I can use it as a global repository

Re: sets repository in settings.xml?

2006-12-23 Thread jiangshachina
Well, thanks! a cup of Java, cheers! Sha Jiang mylene wrote: Hi, In maven1 you can set -Dmaven.repo.remote (not very surprising). In maven2 AFAIK you have to set it in the POM. Mylene On 12/23/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, Thanks for the reply. I know

Re: Transitive Dependencies

2006-12-12 Thread jiangshachina
Hello, I encountered the trouble, too. But my solution was installing jta-1.0.1B by manual. If you don't want to depend on jta when you use hibernate as dependency, you may try the following scripts, dependency groupIdorg.hibernate/groupId artifactIdhibernate/artifactId

Re: delete a directory by maven-antrun-plugin?

2006-12-05 Thread jiangshachina
Currently, I delete the directory via command rm -rf the_directory. But I'll search the problem continuously. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Dear Wayne, As your said, the trouble is very strange. I created a build.xml, project basedir=. default=delete

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
Hi, In fact, I need to delete some directories after checkout one module from CVS. and it seems that I cannot checkout several modules in one pom, then I made the idea. a cup of Java, cheers! Sha Jiang jiangshachina wrote: I just want to delete directory, the work isn't related to compile

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
/06, jiangshachina [EMAIL PROTECTED] wrote: Hi, In fact, I need to delete some directories after checkout one module from CVS. and it seems that I cannot checkout several modules in one pom, then I made the idea. a cup of Java, cheers! Sha Jiang jiangshachina wrote: I just want

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
* the files inside of a directory, not the directories themselves. To get it ot delete the directories, you need to: delete dir=the_directory includeemptydirs=true/ Thanks, Ryan Slobojan -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Sunday, December 03

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
! Sha Jiang Wayne Fay wrote: Add an -X ie mvn -X scm:checkout antrun:run to get more information while Maven is running. Wayne On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote: Hello Ryan, Really, I didn't create a right Ant statements. But my trouble isn't related to Ant scripts

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
that antrun isn't running in the folder that you think it is, so you have to specify an absolute path. In case you're wondering, ${project.build.directory} points at [project]\target. Thanks, Ryan Slobojan -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Sun 12/3

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina
On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote: Hello, Now, I used absolute path, but the result wasn't changed :( I just run mvn antrun:run [INFO] [antrun:run] [INFO] Executing task [INFO] Executed tasks a cup of Java, cheers! Sha Jiang Ryan Slobojan wrote: Hi Sha, It appears

Re: adds same artifacts(different version)?

2006-12-02 Thread jiangshachina
trace through the debug logs. Cheers, Franz jiangshachina wrote: Hi, I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar

checkout from several modules?

2006-12-02 Thread jiangshachina
Hi guys, I'm using the following scripts for checkouting from CVS, scm connection scm:cvs:pserver:user:[EMAIL PROTECTED]:port:repository:module /connection /scm then I run mvn scm:checkout. But the approach only checkouts one module. Now I want to checkout several ones? How can I

delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina
Hello, I want to delete a directory by maven-antrun-plugin, I'm using the scripts below, plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution

Re: delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina
Hello dan, Exactly, I don't know which phase would be bined :( I used idinitialize/id phaseinitialize/phase but the result was the same. a cup of Java, cheers! Sha Jiang dan tran wrote: You may want to bind your antrun execution to a phase. -D On 12/2/06, jiangshachina [EMAIL

Re: delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina
I just want to delete directory, the work isn't related to compile, package, or others. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello dan, Exactly, I don't know which phase would be bined :( I used idinitialize/id phaseinitialize/phase but the result was the same

Re: adds same artifacts(different version)?

2006-11-30 Thread jiangshachina
agony :( a cup of Java, cheers! Sha Jiang Wayne Fay wrote: You can certainly use warSourceExcludes but I was actually suggesting that you use the /dependencies/dependency/exclusions/exclusion node. This is how I handle these types of issues. Wayne On 11/30/06, jiangshachina [EMAIL

Re: adds same artifacts(different version)?

2006-11-30 Thread jiangshachina
Hello Andrius, Thanks your help very much! Now, I find that I made a mistake in my last post. I really misunderstood Wayne's instructions. I'll try the approach. a cup of Java, cheers! Sha Jiang Andrius Šabanas wrote: jiangshachina wrote: Dear Wayne, I also wish to use the approach you

Re: deploy sources

2006-11-29 Thread jiangshachina
Hi, The following link may help you, http://www.nabble.com/Re%3A-mvn-install-with-sources--p5178508s177.html a cup of Java, cheers! Sha Jiang Roald Bankras wrote: Hi Can anyone point me to a description on how to install/deploy the sources-jar to my repositories Thx Roald

adds same artifacts(different version)?

2006-11-29 Thread jiangshachina
Hi, I have a Web project. I declare ehcache-1.2.3.jar as dependency. But ehcache-1.1.jar is transitive dependency of one of my directly dependency(acegi-security-1.0.2.jar). Then I run mvn clean package, the two jar files are all in WEB-INF/lib. How to resolve the problem? More strangely, I

Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina
artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency May there are many similar cases, how can I cancel the trouble? Thanks in advance! a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: I have

Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina
Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, You are right

Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina
of Java, cheers! Sha Jiang jiangshachina wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache/artifactId version1.1/version optionaltrue/optional /dependency a cup of Java, cheers

Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina
files. Then when you simply refer to acegi, it will pull in the newer ehcache directly. Wayne On 11/29/06, jiangshachina [EMAIL PROTECTED] wrote: Oh, Sorry, I made a mistake, acegi-security-parent declaration is the following dependency groupIdehcache/groupId artifactIdehcache

RE: How to do native2ascii?

2006-11-28 Thread jiangshachina
/goals /execution /executions I really didn't understand Maven build life cycle and corresponding phases. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, Now I have another troubles. executions execution idcompile/id

How to do native2ascii?

2006-11-27 Thread jiangshachina
Hi guys, I must write some resource files related to localization. On develop time, I have to write natural local language; on runtime, application must use ASCII codes. So I have to convert the native resource files to ASCII files before deploying. Now, I use maven-antrun-plugin to execute Ant

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
, strub --- jiangshachina [EMAIL PROTECTED] schrieb: Hi guys, I must write some resource files related to localization. On develop time, I have to write natural local language; on runtime, application must use ASCII codes. So I have to convert the native resource files to ASCII files

Re: How to do native2ascii?

2006-11-27 Thread jiangshachina
Hi, It's in buildpluginsplugindependency/dependencyplugin/plugins/build. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: Did you put the dependency node inside plugin, as suggested, or just directly to the project? Wayne On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote: Hi

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
/artifactId version1.6.5/version scoperuntime/scope /dependency lg, strub --- jiangshachina [EMAIL PROTECTED] schrieb: Hi struberg, Thanks for your help. I had a try with your instructions, but didn't get good result. The following is my snippet of scripts dependency

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
existed, the resource files were in right format. [2]${project.build.finalName}.jar also existed, but the resource files were in wrong format. Chinese characters weren't converted to Unicode. May I designed a wrong work flow on the converting? a cup of Java, cheers! Sha Jiang jiangshachina wrote

Re: Why reported need class or interface?

2006-11-26 Thread jiangshachina
ISO8895-1 to UTF-8? Or Maven just regards the file as UTF-8 encoding, and regardless of whether it's real UTF-8 encoding? a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi, Additionally, Maven can do some thing, likes native2ascii.exe do that? I must write some resource files related

Warnning on org.apache.axis2:axis2-kernel:pom:1.1?

2006-11-26 Thread jiangshachina
Hello, I used axis2-kernel-1.1.jar as dependency, but had the following warning, POM for 'org.apache.axis2:axis2-kernel:pom:1.1:compile' is invalid. It will be ignored for artifact resolution. Reason: Failed to validate POM It seems that its POM is wrong, but I didn't find the error. a cup of

Re: Warnning on org.apache.axis2:axis2-kernel:pom:1.1?

2006-11-26 Thread jiangshachina
Hi Jochen, Thanks for your valuable instructions. a cup of Java, cheers! Sha Jiang Jochen Wiedmann wrote: On 11/26/06, jiangshachina [EMAIL PROTECTED] wrote: I used axis2-kernel-1.1.jar as dependency, but had the following warning, POM for 'org.apache.axis2:axis2-kernel:pom:1.1:compile

Re: Don't add dependency?

2006-11-26 Thread jiangshachina
dependencyManagement, and I wonder if that's where you're making the changes that don't seem to take effect. Yes, I used dependencyManagement originally. But now, I only use dependency, there is no dependencyManagement. a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/25/06, jiangshachina

Re: Don't add dependency?

2006-11-26 Thread jiangshachina
. There's no ambiguous relationship, and both of jta-1.0.1B.jar and servlet-api-2.4.jar(not 2.3) are in WEB-INF/lib and Eclipse .classpath file. Can one POM extend multi-POMs? In my test, that is forbidden. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Wendy, Correct. Optional

Re: How to continuous integrate Maven2 projects?

2006-11-25 Thread jiangshachina
Hi, not why you sent it twice within an hour In fact, the mail list reported me that the post wasn't accepted by [EMAIL PROTECTED] Then I resent it. best to ping cruise control list. I have done. a cup of Java, cheers! Sha Jiang Gisbert Amm-3 wrote: Dan Tran schrieb: not why you

Re: Why reported need class or interface?

2006-11-25 Thread jiangshachina
before deploying. I wish Maven can help me with the matter, or I have to use an Ant scripts(invoke native2ascii.exe) to fulfill the requirement. Although Maven can invoke Ant scripts, I think that's not the best. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hello, I used javac

RE: Don't add dependency?

2006-11-25 Thread jiangshachina
in advance! a cup of Java, cheers! Sha Jiang Jörg Schaible wrote: jiangshachina wrote on Wednesday, November 22, 2006 2:38 AM: Hi guys, I found the key. In management-1.0.pom, I excludes jta from hibernate dependency. At beginning, I didn't use jta-1.0.1B, but j2ee-1.4.jar, because jta

Re: Don't add dependency?

2006-11-25 Thread jiangshachina
? Maven how to pick up dependencies? What's the regular for choosing version? Lower or higher? According to the my casees above, it seems that Maven likes the lower one? a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/25/06, jiangshachina [EMAIL PROTECTED] wrote: For example

Re: Don't add dependency?

2006-11-25 Thread jiangshachina
was OK. It sounds that the relation was very clean and simple. But now, why I have to encounter so ambiguous relationship?! The trouble is veryveryvery trouble :( a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: On 11/25/06, jiangshachina [EMAIL PROTECTED] wrote: For example

Re: Nullpointer-Exception addPlugin

2006-11-24 Thread jiangshachina
Dear Wayne, I had the same error. With your hint, I removed some artifacts carefully and gradually. Finally found that plugin maven:maven-dependency-plugin:1.0 caused the matter. Deleting the plugin would be OK. Additionally, if I don't specify plugin in POM, and run mvn

Why reported need class or interface?

2006-11-24 Thread jiangshachina
Hi guys, I have Web project. In Eclipse 3.2 environment, all is OK. But when I run mvn compile, Maven reported some classes need class or interface! I checked the classes, all of they implements java.io.Serializable, but the interface is in core of JDK! Maven and Eclipse use the same JDK/JRE.

Re: Why reported need class or interface?

2006-11-24 Thread jiangshachina
jiangshachina wrote: Hi guys, I have Web project. In Eclipse 3.2 environment, all is OK. But when I run mvn compile, Maven reported some classes need class or interface! I checked the classes, all of they implements java.io.Serializable, but the interface is in core of JDK! Maven and Eclipse use

Download from central or mine?

2006-11-23 Thread jiangshachina
Hi guys, I made my local repository to remote shared repository with JBoss. My local repository has many artifacts from central repository. Then I specified another local repository for my Maven-2.0.4. I set following scripts to pom.xml of my project. repositories repository

RE: Don't add dependency?

2006-11-22 Thread jiangshachina
Hi Jörg, Thanks very much! You released one of my agony. a cup of Java, cheers! Sha Jiang Jörg Schaible wrote: jiangshachina wrote on Wednesday, November 22, 2006 2:38 AM: Hi guys, I found the key. In management-1.0.pom, I excludes jta from hibernate dependency. At beginning, I

How to ci Maven2 projects?

2006-11-22 Thread jiangshachina
Hi guys, I'm using CruiseControl 2.5 to continuous integrate Maven2 projects. I'm blocked by the strategy of continuous integration. For example, I have a Web application project and a pom.xml. The POM has set scm element and maven-scm-plugin for CVS. I set the following scripts to CC

Re: Don't add dependency?

2006-11-21 Thread jiangshachina
it. Serval days later, I wanted to use jta directly and installed jta-1.0.1B.jar by manual. Unfortunately, I didn't remove the statements of excluding. According to the case, it seems that excluding scripts have higher priority. a cup of Java, cheers! Sha Jiang jiangshachina wrote: Hi Dawn

Don't add dependency?

2006-11-21 Thread jiangshachina
Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but

Re: Don't add dependency?

2006-11-21 Thread jiangshachina
show us a snippet of your pom.xml. Thanks, Dawn jiangshachina wrote: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I

  1   2   3   >