Skip to content

Commit

Permalink
Merged PR 604: Nexus Deployment Code for Framework and Archetypes
Browse files Browse the repository at this point in the history
Moving over from the deprecated repo.  Was left in a feature branch.
  • Loading branch information
jason-edstrom committed Sep 12, 2018
2 parents 48cda77 + 46f82dd commit 6f54548
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 5 deletions.
18 changes: 17 additions & 1 deletion Archetypes/Appium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@
</releases>
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
Expand All @@ -30,4 +46,4 @@
</dependency>
</dependencies>

</project>
</project>
75 changes: 75 additions & 0 deletions Archetypes/Resources/appium-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.magenic.jmaqs.archetypes</groupId>
<artifactId>jmaqs-appium-project-archetype</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<name>jmaqs-appium-project-archetype</name>

<distributionManagement>
<snapshotRepository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Snapshots</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-snapshots/</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
<repository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Releases</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-releases/</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>3.0.1</version>
</extension>
</extensions>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://10.155.45.36:8081/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>
</project>
75 changes: 75 additions & 0 deletions Archetypes/Resources/selenium-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.magenic.jmaqs.archetypes</groupId>
<artifactId>jmaqs-selenium-project-archetype</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<name>jmaqs-selenium-project-archetype</name>

<distributionManagement>
<snapshotRepository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Snapshots</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-snapshots/</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
<repository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Releases</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-releases/</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>3.0.1</version>
</extension>
</extensions>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://10.155.45.36:8081/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>
</project>
75 changes: 75 additions & 0 deletions Archetypes/Resources/webservices-pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.magenic.jmaqs.archetypes</groupId>
<artifactId>jmaqs-webservices-project-archetype</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<name>jmaqs-webservices-project-archetype</name>

<distributionManagement>
<snapshotRepository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Snapshots</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-snapshots/</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
<repository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Releases</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-releases/</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>

<build>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
<version>3.0.1</version>
</extension>
</extensions>

<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://10.155.45.36:8081/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
</plugins>
</build>
</project>
17 changes: 16 additions & 1 deletion Archetypes/Selenium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
Expand All @@ -30,4 +45,4 @@
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class LoginPageModel extends BasePageModel {
/**
* The URL for the page.
*/
private static final String PAGE_URL = SeleniumConfig.getWebSiteBase() + "loginPage.html";
private static final String PAGE_URL = SeleniumConfig.getWebSiteBase() + "/Static/Training1/loginpage.html";

/**
* Username Field Selector.
Expand Down Expand Up @@ -107,4 +107,4 @@ public boolean isPageLoaded() {
return this.testObject.getWebDriver().findElement(USERNAME_INPUT).isDisplayed()
&& this.testObject.getWebDriver().findElement(PASSWORD_INPUT).isDisplayed();
}
}
}
18 changes: 17 additions & 1 deletion Archetypes/WebService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,27 @@
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<compilerVersion>1.8</compilerVersion>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.magenic.jmaqs.webservices</groupId>
<artifactId>jmaqs-webservices</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
</project>
44 changes: 44 additions & 0 deletions Framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,24 @@
</repository>
</repositories>

<distributionManagement>
<snapshotRepository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Snapshots</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-snapshots/</url>
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
<repository>
<id>jmaqs-internal</id>
<name>JMAQS Internal Releases</name>
<url>http://10.155.45.36:8081/repository/jmaqs-internal-releases/</url>
<uniqueVersion>true</uniqueVersion>
</repository>
</distributionManagement>

<properties>
<vsts_username>Username</vsts_username>
<vsts_password>Password</vsts_password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<reporting>
Expand All @@ -48,6 +65,33 @@
</reporting>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
<configuration>
<serverId>nexus</serverId>
<nexusUrl>http://10.155.45.36:8081/nexus/</nexusUrl>
<skipStaging>true</skipStaging>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand Down
Loading

0 comments on commit 6f54548

Please sign in to comment.