Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Proxy Setup for JIRA Plugin Development

Lakshmi Kiran Ponnapalli March 18, 2013

Hello friends,

I am trying to setup JIRA Development environment on my office laptop. I setup "ATLAS_HOME = C:\JiraSDK\atlassian-plugin-sdk" and in maven i modified setting.xml as well with proxy information. during setup i am getting

"Unable to get resource 'com.atlassian.amps:atlassian-amps-parent:pom:4.1.5' from repository central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect" and finally build get filaing since its not able to get the support file from internet.

Could you please help me

5 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2013

Hi there,

The settings into the settings.xml file should be the only thing you need to change in order to configure the proxy redirection. Could let us know how your proxy is configured there?

I should be something like this (It's also described here):

<proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     | -->
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    
  </proxies>

Cheers

Lakshmi Kiran Ponnapalli March 25, 2013

Hello

Yes. I have setting.xml and i updated it with proxy information. also i found that we have .m2 folder and we need to place setting.xml their to connect. Now i have a new issue after adding setting.xml in .m2 folder.

i am able to get the code from internet but i am not able to start tomcat server

Could you please help if i am missing some information here

Thanks Lakshmi

Uwe Sauerbrei March 25, 2013

What is the problem with the tomcat?

Lakshmi Kiran Ponnapalli March 25, 2013

I am getting following message when i try to setup the jira project in local environment. Please check and advise

-----------------------------------------------------------------------------------------------------------------

[INFO] Unpacking C:\Users\lponnapa\.m2\repository\org\apache\tomcat\apache-tomcat\6.0.20\apache-tomcat-6.0.20.zip to C:\Workspace\jirasetup\amps-standalone\target\container\tomcat6x with includes "" and excludes ""

[INFO] Starting jira on the tomcat6x container on ports 2990 (http) and 60580 (rmi)

[INFO] using codehaus cargo v1.2.3

[INFO] [cargo:start]

[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.2.3 for container tomcat6x

[INFO] [stalledLocalDeployer] Deploying [C:\Workspace\jirasetup\amps-standalone\target\jira\jira.war] to [C:\Workspace\jirasetup\amps-standalone\target\container\tomcat6x\cargo-jira-home/webapps]...

[INFO] [talledLocalContainer] Tomcat 6.x starting...

[INFO] [yer.DeployerWatchdog] Deployable [http://localhost:2990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown.

[INFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO] ------------------------------------------------------------------------

[INFO] Unable to execute mojo

Deployable [http://localhost:2990/cargocpc/index.html] failed to finish deploying within the timeout period [600000]. The Deployable state is thus unknown.

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 22 minutes 1 second

[INFO] Finished at: Mon Mar 25 21:53:33 PDT 2013

[INFO] Final Memory: 53M/307M

[INFO] ------------------------------------------------------------------------

C:\Workspace\jirasetup>

2 votes
Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2013

Hi, try my answer in this question: https://answers.atlassian.com/questions/20079/plugin-sdk-does-not-use-http-proxy?page=1#38445

I remember that was a terrible headache.

Hope this helps.

Ramiro Pointis
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2013

There's other point of view here:

https://answers.atlassian.com/questions/28571/atlas-install-plugin-unable-to-execute-mojo

And another here:

https://answers.atlassian.com/questions/54075/atlas-run-error

That error has something to do with connection problem. I'm almost sure it's because the proxy but you have to check some other things too

Cheers

0 votes
VikasBasra November 6, 2013

Guys add the following and it will fix your problem in your mvn.bat file

@REM set MAVEN_CMD_LINE_ARGS=%*

set MAVEN_CMD_LINE_ARGS=-Dhttp.proxyHost=192.x.x.x -Dhttp.proxyPort=8080 -Dhttps.proxyHost=192.x.x.x -Dhttps.proxyPort=8080 %*

MohammadA November 17, 2013

Thanks Man. It helped me.

Jayashree Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2014

Hi i changed

@REM set MAVEN_CMD_LINE_ARGS=%*
set MAVEN_CMD_LINE_ARGS=-Dhttp.proxyHost=192.x.x.x -Dhttp.proxyPort=8080 -Dhttps.proxyHost=192.x.x.x -Dhttps.proxyPort=8080 %*
in the mvn.bat file.

Changed in server.xml file
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"
               keystoreFile="mycertificate.cert" 
               keystorePass="changeit"/>
Changed in web.xml
<security-constraint>
    <web-resource-collection>
        <web-resource-name>Entire Application</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

Still doesnt work.. How can i configure proxy settings?


0 votes
sap
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2013

Hi lakshmi,

I faced the same issue at ofice.But when i try this from home it works.So the issue has to do something with either the port being unavailable or firewall issues at the office.

0 votes
sap
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2013

Hi Ramiro,

I have done everything you have suggested here.Still i bump into the below error



[INFO] [2.ContainerStartMojo] Resolved container artifact org.codehaus.cargo:car
go-core-container-tomcat:jar:1.2.3 for container tomcat7x
[INFO] [stalledLocalDeployer] Deploying [D:\Plugin4.2.4\amps-standalone\target\j
ira\jira.war] to [D:\Plugin4.2.4\amps-standalone\target\container\tomcat7x\cargo
-jira-home/webapps]...
[INFO] [talledLocalContainer] Tomcat 7.x starting...
[INFO] [yer.DeployerWatchdog] Deployable [http://localhost:2990/cargocpc/index.h
tml] failed to finish deploying within the timeout period [600000]. The Deployab
le state is thus unknown.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo

Deployable [http://localhost:2990/cargocpc/index.html] failed to finish deployin
g within the timeout period [600000]. The Deployable state is thus unknown.

it would be great if you could let me know of any workaround other than the ones you have already mentioned regarding the proxy settings in bat files etc etc.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events