Ok, then I know. Tanks for your help, Hervé!
I guess this case is closed then, although I'd say this is a bug in the
default skin.

Cheers,
Mikko.
Den 19 jan 2015 22:27 skrev "Hervé BOUTEMY" <[email protected]>:

> Hi,
>
> If you look at output when running "mvn site":
> [INFO] Rendering site with
> org.apache.maven.skins:maven-default-skin:jar:1.0
> skin.
>
>
> I tried and changed the skin used, by adding followin content in site.xml
>   <skin>
>     <groupId>org.apache.maven.skins</groupId>
>     <artifactId>maven-fluido-skin</artifactId>
>     <version>1.3.0</version>
>   </skin>
> then the width and height are in generated HTML
>
> As I suspected, the problem is in default skin: if you need customization,
> please use another skin
> http://maven.apache.org/skins/index.html
>
> Regards,
>
> Hervé
>
> Le lundi 19 janvier 2015 11:03:31 Mikko Östlund a écrit :
> > Hi,
> >
> > I'm pretty new to this, so I guess I'm using the "default" skin? I
> haven't
> > configured anything
> > special involving a choice of skin.
> >
> > I've attached to this e-mail a gzipped tar file with a little Maven
> project
> > to demostrate the issue.
> > The project is based on the "maven-archetype-quickstart" (version 1.1)
> and
> > I have just added the following files:
> >
> >    - src/site/site.xml
> >    - src/site/resources/images/mikko-feather.png    (a vandalized version
> > of the maven-feather.png)
> >
> > Demo (in which "$" is my Bash prompt):
> >
> >     $ mvn --version
> >     Apache Maven 3.0.4
> >     Maven home: /usr/share/maven
> >     Java version: 1.8.0_11, vendor: Oracle Corporation
> >     Java home: /opt/java/jdk1.8.0_11/jre
> >     Default locale: en_US, platform encoding: UTF-8
> >     OS name: "linux", version: "3.2.0-75-generic", arch: "i386", family:
> > "unix"
> >     $
> >     $ tar zxf dummyartifact.tgz
> >     $ cd dummyartifact
> >     $ mvn site
> >        ... [Maven's output omitted here]
> >     $ grep -r '<img src' target
> >     target/site/project-info.html:            <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/dependency-info.html:         <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/dependencies.html:            <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/distribution-management.html: <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/plugin-management.html:       <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/index.html:                   <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/integration.html:             <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/project-summary.html:         <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/plugins.html:                 <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/issue-tracking.html:          <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/license.html:                 <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/mail-lists.html:              <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/source-repository.html:       <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     target/site/team-list.html:               <img
> > src="images/mikko-feather.png" alt="dummyartifact" />
> >     $
> >
> > As you can see, the <img/> elements don't have any width and height
> > attributes.
> >
> > Best regards,
> >
> > Mikko
> >
> > 2015-01-17 21:45 GMT+01:00 Hervé BOUTEMY <[email protected]>:
> > > Hi,
> > >
> > > The generated html should contain width and height attributes for the
> img
> > > tag:
> > > can you check?
> > > The content of site.xml is diretly copied, whatever you wrote: then the
> > > good
> > > choice between "40" or "40px" is a question about HTML you want.
> > >
> > > What skin are you using?
> > >
> > > Any test project with visible source and result will help us understand
> > > the
> > > problem you're facing.
> > >
> > > Regards,
> > >
> > > Hervé
> > >
> > > Le jeudi 15 janvier 2015 16:10:16 Mikko Östlund a écrit :
> > > > Hi,
> > > >
> > > > I'm attempting to specify the width and height of the "banner" of my
> > > > generated site.
> > > > That is, in src/site/site.xml I specify the <width> and <height>
> > > > elements
> > > >
> > > > in <bannerLeft> thus:
> > > >     <project>
> > > >
> > > >       <bannerLeft>
> > > >
> > > >         <name>Monty Hall simulation</name>
> > > >         <src>images/my_400_by_419_pixels_image.png</src>
> > > >         <width>40</width>
> > > >         <height>42</height>
> > > >
> > > >       </bannerLeft>
> > > >       <body>
> > > >
> > > >            ...
> > > >
> > > >       </body>
> > > >
> > > >     </project>
> > > >
> > > > However, this has no effect on the size of the image in the generated
> > >
> > > HTML.
> > >
> > > > I have also tried width <width>40px</width>, "<width>40 px</width>"
> and
> > > > "<width>10%</width>"
> > > > without success.
> > > >
> > > > How should I make the image be shown as 40 pixels wide and 42 pixels
> > >
> > > high,
> > >
> > > > although the original image is 400 pixels wide and 419 pixels high?
> > > >
> > > > /Mikko.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to