Unrecognised tag: 'testResources'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unrecognised tag: 'testResources'

Ernst Reissner
Hi all,


When I run mvn resources:testResources i obtain

|Non-parseable POM
/home/ernst/Software/pom.xml:Unrecognisedtag:'testResources'|

The problem seems

|<build><resources><resource><directory>${resourceDir}</directory><filtering>true</filtering><includes><!--include>octave/m/java-arithmetics/**/*.m</include--><include>octave/octaverc</include><include>octave/java.opts</include></includes></resource></resources><testResources><testResource><directory>${tstResourcesDir}</directory><filtering>true</filtering><includes><include>*.rml</include></includes></testResource><testResources><plugins>|

As long as I had only the tag resources, all was fine. Now that i added
testResources, i have the problem. The resources plugin is configured as
follows:

|<plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.0.2</version><configuration><escapeString>\</escapeString><!--
\${java.home} -> ${java.home} --><!--nonFilteredFileExtensions>
<nonFilteredFileExtension>pdf</nonFilteredFileExtension>
</nonFilteredFileExtensions--><!--outputDirectory>${basedir}/target/</outputDirectory--></configuration></plugin>|

I have the impression, that this problem is about maven itself not about
the resources plugin, right? I use maven 3.5.0.


Who can  help?


Greetings,

Ernst

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognised tag: 'testResources'

Karl Heinz Marbaise-3
Hi,

On 30/10/17 11:07, Ernst Reissner wrote:
> Hi all,
>
>
> When I run mvn resources:testResources i obtain
>
> |Non-parseable POM
> /home/ernst/Software/pom.xml:Unrecognisedtag:'testResources'|

Can you show the full pom file somewhere best would be on Github ...

>
> The problem seems
>
> |<build><resources><resource><directory>${resourceDir}</directory><filtering>true</filtering><includes><!--include>octave/m/java-arithmetics/**/*.m</include--><include>octave/octaverc</include><include>octave/java.opts</include></includes></resource></resources><testResources><testResource>
<directory>${tstResourcesDir}</directory><filtering>true</filtering><includes><include>*.rml</include></includes></testResource><testResources><plugins>|
>

Just try a mvn clean

and see the output...

To be honest I don't see the need for such a complicated filtering/non
filtering setup in resources...can you elaborate in detail what the
problem is?


> As long as I had only the tag resources, all was fine. Now that i added
> testResources, i have the problem. The resources plugin is configured as
> follows:
>
> |<plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.0.2</version><configuration><escapeString>\</escapeString><!--
> \${java.home} -> ${java.home} --><!--nonFilteredFileExtensions>
> <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
> </nonFilteredFileExtensions--><!--outputDirectory>${basedir}/target/</outputDirectory--></configuration></plugin>|
>
> I have the impression, that this problem is about maven itself not about
> the resources plugin, right? I use maven 3.5.0.
>
>
> Who can  help?


Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognised tag: 'testResources'

Ernst Reissner
Hi Karl Heinz, Hi all



>
>>
>> The problem seems
>>
>> |<build><resources><resource><directory>${resourceDir}</directory><filtering>true</filtering><includes><!--include>octave/m/java-arithmetics/**/*.m</include--><include>octave/octaverc</include><include>octave/java.opts</include></includes></resource></resources><testResources><testResource>
>>
> <directory>${tstResourcesDir}</directory><filtering>true</filtering><includes><include>*.rml</include></includes></testResource><testResources><plugins>|
>
>>
>
> Just try a mvn clean
>
> and see the output...
I cannot even execute mvn clean, because the pom is not parseable if i
include testRersources.
Without it is just fine.
that is what drives me so crazy.

>
> To be honest I don't see the need for such a complicated filtering/non
> filtering setup in resources...can you elaborate in detail what the
> problem is?
Ok, if i do not need all the stuff, also good to know.
I found, that without     <filtering>true</filtering> the resources
plugin just copies the resources without filtering.
Seemingly, <directory>...</directory> is mandatory.
Then I explicitly specify the files which need filtering and copying.
This is the only piece of information
I know it is more than needed.
How can I do easier??

Instead of providing the full pom, I suggest that I extract a little
partial project
and see whether the problem can be reproduced ....
I ll let you know. !!!



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Unrecognised tag: 'testResources'

rfscholte
In reply to this post by Ernst Reissner
On Mon, 30 Oct 2017 11:07:53 +0100, Ernst Reissner
<[hidden email]> wrote:

> Hi all,
>
>
> When I run mvn resources:testResources i obtain
>
> |Non-parseable POM
> /home/ernst/Software/pom.xml:Unrecognisedtag:'testResources'|

This is not the complete line. It must tell you what Maven expected and on  
which line/column the failure happened.

Otherwise it looks like you have a corrupt installation.

Robert

>
> The problem seems
>
> |<build><resources><resource><directory>${resourceDir}</directory><filtering>true</filtering><includes><!--include>octave/m/java-arithmetics/**/*.m</include--><include>octave/octaverc</include><include>octave/java.opts</include></includes></resource></resources><testResources><testResource><directory>${tstResourcesDir}</directory><filtering>true</filtering><includes><include>*.rml</include></includes></testResource><testResources><plugins>|
>
> As long as I had only the tag resources, all was fine. Now that i added
> testResources, i have the problem. The resources plugin is configured as
> follows:
>
> |<plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.0.2</version><configuration><escapeString>\</escapeString><!--
> \${java.home} -> ${java.home} --><!--nonFilteredFileExtensions>
> <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
> </nonFilteredFileExtensions--><!--outputDirectory>${basedir}/target/</outputDirectory--></configuration></plugin>|
>
> I have the impression, that this problem is about maven itself not about
> the resources plugin, right? I use maven 3.5.0.
>
>
> Who can  help?
>
>
> Greetings,
>
> Ernst

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]