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
70 lines
2.3 KiB
XML
70 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>
|
|
<parent>
|
|
<groupId>org.apache.ofbiz</groupId>
|
|
<artifactId>ofbiz-parent</artifactId>
|
|
<version>TRUNK</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>ofbiz-start</artifactId>
|
|
|
|
<build>
|
|
<finalName>ofbiz</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<configuration>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Manifest-Version>1.0</Manifest-Version>
|
|
<Implementation-Title>Apache OFBiz Startup</Implementation-Title>
|
|
<Implementation-Vendor>The Apache Open for Business Project</Implementation-Vendor>
|
|
<Main-Class>org.ofbiz.base.start.Start</Main-Class>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<configuration>
|
|
<tasks>
|
|
<copy todir="${project.parent.relativePath}/..">
|
|
<fileset dir="${project.build.directory}" includes="ofbiz.jar"/>
|
|
</copy>
|
|
</tasks>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|