whizzter / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Maven build broken #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. download clean poly2tri.java
2. run mvn install

What is the expected output? What do you see instead?
Maven should build something. Instead I get:

[ERROR] Failed to execute goal on project poly2tri-examples: Could not resolve 
dependencies for project org.poly2tri:poly2tri-examples:jar:0
.1.1-SNAPSHOT: The following artifacts could not be resolved: 
org.lwjgl:lwjgl:jar:ardor3d-2.1.0, org.lwjgl:lwjgl_util:jar:ardor3d-2.1.0: 
Failure to find org.lwjgl:lwjgl:jar:ardor3d-2.1.0 in 
file://C:\tmp\poly2tri.java\poly2tri-examples/repository was cached in the 
local repository, resolution will not be reattempted until the update interval 
of Project-local has elapsed or updates are forced -> [Help 1]
[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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :poly2tri-examples

What version of the product are you using? On what operating system?
I use current version of maven (3.x) and java 7

Original issue reported on code.google.com by ken...@gmail.com on 9 Oct 2012 at 7:19

GoogleCodeExporter commented 8 years ago
Try putting attached file in the repository: 
poly2tri.java\poly2tri-examples/repository

Original comment by thahlen@gmail.com on 9 Oct 2012 at 8:11

Attachments:

GoogleCodeExporter commented 8 years ago
Wonder if those file have gone missing from some external repository?

Original comment by thahlen@gmail.com on 9 Oct 2012 at 8:16

Attachments:

GoogleCodeExporter commented 8 years ago
Putting files under poly2tri.java\poly2tri-examples/repository don't change 
anything. Probably there are required some pom files, or some sub directory. 

Original comment by ken...@gmail.com on 10 Oct 2012 at 5:36

GoogleCodeExporter commented 8 years ago
It help when I clean up maven repository under ".m2\repository\org\lwjgl\"

Original comment by ken...@gmail.com on 10 Oct 2012 at 5:40

GoogleCodeExporter commented 8 years ago
So you got it working?

lwjgl wasn't available thru maven 2 years ago so had to make the jar and pom 
files to be able to build poly2tri with maven.

Don't remeber if I did it or if Ardor3D repo supplied them. Doesn't seem to be 
available any more tho.

Should really update the project to use latests Ardor3D and lwjgl libs now that 
lwjgl project is maven enabled.

Get some wierd error when I try to push updates to the poly2tri java repo :(. 
Have to try to figure that one out first.

Original comment by thahlen@gmail.com on 10 Oct 2012 at 8:02

GoogleCodeExporter commented 8 years ago
Yes it working now.
I had to copy file:
lwjgl-ardor3d-2.1.0.jar to 
   poly2tri.java\poly2tri-examples\repository\org\lwjgl\lwjgl\ardor3d-2.1.0
lwjgl_util-ardor3d-2.1.0.jar to 
   poly2tri.java\poly2tri-examples\repository\org\lwjgl\lwjgl_util\ardor3d-2.1.0

and I had to clean up maven repository under "home\.m2\repository\org\lwjgl\"

Original comment by ken...@gmail.com on 10 Oct 2012 at 8:12

GoogleCodeExporter commented 8 years ago
When I get hg push to work I will update the version of ardor3d and lwjgl to 
avoid this issue

Original comment by thahlen@gmail.com on 10 Oct 2012 at 9:08