as im trying mvn install on my project i get this :
[WARNING] The POM for com.bramosystems.oss.player:bst-player-api:jar:2.0.3 is missing, no dependency information available.
[ERROR] Failed to execute goal on project myproject-web: Could not resolve dependencies for project com.myproject:myproject-web:war:0.0.1-SNAPSHOT: Failure to find com.bramosystems.oss.player:bst-player-api:jar:2.0.3 in http://repo.geosdi.org was cached in the local repository, resolution will not be reattempted until the update interval of geosdi.org has elapsed or updates are forced ->
my main pom :
<dependency>
<groupId>com.bramosystems.oss.player</groupId>
<artifactId>bst-player-api</artifactId>
<version>2.0.3</version>
</dependency>
myproject-web pom :
<dependency>
<groupId>com.bramosystems.oss.player</groupId>
<artifactId>bst-player-api</artifactId>
<scope>provided</scope>
</dependency>
also in eclipse i have error shown on this dependency which says :
Missing artifact com.bramosystems.oss.player:bst-player-api:jar:2.0.3
i have no clue what to do..
It is up again after my post. I had the same problem.
https://groups.google.com/forum/#!topic/bst-player/onB1PNLc6kk
Related
i try to get maven path in my modules by MavenSettings.getDefaultExternalMavenRuntime(), so i include "org-netbeans-modules-maven" in pom.xml. But i got :
Failed to execute goal org.apache.netbeans.utilities:nbm-maven-plugin:4.7:manifest (default-manifest) on project netbeans-riscv: Module has friend dependency on org.netbeans.modules.maven but is not listed as a friend. -> [Help 1]
pom.xml:
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-maven</artifactId>
<version>RELEASE125</version>
<type>jar</type>
</dependency>
thanks
I have 6 or so maven dependencies successfully built in my project. When I try to add a JDBC dependency however, I get errors for all existing artifacts saying:
Missing artifact mysql:mysql-connector-java:jar:5.1.6
Missing artifact org.springframework:spring-aop:jar:3.2.3.RELEASE
Missing artifact org.springframework:spring-beans:jar:3.2.3.RELEASE
Missing artifact org.springframework:spring-context:jar:3.2.3.RELEASE
Missing artifact org.springframework:spring-core:jar:3.2.3.RELEASE
Missing artifact org.springframework:spring-expression:jar:3.2.3.RELEASE
Missing artifact org.springframework:spring-jdbc:jar:4.3.10.RELEASE
Here is the dedpendency I am trying to add: (It looks like valid XML)
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.3.10.RELEASE</version>
</dependency>
Valid Pom.xml Before:
Error in Pom.xml After adding JDBC dependency:
I've checked and according to the Maven site, 4.3.10.RELEASE is a valid release.
Does anyone know why adding this one dependency causes the entire Pom.xml to error out?
It turns out I had a typo in my {User_Home}/.m2/settings.xml file. This was causing new maven build to all fail when updated as the settings file was unreadable.
I am following the Hibernate documentation and trying to create a Maven project in my eclipse. I have created a new maven project by selecting default options shown in eclipse except for groupId, artifactId and version details which I have selected (org.hibernate.tutorials, hibernate-tutorial, 1.0.0-SNAPSHOT respectively) based on the information present in pom.xml shown in Hibernate documentation. After that I have replaced the pom.xml file in my project with the one shown in documentation. Then I have added version details for each of the dependencies which are missing in the documentation. Here is my final pom.xml file:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.hibernate.tutorials</groupId>
<artifactId>hibernate-tutorial</artifactId>
<version>1.0.0-SNAPSHOT</version>
<name>First Hibernate Tutorial</name>
<build>
<!-- we dont want the version to be part of the generated war file name -->
<finalName>${artifactId}</finalName>
</build>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.6.Final</version>
</dependency>
<!-- Because this is a web app, we also have a dependency on the servlet api. -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<!-- Hibernate uses slf4j for logging, for our purposes here use the simple backend -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
</dependencies>
Now in eclipse I see below errors:
1) Maven Configuration Problem:
Failure to transfer
org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from
http://repo.maven.apache.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced. Original error:
Could not transfer artifact
org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to
central (http://repo.maven.apache.org/maven2): The operation was
cancelled.
2) Maven Problems:
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 (): ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1: UnresolvableModelException: Failure to transfer org.codehaus.plexus:plexus-containers:pom:1.0.3 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-containers:pom:1.0.3 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.
3) Maven Problem:
CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:1.4.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-utils:jar:1.4.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.
4) Maven Problem:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)
5) Maven Problem:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
6) Maven Problem:
Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.
Update: When I build the project in eclipse I am getting below error:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'hibernate-tutorial'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Please help me how can I fix these issues. I am blocked at first step of learning Hibernate.
Thanks in advance.
Exit eclipse
Remove (or rename to be safe) your .m2/repository directory, it will be located in your home directory on your machine.
Start eclipse, right click your project, select Update Maven Project, check Force Update of Snapshots/Releases, press OK
It did not allow me to rename .m2 dir. Below are the detailed steps which resolved my error:
* I removed project from Eclipse
* Exited Eclipse
* Deleted (not shift deleted) .m2 folder from C/Users/Kshitija/ location
* Opened Eclipse, created maven project again
* Right clicked on the project -> Maven -> update project -> selected an option of "check Force Update of Snapshots/Releases", press OK
as soon as project is built, the error disappeared
In my project we are using GWT 1.7 and now we want to upgrade it to 2.4. We also using maven 1.6 to build project. I've changed all pom.xml files so they look like this:
<properties>
<gwt.version>2.4.0</gwt.version>
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
Now, when i'm trying to build project, it crushes with error:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] artifact not found - Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.4.0 -Dclassifier=linux-libs -Dpackaging=zip -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.4.0 -Dclassifier=linux-libs -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
com.google.gwt:gwt-dev:zip:2.4.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
smartgwt-maven (http://www.smartclient.com/maven2),
repo.pentaho.org (http://repository.pentaho.org/artifactory/pentaho),
java-net-maven2 (http://download.java.net/maven/2),
thirdparty.pentaho.org (http://repository.pentaho.org/artifactory/thirdparty),
Octo Technology Nexus (http://forge.octo.com/nexus/content/groups/public),
codehaus-maven-repo (http://repository.codehaus.org/org/codehaus/mojo/)
I've downloaded files gwt-2.4.0.zip and gwt-servlet-2.4.0.jar, and tried to mvn install both of them, and now i have in my .m2/repository/com/google/gwt/ 4 directories: gwt, gwt-dev, gwt-servlet and gwt-user, all of them have 2.4.0 category inside (some also have old 1.7.0) directory, but the build error still appears.
UPDATE
Now i've change version to <gwt.version>2.5.0-rc1</gwt.version> , started maven build, i saw when mvn was downloading the required package, but it appears again:
com.google.gwt:gwt-dev:jar:2.5.0-rc1
not found. I've downloaded the gwt-2.5.0.zip from google website, and there are a lot of .jar files inside, which one should i install?
I am new to both GWT and PlayN. Followed two installation guides from the PlayN wiki to get PlayN working in Eclipse: BeginnerInstallationGuide and GettingStarted. I can run the showcase-java project but the showcase-html version produces a problem during compiling, saying that it cannot find a validation jar. This is the output of the GWT compiler:
Compiling module playn.showcase.Showcase
Resolving com.google.gwt.validation.client.constraints.AbstractDecimalMaxValidator
Found type 'com.google.gwt.validation.client.constraints.AbstractDecimalMaxValidator'
Found type 'javax.validation.constraints.DecimalMax'
[WARN] Detected warnings related to 'javax.validation.Constraint'. Is validation-< version>.jar on the classpath?
Specify -logLevel DEBUG to see all errors.
[WARN] Ignoring unresolvable annotation type javax.validation.Constraint
Compiling 1 permutation
Compiling permutation 0...
Compile of permutations succeeded
Linking into C:\Users\Jo\playn-samples\showcase\html\target\playn-showcase-html-1.0-SNAPSHOT\showcase
Link succeeded
Compilation succeeded -- 62.900s
Would appreciate any help!
I don't have the answer,
but maybe try to clean and re-built the project "playn-showcase".
Also try to run "mvn package" (in eclipse: Run as... / Maven build... with goal 'package') for the project "playn-showcase" (explicitely not "playn-shocase-html").
This procedute probably creates the missing jar 'playn-showcase-html-1.0-SNAPSHOT.jar'.
Try adding the following dependencies to the showcase-html pom.xml if they don't already exist...
<dependencies>
...
<!-- not really needed, but will suppress errors during GWT compilation -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
...
</dependencies>