Maven 1.x Application Generation Plugin

Problem with maven.genapp.repackage.dir and maven.genapp.repackage

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.3
  • Fix Version/s: 2.3.1
  • Component/s: None
  • Labels:
    None
  • Environment:
    Test on windows
  • Number of attachments :
    2

Description

When you use the maven.genapp.repackage.dir properties and set it to . , the files contained in the maven.genapp.repackage directory are not < moved > to the new package directory, but copied in it, and steel in the base directory.

Here is the template.properties file :

maven.genapp.repackage.dir=
maven.genapp.repackage=main/src/java,test/src/unit
maven.genapp.filter=project.xml
maven.genapp.default.package=com.saint-gobain.sgsi.my_application
maven.genapp.filter=project.xml,main/src/webapp/WEB-INF/web.xml

The content of "main/src/java" are not moved in "main/src/java/com/saint-gobain/sgsi/my_application" but copyed in it and steel in the "main/src/java" directory.

If I put the main and test directory in a "src" directory, and remove the "maven.genapp.repackage.dir" propertie, everything works fine.

You can find in attachment the template

  1. jelly.diff
    12/May/06 9:49 AM
    1 kB
    Charles Rathouis

Activity

Hide
Charles Rathouis added a comment -

Here is a patch which

  • fix this problem
  • add a new feature : Rename the filename which contain tag like @ID@.
Show
Charles Rathouis added a comment - Here is a patch which
  • fix this problem
  • add a new feature : Rename the filename which contain tag like @ID@.
Hide
Charles Rathouis added a comment -

Here is a patch which

  • Fix this issue
  • Add a new feature : Rename the file which contains tags into their filename.
Show
Charles Rathouis added a comment - Here is a patch which
  • Fix this issue
  • Add a new feature : Rename the file which contains tags into their filename.
Hide
Lukas Theussl added a comment -

I fixed the issue but I couldn't apply your patch: it's not in unified diff format, the ant:exclude part broke some other standard templates, and I couldn't figure out what the rest of the patch is supposed to do. Please open a new issue with a more detailed description.

Show
Lukas Theussl added a comment - I fixed the issue but I couldn't apply your patch: it's not in unified diff format, the ant:exclude part broke some other standard templates, and I couldn't figure out what the rest of the patch is supposed to do. Please open a new issue with a more detailed description.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: