Bug #138

Custom classes not packaged by Maven

Added by Jérôme Schell 9 months ago. Updated 3 months ago.

Status:Closed Start:03/11/2009
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:Sample
Target version:1.1.x branch
Problem in version:

Description

When running commands "make-lsc-archive.sh" or "mvn package", custom classes located in src/impl are not taken into account.
The problem seems a bit hard to reproduce.

When running:

mvn clean && ant lsc::jar && mvn package

The file "target/lsc-sample-1.1.1.jar" contains the custom classes.

When running:

mvn clean && mvn package

The file "target/lsc-sample-1.1.1.jar" does not contain the custom classes.

Running a "Build project" on the lsc-sample project produces the following error:

Build errors for lsc-sample; org.apache.maven.lifecycle.LifecycleExecutionException: Invalid or missing parameters: [Mojo parameter [name: 'sources'; alias: 'null']] for mojo: org.codehaus.mojo:build-helper-maven-plugin:1.4:add-source

History

Updated by Jérôme Schell 9 months ago

Jérôme Schell wrote:

Running a "Build project" on the lsc-sample project produces the following error: [...]

That was meant for Eclipse of course.

Updated by Jérôme Schell 9 months ago

Same project is compiling and packaging fine under Debian Lenny (Maven 2.0.9).

Failling system was Ubuntu Karmic (Maven 2.2.1).

Updated by Sébastien Bahloul 8 months ago

  • Target version set to 1.1.x branch

As I understand, this will not be anymore an issue in 1.2 branch

Updated by Jonathan Clarke 5 months ago

  • Status changed from New to Feedback

As I understand this, it's a Maven version problem. 2.0.x works, but not 2.2.x. Right?

The problem is only with the "src/impl" folder, which is only present in LSC 1.1.x, not in 1.2.x.

Since 1.1.x is no longer actively developed, and this bug would be quite time-consuming, I think it's safe to say that users of 1.1.x must use Maven 2.0.x, or upgrade to 1.2 (see http://lsc-project.org/wiki/documentation/1.2/upgrade-from-1.1). Any objections?

Updated by Jonathan Clarke 3 months ago

  • Status changed from Feedback to Closed

No objections in 2 months, so closing.

Also available in: Atom PDF