简体   繁体   中英

Find maven dependency “com.sun.javadoc”

My osgi bundle in servicemix need com.sun.javadoc for start.
I find dependency in maven repository but without success : the dependency in this link [here]

I try :

<dependency>
    <groupId>javadoc</groupId>
    <artifactId>javadoc</artifactId>
    <version>1.3</version>
</dependency>

and

  <dependency>
   <groupId>com.sun</groupId>
   <artifactId>tools</artifactId>
   <version>1.7</version>
   <scope>system</scope>
   <systemPath>${java.home}/../lib/tools.jar</systemPath>
  </dependency>

... without success.

So, I look for maven dependency for com.sun.javadoc with version : 1.7.0

thx

I resolved the problem : In my pom.xml I make :

<dependency>
    <groupId>com.sun</groupId>
    <artifactId>tools</artifactId>
    <version>1.7</version>
    <scope>system</scope>
    <systemPath>My_JAVA_HOME/lib/tools.jar</systemPath>
</dependency>

and in <Embed-Dependency> section I take the artifactId for this dependency, in my case it's "tools"

new mvn install and now in servicemix not stack for com.sun.javadoc

Just add tools.jar to your library folder. example if you are using IntelliJ IDEA: file->project structure->Libraries->(+) new project library-> Choose tools from your JDK path -> your problem must be resolved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM