how to upgrade the version of transitive dependency?!

2008-07-01 Thread oliver.maven
hi,all

my Maven libraries container found a dependency ,which is asm-1.5.3.jar,it is 
automatically added by other dependency transitivly.

but the version is to low caused a ClassNotFound exception at runtime, 

i can not add a new asm dependency by using m2eclipse,because the asm 
dependency already exist.

how to remove or upgrade the version of asm dependency?! appreciate for any 
help!




oliver.lee
2008-07-01


how to find the *.hbm.xml if the file doesnt located in the resources directory?

2008-06-30 Thread oliver.maven
hi,all

due to i put the *.hbm.xml file together with the persistent class,when i build 
the project,will cause file not found error.
so how to solve this so that can find the file?!put them in resources?but i 
still like these close to it's java class.

thank you!




oliver.lee
2008-06-30


No Jsp in the work directory after run mvn jetty:run-war?!

2008-06-29 Thread oliver.maven

hi,all

after mvn jetty:run-war , i found there is no on other file in work directory 
except a lib directory which contains
many dependencies.
Then i got the 404 NOT_FOUND error When i visit the url,any way to solve this 
problem?

here is my coniguration:

 plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty-plugin/artifactId
version6.1.6/version
configuration
  scanIntervalSeconds10/scanIntervalSeconds
  contextPath/jmesa-test/contextPath
  webApp${basedir}/target/jmesa-test.war/webApp
/configuration
 /plugin


i also got a Log error:

2008-06-30 09:50:26.861::WARN:  EXCEPTION 
java.lang.NoSuchFieldError: TRACE
 at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:492)
 at 
org.apache.commons.logging.impl.SLF4JLocationAwareLog.trace(SLF4JLocationAwareLog.java:78)
 at 
org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(CollectionFactory.java:195)
 at 
org.springframework.web.context.ContextLoader.clinit(ContextLoader.java:153)
 at 
org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
 at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
 at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:539)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
 at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
 at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:110)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
 at org.mortbay.jetty.plugin.Jetty6RunWar$1.filesChanged(Jetty6RunWar.java:130)
 at org.mortbay.util.Scanner.reportBulkChanges(Scanner.java:478)
 at org.mortbay.util.Scanner.reportDifferences(Scanner.java:349)
 at org.mortbay.util.Scanner.scan(Scanner.java:276)
 at org.mortbay.util.Scanner$1.run(Scanner.java:236)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)

thanks a lot!!




oliver.lee
2008-06-30


Sorry for my last mail,i can view other files after refresh the work directory!

2008-06-29 Thread oliver.maven
but still got 404 NOT_FOUND error!_




oliver.lee
2008-06-30


Some questions about executions?!thanks for any help!

2008-06-19 Thread oliver.maven
hi,all

some questions about executions section i have, 

1-Does execution only can be activated along with it's config phase been called?

2-If i have 2 executions,both of them didn't set phase / section,
when and which one will executed?

3-How to directly invoke one of execution?

waiting for you kindly reply!thanks a lot!





oliver.lee
2008-06-19


what is difference between configuarion and execution of plugin ?

2008-06-19 Thread oliver.maven
hi,
i know execution may contains configuration,but i am still confusing,

some plugin has the configuration only,some plugin has the execution only,
and some has both of them,

how to differentiate them and use correctly?

thanks a lot!




oliver.lee
2008-06-20


Re: Re: what is difference between configuarion and execution of plugin ?

2008-06-19 Thread oliver.maven
hi Geoffrey,

quite clear now!thank you so much!

my last doubt,

the only way to specific a plugin to execute in certain phase, is to add a 
execution section?

got any other way?





oliver.lee
2008-06-20



发件人: Geoffrey Wiseman
发送时间: 2008-06-20 09:38:19
收件人: Maven Users List
抄送: 
主题: Re: what is difference between configuarion and execution of plugin ?

On Thu, Jun 19, 2008 at 9:30 PM, oliver.maven  [EMAIL PROTECTED] 
wrote:

 hi,
 i know execution may contains configuration,but i am still confusing,

 some plugin has the configuration only,some plugin has the execution only,
 and some has both of them,

 how to differentiate them and use correctly?

 thanks a lot!


Configurations provide additional, project-specific information to the
plugin so that it can do what you want it to do whenever it is run.
Executions allow you to to cause the plugin to be run at particular points
in the build lifecycle.  Configurations can be general, affecting the plugin
at all times, and/or execution-specific.

So, for instance, I use the Cargo plugin in my project.  I supply it with
enough configuration that it knows to load my project using Tomcat 5.5 and
make it available on a particular URI.  That allows me to type mvn
cargo:start from the command-line and have the project up and running, and
cargo waits for my signal to exit.

However, I also have executions for cargo so that before the integration
test phase begins, cargo starts up, and stays running.  After the
integration tests, cargo shuts down.  These have a few additional
configuration settings, but the important part of this is the binding to the
integration-test phase of the build lifecycle.

Does that make more sense?
-- 
Geoffrey Wiseman


who can explain this table about dependencies scope?

2008-06-13 Thread oliver.maven

hi,all
i am learning maven by reading offical document,when i encounter this table 
below,i am really cant understand it,so anyone
can give me one reality example?or explain in more detail?

from offical:Each of the scopes (except for import ) affects transitive 
dependencies in different ways, as is demonstrated in the table below. If a 
dependency is set to the scope in the left column, transitive dependencies of 
that dependency with the scope across the top row will result in a dependency 
in the main project with the scope listed at the intersection. If no scope is 
listed, it means the dependency will be omitted.

 compile   provided   runtime   test 
 compile compile(*) - runtime   - 
 providedprovided  provided   provided  - 
 runtime runtime   -  runtime   _ 
 testtest   - test-



oliver.lee
2008-06-13


Re: Re: who can explain this table about dependencies scope?

2008-06-13 Thread oliver.maven
thank you very much!




oliver.lee
2008-06-13



发件人: [EMAIL PROTECTED]
发送时间: 2008-06-13 19:45:48
收件人: Maven Users List
抄送: 
主题: Re: who can explain this table about dependencies scope?

oliver.maven schrieb:
 hi,all
 i am learning maven by reading offical document,when i encounter this table 
 below,i am really cant understand it,so anyone
 can give me one reality example?or explain in more detail?

 from offical:Each of the scopes (except for import ) affects transitive 
 dependencies in different ways, as is demonstrated in the table below. If a 
 dependency is set to the scope in the left column, transitive dependencies of 
 that dependency with the scope across the top row will result in a dependency 
 in the main project with the scope listed at the intersection. If no scope is 
 listed, it means the dependency will be omitted.

  compile   provided   runtime   test 
  compile compile(*) - runtime   - 
  providedprovided  provided   provided  - 
  runtime runtime   -  runtime   _ 
  testtest   - test-

   

Project a has
dependency 
artifactId b /artifactId 
scope compile /scope 
/dependency 

Project b has
dependency 
artifactId c /artifactId 
scope runtime /scope 
/dependency 
dependency 
artifactId d /artifactId 
scope test /scope 
/dependency 


So what is the dependency between projects a and c? At the intersection
of compile and runtime, you can see that the result is runtime.
Therefore project a has a runtime dependency on c.

What is the dependency between a and d? As seen from the table, the
intersection is -. So actually, a does *not* have any dependency on d.

Regards,
Simon


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


which repository contains the 2 artifacts?

2008-05-10 Thread oliver.maven
hi,
i am using nexus indexer,i found i cant download the 

1) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1

2) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2

what is the address of repostiroy which contains the artifact?i think i should 
set proxy in nexus.

thanks a lot!



oliver.maven
2008-05-10


Re: Re: which repository contains the 2 artifacts?

2008-05-10 Thread oliver.maven
hi Brian Fox
thanks for reply! actually i do config the mirror of *.are there any other 
reason i cant download these artifact?




oliver.maven
2008-05-10



发件人: Brian Fox
发送时间: 2008-05-10 17:01:06
收件人: Maven Users List
抄送: 
主题: Re: which repository contains the 2 artifacts?

For nexus we recommend making a group and using a mirror of *

Both of those artifacts should be in central


--Brian

On May 10, 2008, at 1:52 AM, oliver.maven  [EMAIL PROTECTED]   
wrote:

 hi,
 i am using nexus indexer,i found i cant download the

 1) org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9- 
 stable-1

 2) org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2

 what is the address of repostiroy which contains the artifact?i  
 think i should set proxy in nexus.

 thanks a lot!



 oliver.maven
 2008-05-10

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


where to put the 'data' directory for hsqldb?

2008-04-24 Thread oliver.maven
hi, 
i am a maven newbie, i want use hsqldb as my development database,normally it 
need a directroy to store the related files
where to put this directory within the maven's directory structure? thanks a 
lot!




oliver.maven
2008-04-24


Re: RE: where to put the 'data' directory for hsqldb?

2008-04-24 Thread oliver.maven
i am not doing unit tests for now , i only want to run the application with 
hsqldb configured.Previously i put a directory called data in my project's
root directory,and used jdbc:hsqldb:data/db-name url to access dabtabse,so 
where to put the data directory in maven, so that the jdbc:hsqldb:data/ 
db-name still can work,thank you so much!




oliver.maven
2008-04-25



发件人: J�rg_Schaible
发送时间: 2008-04-24 23:46:34
收件人: Maven Users List
抄送: 
主题: RE: where to put the 'data' directory for hsqldb?

Hi Oliver,

oliver.maven wrote:
 hi,
 i am a maven newbie, i want use hsqldb as my development
 database,normally it need a directroy to store the related files
 where to put this directory within the maven's directory structure?
 thanks a lot! 

there's no defined place. However, what are you doing with it? E.g. if you need 
it for unit tests you may keep the files somewhere like src/test/db and copy 
the complete directory over to target/db (possibly in yout setUp) and point 
HSQLDB to that place. That way you always stgart with a defined content and you 
do not modify the files you're keeping in your version control.

- J�rg

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


pom descriptor in target directory??

2008-04-06 Thread oliver.maven
hi,all friends

i am studying maven2 recentlly,i found that there are many directories in 
appfuse's target directories,like appfuse-data,appfuse-service,each directory 
contains one pom descriptor,i want know
what do these poms used for??i think they are used for combine some other 
modules when doing pacakaging,am i right?any help is appreciate!




oliver.lee
2008-04-06