must not access source of jar on maven repository

2011-10-19 Thread Cody Zhang
Hi,All
Deploy source.jar to maven repository in Our company.
Maven repository is management by nexus of Sonatype.
We want that somebody access the source.jar when download binary jar?
Best Regards,
--Cody.Zhang


Re: must not access source of jar on maven repository

2011-10-19 Thread Cody Zhang
Thank's replay! So sorry!It's wrong!
I mean,only somebody download source.jar ,but can't download by default!
Best Regards,
--Cody.Zhang


On Thu, Oct 20, 2011 at 11:41 AM, Barrie Treloar baerr...@gmail.com wrote:

 On Thu, Oct 20, 2011 at 12:05 PM, Cody Zhang codyzhang.w...@gmail.com
 wrote:
  Hi,All
 Deploy source.jar to maven repository in Our company.
  Maven repository is management by nexus of Sonatype.
  We want that somebody access the source.jar when download binary jar?
 Best Regards,
 --Cody.Zhang
 

 When you use the release plugin to release your artifacts, by default
 the useReleaseProfile will be true.

 http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#useReleaseProfile

 This will adds sources and javadocs to the released artifact, if
 appropriate. which will all be deployed with your main artifact into
 your company's Nexus repository.

 Then when other projects depend on your artifact they are able to
 download the source jar that belongs with that artifact.
 How you do that depends upon the ide,
 e.g.
 maven-eclipse-plugin
 (http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html)
 you specify -DdownloadSources=true
 m2e you would need to check their documentation - but it may do this
 automatically.

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




Re: maven 2.2.1 to 3.0.1 can't deploy jar to repository.

2010-12-13 Thread Cody Zhang
Thanks Jason!
[?]
Best Regards,
--Cody.Zhang


在 2010年12月13日 下午4:22,Jason van Zyl ja...@maven.org写道:

 For 3.0:
 https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-TransportProtocols%2528Wagons%2529

 On Dec 13, 2010, at 2:55 AM, Cody Zhang wrote:

  Hi,All
 from maven 2.2.1 to 3.0.1 can't deploy jar to repository.Can someone
  help me?
  [INFO]
  [INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ maven-iwlsvn
  ---
  [INFO] --
  [INFO] BUILD FAILURE
  [INFO] --
  [INFO] Total time: 6.361s
  [INFO] Finished at: Mon Dec 13 15:49:49 CST 2010
  [INFO] Final Memory: 6M/11M
  [INFO] --
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plug
  deploy (default-deploy) on project maven-iwlsvn-plugin: Failed to deploy
  ts/metadata: No connector available to access repository mycom-repo
  (scp://192.168.0.41/var/www/html/maven2) of type default using the
 availa
  tories WagonRepositoryConnectorFactory - [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, ple
  d the following articles:
  [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExe
  xception
 
 Best Regards,
 --Cody.Zhang

 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 http://twitter.com/jvanzyl
 -

 We know what we are, but know not what we may be.

  -- Shakespeare






maven 2.2.1 to 3.0.1 can't deploy jar to repository.

2010-12-12 Thread Cody Zhang
Hi,All
from maven 2.2.1 to 3.0.1 can't deploy jar to repository.Can someone
help me?
[INFO]
[INFO] --- maven-deploy-plugin:2.5:deploy (default-deploy) @ maven-iwlsvn
 ---
[INFO] --
[INFO] BUILD FAILURE
[INFO] --
[INFO] Total time: 6.361s
[INFO] Finished at: Mon Dec 13 15:49:49 CST 2010
[INFO] Final Memory: 6M/11M
[INFO] --
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plug
deploy (default-deploy) on project maven-iwlsvn-plugin: Failed to deploy
ts/metadata: No connector available to access repository mycom-repo
(scp://192.168.0.41/var/www/html/maven2) of type default using the availa
tories WagonRepositoryConnectorFactory - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, ple
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExe
xception

Best Regards,
--Cody.Zhang


maven plugin develop get repository value from setting.xml

2010-11-19 Thread Cody Zhang
Hi,All
I develop maven plugin for our app! How to  get repository value from
setting.xml .

localRepositorye:/workspace/user/.m2/repository/localRepository

Best Regards,
--Cody.Zhang


Re: maven plugin develop get repository value from setting.xml

2010-11-19 Thread Cody Zhang
it'work! [?]
1.add dependency in pom.xml
  dependency
groupIdorg.apache.maven/groupId
artifactIdmaven-settings/artifactId
version${mavenVersion}/version
/dependency

2. private MavenProject project;

/**
 * @parameter expression=${settings}
 * @required
 * @since 1.0
 * @readonly
 */
so,get  set

3.String localRepository = settings.getLocalRepository();


Best Regards,
--Cody.Zhang


在 2010年11月19日 下午4:05,Cody Zhang codyzhang.w...@gmail.com写道:

 Hi,All
 I develop maven plugin for our app! How to  get repository value from
 setting.xml .

 localRepositorye:/workspace/user/.m2/repository/localRepository

 Best Regards,
 --Cody.Zhang



Re: question on capabilities of AntRun plugin

2010-08-27 Thread Cody zhang
Hi,Jacob
Can you paste your code example?
Best Regards,
--Cody.Zhang


2010/8/27 Jacob Beard jbea...@cs.mcgill.ca

 Hi,

 I have question on the capabilities of the AntRun plugin. This example
 shows the Maven classpaths being copied into Ant properties, which are then
 used in Ant:


 http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html

 I thougth it would be useful to reference these classpaths directly in Ant,
 rather than using the copied properties, and so I ran a series of tests.
 What I found was that the maven classpaths could be referenced, but only in
 the scope of the called target. When used outside of a target (in a taskdef,
 for example), an error is thrown. On the other hand, properties that are
 created in the Maven tasks element can be used both in and outside of the
 scope of the called target. This is using the ant task, with both
 inheritsAll and inheritsRefs set to true.

 I'm wondering if I'm correct in the above assessment of the capabilities of
 antrun. Can maven classpaths not be referenced directly, outside of the
 scope of the called ant task? If they cannot, what is the best way in Ant to
 read a classpath that has been read into a property back into a path
 element?

 Let me know. Thanks,

 Jake

 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




maven-antrun-plugin

2010-08-18 Thread Cody Zhang
Hi,All
   Use maven-antrun-plugin,But -${timestamp}  display:

   * [echo] signon-1.0-1282184699068 source code:.*
*Everybody,Help me?*
code:
 profile
idbuild_server/id
build
plugins
plugin
artifactIdmaven-antrun-plugin/artifactId
version1.4/version
executions
execution
idcompile/id
phasevalidate/phase
goals
goalrun/goal
/goals
/execution
/executions
configuration
tasks
property name=sourceDir value=./
property name=outputDir value=./
tstamp
format property=timestamp pattern=yyMMdd-HHmm/
format property=today pattern=yyMMdd/
/tstamp

echo${artifactId}-${version}-${timestamp} source code:${sourceDir}/echo


!--delete dir=${basedir}/tmp/--
/tasks
/configuration
/plugin
/plugins
/build
/profile
/profile

Best Regards,
--Cody.Zhang


Re: maven-antrun-plugin

2010-08-18 Thread Cody Zhang
Every Body,
  root cause:
   I define date formart on parent pom。
code:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuildnumber-maven-plugin/artifactId
version1.0-beta-3/version
configuration
format{0,date,MMdd-HHmm} /format
items
itemtimestamp/item
doUpdatetrue/doUpdate
/items
/configuration
executions
execution
phasevalidate/phase
goals
goalcreate/goal
/goals
/execution
/executions
/plugin


Best Regards,
--Cody.Zhang


在 2010年8月19日 上午10:26,Cody Zhang codyzhang.w...@gmail.com写道:

 Hi,All
Use maven-antrun-plugin,But -${timestamp}  display:

* [echo] signon-1.0-1282184699068 source code:.*
 *Everybody,Help me?*
 code:
  profile
 idbuild_server/id
  build
 plugins
 plugin
  artifactIdmaven-antrun-plugin/artifactId
 version1.4/version
  executions
 execution
 idcompile/id
  phasevalidate/phase
 goals
 goalrun/goal
  /goals
 /execution
 /executions
  configuration
 tasks
 property name=sourceDir value=./
  property name=outputDir value=./
 tstamp
  format property=timestamp pattern=yyMMdd-HHmm/
 format property=today pattern=yyMMdd/
  /tstamp

 echo${artifactId}-${version}-${timestamp} source code:${sourceDir}/echo


 !--delete dir=${basedir}/tmp/--
 /tasks
  /configuration
 /plugin
 /plugins
  /build
 /profile
 /profile

 Best Regards,
 --Cody.Zhang



Re: my maven plugin .IllegalStateException

2008-09-09 Thread cody zhang
thank John! yes my packaging wrong!

2008/9/5 John Casey [EMAIL PROTECTED]

 If this is a custom plugin, make sure your plugin's POM contains:

 packagingmaven-plugin/packaging


 cody zhang wrote:

 The PluginDescriptor for the plugin Plugin
 [org.apache.maven.plugins:maven-checksnapshot-plugin] was not found.
 [INFO]
 
 [INFO] Trace java.lang.IllegalStateException: The PluginDescriptor for the
 plugin Plugin [org.apache.maven.plugins:maven-checksnapshot-plugin] was
 not
 found. at

 org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:317)
 at

 org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:207)
 at

 org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1221)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:987)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
 at

 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at
 org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at
 org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) [INFO]
 
 [INFO] Total time: 1 second


 --
 John Casey
 Developer, PMC Member - Apache Maven (http://maven.apache.org)
 Blog: http://www.ejlife.net/blogs/buildchimp/


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




my maven plugin .IllegalStateException

2008-08-31 Thread cody zhang
The PluginDescriptor for the plugin Plugin
[org.apache.maven.plugins:maven-checksnapshot-plugin] was not found. [INFO]

[INFO] Trace java.lang.IllegalStateException: The PluginDescriptor for the
plugin Plugin [org.apache.maven.plugins:maven-checksnapshot-plugin] was not
found. at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:317)
at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:207)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1221)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:987)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at
org.apache.maven.cli.MavenCli.main(MavenCli.java:280) 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) [INFO]

[INFO] Total time: 1 second


Re: [m2] issues getting Jetty and Selenium running from examples.

2008-03-25 Thread cody zhang
your selenium plugin configuration?
past :

2008/3/25, Mick Knutson [EMAIL PROTECTED]:
 So I have been trying to follow:
  http://wiki.foochal.org/index.php/Maven_Selenium

  Now I have a core:jar and a web:war in a multi-module project.

  The 1st issue I have from the example is the *maven-surefire-plugin* as I
  get this error:
  *Reason: Parse error reading POM. Reason: Unrecognised tag: 'executions'
  (position: START_TAG seen .../configuration\r\n\r\nexe*
  *cutions... @291:29)  for project unknown:webapp at
  C:\opt\temp\appfuse\myproject\pom.xml*


  and I can not get the selenium server to startup and jetty to start up
  automatically.
  Then the SeleniumHelloWorldExample.java test is failing because the Jetty
  and Selenium as I get this error:

  *![CDATA[Could not contact Selenium Server; have you started it?*
  *Catch body broken: IOException from
  cmd=getNewBrowserSession1=*firefox2=http%3A%2F%2Flocalhost%3A8080%2F -
  java.net.ConnectException: Connection refused: connect]]*

  So I also tried this setting, but my selenium tests are still run:

  *plugin*
  *artifactIdmaven-surefire-report-plugin/artifactId*
  *version2.4.2/version*
  *configuration*
  *skiptrue/skip*

  *includes*
  *include**/*.java/include*
  */includes*
  *excludes*
  *exclude**/selenium/*.java/exclude*
  *exclude**/*$*/exclude*
  */excludes*
  *systemProperties*
  *property*
  *namenet.sourceforge.cobertura.datafile/name
  *
  *valuetarget/cobertura/cobertura.ser/value*
  */property*
  */systemProperties*
  *argLine-Xmx256m/argLine*
  *testFailureIgnoretrue/testFailureIgnore*
  */configuration*
  */plugin*


  --
  Thanks,
  Mick Knutson

  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.linkedin.com/in/mickknutson
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/BLiNCMagazine
  http://tahoe.baselogic.com
  ---


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



Re: How change goal PACKAGE

2008-03-19 Thread cody zhang
Dear Mathus,
  your mind that it will skip test when run package?
which commond skip compile when run site?

2008/3/19, MATHUS Baptiste [EMAIL PROTECTED]:
 mvn -DskipTests package

  Cheers.

   -Message d'origine-
   De : author [mailto:[EMAIL PROTECTED]
   Envoyé : mercredi 19 mars 2008 16:44
   À : users@maven.apache.org
   Objet : How change goal PACKAGE

 
  
   When i use package goal it is build fail.
   Problem whith test, test fails when test goal runnig. I dont
   want fix in test problem. How can i use this goal whithout goal test?
   --
   View this message in context:
   http://www.nabble.com/How-change-goal-PACKAGE-tp16145136s177p1
   6145136.html
   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]




Re: [site plugin] problem for deploying site

2008-03-19 Thread cody zhang
what exception? print list:
...

2008/3/20, Guillaume Boucherie [EMAIL PROTECTED]:
 Hi all,

  I have a strange behavior when I try to deploy my site.
  I have a multi module project something like that :
   project
 |-- module1
 '-- module2

  In my parent pom.xml I defined the site distributionManagement like that :
   distributionManagement
 site
   idmy_id/id
   namemy name/name
   urlscp://server/var/www/project/url
 /site
   /distributionManagement

  First I launch a mvn clean site:stage -DstagingDirectory=E:\test and the
  generated site was ok.
  But when I launch mvn clean site-deploy my generated site is bad.
  In fact the module link is broken.

  I use maven-2.0.8 with maven-site-plugin:2.0-beta-6

  Can you help me please ?


  Guillaume


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



Re: mvn -Dplugin=install help:describe

2008-03-19 Thread cody zhang
thanks! it's ok! :)

2008/3/20, Heinrich Nirschl [EMAIL PROTECTED]:
 Maven does not know the short name of the install plugin because this
  plugin is missing in the metadata file on central:

  http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml

  The workaround is to use the full plugin name:

  mvn help:describe -Dplugin=org.apache.maven.plugins:maven-install-plugin


  - Henry


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



Re: Profiles and Dependencies in Maven ANT Task

2008-03-18 Thread cody zhang
you can try the example:
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idstart-hsqldb/id
phasesite/phase
goals
goalrun/goal
/goals
/execution
/executions
configuration
tasks
taskdef 
resource=net/sf/antcontrib/antcontrib.properties/
if
equals 
arg1=${unit-test} arg2=0 /
then
delete

fileset  dir=${basedir}/target/test-classes

include name=**/*.class/

exclude name=**/SignonFunTest.class/

/fileset
/delete
/then
/if
java 
classname=org.hsqldb.Server fork=false
arg line=-database.0 
signon -dbname.0 signon/
!--classpath
pathelement
path=D:\Workspace\signon-frank-google\src\main\hsqldb\hsqldb.jar/
/classpath--
/java
/tasks
/configuration
dependencies
dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version1.0b2/version
/dependency
dependency
groupIdhsqldb/groupId
artifactIdhsqldb/artifactId
version1.8.0.7/version
/dependency
/dependencies
/plugin   

2008/3/19, Marco Sandrini [EMAIL PROTECTED]:

  Hi!

  I know that the attribute profiles in task artifact:dependencies is not yet
  supported. I was though wondering is there a mechanism to specify the
  correct property/ies in the rest of the ant file so that the correct profile
  would be picked up by the dependency task.

  In other words I'd like to have in my build.xml

  property name=myprop value=true/

  and in pom.xml

  .
  profile
   idadditional_dependency_profile/id
   activation
  property
  namemyprop/name
   valuetrue/value
  /property
   /activation
   dependencies
    extra dependencies here
/dependencies
  /profile

  I noticed that setting a profile to activeByDefault works, i.e. the
  dependency task picks up the extra dependencies defined in the profile, but,
  as said, I could not make the property-activated profile do my bidding.

  Thanks in advance for your help,

  regards,
  Marco Sandrini

 --
  View this message in context: 
 http://www.nabble.com/Profiles-and-Dependencies-in-Maven-ANT-Task-tp16125102s177p16125102.html
  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]



how to generate report of cobertura in integration-test

2008-03-18 Thread cody zhang
cobertura:cobertura report when package war deploy to jetty

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



cobertura integration-test

2008-03-16 Thread Cody Zhang
Dear All,

 I want to get cobertura report at integration-test.But the goal( 
cobertura:instrument) run tiwce!

My pom:

 

 

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-site-plugin/artifactId

version2.0-beta-5/version

configuration

 outputEncodingUTF-8/outputEncoding

/configuration

executions

 execution

   idgenerate-site/id

   
phasepre-integration-test/phase

   goals

goalsite/goal

   /goals

 /execution

 execution

   iddeploy-site/id

   phaseintegration-test/phase

   goals

goaldeploy/goal

   /goals

 /execution

/executions

   /plugin

 

 

reporting

 plugins

   plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

   /plugin

 /plugins

/reporting 

 

 

 dependencies

 dependency

   groupIdnet.sourceforge.cobertura/groupId

   artifactIdcobertura/artifactId

   version1.9/version

 /dependency

/dependencies

 

My commond:

 Mvn integration-test

 

 



答复: deployment through tunnel

2008-03-16 Thread Cody Zhang
Copy scpexe to windows path??

-邮件原件-
发件人: Kallin Nagelberg [mailto:[EMAIL PROTECTED] 
发送时间: 2008年3月17日 3:47
收件人: Maven Users List
主题: Re: deployment through tunnel

I should also note that I can successfully SSH with
ssh -p 9000 [EMAIL PROTECTED]

So I can ssh and scp manually just fine.

On Sun, Mar 16, 2008 at 3:37 PM, Kallin Nagelberg 
[EMAIL PROTECTED] wrote:

 I've been struggling forever trying to use the deploy plugin through a
 tunnel into my office.

 There is a repository, call it maven.int.office.com.

 I have a tunnel, from localhost:9000 to maven.int.office.com:22.

 Using the following command I can SCP files to it at will:
 scp -P9000 somefile.txt [EMAIL PROTECTED]:.


 The distribution management section of my pom looks like this:
 distributionManagement
 repository
 iddev/id
 nameRepository/name
 urlscpexe://localhost:9000/home/cm/maven/dev/url
 /repository
 /distributionManagement



 And my settings file has the following:
 servers
   server
   iddev/id
   usernameuser/username
   passphrasepassword/passphrase
   privateKeymyPuttyKey/privateKey  !-- I SHOULDNT NEED THIS AS
 ITS USED IN THE TUNNEL --
   configuration
 sshExecutablessh/sshExecutable
 scpExecutablescp/scpExecutable
   /configuration
   /server
   /servers


 All I get when I run mvn deploy is

 Uploading: scpexe://localhost:9006/home/cm/maven/dev/..etcetc
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error deploying artifact: Error executing command for transfer

 Exit code 255 - Permission denied (publickey,keyboard-interactive).


 I should note that when I run SCP directly, I am prompted for a password.
 When I run mvn deploy, I receive no prompt, just the error message.
 Is there way to prevent mvn from trying to use a key file? I'm so stuck,
 I've tried everything. Please help!


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



答复: cobertura integration-test

2008-03-16 Thread Cody Zhang
Paul,Thank your reply!
I expect to get report when prject.war in jetty runtime.So I must generate war 
then put it to jetty。

-邮件原件-
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Paul Benedict
发送时间: 2008年3月17日 10:42
收件人: Maven Users List
主题: Re: cobertura integration-test

It is a well known limitation of Cobertura that it cannot perform reporting
on a *separate* integration testing phase.  You can search the web on this
part. All it can do report on classes ran in the testing phase.

Paul

2008/3/16 Cody Zhang [EMAIL PROTECTED]:

 Dear All,

 I want to get cobertura report at integration-test.But the goal(
 cobertura:instrument) run tiwce!

 My pom:





 plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-site-plugin/artifactId

version2.0-beta-5/version

configuration

 outputEncodingUTF-8/outputEncoding

/configuration

executions

 execution

   idgenerate-site/id


 phasepre-integration-test/phase

   goals

goalsite/goal

   /goals

 /execution

 execution

   iddeploy-site/id


 phaseintegration-test/phase

   goals

goaldeploy/goal

   /goals

 /execution

/executions

   /plugin





 reporting

 plugins

   plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

   /plugin

 /plugins

 /reporting





 dependencies

 dependency

   groupIdnet.sourceforge.cobertura/groupId

   artifactIdcobertura/artifactId

   version1.9/version

 /dependency

 /dependencies



 My commond:

 Mvn integration-test







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



everybody change mail address

2008-03-16 Thread cody zhang
paul,pls send to  [EMAIL PROTECTED]

-邮件原件-
发件人: Cody Zhang [mailto:[EMAIL PROTECTED]
发送时间: 2008年3月17日 10:51
收件人: Maven Users List
主题: 答复: cobertura integration-test

Paul,Thank your reply!
I expect to get report when prject.war in jetty runtime.So I must
generate war then put it to jetty。

-邮件原件-
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
代表 Paul Benedict
发送时间: 2008年3月17日 10:42
收件人: Maven Users List
主题: Re: cobertura integration-test

It is a well known limitation of Cobertura that it cannot perform reporting
on a *separate* integration testing phase.  You can search the web on this
part. All it can do report on classes ran in the testing phase.

Paul

2008/3/16 Cody Zhang [EMAIL PROTECTED]:

 Dear All,

 I want to get cobertura report at integration-test.But the goal(
 cobertura:instrument) run tiwce!

 My pom:





 plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-site-plugin/artifactId

version2.0-beta-5/version

configuration

 outputEncodingUTF-8/outputEncoding

/configuration

executions

 execution

   idgenerate-site/id


 phasepre-integration-test/phase

   goals

goalsite/goal

   /goals

 /execution

 execution

   iddeploy-site/id


 phaseintegration-test/phase

   goals

goaldeploy/goal

   /goals

 /execution

/executions

   /plugin





 reporting

 plugins

   plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId

   /plugin

 /plugins

 /reporting





 dependencies

 dependency

   groupIdnet.sourceforge.cobertura/groupId

   artifactIdcobertura/artifactId

   version1.9/version

 /dependency

 /dependencies



 My commond:

 Mvn integration-test







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


cobertura integration-test war:war

2008-03-16 Thread cody zhang
邮件原件-
发件人: Cody Zhang [mailto:[EMAIL PROTECTED]
发送时间: 2008年3月17日 10:51
收件人: Maven Users List
主题: 答复: cobertura integration-test

Paul,Thank your reply!
I expect to get report when prject.war in jetty runtime.So I must
generate war then put it to jetty。

-邮件原件-
发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
代表 Paul Benedict
发送时间: 2008年3月17日 10:42
收件人: Maven Users List
主题: Re: cobertura integration-test

It is a well known limitation of Cobertura that it cannot perform
reporting on a *separate* integration testing phase.  You can search
the web on this part. All it can do report on classes ran in the
testing phase.

Paul

2008/3/16 Cody Zhang [EMAIL PROTECTED]:

 Dear All,

 I want to get cobertura report at integration-test.But the
 goal(
 cobertura:instrument) run tiwce!

 My pom:





 plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-site-plugin/artifactId

version2.0-beta-5/version

configuration


 outputEncodingUTF-8/outputEncoding

/configuration

executions

 execution

   idgenerate-site/id


 phasepre-integration-test/phase

   goals


 goalsite/goal

   /goals

 /execution

 execution

   iddeploy-site/id


 phaseintegration-test/phase

   goals


 goaldeploy/goal

   /goals

 /execution

/executions

   /plugin





 reporting

 plugins

   plugin

groupIdorg.codehaus.mojo/groupId


 artifactIdcobertura-maven-plugin/artifactId

   /plugin

 /plugins

 /reporting





 dependencies

 dependency

   groupIdnet.sourceforge.cobertura/groupId

   artifactIdcobertura/artifactId

   version1.9/version

 /dependency

 /dependencies



 My commond:

 Mvn integration-test







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


答复: Yet another article: moving to Seam

2007-11-25 Thread Cody Zhang
Thaks!

-邮件原件-
发件人: Wouter van Reeven [mailto:[EMAIL PROTECTED] 
发送时间: 2007年11月23日 18:55
收件人: Wouter van Reeven
主题: [!! SPAM] Yet another article: moving to Seam

Hi all,


Today I finished another article about Maven, Netbeans and GlassFish. This time
I explain how to setup Seam, both from a Maven perspective and a Netbeans
perspective. I hope this article will also be useful to people who want to use
Seam but not Maven. You can find the article at

http://technology.amis.nl/blog/?p=2613

I hope you enjoy reading the article. It looks like this is the final article
about Maven for now. I am considering creating Maven archetypes but this will be
a long term operation. Should I have any results I'll let you know.


Thanks, Wouter van Reeven

-- 

People: If she weighs the same as a Duck, she's made of wood!
Sir Bedevere: And therefore...?

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