Netbeans plugin support for Jenkins plugin dev

10 views
Skip to first unread message

Jonathan Bergh

unread,
Dec 5, 2018, 2:08:08 AM12/5/18
to jenkin...@googlegroups.com
Hi all,

I wonder if there are any Netbeans users who have tried Jenkins plugin dev user the Stapler plugin for Netbeans.

I have installed and used the plugin successfully a while ago but am having trouble recently with getting a new project started.

NB using Netbeans 8.2.

Console output:
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 01:25 min
Finished at: 2018-12-05T08:52:57+02:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [Help 1]

Settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <pluginGroups>
    <pluginGroup>org.jenkins-ci.tools</pluginGroup>
  </pluginGroups>
 
  <profiles>
    <!-- Give access to Jenkins plugins -->
    <profile>
      <id>jenkins</id>
      <activation>
        <activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
      </activation>
      <repositories>
        <repository>
          <id>repo.jenkins-ci.org</id>
          <url>https://repo.jenkins-ci.org/public/</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>repo.jenkins-ci.org</id>
          <url>https://repo.jenkins-ci.org/public/</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <mirrors>
    <mirror>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
      <mirrorOf>m.g.o-public</mirrorOf>
    </mirror>
  </mirrors>     
         
</settings>

Thanks very much in advance
Jon

Jesse Glick

unread,
Dec 10, 2018, 4:32:40 PM12/10/18
to Jenkins Dev
On Wed, Dec 5, 2018 at 2:08 AM Jonathan Bergh <bergh.j...@gmail.com> wrote:
> I wonder if there are any Netbeans users who have tried Jenkins plugin dev user the Stapler plugin for Netbeans.

I am the plugin maintainer.

> I have installed and used the plugin successfully a while ago but am having trouble recently with getting a new project started.
>
> Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype

Well the Maven command failed, but you did not quote the command or
the rest of its output. May be less of a NetBeans issue than something
with the Maven archetype. I am not familiar with that error message.

> <activation>
> <activeByDefault>true</activeByDefault> <!-- change this to false, if you don't like to have it on per default -->
> </activation>
> <repositories>
> <repository>
> <id>repo.jenkins-ci.org</id>
> <url>https://repo.jenkins-ci.org/public/</url>
> </repository>

BTW you do not need a profile like this. Every Jenkins plugin is
supposed to declare the repository it needs.
Reply all
Reply to author
Forward
0 new messages