6 Replies Latest reply on Mar 2, 2009 3:27 AM by maxandersen

    Correct Eclipse project type for SAR?

    bmelloni

      Our organization uses an exploded SAR project to hold common libraries (used by other WAR projects) on servers. I am trying to simulate the setup in my local environment and remove the JARs from my other projects WEB-INF/lib so that export/publish will work smoothly.

      The SAR project contains nothing more than jars and a META-INF folder with a jboss-service.xml with a null configuration nothing here.

      What project type (File/New/Project/???) do I use for a SAR like this?

      Thx.

        • 1. Re: Correct Eclipse project type for SAR?
          bmelloni

          Also, in ProjectArchives I don't see a SAR option. What do I use?

          • 2. Re: Correct Eclipse project type for SAR?
            maxandersen

            use project archives and just put .sar as the name instead of .jar

            • 3. Re: Correct Eclipse project type for SAR?
              bmelloni

              Sounds a bit strange, so let me paraphrase what you said to make sure I understood:

              - Use a General project in Eclipse.
              - Place the files in the project as I wish to see them in the SAR.
              - In Project Archives, choose JAR (even though contents are JARs themselves) and give it a .SAR extension in the name.

              Is that correct?

              • 4. Re: Correct Eclipse project type for SAR?
                maxandersen

                Yes, the jar, ear, war options for Project Archives are just "templates" that you can alter to whatever you want.

                They are not written in stone.

                • 5. Re: Correct Eclipse project type for SAR?
                  bmelloni

                  I am still stumped. No matter what I try, no files get placed in archive.

                  I have tried:

                  - Created as either General and Java projects
                  - Included all the JARs into the libraries and OrderAndExport.
                  - From ProjectArchives created a New Archive of type JAR. Set it to exploded, with an extension of .sar. Used a folder in the workspace for the archive (outside of the project).

                  The folder structure is trivial:
                  /<jars here>
                  /META-INF/jboss-service.xml

                  Nothing gets placed in the archive folder, and nothing gets published to server.

                  Obviously I am missing a critical point that is utterly obvious to someone who's used jBoss Tools for a long time. Folder structure? Project Type? Some special non-default Eclipse setting setting? Secret handshake?

                  Help please? I'd really like to 'publish' my SAR projects like all other projects. Publishing SARs by copying the files to the server 'by hand' is annoying.

                  • 6. Re: Correct Eclipse project type for SAR?
                    maxandersen

                    I just tried this in CR2 and it just works:
                    http://screencast.com/t/Mvscezpv

                    (ignore the content I put in it, but it shows the principle workings of it)

                    p.s. if you don't have Automatic build enabled you have to manually trigger the build.