Find maven dependency "com.sun.javadoc" - java

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

Related

package io.rsocket.core does not exist during maven build

I'm facing some strange problem.
During maven build I'm getting package io.rsocket.core does not exist.
My pom.xml contains following dependencies
<dependency>
<groupId>io.rsocket</groupId>
<artifactId>rsocket-core</artifactId>
<version>1.0.0-RC6</version>
</dependency>
<dependency>
<groupId>io.rsocket</groupId>
<artifactId>rsocket-transport-netty</artifactId>
<version>1.0.0-RC6</version>
</dependency>
Analyzing reactor-core jar file showes that there is no core package in that jar. Did I missed some dependencies?
Thanks
Package is found in the artifact (spring-cloud-function-rsocket) Add this to your pom:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-rsocket</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>

Not able to find artifact jackson-modules-java8 jar

I am using pom.xml like
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-parameter-names</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
but there is no .jar available in public repo. It have only .pom file in respective release. Public maven repository link
How to get .jar for it.
You can manually download .zip for respective release from jackson-modules-java8/releases
and build it locally using command.
mvn clean install
It will give you .jar for each module under respective target directory.
You need to also include that dependency in your pom.xml:
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-modules-java8</artifactId>
<version><!-- same version as your other jackson dependencies --></version>
</dependency>

Dependency isn't recognized in Intellij

I have a problem with my MAVEN.I have added this dependency com.fasterxml.jackson.datatype.jsr310.JSR310 in the pom.xml and I wanted to import it in one class.But this dependency isn't imported.It seems that the dependency in the pom isn't recognized.How can I resolve this issue, please?
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.5.0</version>
</dependency>
<!-- CSV -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-csv</artifactId>
<version>2.5.3</version>
</dependency>
Did you add maven support to project?
enable auto-import in settings|
try mvn clean-install in console
in tab "maven projects" try to "reimport all maven projects"
Have you tried to "Re-import All Maven Projects"? It's the blue circular button on the "Maven Projects" tab.

How to update rich-faces library version?

In my maven-project there are three dependencies corresponding to RichFaces:
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
</dependency>
And in the root of my eclipse project MavenDependencies branch contains richfaces-api/ui/core -3.3.3. How can I change the pom to upload latest available version? The thing is there is no version defined anywhere in the pom.
There has to be a version defined otherwise it would not work. Eclipse will tell you what version you're using and where to find the definition if you hover over the dependency.
I Think there's a bom dependency somehwere in your pom such as this
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>BOM-VERSION</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Update the BOM-VERSION part to something new such as "4.3.7.Final".

Failed to install Magnolia Data Module (version 2.3.0)

I've imported magnolia-module-standard-templating-kit maven dependency in Pom file in webapp. It's version is 2.3.0 and Magnolia version is 5.3. After build & run Tomcat server and start install modules, I encountered a failure as below:
Magnolia Data Module (version 2.3.0)
Could not install or update data module. Task 'Data AppLauncher group ordering' failed. (PathNotFoundException: /modules/ui-admincentral/config/appLauncherLayout/groups/data)
pom.xml:
<!-- Overlay Magnolia Empty Webapp. Alternatively, use the bundled-webapp or the enterprise-webapp. Dependencies versions are already imported by parent, so no need to replicate here. -->
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-empty-webapp</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-empty-webapp</artifactId>
<type>war</type>
</dependency>
<dependency>
<groupId>com.mycompany.projects</groupId>
<artifactId>myTemplateModule</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>info.magnolia.contacts</groupId>
<artifactId>magnolia-contacts</artifactId>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-module-standard-templating-kit</artifactId>
</dependency>
Anyone can help me resolve this problem?
I managed to replicate the exception you get and i think the problem is the order you add the dependencies and do the "Start install" process.
if i first do a "Start install" with only the magnolia-empty-webapp dependencies and then i stop the server, add the magnolia-module-standard-templating-kit to the pom.xml and do another "Start install" i got the exception:
But if instead i do a "Start install" specifying all the dependencies (stk and empty-webapp) from the beginning i don't get an exception at all
I recommend you to add these dependencies as well for demo project and the pop theme
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-theme-pop</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>info.magnolia</groupId>
<artifactId>magnolia-demo-project</artifactId>
<version>${project.version}</version>
</dependency>

Categories

Resources