Where can I set the atlassian-plugin-sdk 'allowGoogleTracking' parameter to false?
I have installed / installed atlassian-plugin-sdk so that I can learn JIRA plugin development.
However, when I run the "atlas-run-standalone --product jira" command and start the JIRA instance, it tries to connect to google analytics and gets refused connection (our proxy is blocking it).
It says that I can turn off this tracking feature:
you may disable tracking by adding <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configuration in your pom.xml
My question is, where can I find this allowGoogleTracking option? In which pom.xml as I cannot find it in the "atlassian-plugin-sdk" directory.
I've tried googling and looking around, but I can't seem to find wherever they say which pom.xml file I have to edit.
source to share
From the documentation:
AMPS sends key usage events to Google Analytics by default. To turn off tracking, follow these steps:
- Add
<allow.google.tracking>false</allow.google.tracking>
to<properties>
your file section.m2/settings.xml
- Enable
<allowGoogleTracking>false</allowGoogleTracking>
in the amps plugin setting inpom.xml
- or pass
-Dallow.google.tracking=false
on the command line.
The simplest is to set it in a file ~/.m2/settings.xml
in the default profile. You can also install skipAllPrompts
at the same time:
<settings>
...
<profiles>
<profile>
<id>defaultProfile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
...
<properties>
<allow.google.tracking>false</allow.google.tracking>
<skipAllPrompts>true</skipAllPrompts>
</properties>
</profile>
</profiles>
</settings>
source to share
I added the following to my pom file:
<build>
<plugins>
<!-- other plugins ... -->
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-amps-plugin</artifactId>
<version>5.1.11</version>
<configuration>
<allowGoogleTracking>false</allowGoogleTracking>
</configuration>
</plugin>
</plugins>
<!-- other stuff -->
</build>
Unfortunately it won't work ... and I rather don't want to add a property for this in maven settings.xml
. Is there something wrong with my snippet that I added to the pom? Does anyone have a "solution"?
source to share