Hello,
I already have a java project with the core part of my game. I made it as a maven project using a common netbeans.
I open this project in JME SDK (after installing the maven plugin). I have no problem, I can compile and run it.
Now I want to use this maven project as a library on the render part of my game. Here is a screenshot of my problem…
Pretty clear explanation of whats the issue, isn’t it?
Yes yes a very clear explanation…
In fact, I wanted to know how / if there is a tips to bypass this problem.
Add an ant script to compile the jar? Or just reference the jar file it creates.
I think you have to tell maven this project is a library.
You can add the “maven-jar-plugin” in your pom.xml (in the pom of the library project).
Then your project will be released as a jar and you’ll be able to add it as a dependency in another project.
i have something like that in one on my work project (non JME)
[xml]
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
[/xml]