Re: Run maven-jetty-plugin for webapp in other Maven module

2010-06-25 Thread ykyuen

Finally i can make the maven-jetty-plugin in the test project to start the
webapp of another maven module. just add the following configuration in the
pom.xml

contextPath/webapp_project_name/contextPath
webAppSourceDirectory${project.parent.basedir}/webapp_project_name/src/main/webapp/webAppSourceDirectory
webXml${project.parent.basedir}/webapp_project_name/src/main/webapp/WEB-INF/web.xml/webXml
classesDirectory${project.parent.basedir}/webapp_project_name/target/classes/classesDirectory


Thanks.

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Run-maven-jetty-plugin-for-webapp-in-other-Maven-module-tp511054p511249.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Run maven-jetty-plugin for webapp in other Maven module

2010-06-24 Thread ykyuen

Hi all,

i got a maven parent project with 2 child modules
1. The webapp project (webapp)
2. The maven module for integration test (test)

both modules runs without problem individually. but as i want to automate
them together. i would like to configure the test project pom.xml such that
in the pre-integration-test and post-integration-test life cycle. the webapp
is started.

i try to use the exec-maven-plugin (in test project) to start the webapp
project using the maven-jetty-plugin (in webapp project). unfortunately this
does not work as the exec:exec goal will hang as mvn jetty:run command does
not return. i guess i could solve this problem by adding a  at the end of
the command but this will limited to only linux users.

Since the above approach doesn't work. i wonder if i could add the
maven-jetty-plugin in the test project to start the webpp in another maven
module which is the webapp project in my case. i have checked the
maven-jetty-plugin home page but i cannot figure out how to make it.

Any ideas are welcome and thanks for your help.

Regards,
Kit
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Run-maven-jetty-plugin-for-webapp-in-other-Maven-module-tp511054p511054.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Run maven-jetty-plugin for webapp in other Maven module

2010-06-24 Thread ykyuen

Thanks for your quick reply.

actually my case is a little bit complicated. the webapp project is not a
complete war project. it depends on some other maven modules under the same
parent pom.

so i cannot simply use the war since it is only part of the webapp.

Regards,
Kit
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Run-maven-jetty-plugin-for-webapp-in-other-Maven-module-tp511054p511059.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



junit 4.8.1 - org.junit cannot be resolved

2010-04-28 Thread ykyuen

i try to use junit 4.8.1 in my maven project by adding the following
dependency in the pom.xml
dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version4.8.1/version
   scopetest/scope
/dependency

when i try to write the test case, the org.junit cannot be resolved(i.e.
error at import org.junit.Assert). but if i change the junit version to
4.7. no problem at all.

did i do anything wrong?

Thanks.
Kit










-- 
View this message in context: 
http://old.nabble.com/junit-4.8.1---org.junit-cannot-be-resolved-tp28385338p28385338.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: junit 4.8.1 - org.junit cannot be resolved

2010-04-28 Thread ykyuen

Yes. i can see the junit-4.8.1.jar in Maven Dependencies of my eclipse
project. so i am sure the maven did download the 4.8.1 jar.



Tony Chemit wrote:
 
 Le Wed, 28 Apr 2010 09:59:05 +0200,
 Dirk Olmes d...@xanthippe.ping.de a écrit :
 
 On 04/28/2010 08:46 AM, ykyuen wrote:
  
  i try to use junit 4.8.1 in my maven project by adding the following
  dependency in the pom.xml
  dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version4.8.1/version
 scopetest/scope
  /dependency
  
  when i try to write the test case, the org.junit cannot be
 resolved(i.e.
  error at import org.junit.Assert). but if i change the junit version
 to
  4.7. no problem at all.
  
  did i do anything wrong?
 When you have this error, is it in a IDEA ? or when you launch a maven
 build ?
 
 
 No, it's just that JUnit 4.8.1 isn't available in the central repo (for
 now).
 
 I can see it on central here : 
 
 http://repo1.maven.org/maven2/junit/junit/4.8.1/ 
 
 
 -dirk
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 
 -- 
 Tony Chemit
 
 tél: +33 (0) 2 40 50 29 28
 email: che...@codelutin.com  
 http://www.codelutin.com 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/junit-4.8.1---org.junit-cannot-be-resolved-tp28385338p28386045.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: javadoc:aggregate - change output directory

2010-01-20 Thread ykyuen

Hi all,

The problem is solved, the configuration node should be pasted at the same
level as groupId
http://maven.apache.org/plugins/maven-javadoc-plugin/examples/output-configuration.html
Using Alternative Output Directory 

regards,
kit


ykyuen wrote:
 
 Hi all,
 
 i have a multi-module project and i would like to use the
 javadoc:aggregate to generate all the javadoc.
 
 so i follow the 
 http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
 javadoc:aggregate goal definition  to set my parent pom.xml
 
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   version2.6.1/version
   executions
   execution
   idaggregate/id
   phasejavadoc/phase
   goals
   goalaggregate/goal
   /goals
   configuration
   
 outputDirectory${project.build.directory}/javadoc/outputDirectory
   
 reportOutputDirectory${project.reporting.outputDirectory}/javadoc/reportOutputDirectory
   /configuration
   /execution
   /executions
 /plugin
 
 
 everything works fine except the output directory is still
 {parent.project}/target/site/apidocs rather than the path i specified in
 the parent pom.xml.
 
 how could i change the output directory of the aggregate javadoc?
 
 by the way, i dun know what is the difference between the
 outputDirectory and reportOutputDirectory. their descriptions are the
 same in 
 http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
 javadoc:aggregate goal definition 
 
 Thanks for your help.
 
 Regards,
 Kit
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/javadoc%3Aaggregate---change-output-directory-tp26975403p27253803.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



javadoc:aggregate - change output directory

2009-12-30 Thread ykyuen

Hi all,

i have a multi-module project and i would like to use the javadoc:aggregate
to generate all the javadoc.

so i follow the 
http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
javadoc:aggregate goal definition  to set my parent pom.xml

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version2.6.1/version
executions
execution
idaggregate/id
phasejavadoc/phase
goals
goalaggregate/goal
/goals
configuration

outputDirectory${project.build.directory}/javadoc/outputDirectory

reportOutputDirectory${project.reporting.outputDirectory}/javadoc/reportOutputDirectory
/configuration
/execution
/executions
/plugin


everything works fine except the output directory is still
{parent.project}/target/site/apidocs rather than the path i specified in the
parent pom.xml.

how could i change the output directory of the aggregate javadoc?

by the way, i dun know what is the difference between the outputDirectory
and reportOutputDirectory. their descriptions are the same in 
http://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html#outputDirectory
javadoc:aggregate goal definition 

Thanks for your help.

Regards,
Kit





-- 
View this message in context: 
http://old.nabble.com/javadoc%3Aaggregate---change-output-directory-tp26975403p26975403.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven-jetty-plugin VS Tomcat

2009-12-28 Thread ykyuen

I found the failure reason.

It was because i tried to replace some strings when copying the webapps
folder using maven-antrun-plugin. and the .jar files in the ~/WEB-INF/lib
were corrupted during the string replacement. that's y there were
java.util.zip.ZipException and java.lang.ClassNotFoundException.

The problem is solved. Thanks.

Regards,
Kit
-- 
View this message in context: 
http://old.nabble.com/maven-jetty-plugin-VS-Tomcat-tp26897619p26950332.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



maven-jetty-plugin VS Tomcat

2009-12-22 Thread ykyuen

Hi all,

i have created a war maven project and if i start in using maven-jetty
plugin, everything works fine.
but if i tried to deploy the war project to tomcat. there is an error in the
calalina.log

Dec 23, 2009 1:43:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in dependencyCheck
java.util.zip.ZipException: invalid literal/length code
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:147)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:146)
at java.util.jar.JarInputStream.read(JarInputStream.java:177)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.util.jar.JarInputStream.getBytes(JarInputStream.java:88)
at java.util.jar.JarInputStream.init(JarInputStream.java:65)
at java.util.jar.JarInputStream.init(JarInputStream.java:43)
at
org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:378)
at
org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:189)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Dec 23, 2009 1:43:23 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/corvus] startup failed due to previous errors


actually i also deployed the project to a standalone jetty, but it throws
the following exception
2009-12-23 13:59:29.674::INFO:  jetty-6.1.21
2009-12-23 13:59:29.910::WARN:  failed StartupServlet:
java.lang.NoClassDefFoundError: hk/hku/cecid/
piazza/commons/Sys
2009-12-23 13:59:29.910::WARN:  EXCEPTION
java.lang.ClassNotFoundException:
hk.hku.cecid.piazza.commons.servlet.http.HttpDispatcher

but i am sure the the HttpDispatcher and Sys classes are present in the .jar
files inside the ~/WEB-INF/lib folder.

Have i missed anything to run the project using other web containers instead
of the maven-jetty-plugins?

Thanks for your help.

Regards,
Kit
-- 
View this message in context: 
http://old.nabble.com/maven-jetty-plugin-VS-Tomcat-tp26897619p26897619.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: exec:java problem

2009-07-31 Thread ykyuen


ykyuen wrote:
 
 oh sorry, i have made a mistake, the sample works fine. the failure was
 caused by the firewall of my network. 
 
 sorry for the misleading:-((
 

The solution is to add the proxy in the YahooRetriever.java

System.getProperties().put(proxySet, true);
System.getProperties().put(proxyPort, port);
System.getProperties().put(proxyHost, proxy_host);

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24752138.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: the nexus repositories only show .index and .meta

2009-07-28 Thread ykyuen

sorry, please ignore this post. i will ask in the Nexus group.

Regards,
Kit


Anders Hammar wrote:
 
 You should try the Nexus mailing list instead as it's not a Maven issue.
 
 /Anders
 

-- 
View this message in context: 
http://www.nabble.com/the-nexus-repositories-only-show-.index-and-.meta-tp24588856p24693538.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: the nexus repositories only show .index and .meta

2009-07-27 Thread ykyuen

Hi all,

i installed the nexus on my windows pc (previously i try the nexus in the VM
inside this windows pc but fail due to connetion refused). This time i also
set the proxy in the settings.xml of {MAVEN_HOME} and {USER_HOME}. and i
also set the sontatype-work folder to be read/write accessed by Everyone.

now, the problem is connection timed out instead of connection refused. here
is the log
---
2009-07-28 11:34:41 INFO  [pool-1-thread-1] - o.s.n.i.IndexerMana~:default 
- Cascading merge of group indexes for group 'public', where repository
'central' is member.
2009-07-28 11:34:41 INFO  [pool-1-thread-1] - o.s.n.i.IndexerMana~:default 
- Publishing best index for repository central
2009-07-28 11:34:43 INFO  [qtp0-0 ] - o.a.c.h.HttpMethodD~ 
- I/O exception (java.net.ConnectException) caught when processing request:
Connection timed out: connect
2009-07-28 11:34:43 INFO  [qtp0-0 ] - o.a.c.h.HttpMethodD~ 
- Retrying request
2009-07-28 11:34:51 INFO  [pool-1-thread-1] - o.s.n.f.FeedRecorder:default 
- Reindexing repository Maven Central from path / and below. : Process
started on Tue Jul 28 11:34:51 CST 2009, not yet finished.
2009-07-28 11:34:51 INFO  [qtp0-2 ] - o.a.c.h.HttpMethodD~ 
- I/O exception (java.net.ConnectException) caught when processing request:
Connection timed out: connect
2009-07-28 11:34:51 INFO  [qtp0-2 ] - o.a.c.h.HttpMethodD~ 
- Retrying request
2009-07-28 11:34:51 INFO  [pool-1-thread-1] - o.s.n.i.IndexerMana~:default 
- Trying to get remote index for repository central
2009-07-28 11:34:51 INFO  [pool-1-thread-1] - o.s.n.p.r.Repository:maven2  
- Expiring local cache in repository ID='central' from path='/.index'
2009-07-28 11:34:51 INFO  [pool-1-thread-1] - o.s.n.p.r.Repository:maven2  
- Clearing NFC cache in repository ID='central' from path='/.index'
2009-07-28 11:35:01 WARN  [pool-1-thread-1] - o.s.n.i.IndexerMana~:default 
- Cannot fetch remote index:
org.sonatype.nexus.proxy.StorageException: Tranport error while executing
GET method
at
org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpClientRemoteStorage.java:512)
at
org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpClientRemoteStorage.java:133)
at
org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699)
at
org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
at
org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103)
at
org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
at
org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603)
at
org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
at
org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:484)
at
org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:440)
at
org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexus.java:1328)
at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:40)
at
org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
at
org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.httpclient.ConnectTimeoutException: The host
did not accept the connection within timeout of 1 ms
at
org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155)
at
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at

RE: the nexus repositories only show .index and .meta

2009-07-22 Thread ykyuen


Jonathan Woods wrote:
 
 Perhaps you need to tell Maven how to get to your proxy:
 
 http://maven.apache.org/guides/mini/guide-proxies.html
 
 Jon 
 

i did set it the proxy in the settings.xml too...
both /etc/maven2/settings.xml and the /home/user/.m2/settings.xml

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/the-nexus-repositories-only-show-.index-and-.meta-tp24588856p24603437.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



the nexus repositories only show .index and .meta

2009-07-21 Thread ykyuen

hi all,

i just installed the nexus 1.3.6 to my ubuntu. everything works fine except
when i browse the repositories such as Public Repositories only 2 folders
named as .meta and .index are shown...

the ubuntu is behind a firewall in the network and i have already set the
proxy setting in nexus. so i think it should be able to download the files
outside. but i found the connection refused in the nexus.log

here is the nexus.log
--
2009-07-21 22:46:08 INFO  [pool-1-thread-2] - o.s.n.i.IndexerMana~:default 
- Cascading merge of group indexes for group 'public-snapshots', where
repository 'codehaus-snapshots' is member.
2009-07-21 22:46:09 INFO  [pool-1-thread-2] - o.s.n.i.IndexerMana~:default 
- Publishing best index for repository apache-snapshots
2009-07-21 22:46:11 INFO  [pool-1-thread-2] - o.s.n.i.IndexerMana~:default 
- Publishing best index for repository codehaus-snapshots
2009-07-21 22:53:59 INFO  [qtp0-10] - o.a.c.h.HttpMethodD~ 
- I/O exception (java.net.ConnectException) caught when processing request:
Connection refused
2009-07-21 22:53:59 INFO  [qtp0-10] - o.a.c.h.HttpMethodD~ 
- Retrying request
2009-07-21 22:54:15 INFO  [qtp0-13] - o.s.n.p.m.ArtifactP~:default 
- User mappings file not found, will work with defaults...
2009-07-21 22:54:20 INFO  [qtp0-10] - o.a.c.h.HttpMethodD~ 
- I/O exception (java.net.ConnectException) caught when processing request:
Connection refused


anything i have missed?

Thanks for your help.

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/the-nexus-repositories-only-show-.index-and-.meta-tp24588856p24588856.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: the nexus repositories only show .index and .meta

2009-07-21 Thread ykyuen


Jonathan Woods wrote:
 
 Have you tried 'by hand' to make HTTP requests from your Ubuntu box?  E.g.
 
   wget
 http://repo1.maven.org/maven2/org/apache/commons/commons-email/1.1/commons-e
 mail-1.1.pom
 
 Jon
 

i try wget
http://repo1.maven.org/maven2/activecluster/activecluster/20040408.185106/activecluster-20040408.185106.pom
after export the http_proxy in the shell

and it is ok, i can download the file.

but the repo still cannot show other files.

The Ubuntu is a vm in my Deskop which is windows. The desktop is behind a
firewall but after setting proxy, it can get into the internet by http.

Regards,
Kit

-- 
View this message in context: 
http://www.nabble.com/the-nexus-repositories-only-show-.index-and-.meta-tp24588856p24600048.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Migration existing java project to maven2

2009-07-20 Thread ykyuen

Hi all,

i am new to maven and i just go thru the examples in the Maven: The
Definitive Guide.

i am going to migrate a project to maven2. but i find that there are some
jars which are not found in the maven repository
http://repo1.maven.org/maven2/. 

for example. the java project needs activation-1.1.1.jar,
xmlsec-1.4.2.jar... etc.
so i cannot set them as a dependency in the pom.xml

how can i deal with that?

Thanks for your help =)

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/Migration-existing-java-project-to-maven2-tp24570669p24570669.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Migrate existing java project to maven2

2009-07-20 Thread ykyuen

Thanks for all the suggestions. i will take a look on those repository
managers and then install the missing jars into it. 

Thanks very much for your help =)

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/Migrate-existing-java-project-to-maven2-tp24570669p24580728.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: exec:java problem

2009-07-19 Thread ykyuen


Tim O'Brien wrote:
 
 Alright, time to update this example to use a gov't feed from the US NWS.
 
 Thanks for letting me know.
 
oh sorry, i have made a mistake, the sample works fine. the failure was
caused by the firewall of my network. 

sorry for the misleading:-((
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24555373.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: exec:java problem

2009-07-15 Thread ykyuen

it works in windows now.
the problem is previously, i created the maven project directly in eclipse
by the m2eclipse plugin and the project is located in the workspace.

then i try to create the project in the maven repository by the mvn
archetype:create and them import the project to the eclipse. it works fine
now.

but i can only retrieve the weather info once.
http://xml.weather.yahoo.com/ns/rss/1.0 doesn't work now...

anyway, the program works.

thanks very much for your help. =)

Regards,
kit



dchicks wrote:
 
 Did you check to make sure that the class was in the target/classes
 directory?
 
 The UTF-8 encoding is normal on Linux.  That's the default encoding when
 one is not specified.
 
 
 
 ykyuen wrote:
 Hi all,

 i just did the same thing in Linux environemt. the program can be
 executed
 without any problem.
 same warning appear at mvn install but this time the encoding is UTF-8.

 what makes the execution failure in windows env?

 Thanks.

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

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24492726.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: exec:java problem

2009-07-15 Thread ykyuen


Tim O'Brien wrote:
 
 Alright, time to update this example to use a gov't feed from the US NWS.
 
 Thanks for letting me know.
 

u are welcome~~
that's my pleasure =P

-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24499961.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



exec:java problem

2009-07-14 Thread ykyuen

Hi all,

i am new to maven2. i got some problem when i tried to follow the sample
program of the book Maven: The Definitive Guide
http://www.sonatype.com/books/maven-book/reference/customizing-sect-custom-exec.html

i can sucessfully build the the program by the mvn install command
http://www.codetter.com/snippets/l

but when i run the mvn exec:java
-Dexec.mainClass=org.sonatype.mavenbook.weather.Main, there is an exception
http://www.codetter.com/snippets/n

i have no idea about that exception. and does it related to the warning in
mvn:install about the MS950 encoding?

Thanks very much for your help.

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24491018.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: exec:java problem

2009-07-14 Thread ykyuen

Hi all,

i just did the same thing in Linux environemt. the program can be executed
without any problem.
same warning appear at mvn install but this time the encoding is UTF-8.

what makes the execution failure in windows env?

Thanks.

Regards,
Kit
-- 
View this message in context: 
http://www.nabble.com/exec%3Ajava-problem-tp24491018p24491604.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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