and packaging. There's a workable parent-pom, and I have converted
framework/start to maven as well. To use this, the following commands
are useful:
* mvn clean
* mvn compile
* mvn package
All 3 can be run in either ${ofbiz.home.dir}, or in framework/start.
The trick that made this simple, was that I was able to redefine maven's
default file layout away from src/main/java and target/*, to something
more ofbiz specific. This way of doing things is just to get things
going; eventually, we should adopt a more standard maven like layout.
Another thing not dealt with in these first 2 files, is downloading of
dependencies. The top-level and framework/start have no external
requirements, so it allowed me to get going quite quickly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674216 13f79535-47bb-0310-9956-ffa450edef68
77 lines
2.3 KiB
XML
77 lines
2.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<project>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>org.apache.ofbiz</groupId>
|
|
<artifactId>ofbiz-parent</artifactId>
|
|
<version>TRUNK</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<build>
|
|
<directory>build/lib</directory>
|
|
<outputDirectory>build/classes</outputDirectory>
|
|
<finalName>${artifactId}</finalName>
|
|
<sourceDirectory>src</sourceDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src</directory>
|
|
<includes>
|
|
<include>**/*.properties</include>
|
|
<include>**/*.groovy</include>
|
|
<include>**/*.xml</include>
|
|
<include>**/*.bsh</include>
|
|
<include>**/*.logic</include>
|
|
<include>**/*.hs</include>
|
|
<include>**/*.jacl</include>
|
|
<include>**/*.py</include>
|
|
<include>META-INF/**</include>
|
|
</includes>
|
|
</resource>
|
|
<resource>
|
|
<directory>${project.parent.relativePath}/..</directory>
|
|
<includes>
|
|
<include>LICENSE</include>
|
|
<include>NOTICE</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
<scriptSourceDirectory>scripts</scriptSourceDirectory>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>1.7</source>
|
|
<target>1.7</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<reporting>
|
|
<outputDirectory>target/site</outputDirectory>
|
|
</reporting>
|
|
|
|
<modules>
|
|
<module>framework/start</module>
|
|
</modules>
|
|
</project>
|