You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "John Conlon (JIRA)" <ji...@apache.org> on 2007/02/09 23:03:05 UTC
[jira] Updated: (FELIX-198) Build of trunk fails
[ https://issues.apache.org/jira/browse/FELIX-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Conlon updated FELIX-198:
------------------------------
Attachment: pom-bug.xml
Care must be taken to separate packaging types. If a project uses too many types of plugins the bug will manifest. This pom-bug.xml
mvn -Dpackaging=bug -f pom-bug.xml install
will execute three modules of different packaging types (they all still use a jar extension)
<module>ipojo</module> <!--a osgi-bundle-->
<module>ipojo.plugin</module><!--a maven-plugin-->
<module>ipojo.arch</module> <!--a ipojo-bundle-->
Observe the last artifact copied to the repository.
[INFO] Installing /home/jconlon/projects/svns/felix/trunk/ipojo.arch/target/org.apache.felix.ipojo.arch-0.7.0-incubator-SNAPSHOT.jar to /home/jconlon/.m2/repository/org/apache/felix/org.apache.felix.ipojo.arch/0.7.0-incubator-SNAPSHOT/org.apache.felix.ipojo.arch-0.7.0-incubator-SNAPSHOT.ipojo-bundle
mvn -Dpackaging=nobug -f pom-bug.xml install
will execute only the last of the above three modules.
Now look at the artifact copied to the repo.
[INFO] Installing /home/jconlon/projects/svns/felix/trunk/ipojo.arch/target/org.apache.felix.ipojo.arch-0.7.0-incubator-SNAPSHOT.jar to /home/jconlon/.m2/repository/org/apache/felix/org.apache.felix.ipojo.arch/0.7.0-incubator-SNAPSHOT/org.apache.felix.ipojo.arch-0.7.0-incubator-SNAPSHOT.jar
> Build of trunk fails
> --------------------
>
> Key: FELIX-198
> URL: https://issues.apache.org/jira/browse/FELIX-198
> Project: Felix
> Issue Type: Bug
> Affects Versions: 1.0.0
> Environment: java version "1.5.0_06"
> Reporter: John Conlon
> Priority: Critical
> Fix For: 1.0.0
>
> Attachments: mychanges.patch, pom-bug.xml, pom-old-pluginA.xml
>
>
> Encountering maven bug
> http://jira.codehaus.org/browse/MNG-1682 when building the trunk with pom-old-plugin.xml called from the ant build.xml.
> This bug occurs when more than two packaging types are used in a multiproject build. In this case ipojo does a <packaging>ipojo-bundle</packaging> which triggers the bug for all subsequent module builds.
> These module builds will only occur when running with a jdk1.5, as this will trigger the mosgi module builds.
> <profiles>
> <profile>
> <id>jdk1.5</id>
> <activation>
> <jdk>1.5</jdk>
> </activation>
> <modules>
> <module>mosgi.console.xxx...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.