Skip to content

Instantly share code, notes, and snippets.

[ERROR] Failed to execute goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.1-SNAPSHOT:compile (default-compile) on project teams-auth-plugin: Execution default-compile of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.1-SNAPSHOT:compile failed: java.lang.NoClassDefFoundError: io/takari/incrementalbuild/aggregator/InputAggregator: io.takari.incrementalbuild.aggregator.InputAggregator -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.1-SNAPSHOT:compile (default-compile) on project teams-auth-plugin: Execution default-compile of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.12.1-SNAPSHOT:compile failed: java.lang.NoClassDefFoundError: io/takari/incrementalbuild/aggregator/InputAggregator
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.mav
!ENTRY org.eclipse.m2e.logback.appender 4 0 2016-05-13 19:53:13.498
!MESSAGE C:\Work\src\takari\jenkins-teams-auth-plugin\pom.xml:[0,0] Exception executing annotation processor org.kohsuke.stapler.jsr269.ConstructorProcessor: originatingElements must be provided during incremental annotation processing.
fix the annotation processor or use procEX/onlyEX as a workaround
!STACK 0
java.lang.IllegalArgumentException: originatingElements must be provided during incremental annotation processing.
fix the annotation processor or use procEX/onlyEX as a workaround
at io.takari.maven.plugins.compile.jdt.FilerImpl.getInputs(FilerImpl.java:145)
at io.takari.maven.plugins.compile.jdt.FilerImpl.createResource(FilerImpl.java:184)
at org.kohsuke.stapler.jsr269.AbstractProcessorImpl.createResource(AbstractProcessorImpl.java:81)
at org.kohsuke.stapler.jsr269.AbstractProcessorImpl.writePropertyFile(AbstractProcessorImpl.java:67)
@atanasenko
atanasenko / pom.xml
Last active May 13, 2016 14:52
<sourcepath> parameter is not compatible with <privatePackageReference>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.takari</groupId>
<artifactId>takari</artifactId>
<version>22</version>
</parent>
<groupId>test</groupId>
@atanasenko
atanasenko / AddCommit.java
Created February 18, 2016 18:26
Creating commit on bare git repo
private void createCommit(Repository repo, File tmpFile, ApplicationUser user,
String commit, String path, String content, String message, String branchName) throws IOException
{
TemporaryIndexCommandBuilderFactory builderFactory = new TemporaryIndexCommandBuilderFactory(
repo, user.getDisplayName(), user.getEmailAddress(), tmpFile);
String objSha = Preconditions.checkNotNull(builderFactory.builder()
.command("hash-object")
.argument("-w")
.argument("--stdin")
@atanasenko
atanasenko / .zshrc
Created February 9, 2016 14:43
zshrc git-prompt
source ~/.zsh-git-prompt/zshrc.sh
export PROMPT='%{$fg[blue]%}{ %c } %{$fg[green]%}$(git_super_status)%{$reset_color%} %{$fg[red]%}%(!.#.»)%{$reset_color%} '
@atanasenko
atanasenko / PomExecutor.java
Last active September 21, 2015 06:06
PomExecutor
@SuppressWarnings("restriction")
public class PomExecutor {
static {
DebugPlugin.getDefault().getLaunchManager().addLaunchListener(new ILaunchesListener2() {
public void launchesRemoved(ILaunch[] launches) {
for(ILaunch l: launches) {
ILaunchConfiguration conf = l.getLaunchConfiguration();
@atanasenko
atanasenko / win10.bat
Last active December 20, 2017 21:53
win10 commands
shell:::{ED834ED6-4B5A-4bfe-8F11-A626DCB6A921} -Microsoft.Personalization\pageWallpaper
@atanasenko
atanasenko / mvn.sh
Last active April 18, 2016 11:05
maven colorized
# thanks to: http://blog.blindgaenger.net/colorize_maven_output.html
# and: http://johannes.jakeapp.com/blog/category/fun-with-linux/200901/maven-colorized
# Colorize Maven Output
export M2_HOME_X="C:\\work\\app\\apache-maven-2.2.1"
export M3_HOME_X="C:\work\app\apache-maven-3.3.5"
alias _mvn='M2_HOME=$M2_HOME_X $M2_HOME_X/bin/mvn'
alias _mvn3='M3_HOME=$M3_HOME_X $M3_HOME_X/bin/mvn'
@atanasenko
atanasenko / components.xml
Last active August 29, 2015 14:19
custom packaging type components definition
<?xml version="1.0" encoding="UTF-8"?>
<component-set>
<components>
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>composite-resources</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler
</implementation>
<configuration>
@atanasenko
atanasenko / pom.xml
Last active August 29, 2015 14:19
pom.xml with custom packaging
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.example</groupId>
<artifactId>parent</artifactId>
<version>1</version>
</parent>