I'm walking through the tutorial found at https://developer.atlassian.com/display/DOCS/Create+a+HelloWorld+Plugin+Project. when executing 'atlas-create-jira-plugin' it gives the output below. any troubleshooting assistance is appreciated. :)
C:\atlastutorial>atlas-create-jira-plugin
A new plugin structure is required for JIRA 5 plugins due to significant changes
in the APIs.
Create a plugin for?
1) Shiny new JIRA 5
2) Regular 'ol JIRA 4 (or earlier)
#?1
Executing: "C:\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" com.atlassian.mave
n.plugins:maven-jira-plugin:3.11:create
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [com.atlassian.maven.plugins:maven-jira-plugin:3.11:crea
te] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [jira:create]
[INFO] Google Analytics Tracking is enabled to collect AMPS usage statistics.
[INFO] Although no personal information is sent, you may disable tracking by add
ing <allowGoogleTracking>false</allowGoogleTracking> to the amps plugin configur
ation in your pom.xml
[INFO] Sending event to Google Analytics: AMPS:jira - Create Plugin
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from [com.atlassian.maven.arc
hetypes:jira-plugin-archetype:5 -> https://maven.atlassian.com/public] found in
catalog internal
Define value for groupId: : 1133 [AnalyticsThread-1] ERROR com.dmurph.tracking.J
GoogleAnalyticsTracker - Error making tracking request
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:227)
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:970)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:949)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:836)
at com.dmurph.tracking.JGoogleAnalyticsTracker.dispatchRequest(JGoogleAn
alyticsTracker.java:463)
at com.dmurph.tracking.JGoogleAnalyticsTracker.access$100(JGoogleAnalyti
csTracker.java:76)
at com.dmurph.tracking.JGoogleAnalyticsTracker$1.run(JGoogleAnalyticsTra
cker.java:431)
after giving it a few minutes, i break out of it to get the following:
2012-09-19 14:54:07
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.7-b02 mixed mode):
"AnalyticsBackgroundThread" daemon prio=2 tid=0x0000000007cb7000 nid=0x1974 in
bject.wait() [0x000000000a9df000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000fe8d8070> (a java.util.LinkedList)
at java.lang.Object.wait(Object.java:485)
at com.dmurph.tracking.JGoogleAnalyticsTracker$2.run(JGoogleAnalyticsTr
cker.java:501)
- locked <0x00000000fe8d8070> (a java.util.LinkedList)
"AWT-Windows" daemon prio=6 tid=0x00000000071a3800 nid=0x17b8 runnable [0x00000
000a71f000]
java.lang.Thread.State: RUNNABLE
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:293)
at java.lang.Thread.run(Thread.java:662)
"Java2D Disposer" daemon prio=10 tid=0x00000000071a1800 nid=0x10f0 in Object.wa
t() [0x000000000a51f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000fe8d80f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00000000fe8d80f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at sun.java2d.Disposer.run(Disposer.java:127)
at java.lang.Thread.run(Thread.java:662)
"pool-1-thread-5" prio=6 tid=0x0000000007c4e800 nid=0x143c in Object.wait() [0x
00000000a1bf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.j
va.util.concurrent.LinkedBlockingQueue$SerializableLock)
at java.lang.Object.wait(Object.java:485)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.LinkedBlocking
ueue.take(LinkedBlockingQueue.java:316)
- locked <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.java.
til.concurrent.LinkedBlockingQueue$SerializableLock)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.getTask(ThreadPoolExecutor.java:994)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.runWorker(ThreadPoolExecutor.java:1054)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:662)
"pool-1-thread-4" prio=6 tid=0x000000000894c000 nid=0x1ba4 in Object.wait() [0x
00000000a0bf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.j
va.util.concurrent.LinkedBlockingQueue$SerializableLock)
at java.lang.Object.wait(Object.java:485)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.LinkedBlocking
ueue.take(LinkedBlockingQueue.java:316)
- locked <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.java.
til.concurrent.LinkedBlockingQueue$SerializableLock)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.getTask(ThreadPoolExecutor.java:994)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.runWorker(ThreadPoolExecutor.java:1054)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:662)
"pool-1-thread-3" prio=6 tid=0x00000000090fc000 nid=0x1bdc in Object.wait() [0x
000000009fbf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.j
va.util.concurrent.LinkedBlockingQueue$SerializableLock)
at java.lang.Object.wait(Object.java:485)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.LinkedBlocking
ueue.take(LinkedBlockingQueue.java:316)
- locked <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.java.
til.concurrent.LinkedBlockingQueue$SerializableLock)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.getTask(ThreadPoolExecutor.java:994)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.runWorker(ThreadPoolExecutor.java:1054)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:662)
"pool-1-thread-2" prio=6 tid=0x0000000007b57000 nid=0xc60 in Object.wait() [0x0
00000009ebf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.j
va.util.concurrent.LinkedBlockingQueue$SerializableLock)
at java.lang.Object.wait(Object.java:485)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.LinkedBlocking
ueue.take(LinkedBlockingQueue.java:316)
- locked <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.java.
til.concurrent.LinkedBlockingQueue$SerializableLock)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.getTask(ThreadPoolExecutor.java:994)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.runWorker(ThreadPoolExecutor.java:1054)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:662)
"pool-1-thread-1" prio=6 tid=0x0000000008f29800 nid=0x1bf0 in Object.wait() [0x
000000009dbf000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.j
va.util.concurrent.LinkedBlockingQueue$SerializableLock)
at java.lang.Object.wait(Object.java:485)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.LinkedBlocking
ueue.take(LinkedBlockingQueue.java:316)
- locked <0x00000000d01ca6d0> (a hidden.edu.emory.mathcs.backport.java.
til.concurrent.LinkedBlockingQueue$SerializableLock)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.getTask(ThreadPoolExecutor.java:994)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor.runWorker(ThreadPoolExecutor.java:1054)
at hidden.edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExec
tor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:662)
"Low Memory Detector" daemon prio=6 tid=0x000000000698b000 nid=0xf40 runnable [
x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread1" daemon prio=10 tid=0x0000000006986800 nid=0x16c8 waiting o
condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"C2 CompilerThread0" daemon prio=10 tid=0x000000000697a800 nid=0x1434 waiting o
condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Attach Listener" daemon prio=10 tid=0x0000000006977000 nid=0x19a4 runnable [0x
000000000000000]
java.lang.Thread.State: RUNNABLE
"Signal Dispatcher" daemon prio=10 tid=0x0000000006972000 nid=0x1118 waiting on
condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Finalizer" daemon prio=8 tid=0x000000000052d800 nid=0x1b34 in Object.wait() [0
000000000691f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d08ab300> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <0x00000000d08ab300> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x0000000000526800 nid=0x4f4 in Object.w
it() [0x000000000681f000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000000d08ab298> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x00000000d08ab298> (a java.lang.ref.Reference$Lock)
"main" prio=6 tid=0x000000000058b800 nid=0x85c runnable [0x00000000029be000]
java.lang.Thread.State: RUNNABLE
at java.util.Hashtable.put(Hashtable.java:393)
- locked <0x00000000f80f4ff8> (a java.util.Properties)
at java.util.Properties.setProperty(Properties.java:143)
- locked <0x00000000f80f4ff8> (a java.util.Properties)
at org.apache.maven.archetype.common.ArchetypeConfiguration.setProperty
ArchetypeConfiguration.java:211)
at org.apache.maven.archetype.ui.DefaultArchetypeGenerationConfigurator
configureArchetype(DefaultArchetypeGenerationConfigurator.java:193)
at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.exec
te(CreateProjectFromArchetypeMojo.java:182)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:483)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojoImpl(MojoExecu
or.java:120)
at org.twdata.maven.mojoexecutor.MojoExecutor$ExecutionEnvironmentM2.ex
cuteMojo(MojoExecutor.java:403)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.
ava:74)
at com.atlassian.maven.plugins.amps.MavenGoals.createPlugin(MavenGoals.
ava:168)
at com.atlassian.maven.plugins.amps.CreateMojo.execute(CreateMojo.java:
9)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:678)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalon
Goal(DefaultLifecycleExecutor.java:553)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
ltLifecycleExecutor.java:523)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
dleFailures(DefaultLifecycleExecutor.java:371)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
ts(DefaultLifecycleExecutor.java:268)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)
"VM Thread" prio=10 tid=0x000000000051e800 nid=0xdd0 runnable
"GC task thread#0 (ParallelGC)" prio=6 tid=0x0000000000477000 nid=0x13dc runnab
e
"GC task thread#1 (ParallelGC)" prio=6 tid=0x0000000000479000 nid=0x53c runnabl
"GC task thread#2 (ParallelGC)" prio=6 tid=0x000000000047a800 nid=0xec0 runnabl
"GC task thread#3 (ParallelGC)" prio=6 tid=0x000000000047c800 nid=0x1198 runnab
e
"VM Periodic Task Thread" prio=10 tid=0x0000000006994000 nid=0xb40 waiting on c
ndition
JNI global references: 1612
Heap
PSYoungGen total 249472K, used 152476K [0x00000000f0000000, 0x00000000ffe
0000, 0x0000000100000000)
eden space 238400K, 62% used [0x00000000f0000000,0x00000000f9223368,0x0000000
fe8d0000)
from space 11072K, 25% used [0x00000000fe8d0000,0x00000000feb94010,0x00000000
f3a0000)
to space 10624K, 0% used [0x00000000ff410000,0x00000000ff410000,0x00000000f
e70000)
PSOldGen total 86144K, used 29815K [0x00000000d0000000, 0x00000000d5420
00, 0x00000000f0000000)
object space 86144K, 34% used [0x00000000d0000000,0x00000000d1d1ddf8,0x000000
0d5420000)
PSPermGen total 21248K, used 13623K [0x00000000c0000000, 0x00000000c14c0
00, 0x00000000d0000000)
object space 21248K, 64% used [0x00000000c0000000,0x00000000c0d4de50,0x000000
0c14c0000)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to execute mojo
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 minutes 19 seconds
[INFO] Finished at: Wed Sep 19 14:54:08 PDT 2012
[INFO] Final Memory: 39M/327M
[INFO] ------------------------------------------------------------------------
Terminate batch job (Y/N)? y
C:\atlastutorial>
Community moderators have prevented the ability to post new answers.
You need to add allowGoogleTracking to your pom.xml, which disables google analytics tracking and is causing your current connection errors.
Example:
<plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-amps-plugin</artifactId> <version>3.11</version> <configuration> <allowGoogleTracking>false</allowGoogleTracking> </configuration> </plugin>
i see multiple pom.xml files in the 'atlastutorial' folder. which do i edit?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you building multiple plugins out of one folder? Because you should only have 1 pom.xml per plugin. For example: atlassian-beer-supply-plugin/pom.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when you said add something to pom.xml, i thought you meant editing one of the following that already existed. did i misunderstand? (btw i'll pay you for that beer supply plugin. ;)
C:\atlastutorial\amps-standalone\target\container\tomcat6x\cargo-jira-home\webapps\jira\META-INF\maven\com.atlassian.jira\atlassian-jira-webapp\pom.xml
C:\atlastutorial\amps-standalone\target\container\tomcat6x\cargo-jira-home\webapps\jira\WEB-INF\classes\META-INF\maven\com.atlassian.jira\jira-core\pom.xml
C:\atlastutorial\amps-standalone\target\jira\webapp\META-INF\maven\com.atlassian.jira\atlassian-jira-webapp\pom.xml
C:\atlastutorial\amps-standalone\target\jira\webapp\WEB-INF\classes\META-INF\maven\com.atlassian.jira\jira-core\pom.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your plugin project should have a pom.xml at it's root. Do NOT touch those ones you've found unless you're aiming to fiddle with the core of Jira!
You can actually ignore the connection error to google, it doesn't harm the build, just takes up a bit of time.
It sounds to me like you are breaking out far too early, and it's not even getting as far as creating a skeleton pom.xml for you. The first time you run any atlas-thingy command, it works out all the dependencies you need and wanders off to the web to fetch them. Once it has them, it caches them locally and doesn't fetch them again, but it can take a while to build the local repository the first time you run (Last time I rebuilt my laptop, took about 30 minutes to run both atlas-create-plugin and atlas-run)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I edit my projects pom.xml when it fails while creating the project?
I tried atlas-create-jira-plugin and after entering my information it fails with the above error message - before any project and its pom.xml is created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.