[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-os / pom.xml
diff --git a/ecomp-portal-FE-os/pom.xml b/ecomp-portal-FE-os/pom.xml
new file mode 100644 (file)
index 0000000..ca81181
--- /dev/null
@@ -0,0 +1,225 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+       <modelVersion>4.0.0</modelVersion>\r
+       <groupId>org.openecomp.portal</groupId>\r
+       <artifactId>ecompportal-FE-os</artifactId>\r
+       <version>1.1</version>\r
+\r
+       <properties>\r
+               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
+               <skipnode>false</skipnode>
+               <skipcopy>false</skipcopy>\r
+       </properties>\r
+\r
+       <build>\r
+               <plugins>\r
+                       <plugin>\r
+                               <artifactId>maven-clean-plugin</artifactId>\r
+                               <version>3.0.0</version>\r
+                               <configuration>\r
+                                       <filesets>\r
+                                               <fileset>\r
+                                                       <directory>${basedir}/client/app</directory>\r
+                                               </fileset>\r
+                                               <fileset>\r
+                                                       <directory>${basedir}/.tmp</directory>\r
+                                               </fileset>\r
+                                       </filesets>\r
+                               </configuration>\r
+                       </plugin>\r
+\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-resources-plugin</artifactId>\r
+                               <version>3.0.2</version>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <id>copy-src</id>\r
+                                               <phase>generate-resources</phase>\r
+                                               <goals>\r
+                                                       <goal>copy-resources</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <outputDirectory>${basedir}/client/app</outputDirectory>\r
+                                                       <overwrite>false</overwrite>\r
+                                                       <skip>${skipcopy}</skip>\r
+                                                       <resources>\r
+                                                               <resource>\r
+                                                                       <directory>${basedir}/client/src</directory>\r
+                                                               </resource>\r
+                                                       </resources>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>copy-common</id>\r
+                                               <phase>generate-resources</phase>\r
+                                               <goals>\r
+                                                       <goal>copy-resources</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <outputDirectory>${basedir}/client/app</outputDirectory>\r
+                                                       <overwrite>false</overwrite>\r
+                                                       <skip>${skipcopy}</skip>\r
+                                                       <resources>\r
+                                                               <resource>\r
+                                                                       <directory>../ecomp-portal-FE-common/client/app</directory>\r
+                                                               </resource>\r
+                                                       </resources>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <!-- copy b2b library into att template -->\r
+                                       <execution>\r
+                                               <id>copy-bower-components-external</id>\r
+                                               <phase>generate-resources</phase>\r
+                                               <goals>\r
+                                                       <goal>copy-resources</goal>\r
+                                               </goals>\r
+                                               <configuration>\r
+                                                       <outputDirectory>${basedir}/client/bower_components_external</outputDirectory>\r
+                                                       <overwrite>false</overwrite>\r
+                                                       <skip>${skipcopy}</skip>\r
+                                                       <resources>\r
+                                                               <resource>\r
+                                                                       <directory>../ecomp-portal-FE-common/client/bower_components_external</directory>\r
+                                                               </resource>\r
+                                                       </resources>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                               </executions>\r
+                       </plugin>\r
+\r
+                       <plugin>\r
+                               <groupId>com.github.eirslett</groupId>\r
+                               <artifactId>frontend-maven-plugin</artifactId>\r
+                               <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->\r
+                               <version>1.3</version>\r
+                               <configuration>\r
+                                       <skip>${skipnode}</skip>\r
+                                       <nodeVersion>v7.5.0</nodeVersion>\r
+                                       <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>\r
+                                       <npmDownloadRoot>https://nodejs.org/dist/npm/</npmDownloadRoot>\r
+                                       <installDirectory>./</installDirectory>\r
+                               </configuration>\r
+                               <executions>\r
+                                       <execution>\r
+                                               <!-- optional: you don't really need execution ids, but it looks nice \r
+                                                       in your build log. -->\r
+                                               <id>install node and npm</id>\r
+                                               <goals>\r
+                                                       <goal>install-node-and-npm</goal>\r
+                                               </goals>\r
+                                               <phase>generate-resources</phase>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>npm install</id>\r
+                                               <goals>\r
+                                                       <goal>npm</goal>\r
+                                               </goals>\r
+\r
+                                               <phase>generate-resources</phase>\r
+\r
+                                               <configuration>\r
+                                                       <arguments>install</arguments>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>npm install bower</id>\r
+                                               <goals>\r
+                                                       <goal>npm</goal>\r
+                                               </goals>\r
+\r
+                                               <phase>generate-resources</phase>\r
+\r
+                                               <configuration>\r
+                                                       <arguments>install bower</arguments>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>npm install grunt-cli</id>\r
+                                               <goals>\r
+                                                       <goal>npm</goal>\r
+                                               </goals>\r
+\r
+                                               <phase>generate-resources</phase>\r
+\r
+                                               <configuration>\r
+                                                       <arguments>install grunt-cli</arguments>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>bower install</id>\r
+                                               <goals>\r
+                                                       <goal>bower</goal>\r
+                                               </goals>\r
+\r
+                                               <configuration>\r
+                                                       <arguments>install --allow-root</arguments>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                                       <execution>\r
+                                               <id>grunt build</id>\r
+                                               <goals>\r
+                                                       <goal>grunt</goal>\r
+                                               </goals>\r
+\r
+                                               <phase>generate-resources</phase>\r
+\r
+                                               <configuration>\r
+                                                       <arguments>build --env=integ</arguments>\r
+                                               </configuration>\r
+                                       </execution>\r
+\r
+                               </executions>\r
+                       </plugin>\r
+                        <!--    \r
+                       <plugin>\r
+                           <groupId>org.codehaus.mojo</groupId>\r
+                           <artifactId>license-maven-plugin</artifactId>\r
+                           <version>1.10</version>\r
+                           <configuration>\r
+                             <encoding>UTF-8</encoding>\r
+                               <licenseName>my_license</licenseName>\r
+                               <licenseResolver>${project.baseUri}/license</licenseResolver>\r
+                               <inceptionYear>2017</inceptionYear>\r
+                               <organizationName>AT&amp;T Intellectual Property</organizationName>\r
+                               <projectName>ECOMP Portal</projectName> \r
+                               <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage> \r
+                               <processStartTag>================================================================================</processStartTag>\r
+                               <sectionDelimiter>================================================================================</sectionDelimiter>\r
+                               <processEndTag>================================================================================</processEndTag> \r
+                               <roots>\r
+                                       <root>client/src</root>\r
+                               </roots>\r
+                               <excludes>\r
+                                       <exclude>*.png</exclude>\r
+                                       <exclude>*.drl</exclude>\r
+                                       <exclude>*.gif</exclude>\r
+                                       <exclude>*.jpeg</exclude>\r
+                                       <exclude>*.jpg</exclude>\r
+                                       <exclude>*.bmp</exclude>\r
+                                       <exclude>*.ico</exclude>\r
+                                       <exclude>*.svg</exclude>\r
+                               </excludes>\r
+                           </configuration>\r
+                           <executions>\r
+                               <execution>\r
+                                   <id>first</id>\r
+                                   <goals>\r
+                                       <goal>update-file-header</goal>\r
+                                   </goals>\r
+                                   <phase>process-sources</phase>\r
+                               </execution>\r
+                           </executions>\r
+                       </plugin>\r
+                       -->\r
+               </plugins>\r
+       </build>\r
+</project>
\ No newline at end of file