cn73 Posted November 2, 2010 Share Posted November 2, 2010 Since this morning I have a very serious problem, from pom file http://repo2.maven.org/maven2/jasperreports/jasperreports/3.0.0/jasperreports-3.0.0.pom I read that you put your repository: <repositories>−<repository><id>jaspersoft</id><url>http://www.jasperforge.org/maven2</url></repository></repositories>when I compile my project, it creates a file maven-metadata-jaspersoft.xml directory under the commons-collections ... it should includes this file: <? Xml version = "1.0" encoding = "UTF-8"?><metadata> <groupId> commons-collections </ groupId> <artifactId> commons-collections </ artifactId></ Metadata>instead contains a standard error page (see attachment)... I believe in your repository, there are no more 'common-collections and other dependencies?please, it blocks the build! Link to comment Share on other sites More sharing options...
teodord Posted November 2, 2010 Share Posted November 2, 2010 Hi, I'm a bit confused about this, because I don't think we ever had Apache Commons dependencies in our JasperForge.org repository.These dependencies always existed in public Maven repositories, so there was no reason for us to publish in our own.In our forge-based repository, we've only put dependencies that were not available on public Maven repos. Are you sure you point to public Maven repos in your settings.xml?You can see Commons Collections here:http://repo1.maven.org/maven2/commons-collections/commons-collections/ I hope this helps.Teodor Link to comment Share on other sites More sharing options...
cn73 Posted November 2, 2010 Author Share Posted November 2, 2010 Yes i'm sure... for every repository, maven create a file named:maven-metadata-idrepository.xml,eg: maven-metadata-jaspersoft.xml, maven-metadata-maven2.dev.java.net....in in .m2/repository/commons-collections/commons-collections/ the maven-metadata-jaspersoft.xm that is created is in my attachment!This cause build fails... So my workaround is put in settings.xml the mirror: <mirrors> <mirror> <id>my-repository</id> <url>http://myrep_url/</url> <mirrorOf>jaspersoft</mirrorOf> </mirror></mirrors> Link to comment Share on other sites More sharing options...
jchesko Posted November 2, 2010 Share Posted November 2, 2010 We're having the same exact problem starting yesterday. I'm using the 3.1.0 artifact of jasperreports Link to comment Share on other sites More sharing options...
cn73 Posted November 2, 2010 Author Share Posted November 2, 2010 Thxs... i cannot use another version of jasperreports, becauseI should test again the entire application... My workaround works fine... But I'd like to understand what happened... Link to comment Share on other sites More sharing options...
cn73 Posted November 2, 2010 Author Share Posted November 2, 2010 jcheskoWrote: We're having the same exact problem starting yesterday. I'm using the 3.1.0 artifact of jasperreports Disable jaspersoft repository from your settings.xml locatedi in .m2 directory... Link to comment Share on other sites More sharing options...
ctrung Posted November 2, 2010 Share Posted November 2, 2010 Hello, i have the same problem here since yesterday too. Thx for the tips on the settings.xml. Since i don't remember whether these dependencies were on the JasperForge repo or not my guess is that since the site has gone under some maintenance the 30th of October could it be that what was a 404 HTTP error code before is now a 202 HTTP code with an error page rendering ? In this case, it can be that maven generates a basic maven-metadata-jaspersoft.xml instead...I myself opened a thread this morning at maven mailing. For those interested, see http://www.mail-archive.com/users@maven.apache.org/msg113796.htmlPost Edited by ctrung at 11/02/2010 17:06 Link to comment Share on other sites More sharing options...
tdebenning Posted November 2, 2010 Share Posted November 2, 2010 We are also having the same issue. I would like to know the step by step instructions for the workaround. It would also be great to know when a solution to this problem will be taken care of on the forge. Thank you very much. Link to comment Share on other sites More sharing options...
cn73 Posted November 3, 2010 Author Share Posted November 3, 2010 you can edit your ${user.home}/.m2/settings.xml file and1)Disable jaspersoft repository creating a profile like this: <profiles> <profile> <id>default</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <repository> <id>jaspersoft</id> <name>Jasper Soft</name> <url>http://jasperforge.org/maven2/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile></profiles> 2)use a mirror instead...see http://maven.apache.org/guides/mini/guide-mirror-settings.htmlPost Edited by cn73 at 03/11/2010 08:36 Link to comment Share on other sites More sharing options...
kalgon Posted November 3, 2010 Share Posted November 3, 2010 didn't jasperforge change the way they handle 404 error?before this weekend, I think they answered with a 404 error to a non existing resource (http://jasperforge.org/maven2/commons-collections for example), and now they're redirecting to http://jasperforge.org/404.php preventing maven to see the resource is not available Link to comment Share on other sites More sharing options...
jgh Posted November 3, 2010 Share Posted November 3, 2010 I used this, but received this error: add-jdbc-driver: [exec] Error reading settings.xml: Expected root element 'settings' but found 'profiles' (position: START_TAG seen <profiles>... @1:10) [exec] Line: 1 [exec] Column: 10 BUILD FAILED/home/jhelfman/jasperserver/work/jasperserver-3.5.0-src/jasperserver/buildomatic/dev.xml:35: exec returned: 1 Link to comment Share on other sites More sharing options...
bbrouwer Posted November 4, 2010 Share Posted November 4, 2010 The problem isn't that Jasperforge mistakenly contains Apache Commons artifacts, as Teodor suspected. The problem is this: Maven asks Jasperforge for http://jasperforge.org/maven2/commons-lang/commons-lang/2.5/commons-lang-2.5.pom Jasperforge responds with "302 Found", redirecting you to /404.php Maven assumes that the file must have been moved to http://jasperforge.org/404.php so it downloads /404.php Jasperforge replies with 404.php, but it gives it a "200 OK" status code. Maven interprets the 200 status code to mean it worked. So it tries to read it as a pom file but fails because it is actually HTML.I use Nexus to proxy all of my Maven repositories, and I order it so that Maven central is checked before Jasperforge. This eliminates the commons-lang problem I describe, but it doesn't actually fix my problem. That is because if any of my Maven builds requests an artifact that doesn't exist, here is what happens: My maven build asks my Nexus server for .../bogus/bogus/1.0/bogus-1.0.pom Nexus doesn't have that artifact, so it asks Maven central for http://repo1.maven.org/maven2/bogus/bogus/1.0/bogus-1.0.pom Maven central responds with the "404 Not Found" status code. Nexus understands that Maven central doesn't have the requested artifact, so next it checks Jasperforge for http://jasperforge.org/maven2/bogus/bogus/1.0/bogus-1.0.pom Jasperforge responds with the "302 Found", redirecting to /404.php, which responds with "200 OK" Nexus thinks it found the bogus pom file because Jasperforge responded with "200 OK", so it responds back to my maven build with the content of 404.php Maven tries to load that file, but can't because it is actually HTML, not a pom fileEven if I fix my build so it doesn't request bogus artifacts, I can still run into problems when some artifacts use version ranges. In that case, Maven/Nexus will always check both Maven central and Jasperforge for the list of versions available. Jasperforge will respond with HTML instead of the metadata file that contains the list of available version numbers. Again, Nexus/Maven won't be able to parse that file because it is HTML from 404.php. We need Jasperforge to respond with a real 404 status code instead of a 404.php page with a 200 status code when a resource is not found. Link to comment Share on other sites More sharing options...
bbrouwer Posted November 8, 2010 Share Posted November 8, 2010 Is there any chance of getting this issue resolved? The Jasperforge maven repository is basically useless until this gets resolved. Link to comment Share on other sites More sharing options...
soham Posted November 11, 2010 Share Posted November 11, 2010 We had to upgrade from 3.5.0 to 3.5.3 to resolve our build failures. Link to comment Share on other sites More sharing options...
metyl Posted October 24, 2011 Share Posted October 24, 2011 After a year the problem still exists with 3.1.0 artifact, please fix jaspersoft repository or remove this repo from pom file. Post Edited by metyl at 10/24/2011 10:09 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now