Very early on the Greeks drew parallels between the Trojan War and the Persian War. Both involved Greeks coming together to defeat an eastern power; so naturally from that the latter took on characteristics of the former, and vice versa. Even before the Trojan War began, Greek and Trojan kings began to look like Achaemenid kings (see here, section 4.2 and image 11, which can be found on the right sidebar). But during the fifth century, the assimilation of specifically Trojans and Persians (i.e. Trojans in Persian trappings) was complete:
Attic black and red figure painters of the sixth and most of the fifth century persisted in depicting the Trojan in Hellenic dress indistinguishable fromthat of the Greeks...Paris furnishes some of the rare exceptions in the later sixth century by sometimes appearing in the costume of the "Scythian archers" so prevalent in Attic vase painting of this period.
[By] the end of the fifth and fourth centuries B.C., the depiction of the Trojans in Greek art had changed drastically; by then, they had assimilated the dress of Amazons or Persians. During this period Paris appears in vase painting almost exclusively as an oriental prince.
D. Castriota 1992, Myth, Ethos, and Actuality, U. Wisconsin Press, p. 106.
You can see an example here. Notice the different costumes of Aphrodite (tall, in the middle, wearing typical Greek dress) and the Trojans (Aeneas on the left, Paris on the right).
Many have seen the juxtaposition of Persian War scenes and Trojan War scenes on the Metopes of the Parthenon to indicate a symbolic relationship between the two (cf. e.g. A. Stewart 1990 Greek Sculpture: An Exploration, Yale Press, p. 250-252).
It is not surprising that Herodotus begins his narrative of the Persian War with a rationalized account of the Trojan.
While that's not technically allegory, there were others who did make the war fully allegorical. Lamberton in his Homer the Theologian (UC Press, 1989) notes that there seemed to be a general agreement that the Odyssey
would traditionally have been read as allegory, most often moral allegory.
(p. 224)
Much of the allegorization came from a defense of Homer and the gods from attacks by the Platonists. Plato himself censured Homer in his Republic. In the first century CE, Heraclitus (not to be confused with the Pre-Socratic philosopher from the late sixth/early fifth century!) penned his Homeric Allegories. His work is primarily Euhemeristic, in that they're:
either physical allegories—claims that the poems represent forces or elements of the natural world as gods—or ethical ones that stress edifying concealed messages.
(R. Lamberton, "Homer in Antiquity," in Morris and Powell eds. A New Companion to Homer, Brill 1997, p. 52)
Picking up from the Platonic allegory, the Neo-Platonists developed Homer's Trojan War into an allegory of the soul (which is, after all, what the Utopian Republic is really all about). I quote Anne Sheppard's Studies on the 5th and 6th Essays of Proclus' Commentary on the Republic (pp. 40–41):
Proclus and Syrianus allegorised Homer in metaphysical and theological terms and sought to show the harmony between poetry, religion and philosophy. As a result myths, including Homeric myths, do make tantalisingly brief appearances in Syrianus' commentary.
Furthermore:
There are good grounds for thinking that systemic allegory of Homer in terms of transcendent metaphysical entities was first developed by Syrianus. Writers like Philo and Origen occasionally allegorise Biblical persons and events in terms of metaphysics; Porphyry's De antro nympharum uses Neoplatonist concepts in its interpretation of the grotto in Od. 13 [i.e. Homer's Odyssey book 13 - CW] and refers to a full-scale allegory of the Odyssey by Numenius in terms of the journey of the soul; but nowhere before Proclus and Syrianus is there a detailed and systematic application of the Homeric myths to the sphere of transcendent metaphysics.
(p. 47)
Sheppard gives several examples of allegorising, such as "Zeus and Hera representing the monad and the dyad" (for what that is, see this), of which there is a very nice discussion in Sheppard's book, and the death of the twelve captives by Achilles as symbolizing the demiurge. Other examples in Proclus include the Judgment of Paris, where he makes the choosing of the goddesses an allegory for different lifestyles:
Proclus's understanding of the meaning of the story is that it "hints at" (αἰνίττεται) the choice among lives of different sorts, the regal (Hera), the philosophical (apparently Athena), and the erotic (Aphrodite). An important source for this is to be found in two passages of the Phaedrus [i.e. a work by Plato - CW], but the passages from Plato are not very well suited to the explanation of the myth, and Procus must twist them considerably in the attempt to make them appear so.
(Lamberton 1997, p. 202ff.)
One further thing of note, Proclus most certainly thinks that Homer himself is allegorizing, and that as a poet, he is simultaneously crafting both layers, the plain meaning and the allegory.