You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+23-2
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,32 @@ cli-java is a collection of commandline messaging clients suitable for interacti
10
10
11
11
## Getting started
12
12
13
-
When using IntelliJ IDEA Ultimate Edition, select "Open" (not "Import Project") option to open project and delete OSGi facets in File >> Project Structure >> Project Settings >> Facets.
14
-
15
13
mvn clean package # compile without executing external tests (tests that require broker)
16
14
java -jar cli-qpid-jms/target/cli-qpid-jms-*.jar sender -b amqp://127.0.0.1:5672 -a myQ --log-msgs dict
17
15
16
+
### IntelliJ notes
17
+
18
+
[Open an existing Maven project](https://www.jetbrains.com/help/idea/maven-support.html#maven_import_project_start).
19
+
20
+
#### Common issues
21
+
22
+
* OSGi problems (don't remember what those actually were)
23
+
24
+
When using IntelliJ IDEA Ultimate Edition, select "Open" (not "Import Project") option to open project and delete OSGi facets in File >> Project Structure >> Project Settings >> Facets.
25
+
26
+
*`Unresolved reference: DaggerFakeClient`, or anything else with `Dagger` in it
27
+
28
+
The class is generated by the [Dagger](https://github.com/google/dagger) annotation processor.
29
+
Run `mvn compile` on the command line so that Maven generates what is needed.
30
+
31
+
The IDE action on the Maven tab to generate sources does not actually generate what is needed for Kotlin tests, because of a [missing feature](https://youtrack.jetbrains.com/issue/KT-15040).
32
+
33
+
*`Error: Unable to access jarfile [...]/target/cli-qpid-jms-1.2.2-SNAPSHOT-2.2.0.jar`
34
+
35
+
IntelliJ is happy to run [failsafe](https://maven.apache.org/surefire/maven-failsafe-plugin/) tests without doing the (equivalent of) `mvn package` first.
36
+
This means that the jars used in the `*ITCase` tests may be nonexistent (or out of date).
37
+
Run `mvn package -DskipTests` yourself to fix this.
0 commit comments