facebook

Web Project’s java classes won’t be jared and deploied

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

    wshao518
    Participant

    I have a web project depend a java project and another web project. The java project will be jared and deploied while there is nothing for the web project. Basically, I just want to reuse some classes of that web project and I set the depending access rule to be *.java. It didn’t help. So I come here and found this post, now I know that web project won’t be jared even you are depending on it. However, I just need the that web project’s classes to be deploied as a part of the new web project. Is there anything I can do about it except create another java project or write an build.xml to deploy?

    #233812 Reply

    Scott Anderson
    Participant

    I have a web project depend a java project and another web project. The java project will be jared and deploied while there is nothing for the web project.

    Correct. One web project depending on another is not supported because it would necessitate some sort of “merge” semantics (ie. which web.xml? etc).

    Basically, I just want to reuse some classes of that web project

    Then you’ll have to move them into another Java project and have both web projects depend on it, since they would both be using those classes.

    Is there anything I can do about it except create another java project or write an build.xml to deploy?

    That’s really all there is at the moment. Sorry.

    #233867 Reply

    wshao518
    Participant

    @support-scott wrote:

    Basically, I just want to reuse some classes of that web project

    Then you’ll have to move them into another Java project and have both web projects depend on it, since they would both be using those classes.

    Well, hope you will have some option like include another web project as java project in future. It’s really not convinient to put web project java classes in a java project in source control to another location. For example, we have struts tiles FactorySet and General Action class override struts Action class in our web project. It’s doesn’t make a lot of sense that I move them out of the web project. And of course, another web project want to reuse these classes. It’s just not right to move things around in source control just for myeclipse won’t deploy automatically.

    When we are talking about jar file, we don’t really want a automatically config file merged war file. Jar file is just for classpath.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Web Project’s java classes won’t be jared and deploied

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