maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Tanasenko <atg.sleepl...@gmail.com>
Subject Re: Preleminary Maven 3.4.0-SNAPSHOT Testing (Take 2)
Date Tue, 14 Jun 2016 17:54:01 GMT
Yes, exactly. To be able to show markers at correct locations in an editor,
we need to know if a particular problem is sourced at this particular file.
Since early 2.x versions of this source was exactly one path to a file and
now it has changed.

So it would be really helpful to know what the new format is.

On Tue, 14 Jun 2016, 20:37 Christian Schulte, <cs@schulte.it> wrote:

> Am 06/14/16 um 18:46 schrieb Anton Tanasenko:
> > Christian? Anyone?
> >
> > 2016-06-13 1:19 GMT+03:00 Anton Tanasenko <atg.sleepless@gmail.com>:
> >
> >> I've tried running m2eclipse tests with 3.4.0-SNAPSHOT maven. There are
> >> several failures.
> >>
> >> 1. src/x/resources-filtered addition, which we will need to adhere to
> when
> >> 3.4.0 gets released.
> >>
> >> 2.
> >>
> https://github.com/apache/maven/commit/508e16e23d66de09893d1eb52dff6a1c5ca019b3#diff-9cdcbb55d918f0d251c34a5e2fd863e8R168
> >> The change above causes the source to have the path to the pom.xml
> >> duplicated, in my test case it's
> >> "D:\work\eclipse\eclipse-rcp-mars-sr1\ws2\test\testproject\pom.xml
> >> [D:\work\eclipse\eclipse-rcp-mars-sr1\ws2\test\testproject\pom.xml]"
> >> M2e is looking at this source when generating error markers for pom
> files
> >> in the workspace and with 3.4 it's not doing it correctly, since the
> value
> >> is no longer one single path.
> >> Can somebody describe what possible values could this new "X [Y]" format
> >> contain when X and Y are not the same?
> >>
>
> You mean if 'getSource' does not return 'null' you expect it to be an
> absolute path to the pom file of of the problem?
>
>     /**
>      * Gets the hint about the source of the problem. While the syntax
> of this hint is unspecified and depends on the
>      * creator of the problem, the general expectation is that the hint
> provides sufficient information to the user to
>      * track the problem back to its origin. A concrete example for such
> a source hint can be the file path or URL from
>      * which a POM was read.
>      *
>      * @return The hint about the source of the problem or an empty
> string if unknown, never {@code null}.
>      */
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message