facebook

M4E generates different package structure to command line

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #291274 Reply

    mcintosh_i
    Member

    If I generate a new Maven java project on the command line using the following:

    mvn archetype:create -DgroupId=my.group.id -DartifactId=MyArtifactId

    it generates (as expected) the class App.java in the package my.group.id.

    If I use the same groupId and artifactId in Maven4Eclipse (in MyEclipse 6.6) then it generates App.java in the package my.group.id.MyArtifactId.

    What gives?

    It’s not simply a matter of refactoring because even if you do that, and then install that jar, it’s put it inside the repository under the incorrect directory (my/group/id/MyArtifactId).

    This is confusing. Any ideas?

    cheers,
    Ian

    #291280 Reply

    Loyal Water
    Member

    Ian,
    Im afraid I don’t have a workaround for you at the moment. I have filed a PR for the dev team and they will try to fix this asap.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: M4E generates different package structure to command line

You must be logged in to post in the forum log in