dschanoeh / Kayak

Kayak is a CAN bus analysis tool based on SocketCAN
https://dschanoeh.github.io/Kayak/
GNU Lesser General Public License v3.0
316 stars 78 forks source link

Build fails with error in Kayak-mapview #30

Closed RaBa64 closed 5 years ago

RaBa64 commented 5 years ago

Build fails with error in Kayak-mapview:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project Kayak-mapview: Compilation failure [ERROR] /home/ralf/src/Kayak/Kayak-mapview/target/generated-sources/annotations/com/github/kayak/mapview/Bundle.java:[3,18] cannot find symbol [ERROR] symbol: class Generated [ERROR] location: package javax.annotation

I did a clean "git clone" and used "mvn clean install". Other modules had no build problem:

[INFO] Kayak .............................................. SUCCESS [ 0.227 s] [INFO] Kayak - Platform application branding resources .... SUCCESS [ 2.342 s] [INFO] Kayak-core NetBeans Module ......................... SUCCESS [ 3.980 s] [INFO] Kayak-ui NetBeans Module ........................... SUCCESS [ 3.597 s] [INFO] Kayak-logging NetBeans Module ...................... SUCCESS [ 1.163 s] [INFO] Kayak-kcd NetBeans Module .......................... SUCCESS [ 2.680 s] [INFO] Kayak-mapview NetBeans Module ...................... FAILURE [ 0.459 s] [INFO] Kayak - NetBeans Platform based application ........ SKIPPED

dustindavis commented 5 years ago

I am facing the same issue

bcovenant commented 5 years ago

I am having the same error. Any update?

InitialDuan commented 5 years ago

same issue for me

oemunlock commented 5 years ago

I fixed this issue with this diff in pom.xml

$ git diff pom.xml
diff --git a/pom.xml b/pom.xml
index 57b0fad..392bfb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,11 @@
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
+        <dependency>^M
+             <groupId>javax.annotation</groupId>^M
+            <artifactId>javax.annotation-api</artifactId>^M
+            <version>1.2</version>^M
+        </dependency>^M
     </dependencies>

     <build>
legrassy commented 5 years ago

Thank you OEMUnlock!

ahhmino commented 5 years ago

I tried this solution

I fixed this issue with this diff in pom.xml

$ git diff pom.xml
diff --git a/pom.xml b/pom.xml
index 57b0fad..392bfb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,11 @@
             <version>4.12</version>
             <scope>test</scope>
         </dependency>
+        <dependency>^M
+             <groupId>javax.annotation</groupId>^M
+            <artifactId>javax.annotation-api</artifactId>^M
+            <version>1.2</version>^M
+        </dependency>^M
     </dependencies>

     <build>

but my output was instead:


index 57b0fad..7e621a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -166,4 +166,4 @@
         <developerConnection>scm:git:git://github.com/dschanoeh/Kayak.git</developerConnection>
     </scm>
     <prerequisites/>
-</project>
\ No newline at end of file
+</project>^M```

And the build still fails in the same way. Am I running this solution wrong?
dschanoeh commented 5 years ago

@oemunlock thanks for the fix. Added to the repository now.