Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven install failure on "Esper Examples TerminalSvc - EAR" #36

Closed
gigafone opened this issue Jan 13, 2016 · 4 comments
Closed

Maven install failure on "Esper Examples TerminalSvc - EAR" #36

gigafone opened this issue Jan 13, 2016 · 4 comments

Comments

@gigafone
Copy link

When I run mvn -DskipTests -Dgpg.skip=true install from the Esper project root directory:

I'm using the current Esper master (5.3.0) on Mac OS X 10.11.3.

[INFO] Reactor Summary:
[INFO]
[INFO] Esper .............................................. SUCCESS [  1.615 s]
[INFO] EsperIO-AMQP ....................................... SUCCESS [  2.689 s]
[INFO] EsperIO-CSV ........................................ SUCCESS [  0.646 s]
[INFO] EsperIO-DB ......................................... SUCCESS [  0.239 s]
[INFO] EsperIO-HTTP ....................................... SUCCESS [  0.350 s]
[INFO] EsperIO-Socket ..................................... SUCCESS [  0.157 s]
[INFO] EsperIO-SpringJMS .................................. SUCCESS [  1.206 s]
[INFO] EsperIO-Stax ....................................... SUCCESS [  0.822 s]
[INFO] Esper Examples ..................................... SUCCESS [  0.002 s]
[INFO] Esper Examples - AutoID ............................ SUCCESS [  0.068 s]
[INFO] Esper Examples - Benchmark ......................... SUCCESS [  0.115 s]
[INFO] Esper Examples - CycleDetect ....................... SUCCESS [  0.194 s]
[INFO] Esper Examples - MarketDataFeed .................... SUCCESS [  0.087 s]
[INFO] Esper Examples - MatchMaker ........................ SUCCESS [  0.075 s]
[INFO] Esper Examples - NamedWinQuery ..................... SUCCESS [  0.057 s]
[INFO] Esper Examples - OHLCPlugInView .................... SUCCESS [  0.066 s]
[INFO] Esper Examples - QualityOfServiceSLA ............... SUCCESS [  0.197 s]
[INFO] Esper Examples - RFIDAssetZone ..................... SUCCESS [  0.137 s]
[INFO] Esper Examples - RuntimeConfig ..................... SUCCESS [  0.055 s]
[INFO] Esper Examples - ServerShell ....................... SUCCESS [  0.068 s]
[INFO] Esper Examples - StockTicker ....................... SUCCESS [  0.115 s]
[INFO] Esper Examples TerminalSvc - Common ................ SUCCESS [  0.408 s]
[INFO] Esper Examples TerminalSvc - Receiver .............. SUCCESS [  0.033 s]
[INFO] Esper Examples TerminalSvc - Sender ................ SUCCESS [  0.036 s]
[INFO] Esper Examples TerminalSvc - MDB ................... SUCCESS [  0.752 s]
[INFO] Esper Examples TerminalSvc - EAR ................... FAILURE [  0.060 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: 10.419 s
[INFO] Finished at: 2016-01-12T14:53:06-08:00
[INFO] Final Memory: 59M/776M
[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]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :example-terminalsvc-ear

It may be that I'm missing a step here; however, I see no mention of this in the documentation.

@gigafone gigafone changed the title Maven install for "Esper Examples TerminalSvc - EAR" Maven install failure on "Esper Examples TerminalSvc - EAR" Jan 13, 2016
@gigafone
Copy link
Author

The problem appears to be in examples/terminalsvc/terminalsvc-ear/pom.xml.

@gigafone
Copy link
Author

Here is what I've gathered:

  • terminalsvc-mdb builds a WAR (not a JAR).
  • terminalsvc-ear depends on terminalsvc-mdb and the current syntax of pom.xml tried to find a JAR. (There is no JAR to be found; see previous point.)

@gigafone
Copy link
Author

Adding <type>war</type> allows the Maven installation to succeed. In context:

<project>
    <modelVersion>4.0.0</modelVersion>
    <name>Esper Examples TerminalSvc - EAR</name>
    <artifactId>example-terminalsvc-ear</artifactId>
    <groupId>com.espertech</groupId>
    <version>1.0</version>
    <packaging>ear</packaging>
    <description>Esper TerminalSvc example - EAR</description>
    <repositories>
        <repository>
            <id>local-repository</id>
            <url>~/.m2/repository</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>com.espertech</groupId>
            <artifactId>example-terminalsvc-mdb</artifactId>
            <version>1.0</version>
            <type>war</type>
        </dependency>
    </dependencies>
    <build>
...

gigafone pushed a commit to gigafone/esper that referenced this issue Jan 13, 2016
@gigafone
Copy link
Author

Fixed here: gigafone@aabb3f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants