yogendra / ivyidea

Automatically exported from code.google.com/p/ivyidea
0 stars 0 forks source link

Unrecognized artifact type: orbit #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Jetty is using some sketchy artifact type called 'orbit' in it's dependencies. 
These orbit files can't be resolved by ivyIDEA unfortunately.

What steps will reproduce the problem?
Try to resolve an orbit dependency:
<dependency org="org.eclipse.jetty.orbit" name="org.apache.jasper.glassfish" 
rev="2.2.0.v201112011158" />

What is the expected output? What do you see instead?
Orbit files should be treated just as jar files but instead i get this message:
org.eclipse.jetty.orbit#org.apache.jasper.glassfish;2.2.2.v201112011158:    Unrecog
nized artifact type: orbit, will not add this as a dependency in IntelliJ.

What version of the product are you using? On what operating system?
Version 1.0.11

Original issue reported on code.google.com by erik.bys...@gmail.com on 14 Aug 2015 at 7:26

GoogleCodeExporter commented 9 years ago
Here's an untested patch. I haven't managed to test it because i have zero 
knowledge in IntelliJ plugin development.

Index: src/main/java/org/clarent/ivyidea/config/model/ArtifactTypeSettings.java
===================================================================
--- 
src/main/java/org/clarent/ivyidea/config/model/ArtifactTypeSettings.java    (revisi
on 290)
+++ 
src/main/java/org/clarent/ivyidea/config/model/ArtifactTypeSettings.java    (workin
g copy)
@@ -36,7 +36,7 @@
     public enum DependencyCategory {
         Sources("source", "src", "sources", "srcs"),
         Javadoc("javadoc", "doc", "docs", "apidoc", "apidocs", "documentation", "documents"),
-        Classes("jar", "mar", "sar", "war", "ear", "ejb", "bundle", 
"test-jar");
+        Classes("jar", "mar", "sar", "war", "ear", "ejb", "bundle", 
"test-jar", "orbit");

         private final String[] defaultTypes;

Original comment by erik.bys...@gmail.com on 14 Aug 2015 at 8:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You can configure artifact types in the IvyIDEA settings in IntelliJ:
Settings > Other Settings > IvyIDEA

Original comment by guy.mah...@gmail.com on 18 Aug 2015 at 5:35

GoogleCodeExporter commented 9 years ago
Oh, now i feel like an idiot :)
I completely missed those settings, thanks! 

Original comment by erik.bys...@gmail.com on 18 Aug 2015 at 6:20