score:1
i automated setting up eclipse, including importing existing maven projects.
first run mvn eclipse:eclipse on the project
mvn eclipse:eclipse:
next grab an eclipse plugin that will perform the headless import of projects into the workspace:
wget https://github.com/snowch/test.myapp/raw/master/test.myapp_1.0.0.jar
copy the above jar to your /eclipse/dropins/
folder.
next find all the directories that can be imported into eclipse and append them with '-import'
imports=$(find . -type f -name .project)
# although it is possible to import multiple directories with one
# invocation of the test.myapp.app, this fails if one of the imports
# was not successful. using a for loop is slower, but more robust
for item in ${imports[*]};
do
import="$(dirname $item)/"
echo "importing ${import}"
# perform the import using the test.myapp_1.0.0.jar
eclipse -nosplash \
-application test.myapp.app \
-data $workspace \
-import $import
done
finally, add the m2_repo variable to the workspace
mvn eclipse:configure-workspace
Source: stackoverflow.com
Related Query
- Automating the Import of Existing Maven Project Into Eclipse
- The maven project generated by gwt-maven-plugin can't be imported into eclipse via import existing maven project
- How to import existing android project into the eclipse
- I integrated maven in eclipse . then i imported a existing maven project using import wizard. i got the following error please help me out
- Import existing Gradle Git project into Eclipse
- Import an existing Git project into Eclipse without a .project file
- Maven root pom.xml marked as red when importing existing project into eclipse
- Import Maven multi-module project into Eclipse
- Import an existing SVN project into Eclipse
- Import Maven Project to Eclipse and Fix the errors
- Importing an existing maven Project into Eclipse
- m2eclipse: add group id to project name when importing existing maven project into Eclipse
- Eclipse : Import maven project into current workspace location
- Problems by import of a multiple modules maven 2 project into eclipse workspace
- How do I import a multi module Maven project from SVN into Eclipse (Indigo) so that child modules can be built independently?
- Disabling the Maven project builder when importing projects into eclipse
- import existing Go project into eclipse
- How to import a project into eclipse which is in the given structure
- import existing project into eclipse using plugin or javacode
- Uploading an Existing Maven Eclipse Project into GitHub
- Import project written in maven into Eclipse
- How can you import M2E Maven projects into Eclipse from the command line?
- Import a GitHub library into an existing Eclipse project
- Import existing project into eclipse, it auto combine old version with the new one
- How to import an existing Android Library project into Eclipse workspace
- Import Maven project "YCSB" into Eclipse
- Empty folders when import existing Android project into Eclipse
- Import existing mult-rep CVS project folder into Eclipse
- How to import an Android Library Project created on Android Studio into existing Eclipse Android App Project, as library?
- Import Maven project into eclipse looping
More Query from same tag
- Use JDK from Eclipse Project
- Eclipse: How to convert a web project into an AspectJ project and weave and run it using the AJDT plug in?
- how see files of project after cloning git repository with eclipse?
- FailOnMissingWebXml error when validating pom.xml in Eclipse
- /bin/sh: mpic++ command not found in Eclipse for Parallel Application Developers
- Refactoring the data type of a variable which is used across multiple modules of an application
- Test Bundle cannot find the Bundle to be tested
- Having API 7 installed makes eclipse unable to build any android code at all
- Eclipse + android SDK: error when launching apps for test
- Resolving java.lang.OutOfMemoryError: Java heap space
- Referenced library not pushed
- Opening many files in Eclipse with a script for formatting
- How to keep an Eclipse installation in sync between multiple platforms with Dropbox?
- What is meant by src in Java Eclipse?
- How do I break down a large merge with conflicts into more manageable chunks?
- How to use MPI (openMPI or MPICH2) with minGW - GNU gfortran compiler
- How to start applet in eclipse by providing eclipse with an html file?
- Could not find artifact org.scalatest:maven-scalatest-plugin:jar:1.0
- Eclipse RCP: Add image to list
- Eclipse app remove button and automate procedure
- bring checked check box values to other pages
- Importing project in Eclipse from external project
- Using a bean class from a servlet in a Java EE application
- Eclipse keeps terminating my project when unauthorized to
- Regexp to match an XML constellation
- JRE Oracle Corporation/13 is not supported, advanced source lookup disabled on Eclipse 06-2019 and Java 13
- Is there a way to debug an android application on the phone without the USB connection?
- Opening USB communication
- Unexpected behavior on eclipse console for C language
- SWT StyledText - How To Indent/Un-Indent Selected Text With Tab Or Shift+Tab Keys