|
|
|
sia
|
Hello, I am building a application with Equinox 1.6, Tomcat 5x and Mysql. As everyone who uses this knows, the build script creates this directory structure. dist extras lib src target test web *.xml *.properties Anyway, I have been using Text editors, and would like to finally get this project into Eclipse. Since this uses maven, I have followed the following document. see DOC below. Anyway, after following that document, I get the equinox project to show up in Eclipse, but it shows only the following directories Equinox src and the src has NO files. It is empty. I am new with Eclipse, but I know I followed the instructions. Also, I do not see any of the jsp, or props, or xml files here. Only src? Is this correct? I would really like it if I coiuld have all the equinox files showing up in Eclipse, and be able to run the ant to deploy the war over to my tomcat. Is this possible? Does anyone have any pointers to help me achieve this? Thanks, DOC: Eclipse: ---------- Download Maven 2.0.4, install it, and add $M2_HOME/bin to your $PATH. From the command line, cd into the equinox directory and type "mvn eclipse:eclipse". If you'd like to download source JARs as well, run: mvn eclipse:eclipse -DdownloadSources=true Get a cup of coffee or soda (or even better, a beer!) while you wait for Maven to download all the dependencies. Eclipse needs to know the path to the local maven repository. Therefore the classpath variable M2_REPO has to be set. Execute the following command: mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo You can also define the M2_REPO classpath variable inside Eclipse. From the menu bar, select Window > Preferences. Select the Java > Build Path > Classpath Variables page. Add a new one with a name of M2_REPO and Path of to your local Maven repository (/Users/${username}/.m2/repository on OS X and C:\Documents and Settings\${username}\.m2\repository on Windows). Once the project files have been created, open Eclipse and go to File > New > Project > Java Project. Click Next and type "equinox" in the Project name box. Click Finish to begin importing the project. |
||||||||||||||||
|
mraible
|
If you run "mvn eclipse:eclipse" and then import your project into
Eclipse - nothing shows up? Are you sure you're pointing to the right directory? Matt On 8/23/07, Scott Purcell <[hidden email]> wrote: > > Hello, > > I am building a application with Equinox 1.6, Tomcat 5x and Mysql. As > everyone who uses this knows, the build script creates this directory > structure. > > dist > extras > lib > src > target > test > web > *.xml > *.properties > > Anyway, I have been using Text editors, and would like to finally get this > project into Eclipse. Since this uses maven, I have followed the following > document. see DOC below. > > Anyway, after following that document, I get the equinox project to show up > in Eclipse, but it shows only the following directories > Equinox > src > and the src has NO files. It is empty. > > I am new with Eclipse, but I know I followed the instructions. Also, I do > not see any of the jsp, or props, or xml files here. Only src? Is this > correct? > > I would really like it if I coiuld have all the equinox files showing up in > Eclipse, and be able to run the ant to deploy the war over to my tomcat. Is > this possible? Does anyone have any pointers to help me achieve this? > > > Thanks, > > > > DOC: > Eclipse: > ---------- > Download Maven 2.0.4, install it, and add $M2_HOME/bin to your $PATH. From > the > command line, cd into the equinox directory and type "mvn eclipse:eclipse". > If > you'd like to download source JARs as well, run: > > mvn eclipse:eclipse -DdownloadSources=true > > Get a cup of coffee or soda (or even better, a beer!) while you wait for > Maven > to download all the dependencies. > > Eclipse needs to know the path to the local maven repository. Therefore the > classpath variable M2_REPO has to be set. Execute the following command: > > mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo > > You can also define the M2_REPO classpath variable inside Eclipse. From the > menu bar, select Window > Preferences. Select the Java > Build Path > > Classpath > Variables page. Add a new one with a name of M2_REPO and Path of to your > local > Maven repository (/Users/${username}/.m2/repository on OS > X and > C:\Documents and Settings\${username}\.m2\repository on > Windows). > > Once the project files have been created, open Eclipse and go to File > New > > > Project > Java Project. Click Next and type "equinox" in the Project name > box. > Click Finish to begin importing the project. > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
sia
|
Thanks for the response, as it was helpful. If I issue a File->import and select the project, it works properly and imports all directories. But if I do the Project->JavaProject 'next' name it 'equinox' it shows up empty. Since the File-> import works. This fixes my problem, so for that I appreciate. Now that the project is imported, can I still call the ant script to create the war and have the war deployed to Tomcat through Eclipse? If so how can I do this, then my problems will be resolved. Many thanks, Scott
If you run "mvn eclipse:eclipse" and then import your project into Eclipse - nothing shows up? Are you sure you're pointing to the right directory? Matt On 8/23/07, Scott Purcell <[hidden email]> wrote: > > Hello, > > I am building a application with Equinox 1.6, Tomcat 5x and Mysql. As > everyone who uses this knows, the build script creates this directory > structure. > > dist > extras > lib > src > target > test > web > *.xml > *.properties > > Anyway, I have been using Text editors, and would like to finally get this > project into Eclipse. Since this uses maven, I have followed the following > document. see DOC below. > > Anyway, after following that document, I get the equinox project to show up > in Eclipse, but it shows only the following directories > Equinox > src > and the src has NO files. It is empty. > > I am new with Eclipse, but I know I followed the instructions. Also, I do > not see any of the jsp, or props, or xml files here. Only src? Is this > correct? > > I would really like it if I coiuld have all the equinox files showing up in > Eclipse, and be able to run the ant to deploy the war over to my tomcat. Is > this possible? Does anyone have any pointers to help me achieve this? > > > Thanks, > > > > DOC: > Eclipse: > ---------- > Download Maven 2.0.4, install it, and add $M2_HOME/bin to your $PATH. From > the > command line, cd into the equinox directory and type "mvn eclipse:eclipse". > If > you'd like to download source JARs as well, run: > > mvn eclipse:eclipse -DdownloadSources=true > > Get a cup of coffee or soda (or even better, a beer!) while you wait for > Maven > to download all the dependencies. > > Eclipse needs to know the path to the local maven repository. Therefore the > classpath variable M2_REPO has to be set. Execute the following command: > > mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo > > You can also define the M2_REPO classpath variable inside Eclipse. From the > menu bar, select Window > Preferences. Select the Java > Build Path > > Classpath > Variables page. Add a new one with a name of M2_REPO and Path of to your > local > Maven repository (/Users/${username}/.m2/repository on OS > X and > C:\Documents and Settings\${username}\.m2\repository on > Windows). > > Once the project files have been created, open Eclipse and go to File > New > > > Project > Java Project. Click Next and type "equinox" in the Project name > box. > Click Finish to begin importing the project. > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|||||||||||||||||||||||||||
|
mraible
|
Some javascript/style in this post has been disabled (why?)
Yes, you should be able to use the "Ant View" to load up your build.xml and run its targets.Matt On 8/23/07, Scott Purcell <[hidden email]> wrote:
-- http://raibledesigns.com |
|||||||||||||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |