Basically I renamed the source folder to src.

Created a pom.xml

<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>JBookTrader</groupId>
        <artifactId>JBookTrader</artifactId>
        <version>8.0.7-SNAPSHOT</version>
        <packaging>jar</packaging>
        <dependencies>
                <dependency>
                        <groupId>commons-net</groupId>
                        <artifactId>commons-net</artifactId>
                        <version>2.0</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.5</version>
                </dependency>
                <dependency>
                        <groupId>ibapi</groupId>
                        <artifactId>ibapi</artifactId>
                        <version>9.63</version>
                        <scope>system</scope>
                        <systemPath>${basedir}/lib/ibapi-9.63.jar</systemPath>
                </dependency>
                <dependency>
                        <groupId>jcalendar</groupId>
                        <artifactId>jcalendar</artifactId>
                        <version>1.3.3</version>
                        <scope>system</scope>
                        
<systemPath>${basedir}/lib/jcalendar-1.3.3.jar</systemPath>
                </dependency>
                <dependency>
                        <groupId>jfree</groupId>
                        <artifactId>jcommon</artifactId>
                        <version>1.0.16</version>
                        <scope>system</scope>
                        
<systemPath>${basedir}/lib/jcommon-1.0.16.jar</systemPath>
                </dependency>
                <dependency>
                        <groupId>jfree</groupId>
                        <artifactId>jfreechart</artifactId>
                        <version>1.0.13</version>
                        <scope>system</scope>
                        
<systemPath>${basedir}/lib/jfreechart-1.0.13.jar</systemPath>
                </dependency>
        </dependencies>
</project>

deleted libs that are on remote repositories and kept in the lib
folder thoses that are not.

Also added a JBookTrader.launch in the run folder:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration
type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/JBookTrader/src/com/jbooktrader/platform/startup/
JBookTrader.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?
&gt;&#13;&#10;&lt;runtimeClasspathEntry
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/
org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/
JavaSE-1.6&quot; javaProject=&quot;JBookTrader&quot; path=&quot;
1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?
&gt;&#13;&#10;&lt;runtimeClasspathEntry
id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#13;&#10;&lt;memento
exportedEntriesOnly=&quot;false&quot; project=&quot;JBookTrader&quot;/
&gt;&#13;&#10;&lt;/runtimeClasspathEntry&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?
&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/
JBookTrader/resources&quot; path=&quot;3&quot; type=&quot;2&quot;/
&gt;&#13;&#10;"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER"
value="org.maven.ide.eclipse.launchconfig.classpathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="com.jbooktrader.platform.startup.JBookTrader"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS"
value="${project_loc}"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR"
value="JBookTrader"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.maven.ide.eclipse.launchconfig.sourcepathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.STOP_IN_MAIN"
value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-
Xmx512M"/>
</launchConfiguration>


On Jun 11, 12:44 am, John Smith <[email protected]> wrote:
> Well I mavenized the project locally on my comp. It adds a little
> complexity but you feel at home instantly and is future proof.
>
> I should try Hg.
>
> On Jun 10, 11:57 pm, nonlinear <[email protected]> wrote:
>
>
>
>
>
>
>
> > > Yeah, we use Eclipse and Hg because, well, they are better ;)  Definately
> > > the case for Hg.
>
> > I personally prefer IntellijJIdea to Eclipse, but that aside, it should take
> > no longer than 10 minutes to set up JBookTrader in *any *IDE. Maven is
> > intended for managing and reducing complexity, but in the case of JBT, it
> > would actually add complexity.

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en.

Reply via email to