javaee-samples / javaee7-samples

Java EE 7 Samples
https://travis-ci.org/javaee-samples/javaee7-samples
Other
2.51k stars 1.66k forks source link

SNAPSHOT build dependency missing. #283

Closed whitingjr closed 9 years ago

whitingjr commented 9 years ago

Hi, Tried for the first time building the ejb timer project by following the build instructions.

But getting this build error

$ mvn -f ejb/timer/pom.xml package -DskipTests [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.javaee7.ejb:timer:1.0-SNAPSHOT (/home/whitingjr/java/javaee7-samples/ejb/timer/pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.codehaus.groovy:groovy-eclipse-compiler:2.8.0-01 or one of its dependencies could not be resolved: Could not find artifact org.codehaus.groovy:groovy-eclipse-batch:jar:2.3.4-01-SNAPSHOT -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException $

Is there a repo I need to add to my settings.xml to resolve the snapshot version or something else ?

radcortez commented 9 years ago

Hi @whitingjr,

I've just tried the build with an empty local repo, and it worked. Maybe a remote repo hiccup? Can you please try again?

akoblentz commented 9 years ago

I'm having the same issue now... I've tried a few times.

radcortez commented 9 years ago

@whitingjr,

@akoblentz was having the same problem and after speaking with him, it was a problem in is local settings.xml that was pointing to a repo that didn't have the dependencies. Maybe you have a similar problem?

kubamarchwicki commented 9 years ago

On default (empty) settings.xml

{ /tmp }  » git clone git@github.com:javaee-samples/javaee7-samples.git
{ /tmp }  » cd javaee7-samples    
{ javaee7-samples } master » rm -rf ~/.m2/repository
{ javaee7-samples } master » mvn clean install -DskipTests  
   (...)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:44 min

{ javaee7-samples } master » mvn package -f jaxrs/singleton/pom.xml -Pwildfly-remote-arquillian
   (...)
Results :

Tests run: 8, Failures: 0, Errors: 0, Skipped: 0

   (...)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.390 s

Can we close the issue?

radcortez commented 9 years ago

I think so. Closing.