jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x WAR Plugin
  • MWAR-77

calls to DirectoryScanner.setBasedir(String) fail in embedded environment

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Duplicate
  • Affects Version/s: 2.0.1
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven embedded (2.1-SNAPSHOT) in mevenide/netbeans 2.2

Description

when the user declares a resource with relative path, eg.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>resource/files</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*bak</exclude>
</excludes>
</resource>
</webResources>
</configuration>
</plugin>

then the build fails to process the resource correctly. I've traced that back to the DirectoryScanner.setBasedir(String) method which will not construct a path relative to the pom file, but to the directory where the IDE was started.

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MWAR-79 <webResources> copy fails in a multi-project build

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is related to

Bug - A problem which impairs or prevents the functions of the product. MRESOURCES-32 calls to DirectoryScanner.setBasedir(String) fail in embedded environment

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Stéphane Nicoll added a comment - 16/Mar/07 3:04 PM

Milos, how can we reproduce this one easily? Using the eclipse plugin?

Show
Stéphane Nicoll added a comment - 16/Mar/07 3:04 PM Milos, how can we reproduce this one easily? Using the eclipse plugin?
Hide
Permalink
Stéphane Nicoll added a comment - 16/Mar/07 3:16 PM

duplicate of MWAR-79

Show
Stéphane Nicoll added a comment - 16/Mar/07 3:16 PM duplicate of MWAR-79

People

  • Assignee:
    Unassigned
    Reporter:
    Milos Kleint
Vote (0)
Watch (2)

Dates

  • Created:
    19/Sep/06 1:10 AM
    Updated:
    16/Mar/07 3:16 PM
    Resolved:
    16/Mar/07 3:16 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.