I would like to read the stash source code and would really like to use the eclipse features to navigate in the code.
Unfortunately I did not manage to successfully import the code into eclipse.
I have eclipse with maven plugin installed. I tried to import the stash-parent project as an "existing maven project", but eclipse was not able to resolve all maven dependencies. (For example `lesscss-maven-plugin:1.5.1:compile` and `maven-assembly-plugin:2.2:single` complain about "No marketplace entries found to handle ... in Eclipse".)
I also tried to set the maven3 installation provided by the stash sources in eclipse and copied the settings.xml into that maven3 installation to allow eclipse to use it.
Unfortunately this did not help. Also setting `localrepo` as a local repo in settings.xml did not help.
What is the correct way to enable me to browse the stash source code with eclipse?
PS: Building stash from command line works fine.
The way we make our source distribution is automated, and is targetted to build from maven. There really isn't a correct way to load into Eclipse. I might recommend trying to remove any maven plugin that Eclipse is unable to find and see if that helps.
In the documentation it is written "to develop Stash in your IDE create a new project from the
stash-parent/pom.xml". What kind of IDE does the documentation refer to if eclipse is not supported? It is fine to build the code using maven, but there really should be a good way to navigate (and maybe edit) the code before building. Without IDE support it is really a pain to understand complex inherience situations.
It might be referring to IDEA, as that is what the majority of developers use at Atlassian. I'm afraid I couldn't say though.
Looking again now those plugins should actually be available externally, if you're using the Atlassian SDK Maven to build it's probably using it's own settings.xml. If you can the following 'public' repository to Eclipse that may fix the error you're seeing:
Well, the build script calls
M2_HOME="$PWD/maven3/apache-maven-3.0.5" PATH=$M2_HOME/bin:$JAVA_HOME/bin:$PATH MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m" mvn clean install -f "stash-parent/pom.xml" -Pfull -Dmaven.test.skip -s $SETTINGSFILE -Dmaven.repo.local="`pwd`/$LOCALREPO"
which runs fine and is able to resolve all depenencies. This explicitly specifies the maven installation, the settings file and the local repository.
I was hoping to resemble this in eclipse, but didn't manage to do so. I was hoping someone else already was working with that stash code before and could give me a hint. Maybe supporting something like `mvn eclipse:eclipse` would be fine. (but this seems not to work either.)
I suspect my maven repository may be seeded, so this might not be a fair example, but the following seemed to work:
mvn -s ../settings.xml -e org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
(I had to use a different version of the eclipse-plugin because of the following)
What kind of errors do you see if you run eclipse:eclipse with our settings.xml file?
Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site – to help teams like yours make more informed decisions when choosing an inc...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events