Skip to content

Commit

Permalink
(Master) Remove references to gerrit
Browse files Browse the repository at this point in the history
Signed-off-by: heatherlp <heatherpollard0@gmail.com>
  • Loading branch information
heatherlp committed Nov 27, 2019
1 parent 3db1a01 commit 4414b3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ You may also need to on your <span style="color:red"><b>v2.0</b> </span> Fabric
## Known limitations and restrictions

* TCerts are not supported: JIRA FAB-1401
* HSM not supported. JIRA FAB-3137

<p &nbsp; />
<p &nbsp; />
Expand Down Expand Up @@ -225,7 +224,6 @@ Then run the Integration tests with:
ORG_HYPERLEDGER_FABRIC_SDKTEST_INTEGRATIONTESTS_TLS=true mvn clean install -DskipITs=false -Dmaven.test.failure.ignore=false javadoc:javadoc

### Chaincode endorsement policies
Policies are described in the [Fabric Endorsement Policies document](https://gerrit.hyperledger.org/r/gitweb?p=fabric.git;a=blob;f=docs/endorsement-policies.md;h=1eecf359c12c3f7c1ddc63759a0b5f3141b07f13;hb=HEAD).
You create a policy using a Fabric tool ( an example is shown in [JIRA issue FAB-2376](https://jira.hyperledger.org/browse/FAB-2376?focusedCommentId=21121&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-21121))
and give it to the SDK either as a file or a byte array. The SDK, in turn, will use the policy when it creates chaincode instantiation requests.

Expand Down
21 changes: 9 additions & 12 deletions docs/EclipseSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,25 @@ Set your JAVA\_HOME points to your installation of JDK 1.8 (or above) and make s

1. Download and install the latest Eclipse client

2. If you want to contribute to the project, you will need to make sure you are logged in to Gerrit and have setup your SSH keys. For more information on this, refer to: http://hyperledger-fabric.readthedocs.io/en/latest/Gerrit/lf-account.html
2. Clone the Java SDK from Github.

3. Clone the Java SDK from Gerrit. Make sure SSH and "Clone with commit-msg hook" are selected before you click on the copy to clipboard icon. Make sure the line you have copied has a: && scp .. errit.hyperledger.org:hooks/commit-msg fabric-sdk-java/.git/hooks/
* https://gerrit.hyperledger.org/r/#/admin/projects/fabric-sdk-java

4. Download and Install Maven, if you haven't already.
3. Download and Install Maven, if you haven't already.
* https://maven.apache.org/download.cgi

5. Open up Eclipse to import the project. Go to File > Import > Maven > Existing Maven Project. Point to the location where you cloned the SDK in step 3.
4. Open up Eclipse to import the project. Go to File > Import > Maven > Existing Maven Project. Point to the location where you cloned the SDK in step 2.
* If you see the error: **Failed to read the project description file (.project) for 'fabric-sdk-java'. The file has been changed on disk, and it now contains invalid information. The project will not function properly until the description file is restored to a valid state.** Remove the comments on top of .project file and .classpath and try importing the project again.

6. Hit Finish.
5. Hit Finish.
* If you see error: **No marketplace entries found to handle maven-antrun-plugin:1.4:run in Eclipse. Please see Help for more information.** Continue to hit Finish. We will resolve this later.

7. Download dependencies. Navigate to you fabric-sdk-java folder, and execute the following command: **mvn install -DskipTests**
6. Download dependencies. Navigate to you fabric-sdk-java folder, and execute the following command: **mvn install -DskipTests**

8. After running the command in step 6, you might see the following error in Eclipse: **Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.4:run (execution: default, phase: generate-test-resources).** Right click on the error and choose: **Mark goal run as ignored in eclipse.**
7. After running the command in step 6, you might see the following error in Eclipse: **Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.4:run (execution: default, phase: generate-test-resources).** Right click on the error and choose: **Mark goal run as ignored in eclipse.**

9. Enable Checkstyle. Go to Project > Properties > Checkstyle. Make sure the “Checkstyle active for this project”, “files outside source directories”, and “derived (generated) files” are all checked.
8. Enable Checkstyle. Go to Project > Properties > Checkstyle. Make sure the “Checkstyle active for this project”, “files outside source directories”, and “derived (generated) files” are all checked.

10. Hit “Local Check Configurations”, then select “New”. Choose “External Configuration File”, hit “Browse” and select “checkstyle-config.xml” from the fabric-sdk-java root directory.
9. Hit “Local Check Configurations”, then select “New”. Choose “External Configuration File”, hit “Browse” and select “checkstyle-config.xml” from the fabric-sdk-java root directory.

11. Hit "Apply and Close", and the checkstyle will be applied.
10. Hit "Apply and Close", and the checkstyle will be applied.

Your eclipse environment should be set up now.

0 comments on commit 4414b3a

Please sign in to comment.