FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 05-27-2011, 11:25 AM
Stanislav Ochotnicky
 
Default Help building dcm4che

Excerpts from Ankur Sinha's message of Fri May 27 15:07:00 +0200 2011:
> On Thu, 2011-05-12 at 16:19 +0200, Stanislav Ochotnicky wrote:
> > org/dcm4chee/imagetest directory contains 2 Java class files. It's
> > hard to tell it they are actually being run, but I guess they are. One
> > way to fix all of this (and probably best in long term) is to ask
> > upstream to do a source release of test data/package.
> >
> > As for pointing maven to arbitrary directory..not easy. Only way to do
> > it with our maven right now is to create proper directory structure
> > within
> > .m2/ directory. That is:
> > .m2/groupid1/groupid2/../artifactid/artifactid-version.{pom,jar}
>
> Hello,
>
> I managed to build dcm4che-test. That dependency problem is over. Now
> I'm stuck with another one:
>
> This is what mock says:
>
> > DEBUG: [ERROR] Failed to execute goal on project dcm4che-imageio: Could not resolve dependencies for project dcm4che:dcm4che-imageio:jar:2.0.25: The repository system is offline but the artifact com.sun.media:jai_imageio:jar:1.1 is not available in the local repository. -> [Help 1]
> > DEBUG: org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Failed to execute goal on project dcm4che-imageio: Could not resolve dependencies for project dcm4che:dcm4che-imageio:jar:2.0.25: The repository system is offline but the artifact com.sun.media:jai_imageio:jar:1.1 is not available in the local repository.
>
> I've created a local depmap file etc. and tried it (Thanks Stanislav for
> guiding me over the IRC), but it's still giving me this error.
>
> My spec[1], depmap[2] and build.logs[3] are at my fedorapeople.org
> space. Could you please have a look at tell me where I'm mucking up?

Your depmap is still not correct, your JPP artifactid is:
<artifactId>jai_imageio-1.2</artifactId>

but it should be:
<artifactId>jai_imageio</artifactId>

Cheers and keep fighting! :-)

--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-27-2011, 01:07 PM
Ankur Sinha
 
Default Help building dcm4che

On Thu, 2011-05-12 at 16:19 +0200, Stanislav Ochotnicky wrote:
> org/dcm4chee/imagetest directory contains 2 Java class files. It's
> hard to tell it they are actually being run, but I guess they are. One
> way to fix all of this (and probably best in long term) is to ask
> upstream to do a source release of test data/package.
>
> As for pointing maven to arbitrary directory..not easy. Only way to do
> it with our maven right now is to create proper directory structure
> within
> .m2/ directory. That is:
> .m2/groupid1/groupid2/../artifactid/artifactid-version.{pom,jar}

Hello,

I managed to build dcm4che-test. That dependency problem is over. Now
I'm stuck with another one:

This is what mock says:

> DEBUG: [ERROR] Failed to execute goal on project dcm4che-imageio: Could not resolve dependencies for project dcm4che:dcm4che-imageio:jar:2.0.25: The repository system is offline but the artifact com.sun.media:jai_imageio:jar:1.1 is not available in the local repository. -> [Help 1]
> DEBUG: org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Failed to execute goal on project dcm4che-imageio: Could not resolve dependencies for project dcm4che:dcm4che-imageio:jar:2.0.25: The repository system is offline but the artifact com.sun.media:jai_imageio:jar:1.1 is not available in the local repository.

I've created a local depmap file etc. and tried it (Thanks Stanislav for
guiding me over the IRC), but it's still giving me this error.

My spec[1], depmap[2] and build.logs[3] are at my fedorapeople.org
space. Could you please have a look at tell me where I'm mucking up?

The spec isn't complete btw.

Thanks,
Ankur
[FranciscoD]

[1]http://ankursinha.fedorapeople.org/dcm4che/dcm4che.spec

[2]http://ankursinha.fedorapeople.org/dcm4che/dcm4che.depmap

[3]http://ankursinha.fedorapeople.org/dcm4che/build.log

--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-28-2011, 05:48 AM
Ankur Sinha
 
Default Help building dcm4che

On Fri, 2011-05-27 at 13:25 +0200, Stanislav Ochotnicky wrote:
> Your depmap is still not correct, your JPP artifactid is:
> <artifactId>jai_imageio-1.2</artifactId>
>
> but it should be:
> <artifactId>jai_imageio</artifactId>
>
> Cheers and keep fighting! :-)

Hi Stanislay,

I've tried this as well. I still get the same error. I've updated the
files on my fedora people space. The new depmap, the current spec and
the build.log from mock are all here[1]. I'm sure it's something tiny
that I'm missing out on :/

Thanks,
Ankur

[1]http://ankursinha.fedorapeople.org/dcm4che/


--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-28-2011, 06:03 AM
Alexander Kurtakov
 
Default Help building dcm4che

On 09:02:55 AM Saturday, May 28, 2011 Ankur Sinha wrote:

> On Fri, 2011-05-27 at 13:25 +0200, Stanislav Ochotnicky wrote:

> > Your depmap is still not correct, your JPP artifactid is:

> > <artifactId>jai_imageio-1.2</artifactId>

> >

> > but it should be:

> > <artifactId>jai_imageio</artifactId>

> >

> > Cheers and keep fighting! :-)

>

> Hi Stanislay,

>

> I've tried this as well. I still get the same error. I've updated the

> files on my fedora people space. The new depmap, the current spec and

> the build.log from mock are all here[1]. I'm sure it's something tiny

> that I'm missing out on :/




Look for "XML document structures must start and end within the same entity." in the log. Your depmap file is not a valid xml file.



Alex




>

> Thanks,

> Ankur

>

> [1]http://ankursinha.fedorapeople.org/dcm4che/

>

>

> --

> java-devel mailing list

> java-devel@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/java-devel
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-28-2011, 07:20 AM
Ankur Sinha
 
Default Help building dcm4che

On Sat, 2011-05-28 at 09:03 +0300, Alexander Kurtakov wrote:
> Look for "XML document structures must start and end within the same
> entity." in the log. Your depmap file is not a valid xml file.
>
> Alex

Thanks Alex! I ran xmllint and corrected the file.

All the components are building properly. There's something wrong with
the javadoc generation though. It says:

> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8:aggregate (default-cli) on project dcm4che: An error has occurred in JavaDocs report generation:
> [ERROR] Exit code: 1 - /builddir/build/BUILD/dcm4che-2.0.25/dcm4che-core/src/main/java/org/dcm4che2/data/Tag.java:1474: warning: unmappable character for encoding ANSI_X3.4-1968
> [ERROR] /** (0018,1153) VR=IS, VM=1 Exposure in ??As */
> [ERROR] ^
> [ERROR] /builddir/build/BUILD/dcm4che-2.0.25/dcm4che-core/src/main/java/org/dcm4che2/data/Tag.java:1474: warning: unmappable character for encoding ANSI_X3.4-1968

There was a warning earlier:

> [WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!

How would I set the encoding? What should it be set to?

Thanks!
Regards,
Ankur


--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-30-2011, 05:59 AM
Ankur Sinha
 
Default Help building dcm4che

On Sat, 2011-05-28 at 12:50 +0530, Ankur Sinha wrote:
> On Sat, 2011-05-28 at 09:03 +0300, Alexander Kurtakov wrote:
> > Look for "XML document structures must start and end within the same
> > entity." in the log. Your depmap file is not a valid xml file.
> >
> > Alex
>
> Thanks Alex! I ran xmllint and corrected the file.
>
> All the components are building properly. There's something wrong with
> the javadoc generation though. It says:
>
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8:aggregate (default-cli) on project dcm4che: An error has occurred in JavaDocs report generation:
> > [ERROR] Exit code: 1 - /builddir/build/BUILD/dcm4che-2.0.25/dcm4che-core/src/main/java/org/dcm4che2/data/Tag.java:1474: warning: unmappable character for encoding ANSI_X3.4-1968
> > [ERROR] /** (0018,1153) VR=IS, VM=1 Exposure in ??As */
> > [ERROR] ^
> > [ERROR] /builddir/build/BUILD/dcm4che-2.0.25/dcm4che-core/src/main/java/org/dcm4che2/data/Tag.java:1474: warning: unmappable character for encoding ANSI_X3.4-1968
>
> There was a warning earlier:
>
> > [WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
>
> How would I set the encoding? What should it be set to?
>
> Thanks!
> Regards,
> Ankur
>

Hello,

I managed to solve this one (I think)

The solution was to add:

> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

to the properties section of the pom.xml file.

More info on it on these links:

http://wiki.wsmoak.net/cgi-bin/wiki.pl?action=browse&diff=3&id=Maven/FAQ

http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File
+Encoding

http://jira.codehaus.org/browse/MNG-2216

Thanks!
Regards,
Ankur




--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-30-2011, 09:54 AM
Guido Grazioli
 
Default Help building dcm4che

2011/5/30 Ankur Sinha <sanjay.ankur@gmail.com>:

>
> The solution was to add:
>
>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>
>> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
>
> to the properties section of the pom.xml file.


could that be a candidate for inclusion in settings.xml or MAVEN_OPTS?

--
Guido Grazioli <guido.grazioli@gmail.com>
Via Parri 11 48011 - Alfonsine (RA)
Mobile: +39 347 1017202 (10-18)
Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278
Linked in: http://www.linkedin.com/in/guidograzioli
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-30-2011, 04:02 PM
Stanislav Ochotnicky
 
Default Help building dcm4che

Excerpts from Guido Grazioli's message of Mon May 30 11:54:57 +0200 2011:
> 2011/5/30 Ankur Sinha <sanjay.ankur@gmail.com>:
>
> >
> > The solution was to add:
> >
> >> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> >>
> >> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
> >
> > to the properties section of the pom.xml file.
>
>
> could that be a candidate for inclusion in settings.xml or MAVEN_OPTS?

Good idea I believe, gonna look into it.


--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-30-2011, 04:38 PM
Alexander Kurtakov
 
Default Help building dcm4che

On 07:36:38 PM Monday, May 30, 2011 Stanislav Ochotnicky wrote:
> Excerpts from Guido Grazioli's message of Mon May 30 11:54:57 +0200 2011:
> > 2011/5/30 Ankur Sinha <sanjay.ankur@gmail.com>:
> > > The solution was to add:
> > >> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > >>
> > >> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncod
> > >> ing>
> > >
> > > to the properties section of the pom.xml file.
> >
> > could that be a candidate for inclusion in settings.xml or MAVEN_OPTS?
>
> Good idea I believe, gonna look into it.

I don't think this is good idea at all because AFAIK this will override
whatever is set in the pom even thus breaking projects that have set
everything correctly. Feel free to prove me wrong on this.

Alex
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 05-31-2011, 07:51 AM
Stanislav Ochotnicky
 
Default Help building dcm4che

Excerpts from Alexander Kurtakov's message of Mon May 30 18:38:49 +0200 2011:
> On 07:36:38 PM Monday, May 30, 2011 Stanislav Ochotnicky wrote:
> > Excerpts from Guido Grazioli's message of Mon May 30 11:54:57 +0200 2011:
> > > 2011/5/30 Ankur Sinha <sanjay.ankur@gmail.com>:
> > > > The solution was to add:
> > > >> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > > >>
> > > >> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncod
> > > >> ing>
> > > >
> > > > to the properties section of the pom.xml file.
> > >
> > > could that be a candidate for inclusion in settings.xml or MAVEN_OPTS?
> >
> > Good idea I believe, gonna look into it.
>
> I don't think this is good idea at all because AFAIK this will override
> whatever is set in the pom even thus breaking projects that have set
> everything correctly. Feel free to prove me wrong on this.

While I admit that we should probably not touch sourceEncoding,
outputEncoding should always be UTF-8 in Fedora.


--
Stanislav Ochotnicky <sochotnicky@redhat.com>
Software Engineer - Base Operating Systems Brno

PGP: 7B087241
Red Hat Inc. http://cz.redhat.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 

Thread Tools




All times are GMT. The time now is 12:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org