Your SlideShare is downloading. ×
Enterprise Maven Repository BOF
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Enterprise Maven Repository BOF

170
views

Published on

Red Hat Enterprise Application Platform 6 comes with Maven repository, meaning customers can now easily migrate from JBoss Application Server 7 to Red Hat JBoss Enterprise Application Platform 6. The …

Red Hat Enterprise Application Platform 6 comes with Maven repository, meaning customers can now easily migrate from JBoss Application Server 7 to Red Hat JBoss Enterprise Application Platform 6. The Maven repository best practices can be used by many Maven-based projects and should be considered as they enable easy upgrades and migrations regardless of using Red Hat JBoss Enterprise Application Platform, Red Hat JBoss SOA Platform, or Red Hat JBoss Data Grid.

In this session, Max Rydahl Andersen will discuss these best practices and their benefits, as well as:

How the Maven repository came to be
What concerns the repository addresses
How a user can best utilize Maven repository

Published in: Technology, Education

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
170
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Enterprise Maven RepositoryBOFMax Rydahl Andersen & Pete MuirRed HatJune 14th 2013Saturday 15 June 13
  • 2. Saturday 15 June 13
  • 3. Saturday 15 June 13
  • 4. Saturday 15 June 13
  • 5. Saturday 15 June 13
  • 6. Saturday 15 June 13
  • 7. Saturday 15 June 13
  • 8. Saturday 15 June 13
  • 9. Saturday 15 June 13
  • 10. Saturday 15 June 13
  • 11. Saturday 15 June 13
  • 12. Saturday 15 June 13
  • 13. Saturday 15 June 13
  • 14. PlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 15. org == comPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 16. org ~= comorg == comPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 17. org ~= com org != comorg == comPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 18. org ~= com org != comorg == comPath toProduct ?PlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 19. PlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 20. DocumentationGetting StartedExamplesBooksSupportMigrationsUpgradesTools/IDEBuildsPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareStandards/GuidelinesTrainingsSaturday 15 June 13
  • 21. • Pervasive Build and Dependency Management Tool• Gives a common language to express projectstructure and which artifacts a project needs andwhich it produces• Perfect for examples, sharing, teams, continuosintegration, …MavenSaturday 15 June 13
  • 22. What is a Maven RepositorySaturday 15 June 13
  • 23. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)Saturday 15 June 13
  • 24. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)• All with a unique GAV IDSaturday 15 June 13
  • 25. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)• All with a unique GAV ID• Group org.richfaces.coreSaturday 15 June 13
  • 26. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)• All with a unique GAV ID• Group org.richfaces.core• Artifact richfaces-api.jarSaturday 15 June 13
  • 27. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)• All with a unique GAV ID• Group org.richfaces.core• Artifact richfaces-api.jar• Version 4.0.2Saturday 15 June 13
  • 28. What is a Maven Repository• A directory of artifacts (jar, doc, source, zip,etc.)• All with a unique GAV ID• Group org.richfaces.core• Artifact richfaces-api.jar• Version 4.0.2• Metadata for dependencies between artifactsSaturday 15 June 13
  • 29. How Maven Works...<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 30. How Maven Works...~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 31. How Maven Works...~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 32. How Maven Works...MavenCentral~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 33. How Maven Works...MavenCentral~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 34. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 35. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Saturday 15 June 13
  • 36. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company XSaturday 15 June 13
  • 37. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company XSaturday 15 June 13
  • 38. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company Xrichfaces-api.jarSaturday 15 June 13
  • 39. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company Xrichfaces-api.jarrichfaces-api.jarSaturday 15 June 13
  • 40. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company Xrichfaces-api.jarrichfaces-api.jarrichfaces-api.jarSaturday 15 June 13
  • 41. How Maven Works...MavenCentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0</version></dependency>pom.xml:Company Xrichfaces-api.jarWhich richfaces-api.jar ?richfaces-api.jarrichfaces-api.jarSaturday 15 June 13
  • 42. richfaces-api.jarjsf-api.jarSaturday 15 June 13
  • 43. hfaces-api.jarjsf-api.jarSaturday 15 June 13
  • 44. BOM POM!<dependencyManagement><dependencies><dependency><groupId>org.jboss.spec</groupId><artifactId>jboss-javaee-6.0</artifactId><version>3.0.0.Final</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement>Dependency Management:<dependencies><dependency><groupId>javax.enterprise</groupId><artifactId>cdi-api</artifactId></dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.0.1</version><scope>test</scope></dependency></dependencies>Dependencies:Saturday 15 June 13
  • 45. Project Wolf!• Enterprise Maven Repository• Every jar, javadoc, source, etc.available with unique GAV• BOM POM for stacks• Across All JBoss EnterpriseMiddleware• EAP 6/WFK 2/JDG 6• .zip distribution• ...and...Saturday 15 June 13
  • 46. http://maven.repository.redhat.com/Saturday 15 June 13
  • 47. How to use ?• Add http://maven.repository.redhat.com/techpreview/all to~/.m2/settings.xml• enterprise=true on archetypes/JBoss Central• http://jboss.org/developerSaturday 15 June 13
  • 48. How Enterprise MavenRepo Works<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 49. How Enterprise MavenRepo Works~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 50. How Enterprise MavenRepo Works~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 51. How Enterprise MavenRepo WorksMaven Central~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 52. How Enterprise MavenRepo WorksMaven Central~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 53. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 54. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 55. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:Saturday 15 June 13
  • 56. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comSaturday 15 June 13
  • 57. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comSaturday 15 June 13
  • 58. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarSaturday 15 June 13
  • 59. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarWhich richfaces-api.jar ?Saturday 15 June 13
  • 60. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarWhich richfaces-api.jar ?richfaces-api.jarSaturday 15 June 13
  • 61. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarWhich richfaces-api.jar ?richfaces-api.jarrichfaces-api.jarSaturday 15 June 13
  • 62. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarWhich richfaces-api.jar ?richfaces-api.jarrichfaces-api.jarSaturday 15 June 13
  • 63. How Enterprise MavenRepo WorksMaven CentralJBoss.org~/.m2/<dependency><groupId>org.richfaces.core</groupId><artifactId>richfaces-core-api</artifactId><version>4.0.0-redhat-1</version></dependency>pom.xml:maven.repository.jboss.comrichfaces-api.jarWhich richfaces-api.jar ?richfaces-api.jarrichfaces-api.jarCompany XSaturday 15 June 13
  • 64. Project Wolf “Rules”1. Unique Group-Artifact-Version (GAV)2. Community version + -redhat-<id>• hibernate-validator-4.2.0.Final-redhat-1• richfaces-api-4.0.0.Final-redhat-33. BOM POM’s for the stack(s)Saturday 15 June 13
  • 65. Saturday 15 June 13
  • 66. Saturday 15 June 13
  • 67. What is there today ?http://maven.repository.redhat.comQuickStarts/ArchetypesJBoss Developer FrameworkThe JBoss WayJBoss Developer StudioForgeArquillianOpenShiftSaturday 15 June 13
  • 68. Saturday 15 June 13
  • 69. PlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareSaturday 15 June 13
  • 70. DocumentationGetting StartedExamplesBooksSupportMigrationsUpgradesTools/IDEBuildsPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareStandards/GuidelinesTrainingsSaturday 15 June 13
  • 71. DocumentationGetting StartedExamplesBooksSupportMigrationsUpgradesTools/IDEBuildsPlatformCandidateReleaseQualityAssuranceJBossEnterpriseMiddlewareStandards/GuidelinesTrainingsSaturday 15 June 13
  • 72. Saturday 15 June 13
  • 73. Saturday 15 June 13
  • 74. Girl-1Saturday 15 June 13
  • 75. Girl-1 Girl-1-redhat-1Saturday 15 June 13
  • 76. Girl-1Girl-1-redhat-1Saturday 15 June 13
  • 77. Saturday 15 June 13
  • 78. Assasin-4Assasin-4-redhat-3Saturday 15 June 13
  • 79. Assasin-4Assasin-4-redhat-3Saturday 15 June 13
  • 80. richfaces-api.jarjsf-api.jarSaturday 15 June 13
  • 81. hfaces-api.jarjsf-api.jarBOM POMorg.jboss.spec.javaee6-3.0.0Saturday 15 June 13
  • 82. Recommendations• Use BOM’s• Install/use a repository manager (Nexus,Artifactory, ...)• Enable source/javadoc for automatic download• burr@redhat.comSaturday 15 June 13
  • 83. https://github.com/jbossas/quickstarthttps://github.com/jbossas/archetypeshttps://github.com/jboss-jdf/jboss-bomQuestions ?http://jboss.org/developerhttp://devstudio.jboss.comhttp://maven.repository.redhat.comSaturday 15 June 13