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 in advance!
 
 a cup of Java, cheers!
 Sha Jiang
 
 The Changelog plugin will generate a report on SCM changes:
 
http://maven.apache.org/plugins/maven-changelog-plugin/
 
 -- 
 Dennis Lundberg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/SCM-report--tf3843982s177.html#a10888646
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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: 
http://www.nabble.com/SCM-report--tf3843982s177.html#a10885779
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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: 
http://www.nabble.com/currentpage-removed-from-central-repo--tf3825877s177.html#a10830771
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 meaning at that time.
 
 Assuming you're on Windows, go
 Start, Settings, Control Panel, Regional and Language Options and
 compare the configuration of both machines.
 Does Maven related with OS so closely?
 I'll test 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 [EMAIL PROTECTED] wrote:

 Hi Wayne,
 Thanks for your help.
 I compared the two set output, but didn't find any interesting thing.
 MAVEN_HOME, JAVA_HOME, even ANT_HOME, all of which show that
 the two system are using the same Maven, JDK and Ant
 (In my mind, Ant isn't related to maven-antrun-plugin).

  I'd assume you've got some LANG differences
  or something like that going on.
 What's the LANG differences?

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  Type set on both machines.
  Compare the output.
  I'd assume you've got some LANG differences or something like that
 going
  on.
 
  Wayne
 
  On 4/29/07, 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 as follows,
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
  executions
 execution
 idcompile/id
 phasegenerate-resources/phase
 configuration
 tasks
 native2ascii encoding=UTF8
 src=src/java
  dest=target/classes

 includes=**/*zh_CN.properties /
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
  /executions
 
  Firstly, I finished whole work in one machine, the operation system
 is
  Windows 2000.
  When I package the project, all is OK.
  Then I copied the same project, same repository and same Maven
 version to
  another machine,
  the operation system is Windows XP.
  In the new environment, the antrun task didn't work well when I
 package
  the
  project with same command.
  Exactly, maven-antrun-plugin didn't convert any file with
  native2ascii!?
 
  I add -X in my command, and respectively package war file in the
 two
  environment.
  [1]The debug result in old environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [native2ascii] Converting 17 files from ...\src\java to
  ...\target\classes
  [INFO] Executed tasks
 
  [2]The debug result in new environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [INFO] Executed tasks
 
  According the debug information, I didn't get any reason on the
 matter
  :-(
  Anybody can help me?
  Thanks in advance!
  --
  View this message in context:
 
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248624
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10249252
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: encoding of file name?

2007-04-30 Thread jiangshachina

Hello,
I made some test with Linux -- Red Hat AS 4.0.
[1]I set system language to zh_CN.UTF-8,
then I created a text file which name included Chinese characters.
I run mvn package to make war file, and finished successfully.
I unzipped the war file and found that the specific file's name was shown
normally.

[2]I set system language to zh_CN.GBK,
I also created a text file which name included Chinese characters.
I run mvn package to make war file, and finished successfully, too.
I unzipped the war file and found that the specific file's name was not
shown normally.
It meant that the Chinese characters wasn't in GBK encoding.

[3]I made system return to zh_CN.UTF-8 language.
I checked the name of the war file which created by step 2,
the name was pretty in right format.
It meant that the Chinese characters was in UTF-8 encoding.

From the tests, I'm sure that Maven uses UTF-8 to make 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 occurred at packaging.
 
 
 sam-98 wrote:
 
  encodingGBK/encoding
 
 
 2007/4/30, sam [EMAIL PROTECTED]:

 Hi,
 why don't you try to set the maven-resources-plugin's encoding
 property like this:
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 configuration
   ...
   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 don't believe Maven use UTF-8 as default encoding,
  I think Maven must use native encoding as its default.
 
  I ever set encoding UTF-8 to maven-resources-plugin,
  but yesterday I removed the setting.
  And surely that there isn't any encoding setting in my any POM, now.
  But Maven still manipulate my files with UTF-8?!
  I'm so puzzled by the trouble :-(
 
  Happy a new holiday!
 
  a cup of Java, cheers!
  Sha Jiang
 
 
  秋秋 wrote:
  
   hi,
 long time no see,I have not meet the trouble like yours,but I have
 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 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 encoding to deal with
 the
 
   file
   names,
   because I got right result if the files were in a Linux system with
   zh_CN.UTF-8.
   But the default encoding of my operation system is GBK.
   And I didn't set any non-default encoding to
 maven-resources-plugin.
   How to cancel the trouble?
  
   Thanks in advance!
  
   a cup of Java, cheers!
   Sha Jiang
   --
   View this message in context:
  
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
   Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247086
  Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10249597
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Why the result of antrun are different?

2007-04-30 Thread jiangshachina

Hi,
 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.
From the test, it means that the trouble is due to system environment.
But I cannot imagine why maven-antrun-plugin isn't independent to OS,
I 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 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 meaning at that time.
 
 Assuming you're on Windows, go
 Start, Settings, Control Panel, Regional and Language Options and
 compare the configuration of both machines.
 Does Maven related with OS so closely?
 I'll test 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 [EMAIL PROTECTED] wrote:

 Hi Wayne,
 Thanks for your help.
 I compared the two set output, but didn't find any interesting thing.
 MAVEN_HOME, JAVA_HOME, even ANT_HOME, all of which show that
 the two system are using the same Maven, JDK and Ant
 (In my mind, Ant isn't related to maven-antrun-plugin).

  I'd assume you've got some LANG differences
  or something like that going on.
 What's the LANG differences?

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  Type set on both machines.
  Compare the output.
  I'd assume you've got some LANG differences or something like that
 going
  on.
 
  Wayne
 
  On 4/29/07, 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 as follows,
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
  executions
 execution
 idcompile/id
 phasegenerate-resources/phase
 configuration
 tasks
 native2ascii encoding=UTF8
 src=src/java
  dest=target/classes

 includes=**/*zh_CN.properties /
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
  /executions
 
  Firstly, I finished whole work in one machine, the operation system
 is
  Windows 2000.
  When I package the project, all is OK.
  Then I copied the same project, same repository and same Maven
 version to
  another machine,
  the operation system is Windows XP.
  In the new environment, the antrun task didn't work well when I
 package
  the
  project with same command.
  Exactly, maven-antrun-plugin didn't convert any file with
  native2ascii!?
 
  I add -X in my command, and respectively package war file in the
 two
  environment.
  [1]The debug result in old environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [native2ascii] Converting 17 files from ...\src\java to
  ...\target\classes
  [INFO] Executed tasks
 
  [2]The debug result in new environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [INFO] Executed tasks
 
  According the debug information, I didn't get any reason on the
 matter
  :-(
  Anybody can help me?
  Thanks in advance!
  --
  View this message in context:
 
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248624
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 -
 To unsubscribe, e

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 system language to zh_CN.UTF-8,
 then I created a text file which name included Chinese characters.
 I run mvn package to make war file, and finished successfully.
 I unzipped the war file and found that the specific file's name was shown
 normally.
 
 [2]I set system language to zh_CN.GBK,
 I also created a text file which name included Chinese characters.
 I run mvn package to make war file, and finished successfully, too.
 I unzipped the war file and found that the specific file's name was not
 shown normally.
 It meant that the Chinese characters wasn't in GBK encoding.
 
 [3]I made system return to zh_CN.UTF-8 language.
 I checked the name of the war file which created by step 2,
 the name was pretty in right format.
 It meant that the Chinese characters was in UTF-8 encoding.
 
 From the tests, I'm sure that Maven uses UTF-8 to make 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 occurred at packaging.
 
 
 sam-98 wrote:
 
  encodingGBK/encoding
 
 
 2007/4/30, sam [EMAIL PROTECTED]:

 Hi,
 why don't you try to set the maven-resources-plugin's encoding
 property like this:
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 configuration
   ...
   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 don't believe Maven use UTF-8 as default encoding,
  I think Maven must use native encoding as its default.
 
  I ever set encoding UTF-8 to maven-resources-plugin,
  but yesterday I removed the setting.
  And surely that there isn't any encoding setting in my any POM, now.
  But Maven still manipulate my files with UTF-8?!
  I'm so puzzled by the trouble :-(
 
  Happy a new holiday!
 
  a cup of Java, cheers!
  Sha Jiang
 
 
  秋秋 wrote:
  
   hi,
 long time no see,I have not meet the trouble like yours,but I
 have 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 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 encoding to deal with
 the
 
   file
   names,
   because I got right result if the files were in a Linux system
 with
   zh_CN.UTF-8.
   But the default encoding of my operation system is GBK.
   And I didn't set any non-default encoding to
 maven-resources-plugin.
   How to cancel the trouble?
  
   Thanks in advance!
  
   a cup of Java, cheers!
   Sha Jiang
   --
   View this message in context:
  
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
   Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247086
  Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10264293
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 encoding to deal with the file
names,
because I got right result if the files were in a Linux system with
zh_CN.UTF-8.
But the default encoding of my operation system is GBK.
And I didn't set any non-default encoding to maven-resources-plugin.
How to cancel the trouble?

Thanks in advance!

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: encoding of file name?

2007-04-29 Thread jiangshachina

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 as default encoding,
I think Maven must use native encoding as its default.

I ever set encoding UTF-8 to maven-resources-plugin,
but yesterday I removed the setting.
And surely that there isn't any encoding setting in my any POM, now.
But Maven still manipulate my files with UTF-8?!
I'm so puzzled by the trouble :-(

Happy a new holiday!

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 hi,
   long time no see,I have not meet the trouble like yours,but I have 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 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 encoding to deal with the
 file
 names,
 because I got right result if the files were in a Linux system with
 zh_CN.UTF-8.
 But the default encoding of my operation system is GBK.
 And I didn't set any non-default encoding to maven-resources-plugin.
 How to cancel the trouble?

 Thanks in advance!

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247086
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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,
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
native2ascii encoding=UTF8
src=src/java dest=target/classes
includes=**/*zh_CN.properties /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions

Firstly, I finished whole work in one machine, the operation system is
Windows 2000.
When I package the project, all is OK.
Then I copied the same project, same repository and same Maven version to
another machine,
the operation system is Windows XP.
In the new environment, the antrun task didn't work well when I package the
project with same command.
Exactly, maven-antrun-plugin didn't convert any file with native2ascii!?

I add -X in my command, and respectively package war file in the two
environment.
[1]The debug result in old environment,
[INFO] Executing tasks
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[native2ascii] Converting 17 files from ...\src\java to ...\target\classes
[INFO] Executed tasks

[2]The debug result in new environment,
[INFO] Executing tasks
[DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
[INFO] Executed tasks

According the debug information, I didn't get any reason on the matter :-(
Anybody can help me?
Thanks in advance!
-- 
View this message in context: 
http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: encoding of file name?

2007-04-29 Thread jiangshachina

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 occurred at packaging.


sam-98 wrote:
 
  encodingGBK/encoding
 
 
 2007/4/30, sam [EMAIL PROTECTED]:

 Hi,
 why don't you try to set the maven-resources-plugin's encoding
 property like this:
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 configuration
   ...
   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 don't believe Maven use UTF-8 as default encoding,
  I think Maven must use native encoding as its default.
 
  I ever set encoding UTF-8 to maven-resources-plugin,
  but yesterday I removed the setting.
  And surely that there isn't any encoding setting in my any POM, now.
  But Maven still manipulate my files with UTF-8?!
  I'm so puzzled by the trouble :-(
 
  Happy a new holiday!
 
  a cup of Java, cheers!
  Sha Jiang
 
 
  秋秋 wrote:
  
   hi,
 long time no see,I have not meet the trouble like yours,but I have
 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 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 encoding to deal with
 the
 
   file
   names,
   because I got right result if the files were in a Linux system with
   zh_CN.UTF-8.
   But the default encoding of my operation system is GBK.
   And I didn't set any non-default encoding to maven-resources-plugin.
   How to cancel the trouble?
  
   Thanks in advance!
  
   a cup of Java, cheers!
   Sha Jiang
   --
   View this message in context:
  
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
   Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247086
  Sent from the Maven - Users mailing list archive at
 Nabble.comhttp://nabble.com/
  .
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247861
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: encoding of file name?

2007-04-29 Thread jiangshachina

Hi,
I think the problem isn't related to maven-resources-plugin.
The plugin just copy project resources to the output directory.
Since my files in exploed pakcage were well,
then I think maven-resources-plugin had worked well.

a cup of Java, cheers!
Sha Jiang


sam-98 wrote:
 
 Hi,
 why don't you try to set the maven-resources-plugin's encoding
 property
 like this:
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-resources-plugin/artifactId
 configuration
   ...
   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 don't believe Maven use UTF-8 as default encoding,
 I think Maven must use native encoding as its default.

 I ever set encoding UTF-8 to maven-resources-plugin,
 but yesterday I removed the setting.
 And surely that there isn't any encoding setting in my any POM, now.
 But Maven still manipulate my files with UTF-8?!
 I'm so puzzled by the trouble :-(

 Happy a new holiday!

 a cup of Java, cheers!
 Sha Jiang


 秋秋 wrote:
 
  hi,
long time no see,I have not meet the trouble like yours,but I have 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 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 encoding to deal with the
  file
  names,
  because I got right result if the files were in a Linux system with
  zh_CN.UTF-8.
  But the default encoding of my operation system is GBK.
  And I didn't set any non-default encoding to maven-resources-plugin.
  How to cancel the trouble?
 
  Thanks in advance!
 
  a cup of Java, cheers!
  Sha Jiang
  --
  View this message in context:
 
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10240267
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247086
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/encoding-of-file-name--tf3664927s177.html#a10247899
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Why the result of antrun are different?

2007-04-29 Thread jiangshachina

Hi Wayne,
Thanks for your help.
I compared the two set output, but didn't find any interesting thing.
MAVEN_HOME, JAVA_HOME, even ANT_HOME, all of which show that
the two system are using the same Maven, JDK and Ant
(In my mind, Ant isn't related to maven-antrun-plugin).

 I'd assume you've got some LANG differences
 or something like that going on.
What's the LANG differences?

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 Type set on both machines.
 Compare the output.
 I'd assume you've got some LANG differences or something like that going
 on.
 
 Wayne
 
 On 4/29/07, 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 as follows,
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
native2ascii encoding=UTF8
src=src/java
 dest=target/classes
includes=**/*zh_CN.properties /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
 /executions

 Firstly, I finished whole work in one machine, the operation system is
 Windows 2000.
 When I package the project, all is OK.
 Then I copied the same project, same repository and same Maven version to
 another machine,
 the operation system is Windows XP.
 In the new environment, the antrun task didn't work well when I package
 the
 project with same command.
 Exactly, maven-antrun-plugin didn't convert any file with
 native2ascii!?

 I add -X in my command, and respectively package war file in the two
 environment.
 [1]The debug result in old environment,
 [INFO] Executing tasks
 [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
 [native2ascii] Converting 17 files from ...\src\java to
 ...\target\classes
 [INFO] Executed tasks

 [2]The debug result in new environment,
 [INFO] Executing tasks
 [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
 [INFO] Executed tasks

 According the debug information, I didn't get any reason on the matter
 :-(
 Anybody can help me?
 Thanks in advance!
 --
 View this message in context:
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248624
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Why the result of antrun are different?

2007-04-29 Thread jiangshachina

Hi,
 When I said LANG, I meant Language
I see, but I didn't know what's concreted meaning at that time.

 Assuming you're on Windows, go
 Start, Settings, Control Panel, Regional and Language Options and
 compare the configuration of both machines.
Does Maven related with OS so closely?
I'll test 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 [EMAIL PROTECTED] wrote:

 Hi Wayne,
 Thanks for your help.
 I compared the two set output, but didn't find any interesting thing.
 MAVEN_HOME, JAVA_HOME, even ANT_HOME, all of which show that
 the two system are using the same Maven, JDK and Ant
 (In my mind, Ant isn't related to maven-antrun-plugin).

  I'd assume you've got some LANG differences
  or something like that going on.
 What's the LANG differences?

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  Type set on both machines.
  Compare the output.
  I'd assume you've got some LANG differences or something like that
 going
  on.
 
  Wayne
 
  On 4/29/07, 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 as follows,
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  version1.1/version
  executions
 execution
 idcompile/id
 phasegenerate-resources/phase
 configuration
 tasks
 native2ascii encoding=UTF8
 src=src/java
  dest=target/classes
 includes=**/*zh_CN.properties
 /
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
  /executions
 
  Firstly, I finished whole work in one machine, the operation system is
  Windows 2000.
  When I package the project, all is OK.
  Then I copied the same project, same repository and same Maven version
 to
  another machine,
  the operation system is Windows XP.
  In the new environment, the antrun task didn't work well when I
 package
  the
  project with same command.
  Exactly, maven-antrun-plugin didn't convert any file with
  native2ascii!?
 
  I add -X in my command, and respectively package war file in the two
  environment.
  [1]The debug result in old environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [native2ascii] Converting 17 files from ...\src\java to
  ...\target\classes
  [INFO] Executed tasks
 
  [2]The debug result in new environment,
  [INFO] Executing tasks
  [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
  [INFO] Executed tasks
 
  According the debug information, I didn't get any reason on the matter
  :-(
  Anybody can help me?
  Thanks in advance!
  --
  View this message in context:
 
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10247612
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248624
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Why-the-result-of-antrun-are-different--tf3667529s177.html#a10248863
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
 '
 org.apache.maven.plugins:maven-antrun-plugin'
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:538)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
 (DefaultLifecycleExecutor.java:475)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:454)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
 (DefaultLifecycleExecutor.java:306)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:140)
  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
 the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the
 plugin 'org.apache.maven.plugins:maven-antrun-plugin'
  at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
 DefaultPluginManager.java:533)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:390)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:534)
  ... 16 more
 *Caused by:*
 org.codehaus.plexus.component.repository.exception.ComponentLookupException:
 Unable to lookup component '
 org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.1:run',
 it could not be created
  at org.codehaus.plexus.DefaultPlexusContainer.lookup(
 DefaultPlexusContainer.java:335)
  at org.codehaus.plexus.DefaultPlexusContainer.lookup(
 DefaultPlexusContainer.java:440)
  at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(
 DefaultPluginManager.java:524)
  ... 18 more
 Caused by:
 org.codehaus.plexus.component.factory.ComponentInstantiationException:
 Could
 not instanciate component: role: 'null', implementation: '
 org.apache.maven.plugin.antrun.AntRunMojo'
  at
 org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException
 (JavaComponentFactory.java:77)
  at
 org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
 JavaComponentFactory.java:62)
  at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(
 DefaultPlexusContainer.java:1464)
  at
 org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
 (AbstractComponentManager.java:93)
  at
 org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
 (PerLookupComponentManager.java:48)
  at org.codehaus.plexus.DefaultPlexusContainer.lookup(
 DefaultPlexusContainer.java:331)
  ... 20 more
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/tools/ant/PropertyHelper
  at java.lang.Class.getDeclaredConstructors0(Native Method)
  at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
  at java.lang.Class.getConstructor0(Class.java:2640)
  at java.lang.Class.newInstance0(Class.java:321)
  at java.lang.Class.newInstance(Class.java:303)
  at
 org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(
 JavaComponentFactory.java:44)
  ... 24 more
 [INFO]
 
 [INFO] Total time: 4 seconds
 [INFO] Finished at: Mon Feb 26 14:21:06 CST 2007
 [INFO] Final Memory: 3M/6M
 [INFO]
 
 And I create a new project which was added the same configuration,It get
 the
 same error when I excute compile,It seems like there is no jar of antrun
 in the repository,but actually,there is a maven-antrun-plugin-1.1.jar in
 the
 directory C:\Documents and
 Settings\Administrator\.m2\repository\org\apache\maven\plugins\maven-antrun-plugin\1.1,
 when I removed the following configuration,the compile can be excuted
 successful.
 goals
goalrun/goal
  /goals
 
 
 Is there anubody tell me why?
 
 
 2007/2/26, 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 manual at the first time.
After all of artifacts are in ready, you don't need to care them again.

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hello,
 Everybody! ,I have create a webapp project,I want to deploy all of the
  3th party jars in the directory
 $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I
 use?please help.
 
 thanks in advance.
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-all-of-the-3th-party-jars-under-the-Jboss-directory--please.-tf3291868s177.html#a9156472
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina
  /configuration
  /execution
  /executions
  /plugin
  
  /plugins
  /build
 
 
 
 
  2007/2/26, 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
   gave last time,I have done this configuration:
   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   phasegenerate-resources/phase
   goals
   goalrun/goal
   /goals
   configuration
   tasks
   copy overwrite=true
   file=WEB-INF/lib/*.*
   todir=D:\jboss-4.0.4.GA\server\claim\lib\
   /copy
   /tasks
   /configuration
   /execution
   /executions
   /plugin
  
   but when I excute compile,It still report a error:
  
  
  
   + Error stacktraces are turned on.
   Maven version: 2.0.4
   [DEBUG] Building Maven user-level plugin registry from:
 'C:\Documents
  and
   Settings\Administrator\.m2\plugin-registry.xml'
   [DEBUG] Building Maven global-level plugin registry from: 'E:\maven-
   2.0.4\conf\plugin-registry.xml'
   [INFO] Scanning for projects...
   [INFO]
  
 
 
 
   [INFO] Building pcie Maven Webapp
   [INFO] task-segment: [compile]
   [INFO]
  
 
 
 
   [DEBUG] maven-resources-plugin: resolved to version 2.2 from
  repository
   central
   [DEBUG] Retrieving parent-POM:
  org.apache.maven.plugins:maven-plugins::1
   for
   project: null:maven-resources-plugin:maven-plugin:2.2 from the
  repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
   project:
   org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
   org.apache.maven:maven-parent:pom:1 from the repository.
   [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from
  repository
   central
   [DEBUG] Retrieving parent-POM:
  org.apache.maven.plugins:maven-plugins::1
   for
   project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
   repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
   project:
   org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
   org.apache.maven:maven-parent:pom:1 from the repository.
   [DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from
  repository
   central
   [DEBUG] Retrieving parent-POM:
  org.apache.maven.plugins:maven-plugins::1
   for
   project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from the
   repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
   project:
   org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
   org.apache.maven:maven-parent:pom:1 from the repository.
   [DEBUG] Retrieving parent-POM:
   org.apache.maven.plugins:maven-plugin-parent::2.0.1 for project:
   null:maven-antrun-plugin:maven-plugin:1.1 from the repository.
   [DEBUG] com.novi.pcie:pcie:war:1.0-SNAPSHOT (selected for null)
   [DEBUG] test:testrepository:jar:1.0.0:compile (selected for compile)
   [DEBUG] spring:spring:jar:1.2.0:compile (selected for compile)
   [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
   [DEBUG]
  
 org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1:runtime
  (selected
   for runtime)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
  project:
   null:maven-project:jar:2.0.1 from the repository.
   [DEBUG] org.apache.maven:maven-project:jar:2.0.1:runtime (selected
 for
   runtime)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
  project:
   org.apache.maven:maven-model:jar:2.0.1 from the repository.
   [DEBUG] org.apache.maven:maven-model:jar:2.0.1:runtime (selected for
   runtime)
   [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
   project: null:plexus-utils:jar:1.0.5 from the repository.
   [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime(selected
   for runtime)
   [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime(selected
   for runtime)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
  project:
   null:maven-profile:jar:2.0.1 from the repository.
   [DEBUG] org.apache.maven:maven-profile:jar:2.0.1:runtime (selected
  for
   runtime)
   [DEBUG] Retrieving parent-POM:
   org.codehaus.plexus:plexus-containers::1.0.3for project:
   null:plexus-container-default:jar:
   1.0-alpha-9 from the repository.
   [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
   project: org.codehaus.plexus:plexus-containers:pom:1.0.3 from the
   repository.
   [DEBUG]
   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
  (selected

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 - Insight Solutions, Inc. at Cisco)
wrote:
 
  
 I read somewhere, system scoped dependencies are not recommended.
  
 Do you have any point or details on that.
  
 Thanks
  
  
 
 

-- 
View this message in context: 
http://www.nabble.com/system-scope-dependency-tf3297614s177.html#a9173816
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] maven-antrun-plugin error

2007-02-26 Thread jiangshachina

Hello,
 But after I have excuted mvn antrun:run , It still had no
 effect
Please try command mvn compile or mvn package.
Good Luck!

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hi,
 I have modified the configuration like this:
 copy
 
 
 todir=D:/jboss-4.0.4.GA/server/claim/libhttp://4.0.4.ga/server/claim/lib
 
overwrite=true
fileset
 dir=D:/workspace/maven_itms/target/maven_itms-1.0/WEB-INF/lib
 /
 /copy
 
 
 
 But after I have excuted mvn antrun:run , It still had no
 effect.theexcution information is :
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'antrun'.
 [INFO]
 
 [INFO] Building maven_itms Maven Webapp
 [INFO]task-segment: [antrun:run]
 [INFO]
 
 [INFO] [antrun:run]
 [INFO] Executing tasks
 [INFO] Executed tasks
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 3 seconds
 [INFO] Finished at: Tue Feb 27 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 the statement is wrong.
 If you want to deal with multi-files, you may use fileset, not
 wildcard.

 Please try the scripts below,
 copy
 todir=D:/jboss-4.0.4.GA/server/claim/lib
overwrite=true
fileset dir=D:/workspace/maven_itms/target/maven_itms-1.0
 /WEB-INF/lib
 /
 /copy

 a cup of Java, cheers!
 Sha Jiang


 秋秋 wrote:
 
  Hi,
  I have used the exact path to WEB-INF directory on my file system
 like
  this:
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
execution
 
  goals
goalrun/goal
  /goals
  configuration
tasks
  copy overwrite=true
  file=D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\*.jar
  todir=D:\jboss-4.0.4.GA\server\claim\lib\/copy
/tasks
  /configuration
/execution
  /executions
/plugin
  But when I excute mvn antrun:run ,It did not  copy the jars which is
  under
  the D:\workspace\maven_itms\target\maven_itms-1.0\WEB-INF\lib\
 directory
  to
  the D:\jboss-4.0.4.GA\server\claim\lib\ directory . It seems like the
  antrun
  plugin has no effect?
 
 
  2007/2/26, Ahmet Aytekin [EMAIL PROTECTED]:
 
  What do you mean /of course,there is not a directory
  *D:\workspace\maven_itms\WEB-INF\lib\*.*/  ?
  The following configuration means there is WEB-INF directory at the
 same
  level with your pom.xml.
  It cannot find the WEB-INF/lib/*.* directory. Try use exact path to
  WEB-INF directory on your file system in the following part.
 
  Try to copy overwrite=true
   file=WEB-INF/lib/*.*
   todir=D:\jboss-4.0.4.GA\server\claim\lib\
   /copy
 
  Maruf
 
  sam wrote:
   HI,
   I have resolved the trouble just now.It seems like my
 ant-1.6.5.jaris
   incomplete/corrupt,I have downloaded it again,and the trouble has
 been
   resolved.but when I excute compile,the new problem was reported:
   Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: Error
   executing ant
   tasks
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
   DefaultLifecycleExecutor.java:559)
   at
  
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  
   (DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
   DefaultLifecycleExecutor.java:454)
   at
  
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  
   (DefaultLifecycleExecutor.java:306)
   at
  
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
 (
   DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
   DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
 :315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
  org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430

RE: system scope dependency

2007-02-26 Thread jiangshachina

Hi,
 What if the artifact doesn't have to be shared with others.
 Is it ok to use system scope
If you work a project with other mates,
I think it's necessary to share your artifacts with your mates.
Then your team may need a remote repository.

If you just do something by yourself, I think repository still is necessary.
Because the repository can be used by you in later projects.

I think a great advantage of Maven(repository) is that we don't care any
path of jars(artifaces).
Because they are in repository, Maven can find them automatically.
If you use system scope, you have to use absolute path.
Then the pom file must be modified, when you move the artifacts.

Of course, now that Maven provides the scope, maybe there are some reasons.
Then we may use it at some special cases.

a cup of Java, cheers!
Sha Jiang


Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco)
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] 
 Sent: Monday, February 26, 2007 6:11 PM
 To: users@maven.apache.org
 Subject: Re: [m2] system scope dependency
 
 
 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 - Insight Solutions, Inc. at Cisco)
 wrote:
 
  
 I read somewhere, system scoped dependencies are not recommended.
  
 Do you have any point or details on that.
  
 Thanks
  
  
 
 
 
 --
 View this message in context:
 http://www.nabble.com/system-scope-dependency-tf3297614s177.html#a917381
 6
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/system-scope-dependency-tf3297614s177.html#a9174250
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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, cheers!
Sha Jiang


秋秋 wrote:
 
 Hello,
 Everybody! ,I want to deploy all of the  3th party jars in the
 directory
 
 $JBOSS_HOME/server/ProjectName/lib,How can I do?What plugins can I use?
 
 
 thanks in advance!
 
 

-- 
View this message in context: 
http://www.nabble.com/maven-antrun-plugin-error-tf3290825s177.html#a9153567
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-13 Thread jiangshachina

Hello,
May the downloading wasn't completed successfully?
Or please show your POM.

Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hi,
It still report a error when I excute compile or antrun:run.
 ERROR:
  Internal error in the plugin manager executing goal '
 org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Unable to find the
 mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the plugin
 '
 org.apache.maven.plugins:maven-antrun-plugin'
 org/apache/tools/ant/PropertyHelper
 
 What the error means?
 
 
 2007/2/13, sam [EMAIL PROTECTED]:

 Hi,
 Oh, I have excuted the antrun:run successfully just now.It may be
 the the problem of network.


 2007/2/13, sam [EMAIL PROTECTED]:
 
  HI,
  I have excuted the antrun:run, but it report the same error.
 
  [INFO]
 
 
  [INFO] Building maven_itms Maven Webapp
  [INFO]task-segment: [antrun:run]
  [INFO]
 
 
  [INFO] Searching repository for plugin with prefix: 'antrun'.
  [INFO] artifact org.apache.maven.plugins:maven-antrun-plugin: checking
  for updates from central
  [WARN] repository metadata for: 'artifact
  org.apache.maven.plugins:maven-antrun-plugin' could not be retrieved
  from repository: central due to an error: Error transferring file
  [INFO] Repository 'central' will be blacklisted
  [ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 (
  task-segment: [antrun:run] )
  Diagnosis: The plugin 'org.apache.maven.plugins:maven-antrun-plugin '
  does not exist or no valid version could be found
  FATAL ERROR: Error executing Maven for a project
 
  It is seems like the antrun plugin can't 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, cheers!
   Sha Jiang
  
  
   秋秋 wrote:
   
HI,
   Jiangsha,I have added the configurations you gave,but it report
 a
   error
when I run compile,the error is show following:
[ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 (
task-segment: [compile] )
Diagnosis: The plugin
 'org.apache.maven.plugins:maven-antrun-plugin' does
not exist or no valid version could be found
FATAL ERROR: Error executing Maven 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
   groupId
 org.apache.maven.plugins/groupId
  
 artifactIdmaven-antrun-plugin/artifactId
  
   executions
   execution
   idpackage/id
  
 phasegenerate-resources/phase
  
   configuration
   tasks
   copy
file=path_to_jar_file
   
todir=path_to_lib_directory overwrite=true /
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   /plugin
   /plugins
/build
   
Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang
   
   
秋秋 wrote:

 Hi,
 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
  %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,
  Yes ,It's feasible,I have excluded the directory
   WEB-INF/lib/.
 
  And How can I deploy the 3th party jar in the directory
  %JBOSS_HOME%server\ProjectName\lib ?
 
 
  2007/2/13, mraible  [EMAIL PROTECTED]:
 
 
  Here's how we do this in AppFuse:
 
 plugin
 artifactIdmaven-war-plugin/artifactId

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

2007-02-13 Thread jiangshachina

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 Jiang


秋秋 wrote:
 
 Hi,
 I have searched the error via google,there is a discussion about the
 same error,you can have a look.http://jira.codehaus.org/browse/MANTRUN-37
 
 My pom about build is here:
 
 build
 
   plugins
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 executions
  execution
   phasegenerate-resources/phase
   configuration
tasks
 copy file=WEB-INF/lib/*.*
  todir=D:\jboss-4.0.4.GA\server\claim\lib overwrite=true /
/tasks
   /configuration
   goals
goalrun/goal
   /goals
  /execution
 /executions
/plugin
 
plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 
 configuration
  warNameclaim/warName
  webXmlsrc/main/config/web/web.xml/webXml
  outputDirectory
   D:\jboss-4.0.4.GA\server\claim\deploy
  /outputDirectory
  warSourceExcludes
   WEB-INF/lib/*.jar,
   WEB-INF/classes/com/sinosafe/bom/,
   WEB-INF/classes/com/sinosafe/claim/autoclaim/biz/,
   WEB-INF/classes/com/sinosafe/claim/autoclaim/dto/,
   WEB-INF/classes/com/sinosafe/claim/autoclaim/flow/,
   WEB-INF/classes/com/sinosafe/claim/autoclaim/integration/,
   WEB-INF/classes/com/sinosafe/claim/autoclaim/util/,
   WEB-INF/classes/com/sinosafe/claim/common/biz/,
   WEB-INF/classes/com/sinosafe/claim/common/*.class,
   WEB-INF/classes/com/sinosafe/claim/common/dto/,
   WEB-INF/classes/com/sinosafe/claim/common/integration/,
   WEB-INF/classes/com/sinosafe/claim/life/biz/,
   WEB-INF/classes/com/sinosafe/claim/life/dto/,
   WEB-INF/classes/com/sinosafe/claim/life/flow/,
   WEB-INF/classes/com/sinosafe/claim/life/integration/,
   WEB-INF/classes/com/sinosafe/claim/property/biz/,
   WEB-INF/classes/com/sinosafe/claim/property/dto/,
   WEB-INF/classes/com/sinosafe/claim/property/flow/,
   WEB-INF/classes/com/sinosafe/claim/property/integration/,
   WEB-INF/classes/com/sinosafe/claim/setting/biz/,
   WEB-INF/classes/com/sinosafe/claim/setting/dto/,
   WEB-INF/classes/com/sinosafe/claim/setting/integration/,
   WEB-INF/classes/com/sinosafe/claim/test/,
   WEB-INF/classes/com/sinosafe/claim/util/
  /warSourceExcludes
 
  webResources
 
   resource
!-- this is relative to the pom.xml directory --
directorysrc/main/config/web//directory
targetPathWEB-INF/targetPath
filteringtrue/filtering
 
!-- the list has a default value of ** --
includes
 include*.xml/include
/includes
!-- there's no default value for this --
   /resource
   resource
!-- this is relative to the pom.xml directory --
directorysrc/main/config//directory
targetPathWEB-INF/classes//targetPath
filteringtrue/filtering
 
!-- the list has a default value of ** --
includes
 include
  context-claim.properties
 /include
/includes
!-- there's no default value for this --
   /resource
   resource
!-- this is relative to the pom.xml directory --
directory
 src/main/config/printtemplate/
/directory
targetPathWEB-INF/classes//targetPath
filteringtrue/filtering
 
!-- the list has a default value of ** --
 
   /resource
   resource
!-- this is relative to the pom.xml directory --
directorysrc/main/config/web//directory
targetPathWEB-INF/classes//targetPath
filteringtrue/filtering
 
!-- the list has a default value of ** --
includes
 include*.properties/include
/includes
!-- there's no default value for this --
   /resource
  /webResources
 
 /configuration
/plugin
plugin
 groupIdorg.apache.maven.plugins/groupId
 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 your POM.

 Happy Spring Festival :-)
 a cup of Java, cheers!
 Sha Jiang


 秋秋 wrote:
 
  Hi,
 It still report a error when I excute compile or antrun:run.
  ERROR:
   Internal error in the plugin manager executing goal '
  org.apache.maven.plugins:maven-antrun-plugin:1.1:run': Unable to find
 the
  mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' in the
 plugin
  '
  org.apache.maven.plugins:maven-antrun-plugin'
  org/apache/tools/ant/PropertyHelper
 
  What the error means

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.

Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang


Ute Platzer-2 wrote:
 
 Hi,
 
 I have a java program which I used to build with ant. Now I switched to
 maven
 because of the easier handling of jar file dpenedencies. Unfortunately now
 these
 jar files are no longer there, they're somewhere in the repository but
 not
 inside my project directory and it's not trivial to find and add them to
 the
 classpath when I want to run my program.
 Is there a simple solution, how do I set the classpath in the shell to run
 the
 program? Or how do I make maven copy the jar files from the repository to
 somewhere I can use them?
 
 Thanks for your help, and best regards,
 ute
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-run-a-program-build-with-maven-tf3219341s177.html#a8940592
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-13 Thread jiangshachina

Hi,
I think you can make a simply project to test the plugin.
And run mvn compile.
The following scripts can be used,
project
modelVersion4.0.0/modelVersion
groupIdtest/groupId
artifactIdtest/artifactId
packagingpom/packaging
version1.0-SNAPSHOT/version

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution

phasegenerate-resources/phase
configuration
tasks
copy 
file=path_to_test_file

todir=path_to_test_dir overwrite=true /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/project

Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 HI,
 Yes , I use maven 2.0.4 too,and the plugin is downloaded
 successfully,hehe,well,I 'd like resolve the trouble after the Spring
 Festival,and I begin my holiday tomorrow,see you!
 
 Happy Spring Festival!
 
 
 2007/2/13, 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 Jiang


 秋秋 wrote:
 
  Hi,
  I have searched the error via google,there is a discussion about
 the
  same error,you can have a look
 .http://jira.codehaus.org/browse/MANTRUN-37
 
  My pom about build is here:
 
  build
 
plugins
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  executions
   execution
phasegenerate-resources/phase
configuration
 tasks
  copy file=WEB-INF/lib/*.*
   todir=D:\jboss-4.0.4.GA\server\claim\lib overwrite=true /
 /tasks
/configuration
goals
 goalrun/goal
/goals
   /execution
  /executions
 /plugin
 
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
 
  configuration
   warNameclaim/warName
   webXmlsrc/main/config/web/web.xml/webXml
   outputDirectory
D:\jboss-4.0.4.GA\server\claim\deploy
   /outputDirectory
   warSourceExcludes
WEB-INF/lib/*.jar,
WEB-INF/classes/com/sinosafe/bom/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/biz/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/dto/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/flow/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/integration/,
WEB-INF/classes/com/sinosafe/claim/autoclaim/util/,
WEB-INF/classes/com/sinosafe/claim/common/biz/,
WEB-INF/classes/com/sinosafe/claim/common/*.class,
WEB-INF/classes/com/sinosafe/claim/common/dto/,
WEB-INF/classes/com/sinosafe/claim/common/integration/,
WEB-INF/classes/com/sinosafe/claim/life/biz/,
WEB-INF/classes/com/sinosafe/claim/life/dto/,
WEB-INF/classes/com/sinosafe/claim/life/flow/,
WEB-INF/classes/com/sinosafe/claim/life/integration/,
WEB-INF/classes/com/sinosafe/claim/property/biz/,
WEB-INF/classes/com/sinosafe/claim/property/dto/,
WEB-INF/classes/com/sinosafe/claim/property/flow/,
WEB-INF/classes/com/sinosafe/claim/property/integration/,
WEB-INF/classes/com/sinosafe/claim/setting/biz/,
WEB-INF/classes/com/sinosafe/claim/setting/dto/,
WEB-INF/classes/com/sinosafe/claim/setting/integration/,
WEB-INF/classes/com/sinosafe/claim/test/,
WEB-INF/classes/com/sinosafe/claim/util/
   /warSourceExcludes
 
   webResources
 
resource
 !-- this is relative to the pom.xml directory --
 directorysrc/main/config/web//directory
 targetPathWEB-INF/targetPath
 filteringtrue/filtering
 
 !-- the list has a default value of ** --
 includes
  include*.xml/include
 /includes
 !-- there's no default value for this --
/resource
resource
 !-- this is relative to the pom.xml directory --
 directorysrc/main

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,
 Yes ,It's feasible,I have excluded the directory WEB-INF/lib/.
 
 And How can I deploy the 3th party jar in the directory
 %JBOSS_HOME%server\ProjectName\lib ?
 
 
 2007/2/13, mraible [EMAIL PROTECTED]:


 Here's how we do this in AppFuse:

plugin
artifactIdmaven-war-plugin/artifactId
version2.0.2/version
executions
execution
idskinny-war/id
goals
goalwar/goal
/goals
phasepost-integration-test/phase
inheritedfalse/inherited
configuration

 warSourceExcludesWEB-INF/lib/**/warSourceExcludes
/configuration
/execution
/executions
/plugin

 Hope this helps,

 Matt

 秋秋 wrote:
 
  HI,
  I use maven-war-plugin to deploy the war and use maven-jar-plugin
 to
  deploy the jar for the same project,the project is distributed deployed
  ,and
  I use jboss for the server,I want to deploy the 3th party jar in the
  directory %JBOSS_HOME%server\ProjectName\lib,
  and I don't want there is still a WEB-INF/lib directory in the
 war,because
  it will breeds strife.How can I do?
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8932025
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8936710
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-12 Thread jiangshachina

Hello,
The following scripts may can help you,
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idpackage/id
phasegenerate-resources/phase
configuration
tasks
copy 
file=path_to_jar_file

todir=path_to_lib_directory overwrite=true /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build

Happy Spring Festival :-)
a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hi,
 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
  %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,
  Yes ,It's feasible,I have excluded the directory WEB-INF/lib/.
 
  And How can I deploy the 3th party jar in the directory
  %JBOSS_HOME%server\ProjectName\lib ?
 
 
  2007/2/13, mraible [EMAIL PROTECTED]:
 
 
  Here's how we do this in AppFuse:
 
 plugin
 artifactIdmaven-war-plugin/artifactId
 version2.0.2/version
 executions
 execution
 idskinny-war/id
 goals
 goalwar/goal
 /goals
 phasepost-integration-test/phase
 inheritedfalse/inherited
 configuration
 
  warSourceExcludesWEB-INF/lib/**/warSourceExcludes
 /configuration
 /execution
 /executions
 /plugin
 
  Hope this helps,
 
  Matt
 
  秋秋 wrote:
  
   HI,
   I use maven-war-plugin to deploy the war and use
 maven-jar-plugin
  to
   deploy the jar for the same project,the project is distributed
 deployed
   ,and
   I use jboss for the server,I want to deploy the 3th party jar in the
   directory %JBOSS_HOME%server\ProjectName\lib,
   and I don't want there is still a WEB-INF/lib directory in the
  war,because
   it will breeds strife.How can I do?
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8932025
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8936710
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8938921
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-12 Thread jiangshachina

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, cheers!
Sha Jiang


秋秋 wrote:
 
 HI,
Jiangsha,I have added the configurations you gave,but it report a error
 when I run compile,the error is show following:
 [ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 (
 task-segment: [compile] )
 Diagnosis: The plugin 'org.apache.maven.plugins:maven-antrun-plugin' does
 not exist or no valid version could be found
 FATAL ERROR: Error executing Maven 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
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idpackage/id
phasegenerate-resources/phase
configuration
tasks
copy
 file=path_to_jar_file

 todir=path_to_lib_directory overwrite=true /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build

 Happy Spring Festival :-)
 a cup of Java, cheers!
 Sha Jiang


 秋秋 wrote:
 
  Hi,
  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
   %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,
   Yes ,It's feasible,I have excluded the directory WEB-INF/lib/.
  
   And How can I deploy the 3th party jar in the directory
   %JBOSS_HOME%server\ProjectName\lib ?
  
  
   2007/2/13, mraible [EMAIL PROTECTED]:
  
  
   Here's how we do this in AppFuse:
  
  plugin
  artifactIdmaven-war-plugin/artifactId
  version2.0.2/version
  executions
  execution
  idskinny-war/id
  goals
  goalwar/goal
  /goals
  phasepost-integration-test/phase
  inheritedfalse/inherited
  configuration
  
   warSourceExcludesWEB-INF/lib/**/warSourceExcludes
  /configuration
  /execution
  /executions
  /plugin
  
   Hope this helps,
  
   Matt
  
   秋秋 wrote:
   
HI,
I use maven-war-plugin to deploy the war and use
  maven-jar-plugin
   to
deploy the jar for the same project,the project is distributed
  deployed
,and
I use jboss for the server,I want to deploy the 3th party jar in
 the
directory %JBOSS_HOME%server\ProjectName\lib,
and I don't want there is still a WEB-INF/lib directory in the
   war,because
it will breeds strife.How can I do?
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8932025
   Sent from the Maven - Users mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8936710
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-a-war-which-is-not-includes-directory-WEB-INF-lib--tf3212330s177.html#a8938921
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL

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

2007-02-09 Thread jiangshachina

Dear Franz,
I got it, thanks!

a cup of Java, cheers!
Sha Jiang


franz see wrote:
 
 Good day,
 
 The createChecksum parameter/expression is available only to the
 2.2-SNAPSHOT of maven-install-pluign ( which you can build from [1], or
 checkout from [2] ). 
 
 As for the release of 2.2...there are only 2 issues left for it ( see [3]
 )..feel free to speed things up :) 
 
 Cheers,
 Franz
 
 [1]
 http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-install-plugin
 [2] http://people.apache.org/maven-snapshot-repository
 [3]
 http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=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 will be created and stored at remote repository.
 But the checksum files still don't exist in local repository.
 What's wrong with the matter? 
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Maria Odea Ching-2 wrote:
 
 Hi Naresh,
 
 What version of the install plugin are you using?
 I've tried to build the plugin from source and installed it locally then 
 I did mvn install:install-file with
 createChecksum=true and it worked out fine. The checksums were created 
 in my local repo.
 Maybe you just need to update your install plugin :-)
 
 Hope this helps
 
 Thanks,
 Deng
 
 Bhatia, Naresh (IS Consultant) wrote:
 
It seems that the createChecksum parameter of install:install-file does
not work at all. I have set -DcreateChecksum=true and no checksums are
generated. Can someone please confirm this?

Thanks.
Naresh

  

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

-- 
View this message in context: 
http://www.nabble.com/install-file-createChecksum-does-not-work-tf3193451s177.html#a8896315
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 into your local
 repository.  To deploy it in a remote repo, you can use the 
 maven-deploy-plugin (deply:deploy-file goal).
 
 See the following urls for more details:
 http://people.apache.org/~aramirez/maven-install-plugin/ 
 http://people.apache.org/%7Earamirez/maven-install-plugin/
 http://people.apache.org/~aramirez/maven-deploy-plugin/ 
 http://people.apache.org/%7Earamirez/maven-deploy-plugin/
 
 Hope this helps! :-)
 
 Thanks,
 Deng
 
 sam wrote:
 
 HI,
 I have set up a repository on our company's server by apache,the 
 url is
 http://10.10.202.22/maven/, How does the maven know there is a 
 repository on
 the server?and How can I deploy my jar of third party into my local
 repository and the server repository?

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

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860950
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-08 Thread jiangshachina

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 on the topic.
In my eyes, Maven isn't used widely in China.

I have released some simple articles about Maven at blogjava.net,
if you like, you 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.

 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]:
 
 
  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:
  
   HI,
I have set up a repository on our company's server by
 apache,the
  url
   is
   http://10.10.202.22/maven/, How does the maven know there is a
  repository
   on
   the server?and How can I deploy my jar of third party into my local
   repository and the server repository?
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860111
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860758
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8861051
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-08 Thread jiangshachina

Hello,
 It can also deploy the jars into the local repo
Of course. Local repo is the first.

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hi,
 I have used mvn deploy:deploy-file to deploy the 3rd party jars,as a
 result,It can also deploy the jars into the local repo .
 
 
 2007/2/8, 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 goal) to
  install a 3rd party jar into your local
  repository.  To deploy it in a remote repo, you can use the
  maven-deploy-plugin (deply:deploy-file goal).
 
  See the following urls for more details:
  http://people.apache.org/~aramirez/maven-install-plugin/
  http://people.apache.org/%7Earamirez/maven-install-plugin/
  http://people.apache.org/~aramirez/maven-deploy-plugin/
  http://people.apache.org/%7Earamirez/maven-deploy-plugin/
 
  Hope this helps! :-)
 
  Thanks,
  Deng
 
  sam wrote:
 
  HI,
  I have set up a repository on our company's server by apache,the
  url is
  http://10.10.202.22/maven/, How does the maven know there is a
  repository on
  the server?and How can I deploy my jar of third party into my local
  repository and the server repository?
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860950
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8861077
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-08 Thread jiangshachina

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 before any real
work starting.
Undoubtedly, Maven is great, but it may not be your first choice(at least
currently).
Especially, if you don't know enough details on Maven. I walked a round way
ever.
Maven is not only related to you, but also related to developers.
In my eyes, Maven isn't friendly for developers sometimes.

 I also want to publish my doc about maven on my blog
 ,but I don't have time .
Cheers1
Your any work would make Maven more popular ^_^

Good Luck!

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 HI,
 My friend jiangsha,I feel the same way about maven in china,I have
 studied maven for three week,Because our company is going to use maven to
 manage the project in the next project.So I am in charge of integrate the
 maven with the architecture of our company.I have
 on csdn,but it seems like nobody can help me,so I have subscibe the mail
 on
 maven site(even though my English is no good,but I discover that I am
 making
 progress in English fast).
 I will access your 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 on the
 topic.
 In my eyes, Maven isn't used widely in China.

 I have released some simple articles about Maven at blogjava.net,
 if you like, you 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.
 
  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]:
  
  
   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:
   
HI,
 I have set up a repository on our company's server by
  apache,the
   url
is
http://10.10.202.22/maven/, How does the maven know there is a
   repository
on
the server?and How can I deploy my jar of third party into my
 local
repository and the server repository?
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860111
   Sent from the Maven - Users mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860758
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8861051
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8861744
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2007-02-08 Thread jiangshachina

Hello,
 For the time being ,we just use maven
 for manage the dependency,site for project
 infomation,and build the jar and war
I think your requirement is very simple, it really can be achieved.

Good Luck!

a cup of Java, cheers!
Sha Jiang


秋秋 wrote:
 
 Hi,
thanks for your advice,and I feel the same about maven,I think maven is
 a
 half-baked tools,although It is very powerfull. It is not for me to say if
 using maven in next project , our Technical Director has decided.For the
 time being ,we just use maven for manage the dependency,site for project
 infomation,and build the jar 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 before any
 real
 work starting.
 Undoubtedly, Maven is great, but it may not be your first choice(at least
 currently).
 Especially, if you don't know enough details on Maven. I walked a round
 way
 ever.
 Maven is not only related to you, but also related to developers.
 In my eyes, Maven isn't friendly for developers sometimes.

  I also want to publish my doc about maven on my blog
  ,but I don't have time .
 Cheers1
 Your any work would make Maven more popular ^_^

 Good Luck!

 a cup of Java, cheers!
 Sha Jiang


 秋秋 wrote:
 
  HI,
  My friend jiangsha,I feel the same way about maven in china,I have
  studied maven for three week,Because our company is going to use maven
 to
  manage the project in the next project.So I am in charge of integrate
 the
  maven with the architecture of our company.I have
  on csdn,but it seems like nobody can help me,so I have subscibe the
 mail
  on
  maven site(even though my English is no good,but I discover that I am
  making
  progress in English fast).
  I will access your 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 on the
  topic.
  In my eyes, Maven isn't used widely in China.
 
  I have released some simple articles about Maven at blogjava.net,
  if you like, you 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.
  
   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]:
   
   
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:

 HI,
  I have set up a repository on our company's server by
   apache,the
url
 is
 http://10.10.202.22/maven/, How does the maven know there is a
repository
 on
 the server?and How can I deploy my jar of third party into my
  local
 repository and the server repository?


   
--
View this message in context:
   
  
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860111
Sent from the Maven - Users mailing list archive at Nabble.com.
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860758
   Sent from the Maven - Users mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8861051
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED

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


秋秋 wrote:
 
 Hi,
 What plugin does the package  life sycle  use?
 
 
 thanks.
 
 

-- 
View this message in context: 
http://www.nabble.com/What-plugin-does-the-%22package-%22-life-sycle-use--tf3198136s177.html#a8880055
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 wrong with the matter? 

a cup of Java, cheers!
Sha Jiang


Maria Odea Ching-2 wrote:
 
 Hi Naresh,
 
 What version of the install plugin are you using?
 I've tried to build the plugin from source and installed it locally then 
 I did mvn install:install-file with
 createChecksum=true and it worked out fine. The checksums were created 
 in my local repo.
 Maybe you just need to update your install plugin :-)
 
 Hope this helps
 
 Thanks,
 Deng
 
 Bhatia, Naresh (IS Consultant) wrote:
 
It seems that the createChecksum parameter of install:install-file does
not work at all. I have set -DcreateChecksum=true and no checksums are
generated. Can someone please confirm this?

Thanks.
Naresh

  

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

-- 
View this message in context: 
http://www.nabble.com/install-file-createChecksum-does-not-work-tf3193451s177.html#a8880117
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
 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
 
 
 秋秋 wrote:
 
 Hi,
 What plugin does the package  life sycle  use?
 
 
 thanks.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/What-plugin-does-the-%22package-%22-life-sycle-use--tf3198136s177.html#a8880137
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Can't deploy site,Help please.

2007-02-07 Thread jiangshachina

Hello,
My local machine is Windows 2000, the remote machine is RedHat AS 4.0.

I set the following statements in my pom.xml,
distributionManagement
repository
idtest/id
urlscp://HostIP/Absolute_Path_To_Repo/url
/repository
/distributionManagement
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:
 
 Hello,
 I tried to deploy project via scp just now, but authentication failed.
 How to set the user/password of remote machine in POM file?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Markku Saarela wrote:
 
 One slash character was dropped out :-)
 file:///192.1.1.0/temp/directory
 
 - markku
 
 
 Markku Saarela wrote:
 Hi,

 No, File protocol can deploy any directory in network where user has
 access. The first slash character is defining that path is absolute two
 others are some server delimiters.

 file:/c:/temp vs. file:///someserver/depl or even
 file://192.1.1.0/temp/directory

 rgds,
 markku

 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/to/deployment/dir*, *
 thanks.


 2007/2/6, Tim Kettler [EMAIL PROTECTED]:
 
   
 Hi,

 the URL you give in the distribution management section is the HTTP
 URL
 of your projects site. To deploy it you need to specify a valid
 deployment URL. This could be something like:

 - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure
 copy)
 - sftp://my.server.com/deployment/dir (for SFTP deployment)
 - file:///path/to/deployment/dir (for deploying to a local file
 system)

 Hope this helps
 -Tim

 Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋:
   
 
 Hi,
 I  use apache-tomcat-5.5.17 as a server for the project site,the
 
   
 url
 is
   
 
 http://localhost:8080/pcie/, I have added the configuration in the
 pom.xmllike this:
 distributionManagement
   site
idmaven/id
urlscp://localhost:8080/pcie//url
   /site
  /distributionManagement

 I have start up the server successfull as well as I Have execute
 site
 command,but when I execute site-deploy,I appear the error like
 this:
 FATAL ERROR: Error executing Maven for a project
 org.apache.maven.lifecycle.LifecycleExecutionException: Error
 uploading
 
   
 site
   
 
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:559)
  at

 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   
 
 (DefaultLifecycleExecutor.java:475)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:454)
  at

 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
   
 
 (DefaultLifecycleExecutor.java:306)
  at
 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
   
 
 DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:140)
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
 :441)
   
 
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
 :382)
   
 
  at
 org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 
   
 uploading
   
 
 site
  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 
   
 SiteDeployMojo.java
   
 
 :184)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:412)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:534)
  ... 8 more
 Caused by:
 
   
 org.apache.maven.wagon.authentication.AuthenticationException
 :
   
 
 Cannot connect. Reason: invalid server's version string
  at
 
   
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
   
 
 AbstractSshWagon.java:239)
  at
 
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
   
 
  at
 
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
   
 
  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 
   
 SiteDeployMojo.java
   
 
 :153

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 project via scp just now, but authentication failed.
 How to set the user/password of remote machine in POM file?

 a cup of Java, cheers!
 Sha Jiang


 Markku Saarela wrote:
   
 One slash character was dropped out :-)
 file:///192.1.1.0/temp/directory

 - markku


 Markku Saarela wrote:
 
 Hi,

 No, File protocol can deploy any directory in network where user has
 access. The first slash character is defining that path is absolute two
 others are some server delimiters.

 file:/c:/temp vs. file:///someserver/depl or even
 file://192.1.1.0/temp/directory

 rgds,
 markku

 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/to/deployment/dir*, *
 thanks.


 2007/2/6, Tim Kettler [EMAIL PROTECTED]:
 
   
   
 Hi,

 the URL you give in the distribution management section is the HTTP
 URL
 of your projects site. To deploy it you need to specify a valid
 deployment URL. This could be something like:

 - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure
 copy)
 - sftp://my.server.com/deployment/dir (for SFTP deployment)
 - file:///path/to/deployment/dir (for deploying to a local file
 system)

 Hope this helps
 -Tim

 Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋:
   
 
 
 Hi,
 I  use apache-tomcat-5.5.17 as a server for the project
 site,the
 
   
   
 url
 is
   
 
 
 http://localhost:8080/pcie/, I have added the configuration in the
 pom.xmllike this:
 distributionManagement
   site
idmaven/id
urlscp://localhost:8080/pcie//url
   /site
  /distributionManagement

 I have start up the server successfull as well as I Have execute
 site
 command,but when I execute site-deploy,I appear the error like
 this:
 FATAL ERROR: Error executing Maven for a project
 org.apache.maven.lifecycle.LifecycleExecutionException: Error
 uploading
 
   
   
 site
   
 
 
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:559)
  at

 
   
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   
 
 
 (DefaultLifecycleExecutor.java:475)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:454)
  at

 
   
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
   
 
 
 (DefaultLifecycleExecutor.java:306)
  at
 
   
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
   
 
 
 DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:140)
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
   
 :441)
   
 
 
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
   
 :382)
   
 
 
  at
 org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 
   
   
 uploading
   
 
 
 site
  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 
   
   
 SiteDeployMojo.java
   
 
 
 :184)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:412)
  at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:534)
  ... 8 more
 Caused by:
 
   
   
 org.apache.maven.wagon.authentication.AuthenticationException
 :
   
 
 
 Cannot connect. Reason: invalid server's version string
  at
 
   
   
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
   
 
 
 AbstractSshWagon.java:239)
  at
 
   
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
   
 
 
  at
 
   
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106

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:
 
 HI,
  I have set up a repository on our company's server by apache,the url
 is
 http://10.10.202.22/maven/, How does the maven know there is a repository
 on
 the server?and How can I deploy my jar of third party into my local
 repository and the server repository?
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860111
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 )
 or maven-assembly-plugin to unpack the jar/zip files to target/classes.
 Not sure though if that would work.
 
 Btw, why not just add those as dependencies?
 
 Cheers,
 Franz
 
 That may require you to use depedency plugin or assembly plugin to unpack
 the files.
 
 Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco)
 wrote:
 
 Hi,
  
 Is it possible to add additional classpath (not specified in the
 dependency) to maven2 on runtime.
 The idea is to unzip the jars to a specific directory and add those jars
 to compile / jar classpath.
  
 Thanks
  
  
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/additional-classpath-to-maven2-tf3189283s177.html#a8860196
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: additional classpath to maven2

2007-02-07 Thread jiangshachina

Hello,
Factly, I don't use the plugins.

 how can I add that folder to the classpath ?
I think Maven doesn't regard the jars as dependency at compile/runtime.

I think you can set the jars to system scope dependencies.
It's better to use dependency mechanism, even the jars aren't in any
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 PROTECTED] 
 Sent: Wednesday, February 07, 2007 10:36 PM
 To: users@maven.apache.org
 Subject: Re: additional classpath to maven2
 
 
 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 ) or maven-assembly-plugin to unpack the
 jar/zip files to target/classes.
 Not sure though if that would work.
 
 Btw, why not just add those as dependencies?
 
 Cheers,
 Franz
 
 That may require you to use depedency plugin or assembly plugin to 
 unpack the files.
 
 Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at 
 Cisco)
 wrote:
 
 Hi,
  
 Is it possible to add additional classpath (not specified in the
 dependency) to maven2 on runtime.
 The idea is to unzip the jars to a specific directory and add those 
 jars to compile / jar classpath.
  
 Thanks
  
  
 
 
 
 
 
 --
 View this message in context:
 http://www.nabble.com/additional-classpath-to-maven2-tf3189283s177.html#
 a8860196
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/additional-classpath-to-maven2-tf3189283s177.html#a8860353
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 myapp.war. I am sure this is a common
 requirement.
 
 How can I generate my war artifact and deploy it after stripping its
 version
 suffix? Would tomcat plugin do this automatically?
 
 Thanks,
 
 /U
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Removing-version-id-from-war-artifacts-tf3191661s177.html#a8860421
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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


 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:
 
  HI,
   I have set up a repository on our company's server by apache,the
 url
  is
  http://10.10.202.22/maven/, How does the maven know there is a
 repository
  on
  the server?and How can I deploy my jar of third party into my local
  repository and the server repository?
 
 

 --
 View this message in context:
 http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860111
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-the-jar-of-third-party-into-the-repository-on-our-company%27s-server--tf3191568s177.html#a8860758
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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 [EMAIL PROTECTED]:

 Hi,

 the URL you give in the distribution management section is the HTTP URL
 of your projects site. To deploy it you need to specify a valid
 deployment URL. This could be something like:

 - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy)
 - sftp://my.server.com/deployment/dir (for SFTP deployment)
 - file:///path/to/deployment/dir (for deploying to a local file system)

 Hope this helps
 -Tim

 Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋:
  Hi,
  I  use apache-tomcat-5.5.17 as a server for the project site,the
 url
 is
  http://localhost:8080/pcie/, I have added the configuration in the
  pom.xmllike this:
  distributionManagement
site
 idmaven/id
 urlscp://localhost:8080/pcie//url
/site
   /distributionManagement
 
  I have start up the server successfull as well as I Have execute site
  command,but when I execute site-deploy,I appear the error like this:
  FATAL ERROR: Error executing Maven for a project
  org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading
 site
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:559)
   at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
  (DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
  DefaultLifecycleExecutor.java:454)
   at
 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
  (DefaultLifecycleExecutor.java:306)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
  DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
  DefaultLifecycleExecutor.java:140)
   at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 :441)
   at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 :382)
   at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 uploading
  site
   at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 SiteDeployMojo.java
  :184)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
  DefaultPluginManager.java:412)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
  DefaultLifecycleExecutor.java:534)
   ... 8 more
  Caused by:
 org.apache.maven.wagon.authentication.AuthenticationException
 :
  Cannot connect. Reason: invalid server's version string
   at
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
  AbstractSshWagon.java:239)
   at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
   at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
   at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 SiteDeployMojo.java
  :153)
   ... 10 more
  Caused by: com.jcraft.jsch.JSchException: invalid server's version
 string
   at com.jcraft.jsch.Session.connect(Unknown Source)
   at com.jcraft.jsch.Session.connect(Unknown Source)
   at
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
  AbstractSshWagon.java:228)
   ... 13 more
 
 
  what can I do?


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Can%27t-deploy-site%2CHelp-please.-tf3178351s177.html#a8840223
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Can't deploy site,Help please.

2007-02-06 Thread jiangshachina

Hello,
I tried to deploy project via scp just now, but authentication failed.
How to set the user/password of remote machine in POM file?

a cup of Java, cheers!
Sha Jiang


Markku Saarela wrote:
 
 One slash character was dropped out :-)
 file:///192.1.1.0/temp/directory
 
 - markku
 
 
 Markku Saarela wrote:
 Hi,

 No, File protocol can deploy any directory in network where user has
 access. The first slash character is defining that path is absolute two
 others are some server delimiters.

 file:/c:/temp vs. file:///someserver/depl or even
 file://192.1.1.0/temp/directory

 rgds,
 markku

 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/to/deployment/dir*, *
 thanks.


 2007/2/6, Tim Kettler [EMAIL PROTECTED]:
 
   
 Hi,

 the URL you give in the distribution management section is the HTTP
 URL
 of your projects site. To deploy it you need to specify a valid
 deployment URL. This could be something like:

 - scp://my.server.com/var/www/htdocs/myproject (for SSH's secure copy)
 - sftp://my.server.com/deployment/dir (for SFTP deployment)
 - file:///path/to/deployment/dir (for deploying to a local file
 system)

 Hope this helps
 -Tim

 Am Dienstag, den 06.02.2007, 11:03 +0800 schrieb 秋秋:
   
 
 Hi,
 I  use apache-tomcat-5.5.17 as a server for the project site,the
 
   
 url
 is
   
 
 http://localhost:8080/pcie/, I have added the configuration in the
 pom.xmllike this:
 distributionManagement
   site
idmaven/id
urlscp://localhost:8080/pcie//url
   /site
  /distributionManagement

 I have start up the server successfull as well as I Have execute
 site
 command,but when I execute site-deploy,I appear the error like
 this:
 FATAL ERROR: Error executing Maven for a project
 org.apache.maven.lifecycle.LifecycleExecutionException: Error
 uploading
 
   
 site
   
 
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:559)
  at

 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
   
 
 (DefaultLifecycleExecutor.java:475)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
 DefaultLifecycleExecutor.java:454)
  at

 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
   
 
 (DefaultLifecycleExecutor.java:306)
  at
 
   
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
   
 
 DefaultLifecycleExecutor.java:273)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
 DefaultLifecycleExecutor.java:140)
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
 :441)
   
 
  at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
 
   
 :382)
   
 
  at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
 Caused by: org.apache.maven.plugin.MojoExecutionException: Error
 
   
 uploading
   
 
 site
  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 
   
 SiteDeployMojo.java
   
 
 :184)
  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
 DefaultPluginManager.java:412)
  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
 DefaultLifecycleExecutor.java:534)
  ... 8 more
 Caused by:
 
   
 org.apache.maven.wagon.authentication.AuthenticationException
 :
   
 
 Cannot connect. Reason: invalid server's version string
  at
 
   
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
   
 
 AbstractSshWagon.java:239)
  at
 
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
   
 
  at
 
   
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:106)
   
 
  at org.apache.maven.plugins.site.SiteDeployMojo.execute(
 
   
 SiteDeployMojo.java
   
 
 :153)
  ... 10 more
 Caused by: com.jcraft.jsch.JSchException: invalid server's version
 
   
 string
   
 
  at com.jcraft.jsch.Session.connect(Unknown Source)
  at com.jcraft.jsch.Session.connect(Unknown Source)
  at
 
   
 org.apache.maven.wagon.providers.ssh.AbstractSshWagon.openConnection
 (
   
 
 AbstractSshWagon.java:228)
  ... 13 more


 what can I do?
 
   
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

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 error when runed compile:
  [INFO]
 
 [INFO] Building maven_itms Maven Webapp
 [INFO]task-segment: [compile]
 [INFO]
 
 [INFO] resources:resources
 [INFO] Using default encoding to copy filtered resources.
 [INFO] compiler:compile
 Compiling 132 source files to D:\workspace\maven_itms\target\classes
 [ERROR] mojo-execute : compiler:compile
 Diagnosis: Compilation failure
 FATAL ERROR: Error executing Maven for a project
 [ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 ( 
 task-segment: [compile] )
 Diagnosis: Compilation failure
 FATAL ERROR: Error executing Maven for a project
 org.apache.maven.BuildFailureException: Compilation failure
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
   at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
   at
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
   at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
 Caused by: org.apache.maven.plugin.CompilationFailureException:
 Compilation failure
   at
 org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
   at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
   at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
   at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
   ... 8 more
 But it was ok when runned mvn compile in CMD 
 D:\workspace\maven_itmsmvn compile
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building maven_itms Maven Webapp
 [INFO]task-segment: [compile]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 Compiling 132 source files to D:\workspace\maven_itms\target\classes
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 [INFO]
 
 [INFO] Total time: 14 seconds
 [INFO] Finished at: Thu Jan 11 18:09:58 CST 2007
 [INFO] Final Memory: 4M/21M
 [INFO]
 
 
 Why? and how I to do?
 
  
 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-throwed-the-error-when-runed-compile-tf2957962s177.html#a8404751
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[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 -DgroupId=com.db4o -DartifactId=db4o-java5
-Dversion=6.0 -Dpackaging=jar -Dfile=db4o-6.0-java5.jar
-DgeneratePom=true -DcreateChecksum=true
But unfortunately, I didin't get any checkSum file(sha1 or md5).

What's wrong with the matter?
Thanks in advance.

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/-M2-Why-don%27t-create-checkSum--tf2893952s177.html#a8085453
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 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 -DgroupId=com.db4o -DartifactId=db4o-java5
 -Dversion=6.0 -Dpackaging=jar -Dfile=db4o-6.0-java5.jar
 -DgeneratePom=true -DcreateChecksum=true
 But unfortunately, I didin't get any checkSum file(sha1 or md5).
 
 What's wrong with the matter?
 Thanks in advance.
 
 a cup of Java, cheers!
 Sha Jiang
 

-- 
View this message in context: 
http://www.nabble.com/-M2-Why-don%27t-create-checkSum--tf2893952s177.html#a8094567
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Super POM

2006-12-28 Thread jiangshachina

Hi franz,
I get it.
Thanks very much!

a cup of Java, cheers!
Sha Jiang


franz see wrote:
 
 Good day,
 
 FYI, it's in maven-project ( [1] ). Also you can see it in the
 documentation [2] .
 
 Cheers,
 Franz
 
 [1]
 http://svn.apache.org/repos/asf/maven/components/trunk/maven-project/src/main/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; instead just write your
 configuration etc in your own local project pom.xml file. 
 Of course, I don't modify the POM.
 I just be curious about the matter.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Wayne Fay wrote:
 
 I wrote this email a long, long time ago. ;-)
 
 Since then, I have found out that there certainly is a real super
 pom which is in one of the Maven jars... forget which one, but you
 can find it if you search the Maven jars. But you 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 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 that.

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  There is no Super POM in the filesystem somewhere. It is merely a
 concept.
 
  /home/brian/java/projects/pom.xml
  /home/brian/java/projects/proj1/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj1/lib/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj1/web/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/lib/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/web/pom.xml (parent = ../pom.xml)
 
  Thus all projects will share the /projects/pom.xml as a super pom.
 
  Wayne
 
  On 4/6/06, Brian Robinson [EMAIL PROTECTED] wrote:
  Can anyone tell me where I can find the Super POM on the file
 system?
 
 
 
  I want to have one place where I can have all projects use our
  repository, and I would like to avoid using parent tags in each
  pom.xml in my many projects.  Also, ideally we won't have to have
 every
  developer use their own settings.xml to set this up either.  It
 seems
  like the super POM is the right place to put it, but I can't find
 it.
  Maybe I'm misunderstanding what the Super POM is?
 
 
 
  Thanks,
 
  -Brian
 
 
 
  Even when you've played the game of your life, it's the feeling of
  teamwork that you'll remember. - John C. Maxwell
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Super-POM-tf1407288s177.html#a8039753
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Super-POM-tf1407288s177.html#a8082243
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 There is no Super POM in the filesystem somewhere. It is merely a concept.
 
 /home/brian/java/projects/pom.xml
 /home/brian/java/projects/proj1/pom.xml (parent = ../pom.xml)
 /home/brian/java/projects/proj1/lib/pom.xml (parent = ../pom.xml)
 /home/brian/java/projects/proj1/web/pom.xml (parent = ../pom.xml)
 /home/brian/java/projects/proj2/pom.xml (parent = ../pom.xml)
 /home/brian/java/projects/proj2/lib/pom.xml (parent = ../pom.xml)
 /home/brian/java/projects/proj2/web/pom.xml (parent = ../pom.xml)
 
 Thus all projects will share the /projects/pom.xml as a super pom.
 
 Wayne
 
 On 4/6/06, Brian Robinson [EMAIL PROTECTED] wrote:
 Can anyone tell me where I can find the Super POM on the file system?



 I want to have one place where I can have all projects use our
 repository, and I would like to avoid using parent tags in each
 pom.xml in my many projects.  Also, ideally we won't have to have every
 developer use their own settings.xml to set this up either.  It seems
 like the super POM is the right place to put it, but I can't find it.
 Maybe I'm misunderstanding what the Super POM is?



 Thanks,

 -Brian



 Even when you've played the game of your life, it's the feeling of
 teamwork that you'll remember. - John C. Maxwell





 
 

-- 
View this message in context: 
http://www.nabble.com/Super-POM-tf1407288s177.html#a8039753
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Super POM

2006-12-24 Thread jiangshachina

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; instead just write your
 configuration etc in your own local project pom.xml file. 
Of course, I don't modify the POM.
I just be curious about the matter.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 I wrote this email a long, long time ago. ;-)
 
 Since then, I have found out that there certainly is a real super
 pom which is in one of the Maven jars... forget which one, but you
 can find it if you search the Maven jars. But you 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 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 that.

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  There is no Super POM in the filesystem somewhere. It is merely a
 concept.
 
  /home/brian/java/projects/pom.xml
  /home/brian/java/projects/proj1/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj1/lib/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj1/web/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/lib/pom.xml (parent = ../pom.xml)
  /home/brian/java/projects/proj2/web/pom.xml (parent = ../pom.xml)
 
  Thus all projects will share the /projects/pom.xml as a super pom.
 
  Wayne
 
  On 4/6/06, Brian Robinson [EMAIL PROTECTED] wrote:
  Can anyone tell me where I can find the Super POM on the file system?
 
 
 
  I want to have one place where I can have all projects use our
  repository, and I would like to avoid using parent tags in each
  pom.xml in my many projects.  Also, ideally we won't have to have
 every
  developer use their own settings.xml to set this up either.  It seems
  like the super POM is the right place to put it, but I can't find it.
  Maybe I'm misunderstanding what the Super POM is?
 
 
 
  Thanks,
 
  -Brian
 
 
 
  Even when you've played the game of your life, it's the feeling of
  teamwork that you'll remember. - John C. Maxwell
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Super-POM-tf1407288s177.html#a8039753
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Super-POM-tf1407288s177.html#a8044517
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: sets repository in settings.xml?

2006-12-23 Thread jiangshachina

Hello,
Thanks for the reply.

I know that we can set local repository(-Dmaven.repo.local=xxx) at command
line,
then can I set remote repository(e.g. repository.codehaus.org) at command?
Thanks!

a cup of Java, cheers!
Sha Jiang


Mohni, Daniel wrote:
 
 Hello Sha Jiang
 
 Answers inline...
 
 -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.
 
 of course...
 
 it is described for archiva over here:
 http://maven.apache.org/archiva/guides/getting-started/maven-configurati
 on.html
 
 but you can setup any repository you want in settings.xml
 
 you then only have to deploy the settings.xml to all developers
 in the team...
 
 Regards
 
 Daniel
 
 
 Thanks in advance!
 
 a cup of Java, cheers!
 Sha Jiang
 -- 
 View this message in context: 
 http://www.nabble.com/sets-repository-in-settings.xml--tf28635
 99s177.html#a8002418
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/sets-repository-in-settings.xml--tf2863599s177.html#a8032886
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 that we can set local repository(-Dmaven.repo.local=xxx) at
 command
 line,
 then can I set remote repository(e.g. repository.codehaus.org) at
 command?
 Thanks!

 a cup of Java, cheers!
 Sha Jiang


 Mohni, Daniel wrote:
 
  Hello Sha Jiang
 
  Answers inline...
 
  -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.
 
  of course...
 
  it is described for archiva over here:
 
 http://maven.apache.org/archiva/guides/getting-started/maven-configurati
  on.html
 
  but you can setup any repository you want in settings.xml
 
  you then only have to deploy the settings.xml to all developers
  in the team...
 
  Regards
 
  Daniel
 
 
  Thanks in advance!
 
  a cup of Java, cheers!
  Sha Jiang
  --
  View this message in context:
  http://www.nabble.com/sets-repository-in-settings.xml--tf28635
  99s177.html#a8002418
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/sets-repository-in-settings.xml--tf2863599s177.html#a8032886
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 Mylene
 
 Books just wanna be FREE! See what I mean at:
 http://bookcrossing.com/friend/mylene
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/sets-repository-in-settings.xml--tf2863599s177.html#a8039608
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
version3.1.3/version
exclusions
exclusion
artifactIdjavax.transaction/artifactId
groupIdjta/groupId
/exclusion
/exclusions
/dependency

a cup of Java, cheers!
Sha Jiang


Saminda Abeyruwan-3 wrote:
 
 Hi All,
 
 I have a use case where hibernate involves. In this scenario, I'm using
 Maven2 to download hibernate 3.1.3 jar. If we look at the  pom for this
 jar;
 there is a transitive  dependency to javax.transaction/jta [jta-1.0.1B].
 This, jar is not distributable and not available in repos and we have to
 manually download it from Sun. Thus, we use geronimo-spec-jta, which is
 quite enough for us.
 
 Problem is since the pom says to download jta-1.0.1B, Maven2 build does
 not
 complete automatically. Is there a way to pom.xml or any  other way to say
 that when downloading  hibernate-3.1.3.jar; not to take account the
 transitive dependency jta-1.0.1B.
 
 Thank you
 
 Saminda
 
 -- 
 Saminda Abeyruwan
 
 Software Engineer
 WSO2 - www.wos2.or
 
 

-- 
View this message in context: 
http://www.nabble.com/Transitive-Dependencies-tf2805728s177.html#a7829956
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
   property name=dir value=Absolate_Path_To_The_Directory /
 
   target name=delete
   delete dir=${dir} includeemptydirs=true /
   /target
 /project
 and run ant, then I got a right result.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Wayne Fay wrote:
 
 I'd expect there's some verbose=true kind of settings you can use in
 your ant call to get more information from Ant. This isn't really a
 Maven issue, per se, so you'll need to consult the Ant docs.
 
 Wayne
 
 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 that the antrun task is executing, but I suspect it's not
  finding the directory correctly. From the block of code you pasted, it
  looks like you're using a relative path to select the folder for
 deletion
  - I'd recommend that you use something like
  ${project.build.directory}/checkout/whatever as opposed to just
  checkout/whatever. You may find 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/2006 8:33 PM
  To: users@maven.apache.org
  Subject: Re: delete a directory by maven-antrun-plugin?
 
 
  Dear Wayne,
  I followed your instructions, but didn't find any interesting things.
 
  It's some of output below
  [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime
 (selected
  for runtime)
  [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime
 (selected
  for
  runtime)
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
 project:
  org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
  [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime
 (selected
  for
  runtime)
  [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
  [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
  [DEBUG] Configuring mojo
  'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'--
  [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
  ant:ant-launcher:jar:1.6.5:runtime,
  org.apache.maven:maven-project:jar:2.0.1:runtime,
  org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
  [DEBUG]   (f) project = [EMAIL PROTECTED]
  [DEBUG]   (f) tasks =
  [DEBUG] -- end configuration --
  [INFO] [antrun:run]
  [INFO] Executing tasks
  [INFO] Executed tasks
  [INFO]
 
 
  [INFO] BUILD SUCCESSFUL
 
  a cup of Java, cheers!
  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, but Maven work flow.
  The following is my main pom scripts,
  build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-beta-3/version
 configuration
 usernameusername/username
 passwordpassword/password
 
  checkoutDirectorycheckout/myproject/checkoutDirectory
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idcompile/id

 phasegenerate-resources/phase
 configuration
 tasks
 delete
  dir=checkout\myproject\specific_directory
 
  includeemptydirs=true/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions

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, 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.
 
 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 PROTECTED] wrote:


 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
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
 /plugin
 then I run mvn antrun:run,
 unfortunately, Maven didn't delete the directory.
 How can I resolve the trouble?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661328
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2006-12-03 Thread jiangshachina

Dear dan,
 are you sure you did point ant:delete to a valid directory? ;-)
Really, I don't know the plugin.
How can I get its home page?

a cup of Java, cheers!
Sha Jiang


dan tran wrote:
 
 are you sure you did point ant:delete to a valid directory? ;-)
 
 i works for me here
 
 -D
 
 
 On 12/3/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 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.
 
  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 PROTECTED] wrote:
 
 
  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
 configuration
 tasks
 delete dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
  /plugin
  then I run mvn antrun:run,
  unfortunately, Maven didn't delete the directory.
  How can I resolve the trouble?
 
  a cup of Java, cheers!
  Sha Jiang
  --
  View this message in context:
 
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661328
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661702
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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

2006-12-03 Thread jiangshachina

Hello Ryan,
Really, I didn't create a right Ant statements.
But my trouble isn't related to Ant scripts, but Maven work flow.
The following is my main pom scripts,
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password

checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete 
dir=checkout\myproject\specific_directory

includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
addtionally, I have set scmconnection in project.
I'm using command mvn scm:checkout antrun:run.
In the console, I saw some words about antrun work, but it did nothing :(

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
 
 Hi Sha,
 
 There are a couple things I can recommend:
 
 * To see what you are deleting, do:
 
 tasks
   echo message=Deleting ${the_directory}.../
   delete dir=the_directory/
 /tasks
 
 Of course, if you are hardcoding a directory as opposed to using e.g.
 ${basedir}/something, then this won't be very helpful
 
 * Ant's delete task has an annoying habit of deleting *only* 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, 2006 2:34 AM
 To: users@maven.apache.org
 Subject: Re: delete a directory by maven-antrun-plugin?
 
 
 Dear dan,
 are you sure you did point ant:delete to a valid directory? ;-)
 Really, I don't know the plugin.
 How can I get its home page?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 dan tran wrote:
 
 are you sure you did point ant:delete to a valid directory? ;-)
 
 i works for me here
 
 -D
 
 
 On 12/3/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 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.
 
  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 PROTECTED] wrote:
 
 
  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
 configuration
 tasks
 delete
 dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
  /plugin
  then I run mvn antrun:run,
  unfortunately, Maven didn't delete the directory.
  How can I resolve the trouble?
 
  a cup of Java, cheers!
  Sha Jiang
  --
  View this message in context:
 
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
 45727s177.html#a7660767
  Sent from the Maven - Users mailing list archive at Nabble.com

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

2006-12-03 Thread jiangshachina

Dear Wayne,
I followed your instructions, but didn't find any interesting things.

It's some of output below
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: 
org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for
runtime)
[DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'--
[DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
ant:ant-launcher:jar:1.6.5:runtime, 
org.apache.maven:maven-project:jar:2.0.1:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) tasks =
[DEBUG] -- end configuration --
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]

[INFO] BUILD SUCCESSFUL

a cup of Java, cheers!
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, but Maven work flow.
 The following is my main pom scripts,
 build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password
   
 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory
   
 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection in project.
 I'm using command mvn scm:checkout antrun:run.
 In the console, I saw some words about antrun work, but it did nothing :(

 a cup of Java, cheers!
 Sha Jiang


 Ryan Slobojan wrote:
 
  Hi Sha,
 
  There are a couple things I can recommend:
 
  * To see what you are deleting, do:
 
  tasks
echo message=Deleting ${the_directory}.../
delete dir=the_directory/
  /tasks
 
  Of course, if you are hardcoding a directory as opposed to using e.g.
  ${basedir}/something, then this won't be very helpful
 
  * Ant's delete task has an annoying habit of deleting *only* 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, 2006 2:34 AM
  To: users@maven.apache.org
  Subject: Re: delete a directory by maven-antrun-plugin?
 
 
  Dear dan,
  are you sure you did point ant:delete to a valid directory? ;-)
  Really, I don't know the plugin.
  How can I get its home page?
 
  a cup of Java, cheers!
  Sha Jiang
 
 
  dan tran wrote:
 
  are you sure you did point ant:delete to a valid directory? ;-)
 
  i works for me here
 
  -D
 
 
  On 12/3/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 to delete directory,
   the work isn't related to compile, package, or others.
  
   a cup of Java, cheers!
   Sha Jiang
  
  
   jiangshachina wrote

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

2006-12-03 Thread jiangshachina

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 that the antrun task is executing, but I suspect it's not
 finding the directory correctly. From the block of code you pasted, it
 looks like you're using a relative path to select the folder for deletion
 - I'd recommend that you use something like
 ${project.build.directory}/checkout/whatever as opposed to just
 checkout/whatever. You may find 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/2006 8:33 PM
 To: users@maven.apache.org
 Subject: Re: delete a directory by maven-antrun-plugin?
  
 
 Dear Wayne,
 I followed your instructions, but didn't find any interesting things.
 
 It's some of output below
 [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
 for runtime)
 [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
 for
 runtime)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: 
 org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
 [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected
 for
 runtime)
 [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
 [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
 [DEBUG] Configuring mojo
 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'--
 [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
 ant:ant-launcher:jar:1.6.5:runtime, 
 org.apache.maven:maven-project:jar:2.0.1:runtime,
 org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
 [DEBUG]   (f) project = [EMAIL PROTECTED]
 [DEBUG]   (f) tasks =
 [DEBUG] -- end configuration --
 [INFO] [antrun:run]
 [INFO] Executing tasks
 [INFO] Executed tasks
 [INFO]
 
 [INFO] BUILD SUCCESSFUL
 
 a cup of Java, cheers!
 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, but Maven work flow.
 The following is my main pom scripts,
 build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password
   
 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory
   
 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection in project.
 I'm using command mvn scm:checkout antrun:run.
 In the console, I saw some words about antrun work, but it did nothing
 :(

 a cup of Java, cheers!
 Sha Jiang


 Ryan Slobojan wrote:
 
  Hi Sha,
 
  There are a couple things I can recommend:
 
  * To see what you are deleting, do:
 
  tasks
echo message=Deleting ${the_directory}.../
delete dir=the_directory/
  /tasks
 
  Of course, if you are hardcoding a directory as opposed to using e.g.
  ${basedir}/something, then this won't be very helpful
 
  * Ant's delete task has an annoying habit of deleting *only* the files
  inside of a directory, not the directories themselves. To get it ot
  delete the directories, you need to:
 
  delete dir=the_directory

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

2006-12-03 Thread jiangshachina

Dear Wayne,
As your said, the trouble is very strange.
I created a build.xml,
project basedir=. default=delete
property name=dir value=Absolate_Path_To_The_Directory /

target name=delete
delete dir=${dir} includeemptydirs=true /
/target
/project
and run ant, then I got a right result.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 I'd expect there's some verbose=true kind of settings you can use in
 your ant call to get more information from Ant. This isn't really a
 Maven issue, per se, so you'll need to consult the Ant docs.
 
 Wayne
 
 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 that the antrun task is executing, but I suspect it's not
  finding the directory correctly. From the block of code you pasted, it
  looks like you're using a relative path to select the folder for
 deletion
  - I'd recommend that you use something like
  ${project.build.directory}/checkout/whatever as opposed to just
  checkout/whatever. You may find 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/2006 8:33 PM
  To: users@maven.apache.org
  Subject: Re: delete a directory by maven-antrun-plugin?
 
 
  Dear Wayne,
  I followed your instructions, but didn't find any interesting things.
 
  It's some of output below
  [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime
 (selected
  for runtime)
  [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
  for
  runtime)
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
 project:
  org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
  [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected
  for
  runtime)
  [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
  [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
  [DEBUG] Configuring mojo
  'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'--
  [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
  ant:ant-launcher:jar:1.6.5:runtime,
  org.apache.maven:maven-project:jar:2.0.1:runtime,
  org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
  [DEBUG]   (f) project = [EMAIL PROTECTED]
  [DEBUG]   (f) tasks =
  [DEBUG] -- end configuration --
  [INFO] [antrun:run]
  [INFO] Executing tasks
  [INFO] Executed tasks
  [INFO]
 
 
  [INFO] BUILD SUCCESSFUL
 
  a cup of Java, cheers!
  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, but Maven work flow.
  The following is my main pom scripts,
  build
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-beta-3/version
 configuration
 usernameusername/username
 passwordpassword/password
 
  checkoutDirectorycheckout/myproject/checkoutDirectory
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idcompile/id

 phasegenerate-resources/phase
 configuration
 tasks
 delete
  dir=checkout\myproject\specific_directory
 
  includeemptydirs=true/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin
 /plugins
  /build
  addtionally, I have set scmconnection in project.
  I'm using command mvn scm:checkout antrun:run.
  In the console, I saw some

Re: adds same artifacts(different version)?

2006-12-02 Thread jiangshachina

Hi franz,
Thanks in advance.
Your instructions have general purpose.
I'll check it.

a cup of Java, cheers!
Sha Jiang


franz see wrote:
 
 Good day to you, Sha Jiang,
 
 Maven2 handles dependencies by searching for versionless artifact keys
 from the dependency tree and chooses the version which is closest to the
 root ( the pom you ran your mvn command on ). Therefore, you cannot depend
 on two different versions of an artifact. If you see a name-x.jar and a
 name-y.jar, then that would most likely mean that they are of different
 groupIds ( either that or you failed to clean, or it was placed there by
 some other plugin like maven-dependency-plugin, maven-assembly-plugin,
 maven-antrun-plugin, etc).
 
 Btw, the artifcat key is the name of the artifact in the following format
 - groupId:artifactId:version. Thus, a versionless artifact key is of
 the format, groupId:artifactId.
 
 To trace your dependency tree, you can use mvn
 project-info-reports:dependencies. This will then generate a dependency
 tree report in your traget\site\dependencies.html. Furthermore, if you
 doubt the information given by that report, you can add the -X option in
 your maven command so that you can 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 files are all in WEB-INF/lib.
 How to resolve the problem?
 
 More strangely, I changed the POM of artifact acegi-security-1.0.2.jar,
 and made it to use ehcache-1.2.3.jar,
 But ehcache-1.1.jar still was in WEB-INF/lib.
 May ehcache-1.1.jar is other (direct or indirect) dependencies'
 transitive denpendency,
 but I can't find all.
 How to resolve the problem?
 
 Thanks in advance.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7652134
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 get it?

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/checkout-from-several-modules--tf2742630s177.html#a7652248
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
then I run mvn antrun:run,
unfortunately, Maven didn't delete the directory.
How can I resolve the trouble?

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 PROTECTED] wrote:


 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
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
 /plugin
 then I run mvn antrun:run,
 unfortunately, Maven didn't delete the directory.
 How can I resolve the trouble?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660876
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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.
 
 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 PROTECTED] wrote:


 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
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
 /plugin
 then I run mvn antrun:run,
 unfortunately, Maven didn't delete the directory.
 How can I resolve the trouble?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660899
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: adds same artifacts(different version)?

2006-11-30 Thread jiangshachina

Dear Wayne,
I also wish to use the approach you indicated.
But in my mind, I cannot exactly set only one artifact(e.g. ehcache-1.1.jar)
in exclusion ,
because only there are groupId and artifaceId for setting.
If I use the element, I may exclude all ehcache artifacts(1.1, 1.2.3, ...).
That's my 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 PROTECTED] wrote:

 Hi Wayne,
 This time, I used
 plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.1/version
configuration
warSourceExcludesWEB-INF/lib/some.jar/warSourceExcludes
/configuration
 /plugin
 to excludes the jar files by hard way.

  Alternatively since it sounds like you are already changing poms in
  your repo (not generally a good idea imo)
 I agree with you, so finally, I don't use the approach.

 a cup of Java, cheers!
 Sha Jiang


 Wayne Fay wrote:
 
  There is no shortcut per se. You need to find each such situation
  and explicitly exclude the old/invalid artifact and explicitly add the
  proper/new artifact to your dependency list.
 
  Alternatively since it sounds like you are already changing poms in
  your repo (not generally a good idea imo), you could just change the
  dependency directly in the associated project pom 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/artifactId
 version1.1/version
 optionaltrue/optional
  /dependency
 
 
  a cup of Java, cheers!
  Sha Jiang
 
 
  jiangshachina wrote:
  
   Hi Wendy,
   You are right.
   My declaration,
   dependency
 groupIdnet.sf.ehcache/groupId
 artifactIdehcache/artifactId
 version1.2.3/version
   /dependency
  
   But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets
 the
   following,
   dependency
   groupIdnet.sf.ehcache/groupId
   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 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?
  
   When you say you declare a dependency, we need to see the whole
 thing:
groupId, artifactId, and version.
  
   My guess is that your EHCache jars are coming from two different
   groupIds, so Maven can't figure out that they are the same.
  
   http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
   http://repo1.maven.org/maven2/ehcache/ehcache/
  
   The output of mvn clean install -X should help you figure out
 where
   each one is coming from.
  
   --
   Wendy
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614503
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7616252
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [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 indicated.
 But in my mind, I cannot exactly set only one artifact(e.g.
 ehcache-1.1.jar)
 in exclusion ,
 because only there are groupId and artifaceId for setting.
 If I use the element, I may exclude all ehcache artifacts(1.1, 1.2.3,
 ...).
 That's my agony :(
 
 a cup of Java, cheers!
 Sha Jiang
 
 Hi,
 
 Sure you can use the approach - I have the same situation, and I do this:
 
dependency
  groupIdorg.acegisecurity/groupId
  artifactIdacegi-security/artifactId
  version1.0.2/version
  scopecompile/scope
  exclusions
exclusion
  groupIdehcache/groupId
  artifactIdehcache/artifactId
/exclusion
  /exclusions
/dependency
 
dependency
  groupIdnet.sf.ehcache/groupId
  artifactIdehcache/artifactId
  version1.2.3/version
/dependency
 
 It works nicely - you exclude only that specific ehcache:ehcache:1.1 
 specified in acegi-security POM from transitive inclusion, but 
 net.sf.ehcache:ehcache:1.2.3 is a completely unrelated artifact, 
 according to Maven.
 
 
 Have fun,
 
 Andrius
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7631787
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 Bankras
 Software Engineer
 JTeam b.v.
 
 
  
 
The HYPERLINK http://legal.jteam.nl/JTeamGeneralConditions.pdfGeneral
 Conditions JTeam B.V. apply to all proposals and
 
deliveries made by JTeam B.V. The General Conditions JTeam B.V. 
 
are filed at the Chamber of Commerce in Amsterdam under number
 
204/2002 as well as with the clerk of the court's office of the
 district
 
court in Amsterdam under number 204/2002 and will be sent upon
 
request. 
 
  
 
  
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.409 / Virus Database: 268.14.19/556 - Release Date:
 11/28/2006
  
 
 

-- 
View this message in context: 
http://www.nabble.com/deploy-sources-tf2723599s177.html#a7596216
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 changed the POM of artifact acegi-security-1.0.2.jar, and
made it to use ehcache-1.2.3.jar,
But ehcache-1.1.jar still was in WEB-INF/lib.
May ehcache-1.1.jar is other (direct or indirect) dependencies' transitive
denpendency,
but I can't find all.
How to resolve the problem?

Thanks in advance.

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613187
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina

Hi Wendy,
You are right.
My declaration,
dependency
groupIdnet.sf.ehcache/groupId
artifactIdehcache/artifactId
version1.2.3/version
/dependency

But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the
following,
dependency
groupIdnet.sf.ehcache/groupId
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 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?
 
 When you say you declare a dependency, we need to see the whole thing:
  groupId, artifactId, and version.
 
 My guess is that your EHCache jars are coming from two different
 groupIds, so Maven can't figure out that they are the same.
 
 http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
 http://repo1.maven.org/maven2/ehcache/ehcache/
 
 The output of mvn clean install -X should help you figure out where
 each one is coming from.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613512
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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.
 My declaration,
 dependency
   groupIdnet.sf.ehcache/groupId
   artifactIdehcache/artifactId
   version1.2.3/version
 /dependency
 
 But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the
 following,
 dependency
 groupIdnet.sf.ehcache/groupId
 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 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?
 
 When you say you declare a dependency, we need to see the whole thing:
  groupId, artifactId, and version.
 
 My guess is that your EHCache jars are coming from two different
 groupIds, so Maven can't figure out that they are the same.
 
 http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
 http://repo1.maven.org/maven2/ehcache/ehcache/
 
 The output of mvn clean install -X should help you figure out where
 each one is coming from.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina

Hello,
The more I use Maven,
the more I think Maven central repository(artifacts) blocks the work of
adding transitive dependencies Automatically.
Dependency and transitive dependency may don't have good hierarchy.
On the aspect, can any body give me some experience?
Thanks in advance! 

a cup 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!
 Sha Jiang
 
 
 jiangshachina wrote:
 
 Hi Wendy,
 You are right.
 My declaration,
 dependency
  groupIdnet.sf.ehcache/groupId
  artifactIdehcache/artifactId
  version1.2.3/version
 /dependency
 
 But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the
 following,
 dependency
 groupIdnet.sf.ehcache/groupId
 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 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?
 
 When you say you declare a dependency, we need to see the whole thing:
  groupId, artifactId, and version.
 
 My guess is that your EHCache jars are coming from two different
 groupIds, so Maven can't figure out that they are the same.
 
 http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
 http://repo1.maven.org/maven2/ehcache/ehcache/
 
 The output of mvn clean install -X should help you figure out where
 each one is coming from.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614442
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: adds same artifacts(different version)?

2006-11-29 Thread jiangshachina

Hi Wayne,
This time, I used
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.1/version
configuration
warSourceExcludesWEB-INF/lib/some.jar/warSourceExcludes
/configuration
/plugin
to excludes the jar files by hard way.

 Alternatively since it sounds like you are already changing poms in
 your repo (not generally a good idea imo)
I agree with you, so finally, I don't use the approach.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 There is no shortcut per se. You need to find each such situation
 and explicitly exclude the old/invalid artifact and explicitly add the
 proper/new artifact to your dependency list.
 
 Alternatively since it sounds like you are already changing poms in
 your repo (not generally a good idea imo), you could just change the
 dependency directly in the associated project pom 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/artifactId
version1.1/version
optionaltrue/optional
 /dependency


 a cup of Java, cheers!
 Sha Jiang


 jiangshachina wrote:
 
  Hi Wendy,
  You are right.
  My declaration,
  dependency
groupIdnet.sf.ehcache/groupId
artifactIdehcache/artifactId
version1.2.3/version
  /dependency
 
  But acegi-security-parent(I'm using acegi-security-1.0.2.jar) sets the
  following,
  dependency
  groupIdnet.sf.ehcache/groupId
  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 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?
 
  When you say you declare a dependency, we need to see the whole thing:
   groupId, artifactId, and version.
 
  My guess is that your EHCache jars are coming from two different
  groupIds, so Maven can't figure out that they are the same.
 
  http://repo1.maven.org/maven2/net/sf/ehcache/ehcache/
  http://repo1.maven.org/maven2/ehcache/ehcache/
 
  The output of mvn clean install -X should help you figure out where
  each one is coming from.
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7613552
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/adds-same-artifacts%28different-version%29--tf2729513s177.html#a7614503
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: How to do native2ascii?

2006-11-28 Thread jiangshachina

Hello, 
I think I really used a wrong work flow.
I switch to the scripts as shown as the following,
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
native2ascii encoding=UTF8 src=src/java
dest=target/classes
includes=**/*zh_CN.properties /
/tasks
/configuration
goals
goalrun/goal
/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
   phasecompile/phase
   configuration
   tasks
   native2ascii encoding=UTF8 src=src/java
   
 dest=target/${project.build.finalName}/WEB-INF/classes
   includes=**/*zh_CN.properties /
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
 /executions
 With my scripts, when Maven compiles sources,
 specific resource files will be processed by native2ascii.exe,
 then they will be putted into WAR/WEB-INF/classes.
 
 But if I set parameter archiveClasses to true for maven-war-plugin,
 two troubles shown,
 [1]directory WAR/WEB-INF/classes still 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:
 
 OK, that's right!
 Thanks very much!
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
 
 Oki, i looked at all jars. You have to add the
 ant-nodeps to your dependencies also.
 
 This contains the optional ant taskdef for
 native2ascii.
 
 dependency
   groupIdant/groupId
   artifactIdant-nodeps/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
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang

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 task native2ascii.
The following is my scripts on the work,
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idresources/id
phaseprocess-resources/phase
configuration
tasks
native2ascii reverse=true 
encoding=UTF8

src=target/sodoperation/WEB-INF/classes

dest=target/sodoperation/WEB-INF/classes
includes=**/*zh_CN.properties 
/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdant/groupId
artifactIdant-antlr/artifactId
version1.6.5/version
/dependency
dependency
groupIdantlr/groupId
artifactIdantlrall/artifactId
version2.7.4/version
/dependency
/dependencies
/plugin
When I run mvn package, an error thrown,
[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks
Embedded error: Could not create task or type of type: native2ascii.
Ant could not find the task or a class this task relies upon.
..

I need some another jars?
How to resolve the problem?
Thanks in advance.

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/How-to-do-%22native2ascii%22--tf2710959s177.html#a7557862
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

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
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
  version1.5.0_09/version
  scopesystem/scope
  systemPath
C:\setup\java\jdk1.5.0_09\lib\tools.jar
  /systemPath
/dependency

The error and information are below,
[ERROR] BUILD ERROR
[INFO]

[INFO] Error executing ant tasks

Embedded error: Could not create task or type of type: native2ascii.

Ant could not find the task or a class this task relies upon.

This is common and has a number of causes; the usual 
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file: 
 - You have misspelt 'native2ascii'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
 and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and the JAR file and/or libraries
 implementing the functionality were not found at the time you
 yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
 task and make sure it contains more than merely a META-INF/MANIFEST.MF.
 If all it contains is the manifest, then rebuild Ant with the needed
 libraries present in ${ant.home}/lib/optional/ , or alternatively,
 download a pre-built release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task 
 and needs to be declared using taskdef.
 - You are attempting to use a task defined using 
presetdef or macrodef but have spelt wrong or not 
   defined it at the point of use

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

The error and information is as the same as that at last time.
It's the first time of using system scope, may I don't understand the scope
well.

a cup of Java, cheers!
Sha Jiang


struberg wrote:
 
 Hi Jiang!
 
 This task is a bit tricky, since the antrun plugin
 does come with almost no dependencies in the default
 pom. This is basically a good idea, since you don't
 have jars lying around which you do not use.
 
 Specially the native2ascii is a bit dirty, since this
 is a special part provided by the sun tools set and
 not the jre libs itself.
 
 Sosince, as sigi pointed out a few weeks ago,  you
 have to add the needed dependency yourself.
 
 
 I guess it's the com.sun.tools you have to add to your
 antrun dependencies:
 
 
 plugin
   artifactIdmaven-antrun-plugin/artifactId
   ...
   dependencies
 dependency
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
  scopesystem/scope
 
 systemPath${java.home}/../lib/tools.jar/systemPath
 /dependency
   /dependencies
 /plugin
  
 lg,
 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 before
 deploying.
 
 Now, I use maven-antrun-plugin to execute Ant task
 native2ascii.
 The following is my scripts on the work,
 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idresources/id
  phaseprocess-resources/phase
  configuration
  tasks
  native2ascii reverse=true 
 encoding=UTF8
  
 src=target/sodoperation/WEB-INF/classes
  
 dest=target/sodoperation/WEB-INF/classes
  includes=**/*zh_CN.properties 
 /
  /tasks
  /configuration
  goals
  goalrun/goal
  /goals
  /execution
  /executions
  dependencies
  dependency
  groupIdant/groupId
  artifactIdant-antlr/artifactId
  version1.6.5/version
  /dependency
  dependency
  groupIdantlr/groupId
  artifactIdantlrall/artifactId
  version2.7.4/version
  /dependency
  /dependencies

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 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
  groupIdcom.sun/groupId
  artifactIdtools/artifactId
  version1.5.0_09/version
  scopesystem/scope
  systemPath
C:\setup\java\jdk1.5.0_09\lib\tools.jar
  /systemPath
 /dependency

 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error executing ant tasks

 Embedded error: Could not create task or type of type: native2ascii.

 Ant could not find the task or a class this task relies upon.

 This is common and has a number of causes; the usual
 solutions are to read the manual pages then download and
 install needed JAR files, or fix the build file:
  - You have misspelt 'native2ascii'.
   Fix: check your spelling.
  - The task needs an external JAR file to execute
 and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
  - The task is an Ant optional task and the JAR file and/or libraries
 implementing the functionality were not found at the time you
 yourself built your installation of Ant from the Ant sources.
   Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
 task and make sure it contains more than merely a
 META-INF/MANIFEST.MF.
 If all it contains is the manifest, then rebuild Ant with the needed
 libraries present in ${ant.home}/lib/optional/ , or alternatively,
 download a pre-built release version from apache.org
  - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
  - The task is not an Ant core or optional task
 and needs to be declared using taskdef.
  - You are attempting to use a task defined using
presetdef or macrodef but have spelt wrong or not
   defined it at the point of use

 Remember that for JAR files to be visible to Ant tasks implemented
 in ANT_HOME/lib, the files must be in the same directory or on the
 classpath

 Please neither file bug reports on this problem, nor email the
 Ant mailing lists, until all of these causes have been explored,
 as this is not an Ant bug.

 The error and information is as the same as that at last time.
 It's the first time of using system scope, may I don't understand the
 scope
 well.

 a cup of Java, cheers!
 Sha Jiang


 struberg wrote:
 
  Hi Jiang!
 
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the default
  pom. This is basically a good idea, since you don't
  have jars lying around which you do not use.
 
  Specially the native2ascii is a bit dirty, since this
  is a special part provided by the sun tools set and
  not the jre libs itself.
 
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
 
 
  I guess it's the com.sun.tools you have to add to your
  antrun dependencies:
 
 
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
 
  systemPath${java.home}/../lib/tools.jar/systemPath
  /dependency
/dependencies
  /plugin
 
  lg,
  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 before
  deploying.
 
  Now, I use maven-antrun-plugin to execute Ant task
  native2ascii.
  The following is my scripts on the work,
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idresources/id
   phaseprocess-resources/phase
   configuration
   tasks
   native2ascii reverse=true
 encoding=UTF8
  
 src=target/sodoperation/WEB-INF/classes
  
 dest=target/sodoperation/WEB-INF/classes
  
 includes=**/*zh_CN.properties /
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   dependencies
   dependency

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

OK, that's right!
Thanks very much!

a cup of Java, cheers!
Sha Jiang


struberg wrote:
 
 Oki, i looked at all jars. You have to add the
 ant-nodeps to your dependencies also.
 
 This contains the optional ant taskdef for
 native2ascii.
 
 dependency
   groupIdant/groupId
   artifactIdant-nodeps/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
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang!
  
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the
 default
  pom. This is basically a good idea, since you
 don't
  have jars lying around which you do not use.
  
  Specially the native2ascii is a bit dirty, since
 this
  is a special part provided by the sun tools set
 and
  not the jre libs itself.
  
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
  
  
  I guess it's the com.sun.tools you have to add to
 your
  antrun dependencies:
  
  
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
  
 

 systemPath${java.home}/../lib/tools.jar/systemPath
  /dependency
/dependencies
  /plugin
   
  lg,
  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 before
  deploying.
  
  Now, I use maven-antrun-plugin to execute Ant
 task
  native2ascii.
  The following is my scripts on the work,
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idresources/id
phaseprocess-resources/phase
configuration
tasks
native2ascii reverse=true 
  encoding=UTF8

  src=target/sodoperation/WEB-INF/classes

  dest=target/sodoperation/WEB-INF/classes
includes=**/*zh_CN.properties 
  /
/tasks

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina

Hello,
Now I have another troubles.
executions
execution
idcompile/id
phasecompile/phase
configuration
tasks
native2ascii encoding=UTF8 src=src/java

dest=target/${project.build.finalName}/WEB-INF/classes
includes=**/*zh_CN.properties /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
With my scripts, when Maven compiles sources,
specific resource files will be processed by native2ascii.exe,
then they will be putted into WAR/WEB-INF/classes.

But if I set parameter archiveClasses to true for maven-war-plugin,
two troubles shown,
[1]directory WAR/WEB-INF/classes still 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:
 
 OK, that's right!
 Thanks very much!
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
 
 Oki, i looked at all jars. You have to add the
 ant-nodeps to your dependencies also.
 
 This contains the optional ant taskdef for
 native2ascii.
 
 dependency
   groupIdant/groupId
   artifactIdant-nodeps/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
   groupIdcom.sun/groupId
   artifactIdtools/artifactId
   version1.5.0_09/version
   scopesystem/scope
   systemPath
 C:\setup\java\jdk1.5.0_09\lib\tools.jar
   /systemPath
 /dependency
 
 The error and information are below,
 [ERROR] BUILD ERROR
 [INFO]

 
 [INFO] Error executing ant tasks
 
 Embedded error: Could not create task or type of
 type: native2ascii.
 
 Ant could not find the task or a class this task
 relies upon.
 
 This is common and has a number of causes; the usual
 
 solutions are to read the manual pages then download
 and
 install needed JAR files, or fix the build file: 
  - You have misspelt 'native2ascii'.
Fix: check your spelling.
  - The task needs an external JAR file to execute
  and this is not found at the right place in the
 classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
  - The task is an Ant optional task and the JAR file
 and/or libraries
  implementing the functionality were not found
 at the time you
  yourself built your installation of Ant from
 the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR
 corresponding to the
  task and make sure it contains more than merely
 a META-INF/MANIFEST.MF.
  If all it contains is the manifest, then
 rebuild Ant with the needed
  libraries present in ${ant.home}/lib/optional/
 , or alternatively,
  download a pre-built release version from
 apache.org
  - The build file was written for a later version of
 Ant
Fix: upgrade to at least the latest release
 version of Ant
  - The task is not an Ant core or optional task 
  and needs to be declared using taskdef.
  - You are attempting to use a task defined using 
 presetdef or macrodef but have spelt wrong
 or not 
defined it at the point of use
 
 Remember that for JAR files to be visible to Ant
 tasks implemented
 in ANT_HOME/lib, the files must be in the same
 directory or on the
 classpath
 
 Please neither file bug reports on this problem, nor
 email the
 Ant mailing lists, until all of these causes have
 been explored,
 as this is not an Ant bug.
 
 The error and information is as the same as that at
 last time.
 It's the first time of using system scope, may I
 don't understand the scope
 well.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 struberg wrote:
  
  Hi Jiang!
  
  This task is a bit tricky, since the antrun plugin
  does come with almost no dependencies in the
 default
  pom. This is basically a good idea, since you
 don't
  have jars lying around which you do not use.
  
  Specially the native2ascii is a bit dirty, since
 this
  is a special part provided by the sun tools set
 and
  not the jre libs itself.
  
  Sosince, as sigi pointed out a few weeks ago,  you
  have to add the needed dependency yourself.
  
  
  I guess it's the com.sun.tools you have to add to
 your
  antrun dependencies:
  
  
  plugin
artifactIdmaven-antrun-plugin/artifactId
...
dependencies
  dependency
groupIdcom.sun/groupId
artifactIdtools/artifactId
   scopesystem/scope
  
 

 systemPath${java.home}/../lib/tools.jar

Re: Why reported need class or interface?

2006-11-26 Thread jiangshachina

Hi,
I can set paramenter encoding for maven-resources-plugin.
I don't really understand the parameter.
For example, one of my original file is ISO8895-1 encoding,
and I set paramenter encoding to UTF-8.
After build works, what would happened?
Maven would convert the encoding of the file from 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 to localization.
 On develop time, I have to write natural language; on runtime, application
 must use ASCII codes.
 Then I have to convert the native resource files to ASCII files 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 to compile source directly, and found that the trouble was
 caused by encoding.
 I used Windows 2000 Chinese edition(GBK encoding default), and the
 encoding of my source files is UTF-8.
 May javac uses GBK encoding for compile all source.
 I set encoding parameter to UTF-8 in maven-compiler-plugin.
 
 Additionally, Maven can do some thing, likes native2ascii.exe do that?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 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 the same JDK/JRE.
 
 What's wrong with the matter?!
 Thanks in advance!
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Why-reported-%22need-class-or-interface%22--tf2697720s177.html#a7545847
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/Warnning-on-%22org.apache.axis2%3Aaxis2-kernel%3Apom%3A1.1%22--tf2706501s177.html#a7546102
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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' is invalid.
 It will be ignored for artifact resolution.
 
 This is a known issue. Unfortunately it can only be fixed with a new
 release Axis 2 1.1.1. See
 
 http://marc.theaimsgroup.com/?t=11641106131r=1w=2
 
 for a discussion on the issue.
 
 As a workaround, you can very easily fix the issue manually by editing
 
axis2-parent-1.1.pom
 
 Search for the following dependency:
 
 dependency
   groupIdorg.apache.neethi/groupId
   artifactIdneethi/artifactId
   version2.0/version
 /dependency
 
 and change the groupId to org.apache.ws.commons.neethi
 
 
 Jochen
 
 -- 
 My wife Mary and I have been married for forty-seven years and not
 once have we had an argument serious enough to consider divorce;
 murder, yes, but divorce, never.
 (Jack Benny)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Warnning-on-%22org.apache.axis2%3Aaxis2-kernel%3Apom%3A1.1%22--tf2706501s177.html#a7553595
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-26 Thread jiangshachina

Hi Wendy,
 Correct.  Optional dependencies are not transitive.  If jta is
 optional for Spring, and you want it, you'll need to declare it.
I had done.
I declared jta-1.0.1B.jar as dependency(not dependency management)
explicitly.

 Early in this thread you posted a pom snippet that used
 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 [EMAIL PROTECTED] wrote:
 
 For example, on jta artifact.
 others POM declares jta-1.0.B.jar as dependency directly,
 and spring-parent.pom(Spring artifacts' parent POM) declares jta as
 optional.
 Then jta-1.0.B.jar wasn't in WEB-INF/lib, too.
 
 Correct.  Optional dependencies are not transitive.  If jta is
 optional for Spring, and you want it, you'll need to declare it.
 
 I removed all of optional on jta, then run mvn package.
 The result was the same, jta-1.0.1B.jar still wasn't in WEB-INF/lib.
 And I search the repository, no dependency declares jta in excludes
 block.
 I'm very blocked by the matter?
 
 Early in this thread you posted a pom snippet that used
 dependencyManagement, and I wonder if that's where you're making the
 changes that don't seem to take effect.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7553799
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-26 Thread jiangshachina

Hi,
 Additionally, at the begging of the project, I set all dependencies in
 only one pom.
 At that time, all was OK. It sounds that the relation was very clean and
 simple.
 But now, why I have to encounter so ambiguous relationship?! 
Now, I have to return to the original POMs.
Then all is OK.
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 dependencies are not transitive.  If jta is
 optional for Spring, and you want it, you'll need to declare it.
 I had done.
 I declared jta-1.0.1B.jar as dependency(not dependency management)
 explicitly.
 
 Early in this thread you posted a pom snippet that used
 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 [EMAIL PROTECTED] wrote:
 
 For example, on jta artifact.
 others POM declares jta-1.0.B.jar as dependency directly,
 and spring-parent.pom(Spring artifacts' parent POM) declares jta as
 optional.
 Then jta-1.0.B.jar wasn't in WEB-INF/lib, too.
 
 Correct.  Optional dependencies are not transitive.  If jta is
 optional for Spring, and you want it, you'll need to declare it.
 
 I removed all of optional on jta, then run mvn package.
 The result was the same, jta-1.0.1B.jar still wasn't in WEB-INF/lib.
 And I search the repository, no dependency declares jta in excludes
 block.
 I'm very blocked by the matter?
 
 Early in this thread you posted a pom snippet that used
 dependencyManagement, and I wonder if that's where you're making the
 changes that don't seem to take effect.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7554005
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 sent it twice within an hour best to ping cruise control
 list.
 
 That's what he did in parallel and also twice ;) However, the double 
 sending of the posting apparently happened by accident, not on purpose.
 
 -Gisbert
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-continuous-integrate-Maven2-projects--tf2690860s177.html#a7535590
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Why reported need class or interface?

2006-11-25 Thread jiangshachina

Hi,
 Additionally, Maven can do some thing, likes native2ascii.exe do that?
I must write some resource files related to localization.
On develop time, I have to write natural language; on runtime, application
must use ASCII codes.
Then I have to convert the native resource files to ASCII files 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 to compile source directly, and found that the trouble was
 caused by encoding.
 I used Windows 2000 Chinese edition(GBK encoding default), and the
 encoding of my source files is UTF-8.
 May javac uses GBK encoding for compile all source.
 I set encoding parameter to UTF-8 in maven-compiler-plugin.
 
 Additionally, Maven can do some thing, likes native2ascii.exe do that?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 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 the same JDK/JRE.
 
 What's wrong with the matter?!
 Thanks in advance!
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Why-reported-%22need-class-or-interface%22--tf2697720s177.html#a7537151
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Don't add dependency?

2006-11-25 Thread jiangshachina

Hello,
I encountered a similar trouble.
I have a Web application, which is built on Struts, Spring and Hibernate.
At beginning, I added all of dependencies in one POM, then my real
application project extends the POM(artifact).
But since more and more artifacts are depended. The POM is more and more
bigger.
Now I split the POM into six smaller POMs. They declare dependencies on
Struts, Spring, Hibernate, Apache, javax and others respectively.
And they have following extension hierarchy,
others--javax--Apache--Hibernate--Spring--Struts

But in fact, the relation on dependency is complicated.
Because many dependencies have transitive dependencies.
Some dependencies may have same transitive dependencies, but version are
different.

For example, on servlet-api artiface.
I declare servlet-api-2.4.jar in others POM, but commons-loggin(in Apache
POM) has transitive dependency servlet-api-2.3.jar. Both of them are compile
scope.
When I run mvn package for the Web project, I found that
servlet-api-2.3.jar, but servlet-api-2.4.jar, in WEB-INF/lib.
If I modified POM of commons-loggin, and declared servlet-api-2.3.jar as
provided dependency, then none of them would be put into WEB-INF/lib!

For example, on jta artifact.
others POM declares jta-1.0.B.jar as dependency directly, and
spring-parent.pom(Spring artifacts' parent POM) declares jta as optional.
Then jta-1.0.B.jar wasn't in WEB-INF/lib, too.

The trouble is very very trouble.
How to explain and solve the problem?
Thanks 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-1.0.1B.jar isn't at central repository.
 But jta is transitive dependency of yy another dependency
 hibernate-3.0.jar, so I excludes 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. 
 
 No, it is worse. It depends on the internal sequence the deps are
 processed. If the local jta declaration is found before the hibernate one,
 jta would have been *not* excluded. Since the sequence of this list
 changes with every arbitrary added or removed dep (or new version) I
 believe that is based on a iterator over a hash map ... which makes it
 really annoying.
 
 The bug is supposed to be fixed since months in subversion though ... like
 so many other ones.
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7537433
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-25 Thread jiangshachina

Hi Wendy,
 These poms are incorrect -- servlet-api shouldn't be in compile scope.
I see.

 Another way that will work is to declare the servlet-api dependency in
 your own project and properly mark it 'provided'.  Since Maven uses
 the closest definition for each artifact, that one will win.
[1]If I set both of servlet-api-2.3(in commons-logging-1.1.pom) and
servlet-api-2.4(in my own declared pom) to provided scope.
Then run mvn package, none of them would be putted into WEB-INF/lib;
run mvn eclipse:eclipse, none of them would be in .classpath file.
That 's not my want. I wish servlet-api-2.4.jar in .classpath file.
[2]If I set both of them to compile scope.
Then run mvn package, only servlet-api-2.3.jar would be puutted into
WEB-INF/lib;
run mvn eclipse:eclipse, only servlet-api-2.3.jar in .classpath file.
[3]If I set servlet-api-2.4.jar to compile scope, and modify
commons-loggin-1.1.pom and set servlet-api-2.3.jar to provided scope.
Then run mvn package, none of servlet-api would be putted in WEB-INF/lib;
run mvn eclipse:eclipse, none would be in .classpath.
According the three cases, it really means that Maven uses the closest
scope for one dependency.
But what about version?
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, on servlet-api artiface.
 I declare servlet-api-2.4.jar in others POM, but commons-loggin(in Apache
 POM) has transitive dependency servlet-api-2.3.jar. Both of them are
 compile
 scope.
 
 These poms are incorrect -- servlet-api shouldn't be in compile scope.
 
 When I run mvn package for the Web project, I found that
 servlet-api-2.3.jar, but servlet-api-2.4.jar, in WEB-INF/lib.
 If I modified POM of commons-loggin, and declared servlet-api-2.3.jar as
 provided dependency, then none of them would be put into WEB-INF/lib!
 
 Modifying public poms is one way to do it, and can work if you have
 complete control of an internal corporate repository.
 
 A better way to fix this is to add exclusions to the dependencies
 that are causing the problem, then go back to the project in question
 and ask them to fix it in the next release.  Quite often the project
 causing the problem is not using m2 to build, and the developers don't
 understand what happens when they leave everything in compile scope.
 
 Another way that will work is to declare the servlet-api dependency in
 your own project and properly mark it 'provided'.  Since Maven uses
 the closest definition for each artifact, that one will win.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7545093
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-25 Thread jiangshachina

Hi Wendy,
 For example, on jta artifact.
 others POM declares jta-1.0.B.jar as dependency directly, 
 and spring-parent.pom(Spring artifacts' parent POM) declares jta as
 optional.
 Then jta-1.0.B.jar wasn't in WEB-INF/lib, too. 
I think I was wrong on optinal
I removed all of optional on jta, then run mvn package.
The result was the same, jta-1.0.1B.jar still wasn't in WEB-INF/lib.
And I search the repository, no dependency declares jta in excludes block.
I'm very blocked by the matter?

Additionally, at the begging of the project, I set all dependencies in only
one pom.
At that time, all 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, on servlet-api artiface.
 I declare servlet-api-2.4.jar in others POM, but commons-loggin(in Apache
 POM) has transitive dependency servlet-api-2.3.jar. Both of them are
 compile
 scope.
 
 These poms are incorrect -- servlet-api shouldn't be in compile scope.
 
 When I run mvn package for the Web project, I found that
 servlet-api-2.3.jar, but servlet-api-2.4.jar, in WEB-INF/lib.
 If I modified POM of commons-loggin, and declared servlet-api-2.3.jar as
 provided dependency, then none of them would be put into WEB-INF/lib!
 
 Modifying public poms is one way to do it, and can work if you have
 complete control of an internal corporate repository.
 
 A better way to fix this is to add exclusions to the dependencies
 that are causing the problem, then go back to the project in question
 and ask them to fix it in the next release.  Quite often the project
 causing the problem is not using m2 to build, and the developers don't
 understand what happens when they leave everything in compile scope.
 
 Another way that will work is to declare the servlet-api dependency in
 your own project and properly mark it 'provided'.  Since Maven uses
 the closest definition for each artifact, that one will win.
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7545206
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
dependency:copy-dependencies,
Maven will use plugin org.codehaus.mojo:dependency-maven-plugin:1.0.
Why Maven chose dependency-maven-plugin, but maven-dependency-plugin, by
default?

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 You can run with mvn -X ...to get more specific debugging information
 about what plugin is causing your problems etc.
 
 However, I'd just delete your local Maven2 repository
 (~/.m2/repository) and try again. Maven will automatically download
 the files it needs to construct your project.
 
 I'd suspect that you have simply managed to get a bad plugin JAR in
 your repo somewhere. Especially given that you're behind a firewall --
 many people attempt to run Maven without configuring things at first
 and end up with corrupt JARs etc. Then they realize they need to
 configure their firewall proxy and the old corrupt artifacts are still
 waiting in your ~/.m2 repo to bite you in the future.
 
 Wayne
 
 On 11/3/06, bernulfiskus [EMAIL PROTECTED] wrote:

 Hi!

 I'm new with Maven - i created a simple sample-project, if i compile the
 project i get a nullpointer-Exception!
 I'm behind a firewall, a proxy is configured...

 Any Idea?

 Bernie


 [INFO] Building Maven Default Project
 [INFO]task-segment: [compile]
 [INFO]
 
 [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
 central
 [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
 for
 project: null:maven-r
 plugin:2.2 from the repository.
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
 project:
 org.apache.maven.plug
 1 from the repository.
 [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
 org.apache.maven:maven-parent:pom
 .
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] null
 [INFO]
 
 [DEBUG] Trace
 java.lang.NullPointerException
 at
 org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292)


 --
 View this message in context:
 http://www.nabble.com/Nullpointer-Exception-addPlugin-tf2567630s177.html#a7156625
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Nullpointer-Exception-addPlugin-tf2567630s177.html#a7519773
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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.

What's wrong with the matter?!
Thanks in advance!

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/Why-reported-%22need-class-or-interface%22--tf2697720s177.html#a7523749
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Why reported need class or interface?

2006-11-24 Thread jiangshachina

Hello,
I used javac to compile source directly, and found that the trouble was
caused by encoding.
I used Windows 2000 Chinese edition(GBK encoding default), and the encoding
of my source files is UTF-8.
May javac uses GBK encoding for compile all source.
I set encoding parameter to UTF-8 in maven-compiler-plugin.

Additionally, Maven can convert encoding of all files, likes
native2ascii.exe in JDK?
I set encoding parameter to UTF-8 in maven-resources-plugin, but the
encodings of my resources file still aren't converted.
How to solve the problem? 

a cup of Java, cheers!
Sha Jiang


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 the same JDK/JRE.
 
 What's wrong with the matter?!
 Thanks in advance!
 
 a cup of Java, cheers!
 Sha Jiang
 

-- 
View this message in context: 
http://www.nabble.com/Why-reported-%22need-class-or-interface%22--tf2697720s177.html#a7535576
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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
idce/id
nameCE Central Maven Repository/name
urlhttp://172.20.82.35:8080/maven//url
/repository
/repositories
I run mvn package for the application.
I found that some artifacts were downloaded from my own shared repository,
but others were from central repository.

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/Download-from-central-or-mine--tf2691811s177.html#a7506181
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 didn't use jta-1.0.1B, but j2ee-1.4.jar, because
 jta-1.0.1B.jar isn't at central repository.
 But jta is transitive dependency of yy another dependency
 hibernate-3.0.jar, so I excludes 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. 
 
 No, it is worse. It depends on the internal sequence the deps are
 processed. If the local jta declaration is found before the hibernate one,
 jta would have been *not* excluded. Since the sequence of this list
 changes with every arbitrary added or removed dep (or new version) I
 believe that is based on a iterator over a hash map ... which makes it
 really annoying.
 
 The bug is supposed to be fixed since months in subversion though ... like
 so many other ones.
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7487130
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 config.xml
modificationset quietperiod=30
  cvs cvsroot=${cvsroot} module=${module}/
/modificationset
and cvsroot=:pserver:name:[EMAIL PROTECTED]:port:repository
schedule interval=180
  maven2 mvnscript=E:/apache-maven-2.0.4/bin/mvn.bat
pomfile=${checkoutdir}/${project.name}/${moduld}/pom.xml
goal=scm:checkout clean package /
/schedule
I have not bootstrappers element.

But command mvn scm:scheckout would checkout files to
WebProject/target/checkout, but update the files in WebProject root.
If I changed checkoutDirectory to .(not target/checkout), CC reported that
cann't remove WebProject root directory.

I think my strategy for checkouting from CVS is wrong.
How to resolve the problem?
Thanks in advance!

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/How-to-ci-Maven2-projects--tf2689815s177.html#a7500804
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-21 Thread jiangshachina

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-1.0.1B.jar isn't at central repository.
But jta is transitive dependency of yy another dependency hibernate-3.0.jar,
so I excludes 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,
 Thanks for your reply.
 I have three POM files, and all of them are very simply.
 I show the snippets of them.
 
 managment-1.0.pom just includes dependency management.
 modelVersion4.0.0/modelVersion
 groupIdmygroup/groupId
 artifactIdmanagement/artifactId
 packagingpom/packaging
 version1.0/version
 dependencyManagement
   dependencies
   dependency
   groupIdjavax.transaction/groupId
   artifactIdjta/artifactId
   version1.0.1B/version
   /dependency
   dependencies
 dependencyManagement
 
 dependency-1.0.pom just includes dependencies, which are declared in
 managment-1.0.pom.
 And the POM extends managment-1.0.pom.
 parent
   groupIdcn.net.ce.sod.operation.super/groupId
   artifactIdsuper-management/artifactId
   version1.0/version
 /parent
 modelVersion4.0.0/modelVersion
 groupIdmygroup/groupId
 artifactIddependency/artifactId
 packagingpom/packaging
 version1.0/version
 dependencies
   dependency
   groupIdjavax.transaction/groupId
   artifactIdjta/artifactId
   /dependency
 dependencies
 
 myapp pom.xml
 parent
   groupIdmygroup/groupId
   artifactIddependency/artifactId
   version1.0/version
 /parent
 modelVersion4.0.0/modelVersion
 groupIdmygroup/groupId
 artifactIdmyapp/artifactId
 packagingwar/packaging
 namemyapp/name
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 dawn.angelito wrote:
 
 Hi Sha Jiang,
 
 Did you declare this dependency in your pom? If so, please 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 run mvn package, and the build was sucessful.
 I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar.
 
 I always think that Maven would add any jar file in dependencies.
 But the case means that I'm wrong.
 I don't believe one case, please show me clearly.
 Maven can identify any useless jar and doesn't add it to war file?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7483860
Sent from the Maven - Users mailing list archive at Nabble.com.


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



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 don't find jta-1.0.1B.jar.

I always think that Maven would add any jar file in dependencies.
But the case means that I'm wrong.
I don't believe one case, please show me clearly.
Maven can identify any useless jar and doesn't add it to war file?

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Don't add dependency?

2006-11-21 Thread jiangshachina

Hi Dawn,
Thanks for your reply.
I have three POM files, and all of them are very simply.
I show the snippets of them.

managment-1.0.pom just includes dependency management.
modelVersion4.0.0/modelVersion
groupIdmygroup/groupId
artifactIdmanagement/artifactId
packagingpom/packaging
version1.0/version  
dependencyManagement
dependencies
dependency
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
version1.0.1B/version
/dependency
dependencies
dependencyManagement

dependency-1.0.pom just includes dependencies, which are declared in
managment-1.0.pom.
And the POM extends managment-1.0.pom.
parent
  groupIdcn.net.ce.sod.operation.super/groupId
  artifactIdsuper-management/artifactId
  version1.0/version
/parent
modelVersion4.0.0/modelVersion
groupIdmygroup/groupId
artifactIddependency/artifactId
packagingpom/packaging
version1.0/version
dependencies
dependency
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
/dependency
dependencies

myapp pom.xml
parent
  groupIdmygroup/groupId
  artifactIddependency/artifactId
  version1.0/version
/parent
modelVersion4.0.0/modelVersion
groupIdmygroup/groupId
artifactIdmyapp/artifactId
packagingwar/packaging
namemyapp/name

a cup of Java, cheers!
Sha Jiang


dawn.angelito wrote:
 
 Hi Sha Jiang,
 
 Did you declare this dependency in your pom? If so, please 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 run mvn package, and the build was sucessful.
 I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar.
 
 I always think that Maven would add any jar file in dependencies.
 But the case means that I'm wrong.
 I don't believe one case, please show me clearly.
 Maven can identify any useless jar and doesn't add it to war file?
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7469448
Sent from the Maven - Users mailing list archive at Nabble.com.


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



  1   2   3   >