This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Creating ScalaDocs with the Maven plugin kind of broken

3 replies
Hannu Leinonen
Joined: 2009-01-31,
User offline. Last seen 42 years 45 weeks ago.

Hello, I'm running into problems when I have in my POM:

ANYTHING
ANYTHING

together with:

org.scala-tools
maven-scala-plugin
2.9.1

when I'm running "mvn site" it fails with Fatal Error when trying to
resolve Scala version. Adding the deprecated:

2.7.3

to the plugin configuration solves that problem, but still it (and "mvn
scala:doc") fails with:

Open quote is expected for attribute "{1}" associated with an element
type "href".

This is due to the project/organization/url&name, removing either one of
them will make the goal succeed with both "mvn site" and "mvn
scala:doc". Also this configuration works if I remove the Scala plugin
from the reporting, but then I won't get any ScalaDocs.

-Hannu

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Creating ScalaDocs with the Maven plugin kind of broken

Thanks for the write-up.

I'll look into fixing it.

Sent from my iPhone

On Jan 31, 2009, at 4:54 AM, Hannu Leinonen wrote:

> Hello, I'm running into problems when I have in my POM:
>
>
>
> ANYTHING
> ANYTHING
>
>
>
> together with:
>
>
>
>
>
> org.scala-tools
> maven-scala-plugin
> 2.9.1
>
>
>
>
>
> when I'm running "mvn site" it fails with Fatal Error when trying to
> resolve Scala version. Adding the deprecated:
>
>
> 2.7.3
>
>
> to the plugin configuration solves that problem, but still it (and
> "mvn scala:doc") fails with:
>
>
> Open quote is expected for attribute "{1}" associated with an
> element type "href".
>
>
> This is due to the project/organization/url&name, removing either
> one of them will make the goal succeed with both "mvn site" and "mvn
> scala:doc". Also this configuration works if I remove the Scala
> plugin from the reporting, but then I won't get any ScalaDocs.
>
>
>
> -Hannu
>

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Creating ScalaDocs with the Maven plugin kind of broken
I fixed the one issue, and I'm looking into the second.  I added your issues to our integration test, so hopefully the problem won't occur again.   I'll let you know when <organization> tags are supported again.

-Josh

On Sat, Jan 31, 2009 at 7:35 AM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Thanks for the write-up.

I'll look into fixing it.

Sent from my iPhone

On Jan 31, 2009, at 4:54 AM, Hannu Leinonen <sopuli@gmx.net> wrote:

Hello, I'm running into problems when I have in my POM:


<organization>
  <url>ANYTHING</url>
  <name>ANYTHING</name>
</organization>


together with:


<reporting>
  <plugins>
      <plugin>
          <groupId>org.scala-tools</groupId>
          <artifactId>maven-scala-plugin</artifactId>
          <version>2.9.1</version>
      </plugin>
  </plugins>
</reporting>


when I'm running "mvn site" it fails with Fatal Error when trying to resolve Scala version. Adding the deprecated:


<scalaVersion>2.7.3</scalaVersion>


to the plugin configuration solves that problem, but still it (and "mvn scala:doc") fails with:


Open quote is expected for attribute "{1}" associated with an  element type "href".


This is due to the project/organization/url&name, removing either one of them will make the goal succeed with both "mvn site" and "mvn scala:doc". Also this configuration works if I remove the Scala plugin from the reporting, but then I won't get any ScalaDocs.



-Hannu


Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Creating ScalaDocs with the Maven plugin kind of broken
Ok, I updated our integration test to include your issue in the nightlies.   Right now everything is passing, and I can't duplciate the organization bug.

I haven't started testing for java + scala integration with scaladoc, but my initial test was successful

On Sat, Jan 31, 2009 at 1:10 PM, Josh Suereth <joshua.suereth@gmail.com> wrote:
I fixed the one issue, and I'm looking into the second.  I added your issues to our integration test, so hopefully the problem won't occur again.   I'll let you know when <organization> tags are supported again.

-Josh

On Sat, Jan 31, 2009 at 7:35 AM, Josh Suereth <joshua.suereth@gmail.com> wrote:
Thanks for the write-up.

I'll look into fixing it.

Sent from my iPhone

On Jan 31, 2009, at 4:54 AM, Hannu Leinonen <sopuli@gmx.net> wrote:

Hello, I'm running into problems when I have in my POM:


<organization>
  <url>ANYTHING</url>
  <name>ANYTHING</name>
</organization>


together with:


<reporting>
  <plugins>
      <plugin>
          <groupId>org.scala-tools</groupId>
          <artifactId>maven-scala-plugin</artifactId>
          <version>2.9.1</version>
      </plugin>
  </plugins>
</reporting>


when I'm running "mvn site" it fails with Fatal Error when trying to resolve Scala version. Adding the deprecated:


<scalaVersion>2.7.3</scalaVersion>


to the plugin configuration solves that problem, but still it (and "mvn scala:doc") fails with:


Open quote is expected for attribute "{1}" associated with an  element type "href".


This is due to the project/organization/url&name, removing either one of them will make the goal succeed with both "mvn site" and "mvn scala:doc". Also this configuration works if I remove the Scala plugin from the reporting, but then I won't get any ScalaDocs.



-Hannu



Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland