You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "ttest (JIRA)" <ji...@codehaus.org> on 2005/06/12 21:00:40 UTC
[jira] Created: (MNG-467) Ant Tasks defined in typedef
Ant Tasks defined in typedef
----------------------------
Key: MNG-467
URL: http://jira.codehaus.org/browse/MNG-467
Project: Maven 2
Type: Bug
Components: maven-artifact
Versions: 2.0-alpha-2
Reporter: ttest
Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
<path id="maven.classpath">
<pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
</path>
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
<classpath refid="maven.classpath"/>
</typedef>
Running Ant with that snippet gives the following error:
C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-467) Ant Tasks defined in typedef
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-467?page=all ]
Kenney Westerhof updated MNG-467:
---------------------------------
Attachment: MNG-467.patch
John asked me for assistance on this one. Solved the problem by fixing
the ClassRealm in plexus. Another fix was to set the Thread.currentThread().contextClassLoader
but that has unpredictable side effects.
> Ant Tasks defined in typedef
> ----------------------------
>
> Key: MNG-467
> URL: http://jira.codehaus.org/browse/MNG-467
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-2
> Reporter: ttest
> Assignee: John Casey
> Fix For: 2.0-alpha-3
> Attachments: MNG-467.patch
>
>
> Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
> <path id="maven.classpath">
> <pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
> </path>
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
> <classpath refid="maven.classpath"/>
> </typedef>
> Running Ant with that snippet gives the following error:
> C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
> The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-467) Ant Tasks defined in typedef
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-467?page=all ]
Brett Porter updated MNG-467:
-----------------------------
Fix Version: 2.0-alpha-3
> Ant Tasks defined in typedef
> ----------------------------
>
> Key: MNG-467
> URL: http://jira.codehaus.org/browse/MNG-467
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-2
> Reporter: ttest
> Fix For: 2.0-alpha-3
>
>
> Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
> <path id="maven.classpath">
> <pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
> </path>
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
> <classpath refid="maven.classpath"/>
> </typedef>
> Running Ant with that snippet gives the following error:
> C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
> The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-467) Ant Tasks defined in typedef
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-467?page=all ]
John Casey closed MNG-467:
--------------------------
Resolution: Fixed
applied Kenney Westerhof's patch, and ran down potential NPE when using a list of dependencies in the DependencyTask by creating a dummy Pom object to allow creation of the originatingArtifact for use in resolveTransitively() ...it looks to be used simply for tracking.
> Ant Tasks defined in typedef
> ----------------------------
>
> Key: MNG-467
> URL: http://jira.codehaus.org/browse/MNG-467
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-2
> Reporter: ttest
> Assignee: John Casey
> Fix For: 2.0-alpha-3
> Attachments: MNG-467.patch, patch2
>
>
> Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
> <path id="maven.classpath">
> <pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
> </path>
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
> <classpath refid="maven.classpath"/>
> </typedef>
> Running Ant with that snippet gives the following error:
> C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
> The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-467) Ant Tasks defined in typedef
Posted by "ttest (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-467?page=comments#action_41104 ]
ttest commented on MNG-467:
---------------------------
Ohh, I forgot to say...
When I put the maven-artifact-ant-2.0-alpha-2-dep.jar in ANT_HOME/lib the mentioned code works.
> Ant Tasks defined in typedef
> ----------------------------
>
> Key: MNG-467
> URL: http://jira.codehaus.org/browse/MNG-467
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-2
> Reporter: ttest
>
>
> Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
> <path id="maven.classpath">
> <pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
> </path>
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
> <classpath refid="maven.classpath"/>
> </typedef>
> Running Ant with that snippet gives the following error:
> C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
> The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-467) Ant Tasks defined in typedef
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-467?page=all ]
Kenney Westerhof updated MNG-467:
---------------------------------
Attachment: patch2
This is a patch for the sample.build.xml that illustrates and documents
how to use maven-artifact-ant when you do NOT place the jars in $ANT_HOME/lib.
It also fixes the ${expressions} so the output is correct again (at least for the test-pom target).
Beware: due to a change in DependencyTask the build will nullpointer when the 'foo' task
is called. For artifact resolution a Pom object is needed (indirectly) and there's no null check.
Should create a separate issue for this, but I think when someone will verify the sample.build.xml
and update it more issues will come up.
> Ant Tasks defined in typedef
> ----------------------------
>
> Key: MNG-467
> URL: http://jira.codehaus.org/browse/MNG-467
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-2
> Reporter: ttest
> Assignee: John Casey
> Fix For: 2.0-alpha-3
> Attachments: MNG-467.patch, patch2
>
>
> Trying to include the M2 Ant tasks with typedef doesn't work. The script snippet to do that would be:
> <path id="maven.classpath">
> <pathelement location="${setup.lib.path}/maven-artifact-ant-2.0-alpha-2-dep.jar"/>
> </path>
>
> <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="http://maven.apache.org/maven2">
> <classpath refid="maven.classpath"/>
> </typedef>
> Running Ant with that snippet gives the following error:
> C:\Chris_Web\nfpnet\build.xml:75: java.lang.IllegalStateException: The internal default plexus-bootstrap.xml is missing. This is highly irregular, your plexus JAR is most likely corrupt.
> The reason why I need the typedef is because I need to specify the location of the JAR in the build file because I dynamically reload/fetch it from the web from another Ant script.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org