Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning, could not find a line that matches the pattern '(Class|Interface|Enum)'. Class diagram reference not inserted #27

Open
ericpinet opened this issue Jan 24, 2016 · 4 comments

Comments

@ericpinet
Copy link

Hi,

Nice tool!

But when I execute this in maven project on Travis, I always have this issues during the generation of the javadoc :

Warning, could not find a line that matches the pattern '(Class|Interface|Enum) Gpio.*'.
Class diagram reference not inserted

See the build #135 in me repository : https://travis-ci.org/ericpinet/ConnectLife

I setup the UMLGraph with maven like this:

      <!-- Javadoc -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10.3</version>
        <configuration>
          <excludePackageNames>com.connectlife.test</excludePackageNames>
          <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
          <docletArtifact>
            <groupId>org.umlgraph</groupId>
            <artifactId>doclet</artifactId>
            <version>5.1</version>
          </docletArtifact>
          <additionalparam>-all -view -views</additionalparam>
          <useStandardDocletOptions>true</useStandardDocletOptions>
        </configuration>
      </plugin>

Why the pattern is not match? The javadoc plugin version isn't compatible with this doclet?

@dspinellis
Copy link
Owner

The reason is probably that the javadoc generated HTML code has changed slightly and UMLGraph cannot detect where to insert the required changes.

@ericpinet
Copy link
Author

Why UMLGraph cannot detect where to insert the required changes? The javadoc plugin version isn't compatible with this docket? How can I solve that?

@dspinellis
Copy link
Owner

Please compare the Pattern.compile calls in UmlGraphDoc.java against what's actually in the page you expect to be modified. Then adjust the regular expressions accordingly. (Try to keep them compatible with older versions.)

@good-vi
Copy link

good-vi commented Nov 21, 2018

Hi. Yep, javadoc has changed. But now for my Java8 project i use this kludge:
https://gist.github.com/beguy/5223d5a3ad10a71a887091f99a042fd8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants