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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do you override plugin.resource.directories when using atlas-run-standalone

I am trying to setup a development environment to use with scriptrunner.

Everything is working but I amtr ying to develop some web resource plugins that require the plugin.resource.directories parameter to be set.

I am launching atlas-run-standalone as follows

atlas-run-standalone --product jira --version 7.9.1 --jvmargs "-Dplugin.script.roots=C:\files\dev\jira\scripts-repository\src\main\resources -Dplugin.resource.directories=C:\files\dev\jira\scripts-repository\src\main\resources -DdisableJiraEmail=false -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n"

However when inspecting the JVM Input Arguments it shows

-Dplugin.script.roots=C:\files\dev\jira\scripts-repository\src\main\resources -Dplugin.resource.directories=C:\files\dev\jira\scripts-repository\src\main\resources -DdisableJiraEmail=false -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -Xmx768m -Xms384m -XX:PermSize=48m -XX:MaxPermSize=128m -Dbaseurl=http://DESKTOP-7JECLGC:2990/jira -Dplugin.root.directories=c:\files\dev\jira\dev-inst\791\amps-standalone-jira-7.9.1 -Dcargo.servlet.uriencoding=UTF-8 -Dcom.atlassian.jira.startup.LauncherContextListener.SYNCHRONOUS=true -Dplugin.resource.directories= -Datlassian.dev.mode=true -Djava.awt.headless=true -Djira.home=c:/files/dev/jira/dev-inst/791/amps-standalone-jira-7.9.1/target/jira/home -Dcargo.datasource.datasource=cargo.datasource.url=jdbc:h2:file:c:/files/dev/jira/dev-inst/791/amps-standalone-jira-7.9.1/target/jira/home/database/h2db|cargo.datasource.driver=org.h2.Driver|cargo.datasource.username=sa|cargo.datasource.password=|cargo.datasource.jndi=jdbc/JiraDS -Datlassian.sdk.version=6.3.15 -Dcatalina.home=c:\files\dev\jira\dev-inst\791\amps-standalone-jira-7.9.1\target\container\tomcat8x\apache-tomcat-8.5.6 -Dcatalina.base=c:\files\dev\jira\dev-inst\791\amps-standalone-jira-7.9.1\target\container\tomcat8x\cargo-jira-home -Djava.io.tmpdir=c:\files\dev\jira\dev-inst\791\amps-standalone-jira-7.9.1\target\container\tomcat8x\cargo-jira-home/temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=c:\files\dev\jira\dev-inst\791\amps-standalone-jira-7.9.1\target\container\tomcat8x\cargo-jira-home/conf/logging.properties

Which indicates that it is being over written somewhere further down the launch process however I have sited other documentation that this should work.

Any ideas would be appreciated

1 answer

You can set your -Dplugin.resource.directories via atlassian jira properties file.

To run that exe file you need to use cmd with command like below:

C:\Program Files\Atlassian\JIRA\bin>tomcat8w //ES//JIRASoftware170717004605

Atlassian Jira Properties.png

 

bold part is your jira service name, you can have it from services.

service name.jpg

Then insert the line with your own custom path

-Dplugin.resource.directories=C:\Program Files\Atlassian\Application Data\JIRA\scripts

Sagol kardesim ! thanks bro !

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you