使用 Maven 的 Esper Tech 安装 - 无法访问传输 - 也许是 jar 问题?
Esper Tech Installation using Maven - No access on transport - Maybe jar issue?
我已经从你的网站上读了很多,但这是我第一次通过搜索真的找不到解决我的问题的方法。
我尝试在 Windows 8.1 上安装 Esper Tech Maven 3.3。经过许多问题,我也有这个。似乎是 Esper.
的 2 个源设置文件之间的 依赖问题
下面是我的事实。
1.Maven的输出(不是所有输出,但只针对这两个库)
[INFO] ----------------
[INFO] Building Esper Examples TerminalSvc - MDB 1.0
[INFO] ----------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example-terminalsvc-mdb ---
[INFO] Deleting C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ example-terminalsvc-mdb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ example-terminalsvc-mdb ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 8 source files to C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ example-terminalsvc-mdb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\etc
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ example-terminalsvc-mdb ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 2 source files to C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ example-terminalsvc-mdb ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ example-terminalsvc-mdb ---
[INFO] Packaging webapp
[INFO] Assembling webapp [example-terminalsvc-mdb] in [C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\src\main\webapp]
[INFO] Webapp assembled in [922 msecs]
[INFO] Building war: C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ example-terminalsvc-mdb ---
[INFO] Installing C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0.war to C:\Users\marianna\.m2\repository\com\espertech\example-terminalsvc-mdb.0\example-terminalsvc-mdb-1.0.war
[INFO] Installing C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\pom.xml to C:\Users\marianna\.m2\repository\com\espertech\example-terminalsvc-mdb.0\example-terminalsvc-mdb-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esper Examples TerminalSvc - EAR 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/com/espertech/example-terminalsvc-mdb/1.0/example-terminalsvc-mdb-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Esper .............................................. SUCCESS [02:52 min]
[INFO] EsperIO-AMQP ....................................... SUCCESS [ 16.781 s]
[INFO] EsperIO-CSV ........................................ SUCCESS [ 6.984 s]
[INFO] EsperIO-DB ......................................... SUCCESS [ 4.047 s]
[INFO] EsperIO-HTTP ....................................... SUCCESS [ 6.438 s]
[INFO] EsperIO-Socket ..................................... SUCCESS [ 3.078 s]
[INFO] EsperIO-SpringJMS .................................. SUCCESS [ 13.187 s]
[INFO] EsperIO-Stax ....................................... SUCCESS [ 5.032 s]
[INFO] Esper Examples ..................................... SUCCESS [ 0.062 s]
[INFO] Esper Examples - AutoID ............................ SUCCESS [ 1.516 s]
[INFO] Esper Examples - Benchmark ......................... SUCCESS [ 2.015 s]
[INFO] Esper Examples - CycleDetect ....................... SUCCESS [ 1.485 s]
[INFO] Esper Examples - MarketDataFeed .................... SUCCESS [ 1.312 s]
[INFO] Esper Examples - MatchMaker ........................ SUCCESS [ 1.656 s]
[INFO] Esper Examples - NamedWinQuery ..................... SUCCESS [ 0.985 s]
[INFO] Esper Examples - OHLCPlugInView .................... SUCCESS [ 1.265 s]
[INFO] Esper Examples - QualityOfServiceSLA ............... SUCCESS [ 1.313 s]
[INFO] Esper Examples - RFIDAssetZone ..................... SUCCESS [ 2.297 s]
[INFO] Esper Examples - RuntimeConfig ..................... SUCCESS [ 1.062 s]
[INFO] Esper Examples - ServerShell ....................... SUCCESS [ 1.500 s]
[INFO] Esper Examples - StockTicker ....................... SUCCESS [ 1.172 s]
[INFO] Esper Examples TerminalSvc - Common ................ SUCCESS [ 0.516 s]
[INFO] Esper Examples TerminalSvc - Receiver .............. SUCCESS [ 0.359 s]
[INFO] Esper Examples TerminalSvc - Sender ................ SUCCESS [ 0.625 s]
[INFO] Esper Examples TerminalSvc - MDB ................... SUCCESS [ 4.547 s]
[INFO] Esper Examples TerminalSvc - EAR ................... FAILURE [ 7.672 s]
[INFO] Esper Examples TerminalSvc ......................... SKIPPED
[INFO] Esper Examples - TerminalServiceJSE ................ SKIPPED
[INFO] Esper Examples - Transaction ....................... SKIPPED
[INFO] Esper Examples - Trivia Geeks Club ................. SKIPPED
[INFO] Esper .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:20 min
[INFO] Finished at: 2015-12-22T14:06:23+02:00
[INFO] Final Memory: 71M/350M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project example-terminalsvc-ear: Could not resolve dependencies for project com.espertech:example-terminalsvc-ear:ear:1.0: Could not transfer artifact com.espertech:example-terminalsvc-mdb:jar:1.0 from/to local-repository (~/.m2/repository): Cannot access ~/.m2/repository with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access ~/.m2/repository using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 1]
[ERROR]
2.My编译命令如下:
mvn clean install -DskipTests=true -Dgpg.skip=true > log.txt
(gpg 是我的第一个大问题)
3.pom.xml 来自上一个项目 'Esper Examples TerminalSvc - EAR' for dependency part
<dependencies>
<dependency>
<groupId>com.espertech</groupId>
<artifactId>example-terminalsvc-mdb</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
我搜索问题的步骤:
./~m2/repository 的权利 -> 我做到了 public(我知道这不是什么好策略)
手动下载 .jar 并将其粘贴到目标文件夹。但是link有404错误!
我想弄清楚为什么项目编译后找不到.jar。但是这个编译结果 .war 不是 .jar
我会错过什么?
非常感谢您的帮助!!
在示例父级 pom 级别 (~/esper/examples/terminalsvc/) 尝试做
mvn clean package -DskipTests=true
项目构建良好。
INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ esper-terminalsvc ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Esper Examples TerminalSvc - Common ................ SUCCESS [ 9.449 s]
[INFO] Esper Examples TerminalSvc - Client ................ SUCCESS [ 0.298 s]
[INFO] Esper Examples TerminalSvc - Receiver .............. SUCCESS [ 0.101 s]
[INFO] Esper Examples TerminalSvc - MDB ................... SUCCESS [ 0.581 s]
[INFO] Esper Examples TerminalSvc - EAR ................... SUCCESS [ 0.811 s]
[INFO] Esper Examples TerminalSvc ......................... SUCCESS [ 0.002 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.382 s
[INFO] Finished at: 2015-12-23T13:29:26+01:00
[INFO] Final Memory: 22M/229M
更新
请编辑文件 /esper/examples/terminalsvc/terminalsvc-ear/pom.xml 并在依赖项中添加行 war ,如下所示:
<dependencies>
<dependency>
<groupId>com.espertech</groupId>
<artifactId>example-terminalsvc-mdb</artifactId>
<version>1.0</version>
<type>war</type>
</dependency>
</dependencies>
我已经从你的网站上读了很多,但这是我第一次通过搜索真的找不到解决我的问题的方法。
我尝试在 Windows 8.1 上安装 Esper Tech Maven 3.3。经过许多问题,我也有这个。似乎是 Esper.
的 2 个源设置文件之间的 依赖问题下面是我的事实。
1.Maven的输出(不是所有输出,但只针对这两个库)
[INFO] ----------------
[INFO] Building Esper Examples TerminalSvc - MDB 1.0
[INFO] ----------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ example-terminalsvc-mdb ---
[INFO] Deleting C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ example-terminalsvc-mdb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ example-terminalsvc-mdb ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 8 source files to C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ example-terminalsvc-mdb ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\etc
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ example-terminalsvc-mdb ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 2 source files to C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ example-terminalsvc-mdb ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ example-terminalsvc-mdb ---
[INFO] Packaging webapp
[INFO] Assembling webapp [example-terminalsvc-mdb] in [C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\src\main\webapp]
[INFO] Webapp assembled in [922 msecs]
[INFO] Building war: C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ example-terminalsvc-mdb ---
[INFO] Installing C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\target\example-terminalsvc-mdb-1.0.war to C:\Users\marianna\.m2\repository\com\espertech\example-terminalsvc-mdb.0\example-terminalsvc-mdb-1.0.war
[INFO] Installing C:\Users\marianna\esper-master\examples\terminalsvc\terminalsvc-mdb\pom.xml to C:\Users\marianna\.m2\repository\com\espertech\example-terminalsvc-mdb.0\example-terminalsvc-mdb-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Esper Examples TerminalSvc - EAR 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/com/espertech/example-terminalsvc-mdb/1.0/example-terminalsvc-mdb-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Esper .............................................. SUCCESS [02:52 min]
[INFO] EsperIO-AMQP ....................................... SUCCESS [ 16.781 s]
[INFO] EsperIO-CSV ........................................ SUCCESS [ 6.984 s]
[INFO] EsperIO-DB ......................................... SUCCESS [ 4.047 s]
[INFO] EsperIO-HTTP ....................................... SUCCESS [ 6.438 s]
[INFO] EsperIO-Socket ..................................... SUCCESS [ 3.078 s]
[INFO] EsperIO-SpringJMS .................................. SUCCESS [ 13.187 s]
[INFO] EsperIO-Stax ....................................... SUCCESS [ 5.032 s]
[INFO] Esper Examples ..................................... SUCCESS [ 0.062 s]
[INFO] Esper Examples - AutoID ............................ SUCCESS [ 1.516 s]
[INFO] Esper Examples - Benchmark ......................... SUCCESS [ 2.015 s]
[INFO] Esper Examples - CycleDetect ....................... SUCCESS [ 1.485 s]
[INFO] Esper Examples - MarketDataFeed .................... SUCCESS [ 1.312 s]
[INFO] Esper Examples - MatchMaker ........................ SUCCESS [ 1.656 s]
[INFO] Esper Examples - NamedWinQuery ..................... SUCCESS [ 0.985 s]
[INFO] Esper Examples - OHLCPlugInView .................... SUCCESS [ 1.265 s]
[INFO] Esper Examples - QualityOfServiceSLA ............... SUCCESS [ 1.313 s]
[INFO] Esper Examples - RFIDAssetZone ..................... SUCCESS [ 2.297 s]
[INFO] Esper Examples - RuntimeConfig ..................... SUCCESS [ 1.062 s]
[INFO] Esper Examples - ServerShell ....................... SUCCESS [ 1.500 s]
[INFO] Esper Examples - StockTicker ....................... SUCCESS [ 1.172 s]
[INFO] Esper Examples TerminalSvc - Common ................ SUCCESS [ 0.516 s]
[INFO] Esper Examples TerminalSvc - Receiver .............. SUCCESS [ 0.359 s]
[INFO] Esper Examples TerminalSvc - Sender ................ SUCCESS [ 0.625 s]
[INFO] Esper Examples TerminalSvc - MDB ................... SUCCESS [ 4.547 s]
[INFO] Esper Examples TerminalSvc - EAR ................... FAILURE [ 7.672 s]
[INFO] Esper Examples TerminalSvc ......................... SKIPPED
[INFO] Esper Examples - TerminalServiceJSE ................ SKIPPED
[INFO] Esper Examples - Transaction ....................... SKIPPED
[INFO] Esper Examples - Trivia Geeks Club ................. SKIPPED
[INFO] Esper .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:20 min
[INFO] Finished at: 2015-12-22T14:06:23+02:00
[INFO] Final Memory: 71M/350M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project example-terminalsvc-ear: Could not resolve dependencies for project com.espertech:example-terminalsvc-ear:ear:1.0: Could not transfer artifact com.espertech:example-terminalsvc-mdb:jar:1.0 from/to local-repository (~/.m2/repository): Cannot access ~/.m2/repository with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access ~/.m2/repository using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -> [Help 1]
[ERROR]
2.My编译命令如下: mvn clean install -DskipTests=true -Dgpg.skip=true > log.txt (gpg 是我的第一个大问题)
3.pom.xml 来自上一个项目 'Esper Examples TerminalSvc - EAR' for dependency part
<dependencies>
<dependency>
<groupId>com.espertech</groupId>
<artifactId>example-terminalsvc-mdb</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
我搜索问题的步骤:
./~m2/repository 的权利 -> 我做到了 public(我知道这不是什么好策略)
手动下载 .jar 并将其粘贴到目标文件夹。但是link有404错误!
我想弄清楚为什么项目编译后找不到.jar。但是这个编译结果 .war 不是 .jar
我会错过什么?
非常感谢您的帮助!!
在示例父级 pom 级别 (~/esper/examples/terminalsvc/) 尝试做
mvn clean package -DskipTests=true
项目构建良好。
INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ esper-terminalsvc ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Esper Examples TerminalSvc - Common ................ SUCCESS [ 9.449 s]
[INFO] Esper Examples TerminalSvc - Client ................ SUCCESS [ 0.298 s]
[INFO] Esper Examples TerminalSvc - Receiver .............. SUCCESS [ 0.101 s]
[INFO] Esper Examples TerminalSvc - MDB ................... SUCCESS [ 0.581 s]
[INFO] Esper Examples TerminalSvc - EAR ................... SUCCESS [ 0.811 s]
[INFO] Esper Examples TerminalSvc ......................... SUCCESS [ 0.002 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.382 s
[INFO] Finished at: 2015-12-23T13:29:26+01:00
[INFO] Final Memory: 22M/229M
更新
请编辑文件 /esper/examples/terminalsvc/terminalsvc-ear/pom.xml 并在依赖项中添加行 war ,如下所示:
<dependencies>
<dependency>
<groupId>com.espertech</groupId>
<artifactId>example-terminalsvc-mdb</artifactId>
<version>1.0</version>
<type>war</type>
</dependency>
</dependencies>