I can't use archetype and set java.version to "8"

346 views
Skip to first unread message

Dan Alvizu

unread,
Apr 8, 2016, 1:19:06 PM4/8/16
to Jenkins Developers
I followed the instructions in the plugin tutorial to create a new plugin, and I can't seem to use java 8 this way:


$ mvn -U org.jenkins-ci.tools:maven-hpi-plugin:create

$ # open up pom.xml, change 'java.version' to 8

$ mvn package


I get the following error:


```

[INFO] --- animal-sniffer-maven-plugin:1.14:check (check) @ wtf ---

[INFO] Checking unresolved references to org.codehaus.mojo.signature:java18:null

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 6.085s

[INFO] Finished at: Fri Apr 08 11:14:13 MDT 2016

[INFO] Final Memory: 116M/723M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check (check) on project wtf: Execution check of goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.14:check failed: For artifact {org.codehaus.mojo.signature:java18:null:signature}: The version cannot be empty. -> [Help 1]
```


Is this a known issue? Any suggested work-around?

Manfred Moser

unread,
Apr 8, 2016, 1:21:26 PM4/8/16
to Jenkins Developers
You probably have to override the animal sniffer config with the correct signature file version. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/35779857-1392-4c45-9d5e-87d729abe4ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jesse Glick

unread,
Apr 8, 2016, 4:18:19 PM4/8/16
to Jenkins Dev
On Fri, Apr 8, 2016 at 1:21 PM, Manfred Moser <mos...@gmail.com> wrote:
> You probably have to override the animal sniffer config with the correct
> signature file version.

There is none for Java 8 yet AFAICT, so until there is, 8+ plugins are
not supported by this POM I guess, unless you can configure out how to
suppress the Animal Sniffer execution.

Manfred Moser

unread,
Apr 8, 2016, 5:04:38 PM4/8/16
to Jenkins Developers
Yes there is. We got this published and done via mojohaus recently

see

https://github.com/mojohaus/animal-sniffer/issues/1

  <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>animal-sniffer-maven-plugin</artifactId>
    <configuration>
      <signature>
        <groupId>org.codehaus.mojo.signature</groupId>
        <artifactId>java18</artifactId>
        <version>1.0</version>
      </signature>
    </configuration>
  </plugin>




--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Jesse Glick

unread,
Apr 12, 2016, 3:39:08 PM4/12/16
to Jenkins Dev
On Fri, Apr 8, 2016 at 5:04 PM, Manfred Moser <mos...@gmail.com> wrote:
> Yes there is. We got this published and done via mojohaus recently

My apologies; looked for it in my Maven repository index and it did
not show up there for some reason.

Anyway, https://github.com/jenkinsci/plugin-pom/pull/21 should fix it for you.

Manfred Moser

unread,
Apr 12, 2016, 3:44:06 PM4/12/16
to Jenkins Developers
Nice ;-) 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

Dan Alvizu

unread,
Apr 12, 2016, 4:56:06 PM4/12/16
to jenkin...@googlegroups.com
Awesome thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/IUHxT8CR6Es/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CABffhO6wu79KwWgHe%3Db3QrjDs1ZmbWzLLuWTSgxdXh5Y4wOfAQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Ping Identity logo
Dan Alvizu
Principal Engineer
Ping Identity
@ dal...@pingidentity.com
phone +1 720.317.2060
twitter @pingidentity
Connect with us!
pingidentity.com
twitter logo twitter logo youtube logo LinkedIn logo Facebook logo Google+ logo slideshare logo rss feed icon

CIS 2016

Jesse Glick

unread,
Apr 13, 2016, 3:28:59 PM4/13/16
to Jenkins Dev
I released version 2.7 of the POM with this fix.

Dan Alvizu

unread,
Apr 13, 2016, 4:58:35 PM4/13/16
to Jenkins Developers
I can confirm this fixes the issue. Thanks Jesse!

Xunrong Li

unread,
Jun 27, 2016, 12:47:31 PM6/27/16
to Jenkins Developers
Can you share you pom.xml? I still have this issue.

Thanks 
Reply all
Reply to author
Forward
0 new messages