I have trouble running bimserver on eclipse.
I started by cloning the repo, then import it, from there I can't overcome this error : Execution add-source of goal org.codehaus.mojo:build-helper-maven-plugin:1.10:add-source failed: Plugin org.codehaus.mojo:build-helper-maven-plugin:1.10.
I am relatively new to maven, so hope to find a solution for this.
Add bimserver as dependency on your pom.xml
<dependencies>
<!-- https://mvnrepository.com/artifact/org.opensourcebim/bimserver -->
<dependency>
<groupId>org.opensourcebim</groupId>
<artifactId>bimserver</artifactId>
<version>1.5.21</version>
</dependency>
</dependencies>
Related
I unable to import Java jwt 3.10.0. in my spring project. Actually I was trying before version 3.15.0 but it was giving me an error in pom.xml
"Dependency 'com.auth0:java-jwt:3.15.0' not found"
anyway I then move with version 3.10.0 which is accepted in pom.xml, but it doesn't importing in project, although I've many updated Maven, restart Intellj.
Grateful if anyone can advise.
Dependency in pom.xml
<!-- https://mvnrepository.com/artifact/com.auth0/java-jwt -->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.10.0</version>
</dependency>
I'm trying to use maven to get the dependency below and intellij is saying that it's not found and I can't figure out why, there doesn't seem to be anything on google. The dependency is listed in the maven website here so I know it exists. Any help would be appreciated!
<!-- https://mvnrepository.com/artifact/com.github.docker-java/docker-java -->
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
<version>3.2.7</version>
</dependency>
I'm trying to compile a project (webapp) with Maven and that project "uses" .jar's that are in the Wildfly installation directory (.../Wildfly.../modules/...).
Is there an easy way to import all of these modules through the POM?
I've tried using:
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-client-all</artifactId>
<version>10.1.0.Final</version>
</dependency>
And it didn't work.
After that I tried using:
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>10.1.0.Final</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-jms-client-bom</artifactId>
<version>10.1.0.Final</version>
<type>pom</type>
</dependency>
To no effect either, giving me the following error:
Could not resolve dependencies for project
someproject:someproject:war:0.0.1-SNAPSHOT: The following artifacts
could not be resolved: org.apache.activemq:artemis-
commons:jar:1.1.0.wildfly-017, org.apache.activemq:artemis-core-
client:jar:1.1.0.wildfly-017, org.apache.activemq:artemis-hqclient-
protocol:jar:1.1.0.wildfly-017, org.apache.activemq:artemis-jms-
client:jar:1.1.0.wildfly-017, org.slf4j:jcl-over-slf4j:jar:1.7.7.jbossorg-1:
Could not find artifact org.apache.activemq:artemis-
commons:jar:1.1.0.wildfly-017 in central
(https://repo.maven.apache.org/maven2)
Any tips would be appreciated.
The wildlfy feature pack [1][2], contains pretty much everything that Wildlfy uses for distribution. However, this has way much more dependencies that you actually need, in most cases. So, just be aware of it.
You can also check out Wildlfy BOMs [3][4], which might be useful for you, as well.
Happy Coding!
[1] https://mvnrepository.com/artifact/org.wildfly/wildfly-feature-pack/11.0.0.Final
[2] https://github.com/wildfly/wildfly/tree/master/feature-pack/src/main/resources/modules/system/layers/base
[3] https://mvnrepository.com/artifact/org.wildfly.bom/wildfly-javaee7
[4] https://github.com/wildfly/boms
When I run import org.apache.commons.net.ftp.{FTP, FTPClient} I receive the error: object apache is not a member of package org. I am using Maven, and I tried adding
<dependency>
<groupId>org.apache.commons.net</groupId>
<artifactId>commons-net</artifactId>
</dependency>
and/or
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.3</version>
</dependency>
as well as various other similar packages to my pom.xml file, but nothing is working. This seems to be a very simple error yet I cannot figure out what I'm missing. This is my first time using Maven, am I misunderstanding how dependencies work? I am using Scala 2.11.6 if that matters.
Update: I was finally able to run the file I wanted through this command:
mvn exec:java -Dexec.mainClass="com.havas.plugins.test"
I'am using IntelliJ with Maven and Play framework.
Made a small app. Using maven to include a dependency. Compiles fine - but dependency gives an error when running: "Error: Package not found"
So, I suspect that the dependency jar must be copied to another folder in order to work? But how and where? Did expect maven to do this automatically? (I have tried to run a maven install)
POM.XML
<dependencies>
<dependency>
<groupId>org.ektorp</groupId>
<artifactId>org.ektorp</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
</dependencies>
Error message in IntelliJ :