Missed Team ’24? Catch up on announcements here.

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

Netbeans complains: repositories.repository[atlassian].url is missing

Larry Larry
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 27, 2011

Hi Folks, I think my short question is, what URL do I put into the pom.xml for myfirstbamboo project? Page https://developer.atlassian.com/display/DOCS/Configuring+NetBeans+to+use+the+Atlassian+Plugin+SDK describes some additions to my pom.xml but the <url></url> fields are empty.

Thanks, Larry Fast

----------------------
In more detail...

I'm walking through the getting started instructions for Atlassian SDK and developing a Bamboo 3.3.3 plugin using NetBeans. I created myFirstBamboo plugin project and applied the pom.xml changes described on https://developer.atlassian.com/display/DOCS/Configuring+NetBeans+to+use+the+Atlassian+Plugin+SDK, then attempted to load the project in netbeans.

Netbeans complains:
The build could not read 1 project -> [Help 1]

The project org.lfast.bamboo.plugins:myfirstbamboo:0.1a (M:\atlassian-plugin-sdk-3.7.2\MyFirstApp\myfirstbamboo\pom.xml) has 4 errors
'repositories.repository[atlassian].url' is missing. @ line 50, column 19
'pluginRepositories.pluginRepository[atlassian-public].url' is missing. @ line 62, column 19
Invalid plugin repository: URL missing for repository atlassian-public -> [Help 2]
Invalid artifact repository: URL missing for repository atlassian -> [Help 2]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[Help 2] http://cwiki.apache.org/confluence/display/MAVEN/InvalidRepositoryException

Further testing revealed that I can no longer run the command line atlas-run on my plugin. It fails with a similar complaint about hte URL.

[ERROR] FATAL ERROR
[INFO] Error building POM (may not be this project's POM).
Reason: Repository URL must not be empty (ID is: atlassian). for project org.lfast.bamboo.plugins:myfirstbamboo

The actual pom.xml text generating the netbeans complaint is:

<repositories>
<repository>
<id>atlassian</id>
<name>Atlassian Repository</name>
<url></url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>atlassian-public</id>
<url></url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

2 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
Renjith Pillai
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.
February 29, 2012
0 votes
UoS Web Team People April 29, 2012

I have the exact same problem when creating a Confluence plugin. I've used the updated documentation as described in the previous answer, but to no avail. Any help would be appreciated.

Renjith Pillai
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.
May 1, 2012

The code macro wasn't showing the url values. Just updated it. Check https://developer.atlassian.com/display/DOCS/Configuring+NetBeans+to+use+the+Atlassian+Plugin+SDK

UoS Web Team People May 2, 2012

Thank you very much for your help, as I have now got it working correctly.

TAGS
AUG Leaders

Atlassian Community Events