The easiest thing to do might be to copy your source to a laptop, walk to a Starbucks, and then run full-source there. ;-)

Matt

On Feb 9, 2009, at 7:31 AM, Ice-Man <derlon.aliend...@gmail.com> wrote:

      Matt,

   I think Reza is in the same situation of me.
I've reached such mvn settings that in present moment I'm able to run almost every cmds (of AppFuse, as u know), but :full-source. (I noticed 'mvn eclipse:eclipse' had problems, so I discovered that's isse of mirroring (repositories) and now I'm able to run perfectly! ;-)) In :full-source I always get svn: Connection timed out . I'm able to access https://appfuse.dev.java.net/svn/appfuse/trunk via HTTP/ browser. Do u figure out how to set for it the proxy config (via Ant, SVNclient setting, or any other way)??! Or even a other way of download full-source via browser and make it work with owr AppFuse generated archetype??!
   Thnx for endeavor,

Ice-Man


2009/2/9 Matt Raible <m...@raibledesigns.com>
Here's how to configure Maven to use a proxy - maybe this will help:

http://maven.apache.org/guides/mini/guide-proxies.html

Matt


On Mon, Feb 9, 2009 at 6:27 AM, Reza Farshi <reza.far...@gmail.com> wrote: My question is how can I say to maven to use some proxy settings when downloading files. when ant task runs inside maven, it ignores any proxy settings so it could not download files.


Here i send verbose report message :
tidy at C:\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy- r8-20060801.pom
[INFO] [appfuse:full-source]
[INFO] [AppFuse] Source successfully exported, modifying pom.xml...
[INFO] [AppFuse] Removing maven-warpath-plugin...
[INFO] [AppFuse] Adding dependencies from root module...
[INFO] --- ---------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] --- ---------------------------------------------------------------------
[INFO] java.net.ConnectException: Connection timed out: connect
[INFO] --- ---------------------------------------------------------------------
[INFO] Trace

java.net.ConnectException: Connection timed out: connect
        at org.apache.tools.ant.taskdefs.Get.execute(Get.java:80)
at org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(In
stallSourceMojo.java:653)
at org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(In
stallSourceMojo.java:626)
at org.appfuse.mojo.installer.InstallSourceMojo.execute(InstallSourceMoj
o.java:215)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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: java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java: 333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:516)
        at java.net.Socket.connect(Socket.java:466)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(AbstractDelegateHttpsURLConnection.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:747)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:162)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon
nectionImpl.java:133)
        at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:158)
        at org.apache.tools.ant.taskdefs.Get.execute(Get.java:76)
        ... 21 more
--- Nested Exception ---

java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java: 333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:516)
        at java.net.Socket.connect(Socket.java:466)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewH
ttpClient(AbstractDelegateHttpsURLConnection.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:747)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
(AbstractDelegateHttpsURLConnection.java:162)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLCon
nectionImpl.java:133)
        at org.apache.tools.ant.taskdefs.Get.doGet(Get.java:158)
        at org.apache.tools.ant.taskdefs.Get.execute(Get.java:76)
at org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(In
stallSourceMojo.java:653)
at org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(In
stallSourceMojo.java:626)
at org.appfuse.mojo.installer.InstallSourceMojo.execute(InstallSourceMoj
o.java:215)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.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: 25 seconds
[INFO] Finished at: Mon Feb 09 16:51:55 GMT+03:30 2009
[INFO] Final Memory: 5M/10M
[INFO] --- ---------------------------------------------------------------------




On Mon, Feb 9, 2009 at 4:40 PM, Matt Raible <m...@raibledesigns.com> wrote:


On Mon, Feb 9, 2009 at 5:55 AM, Reza Farshi <reza.far...@gmail.com> wrote:
>>svn co https://appfuse.dev.java.net/svn/appfuse/trunk appfuse
I tested it , it doesn't work for me without proxy settings . I am using tortoise SVN client and when I set proxy it dl'd successfully.

I read before about appfuse:fullsource plugin documentation in 
http://static.appfuse.org/plugins/appfuse-maven-plugin/full-source-mojo.html
when I am using appfuse:full-source , your plugin try to get this files via ant get task command , and i have no build.xml file to adjusting proxy stuff there.

We use SVNKit to get the files by running "svn export" from SVN. Unfortunately, I'm not entirely certainly on how to adjust your environment to make this work.

Matt



I examine many solutions setting ANT_ARGS in environmant vars , changing proxy setting in maven conf/settings.xml , but problem is exist after all. downloading source code is not sufficinet coz i wanna change package names too, so i need to run appfuse:fullsource.



On Mon, Feb 9, 2009 at 4:00 PM, Matt Raible <m...@raibledesigns.com> wrote: Yes, it could certainly be related. If you can get the following command working, this should work.

svn co https://appfuse.dev.java.net/svn/appfuse/trunk appfuse

Matt


On Mon, Feb 9, 2009 at 5:28 AM, Reza Farshi <reza.far...@gmail.com> wrote:
Hi friends,
after creating new project successfully I ran mvn appfuse:full- source command but i got error message below :

java.net.ConnectException: Connection timed out: connect
        at org.apache.tools.ant.taskdefs.Get.execute(Get.java:80)

I am behind proxy server, is this related to that?
any help appreciated.

-- thanks
Reza Farshi




--
Reza Farshi




--
Reza Farshi


--
Reza Farshi




--
Reza Farshi



Reply via email to