Skip to content

Instantly share code, notes, and snippets.

@ioggstream
Last active August 29, 2015 14:06
Show Gist options
  • Save ioggstream/3a6cb1b0f3cf319a5431 to your computer and use it in GitHub Desktop.
Save ioggstream/3a6cb1b0f3cf319a5431 to your computer and use it in GitHub Desktop.
maven-cheatsheet.xml
<!-- disable some repository from a catch-all mirror -->
<mirrors>
<mirror>
<id>insideFirewallRepo</id>
<mirrorOf>!nexus-repo-releases,!nexus-repo-snapshots,*</mirrorOf>
<name>Mirror of the world outside.</name>
<url>http://nexus_url/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<!-- add dependencies in MANIFEST.MF via pom.xm-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Dependencies>asm.asm</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- Arquillian profile with Weld -->
<profiles>
<profile>
<id>arq-weld-ee</id>
<dependencyManagement>
<dependencies>
<!-- arquillian tests -->
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.5.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Arquillian junit container -->
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<!-- Arquillian Maven dependency resolver -->
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-api</artifactId>
<version>2.0.0-alpha-5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<version>2.0.0-alpha-5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-api-maven</artifactId>
<version>2.0.0-alpha-5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-weld-ee-embedded-1.1</artifactId>
<version>1.0.0.CR3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-core</artifactId>
<version>1.1.5.Final</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
<scope>test</scope>
</dependency>
</dependencies>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment