facebook

How to prevent the auto output folder of WEB-INF/classes

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #298645 Reply

    aliasCrucial
    Member

    Here’s my problem.

    I start a new project from an existing folder that has a maven project structure. Than I open the context-menu for the project and click on MyEclispe Maven > Enable Dependency Management. Now, because I have a WEB-INF folder under src/main/webapp MyEclispe prompts me with a dialog box titled “Reset Output Folder”.

    It reads:

    MyEclipse has detected that your project uses custom output folders. If the output folder is not set to <webroot>/WEB-INF/classes, these classes will not be available to your web application. Click Yes to reset the output folder or No to leave as is.

    Whiter I click Yes or No MyEclispe sets the output folder to src/main/webapp/WEB-INF/classes (a bug?). I do not want this behavior. I want the default output folder configured under Window > Preferences.

    The problem is that Subversive (Eclipse Subversion client) doesn’t seem to know or care that the classes directory is for output. The next time I try to commit my project Subversive will attempt to commit of the compiled class files because their under my project root. Who wants class files in their source control?

    I want to prevent this behavior, but all attempts have failed. Is there a way to make the above mentioned dialog box works as it suggests? Can I completely disable the web capabilities of a project? Can I prevent MyEclipse from assuming I want to use it’s web capabilities just because it sees a WEB-INF folder?

    Help!

    Thanks

    #298693 Reply

    “Enable Dependency Management” is not officially supported by MyEclipse. Please create web project using MyEclipse wizard and copy your contents there.

    #299322 Reply

    fedaykin
    Member

    Eugene,

    I am having a similar problem. I can import a project in Eclipse using Subclipse and then enable Maven features… but MyEclipse does not support this AT ALL?!?! No way to import an existing Maven/SVN prioject? Please advise if there is a workaround, this is crucial functionality for my team, and if we can’t do it in MyEclipse we will have to revert to using Eclipse.

    Thanks,
    Chris

    #299323 Reply

    MyEclipse only supports projects created using its wizards.

    #299554 Reply

    fedaykin
    Member

    Eugene,

    I realize that MyEclipse will only recognize the project configurations represented by its own wizards. We do not version .project files or anything IDE related. However, we do have a great deal of Java code in our Subversion repository. These projects use Maven, and have existing pom files. If there is NO WAY we can set up a MyEclipse project and import this code so that Subclipse and Maven4MyEclipse function properly, then I fear MyEclipse is completely useless in our shop. We would be better off monkeying with Eclipse plugin configurations ourselves, because at least then we know what we need to do is possible!

    No way to import existing Java/Maven code into a MyEclipse project, no workaround? Please spend a little time considering the problem, this seems like very basic functionality for an IDE.

    Thanks,
    Chris

    #299556 Reply

    fedaykin
    Member

    Oops, I meant Subversive, not Subclipse. If it isn’t possible to connect to an existing Subversion project, that’s a show stopper for MyEclipse in my world.

    #299637 Reply

    Chris,
    There is no workaround now. You can create a corresponding project in MyEclipse and import the existing project files into it.
    You can request for this feature at
    https://www.genuitec.com/forums/topics/myeclipse/feature-requests/

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: How to prevent the auto output folder of WEB-INF/classes

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