I tried to get a code coverage report with
mvn site:site
on geoserver trunk.
The error is:
The plugin 'org.apache.maven.plugins:jxr-maven-plugin' does not exist or no valid version could be found
maven version is 2..2.1
Any ideas ?
Christian
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
On Thu, Jun 30, 2011 at 12:25 PM, <christian.mueller@anonymised.com> wrote:
I tried to get a code coverage report with
mvn site:site
on geoserver trunk.
The error is:
The plugin 'org.apache.maven.plugins:jxr-maven-plugin' does not exist
or no valid version could be found
maven version is 2..2.1
Any ideas ?
Not sure, I never use site generation.
If you just need the code coverage run:
mvn cobertura:cobertura
and then look in target/site for each module
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
Zitat von Andrea Aime <andrea.aime@anonymised.com>:
On Thu, Jun 30, 2011 at 12:25 PM, <christian.mueller@anonymised.com> wrote:
I tried to get a code coverage report with
mvn site:site
on geoserver trunk.
The error is:
The plugin 'org.apache.maven.plugins:jxr-maven-plugin' does not exist
or no valid version could be found
maven version is 2..2.1
Any ideas ?
Not sure, I never use site generation.
If you just need the code coverage run:
mvn cobertura:cobertura
and then look in target/site for each module
Cheers
Andrea
mvn cobertura:cobertura produces
target/cobertura/cobertura.ser
but obviously not html files (no target/site directory)
I think mvn site:site should produce the html report.
Anyways, is there another possibility to visualize the results in cobertura.ser ?
Cheers
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
On Thu, Jun 30, 2011 at 1:42 PM, <christian.mueller@anonymised.com> wrote:
mvn cobertura:cobertura produces
target/cobertura/cobertura.ser
but obviously not html files (no target/site directory)
Odd? I just run cobertura:cobertura in src/main and target/site
contains a cobertura folder with html files, contents available here:
demo.geo-solutions.it/share/cobertura.tar.bz2
No need to run site.
Anyways, is there another possibility to visualize the results in
cobertura.ser ?
No idea, never needed to do that. If there is a tool I'm sure
a web search will provide results.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
Code snippet from the FileWatcher
public boolean isModified() {
long now = System.currentTimeMillis();
if((now - lastCheck) > 1000) {
lastCheck = now;
stale = file.exists() && (file.lastModified() != lastModified);
}
return stale;
}
The check interval is 1000 ms. Unfortunately, my JUNIT tests are too fast, so I modified the file, want to check the modifications, but isModified returns false and my tests fail. Doing a sleep(2000) makes the tests happy again, but I do not want to slow down the tests.
What about a property (with getter and setter, default = 1000)
milliSecsBetweenChecks
Simple exercise, I would test and commit.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
On Thu, Jun 30, 2011 at 4:09 PM, <christian.mueller@anonymised.com> wrote:
Code snippet from the FileWatcher
public boolean isModified() {
long now = System.currentTimeMillis();
if((now - lastCheck) > 1000) {
lastCheck = now;
stale = file.exists() && (file.lastModified() != lastModified);
}
return stale;
}
The check interval is 1000 ms. Unfortunately, my JUNIT tests are too fast,
so I modified the file, want to check the modifications, but isModified
returns false and my tests fail. Doing a sleep(2000) makes the tests happy
again, but I do not want to slow down the tests.
What about a property (with getter and setter, default = 1000)
milliSecsBetweenChecks
Simple exercise, I would test and commit.
Works for me. The reason to have a non 0 delay is that otherwise the benchmarks
against GeoServer (or any high load) would be slowed down significantly, those
checks are quite expensive and, if I remember properly, also have some
internal synchronization
(I guess due to the native code call).
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------